qiun-error.vue 1.1 KB

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