qiun-error.vue 837 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="chartsview">
  3. <view class="charts-error"></view>
  4. <view class="charts-font">{{errorMessage==null?'请点击重试':errorMessage}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'qiun-error',
  10. props: {
  11. errorMessage: {
  12. type: String,
  13. default: null
  14. },
  15. },
  16. data() {
  17. return {
  18. };
  19. },
  20. }
  21. </script>
  22. <style>
  23. .chartsview {
  24. width: 100%;
  25. height: 100%;
  26. display: flex;
  27. flex-direction: column;
  28. flex: 1;
  29. justify-content: center;
  30. align-items: center;
  31. }
  32. .charts-font {
  33. font-size: 14px;
  34. color: #CCCCCC;
  35. margin-top: 10px;
  36. }
  37. .charts-error {
  38. width: 150px;
  39. height: 80px;
  40. background-image: url('https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/public/task-empty.png');
  41. background-size: 150px 80px;
  42. background-position: center;
  43. }
  44. </style>