You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

4 years ago
  1. <template>
  2. <view>
  3. <view v-show="status !== 2" class="mix-load-more center">
  4. <image class="loading-icon" src="/static/loading/hamster.gif"></image>
  5. <text class="text">{{ textList[status] }}</text>
  6. </view>
  7. <view v-show="status === 2" class="mix-load-more center">
  8. <image class="logo" src="/static/logo-b-w.png"></image>
  9. <text class="text">国云网络提供技术支持</text>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. /**
  15. * 上划加载更多
  16. * @prop {Number} status 0加载前1加载中2没有更多
  17. * @prop {Array} textList ['加载前提示', '加载中提示', '加载完提示']
  18. */
  19. export default {
  20. name: "mix-load-more",
  21. props: {
  22. status: {
  23. type: Number,
  24. default: 0
  25. },
  26. textList: {
  27. type: Array,
  28. default () {
  29. return [
  30. '上拉显示更多',
  31. '正在加载 ..',
  32. '我也是有底线的~'
  33. ];
  34. }
  35. }
  36. }
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .mix-load-more{
  41. width: 750rpx;
  42. height: 110rpx;
  43. }
  44. .loading-icon{
  45. width: 64rpx;
  46. height: 68rpx;
  47. margin-right: 20rpx;
  48. }
  49. .text{
  50. font-size: 26rpx;
  51. color: #999;
  52. }
  53. .logo{
  54. width: 34rpx;
  55. height: 34rpx;
  56. margin-right: 12rpx;
  57. }
  58. </style>