evaluate.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="main">
  3. <view class="list_item u-margin-top-30 margin-lr-sm" v-for="(item,index) in listItem" :key="index">
  4. <view class="order-num flex justify-between align-center u-font-28 u-padding-bottom-10 u-border-bottom"
  5. style="color:#909399;">
  6. <text class="u-font-24">订单号:123123123123123123</text>
  7. <text class="u-font-24">联系电话:15178742141</text>
  8. </view>
  9. <view class="order-num u-margin-top-15 flex align-center u-padding-bottom-10 u-border-bottom">
  10. <u-avatar src="" size="100"></u-avatar>
  11. <view class="u-margin-left-20 flex-sub" style="color: #505559;">
  12. <view class="u-font-28">
  13. 评估类型:企业信用问题咨询
  14. </view>
  15. <view class="u-font-28">
  16. 评估用户:吴某小额贷款公司
  17. </view>
  18. </view>
  19. </view>
  20. <view class="u-margin-top-15">
  21. <view class="">
  22. 用户评价:
  23. </view>
  24. <view class="u-padding-15"
  25. style="width: 100%;border:2rpx solid rgba(136,136,136,.3);height: 118rpx;border-radius: 16rpx;">
  26. <scroll-view scroll-y="true" style="height: 100%;" show-scrollbar="true">
  27. <view style="color: rgba(136,136,136,.7);font-size: 22rpx;">
  28. 这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价这里是用户评价
  29. </view>
  30. </scroll-view>
  31. </view>
  32. </view>
  33. </view>
  34. <uni-load-more :loadingType="loadingType" :contentText="contentText" />
  35. <!-- <view class="cu-tabbar-height"></view> -->
  36. <!-- <view class="cu-tabbar-height"></view> -->
  37. </view>
  38. </template>
  39. <script>
  40. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  41. export default {
  42. components:{
  43. uniLoadMore
  44. },
  45. data() {
  46. return {
  47. loadingType: 0,
  48. contentText: {
  49. contentdown: '上拉显示更多',
  50. contentrefresh: '正在加载...',
  51. contentnomore: '没有更多数据了'
  52. },
  53. indexPage: 1,
  54. listItem: []
  55. }
  56. },
  57. onLoad() {
  58. this.getEvaluateItem()
  59. },
  60. onReachBottom() {
  61. if (this.loadingType !== 0) {
  62. return;
  63. }
  64. this.loadingType = 1;
  65. this.getEvaluateItem();
  66. },
  67. methods: {
  68. async getEvaluateItem() {
  69. let res = await this.$u.post("manager/evaluate", {
  70. page: this.indexPage,
  71. })
  72. if (res.code == 200) {
  73. this.listItem = this.listItem.concat(res.data.data)
  74. this.indexPage++
  75. if (res.data.current_page == res.data.last_page) {
  76. this.loadingType = 2;
  77. } else {
  78. this.loadingType = 0;
  79. }
  80. } else {
  81. uni.showToast({
  82. icon: 'none',
  83. title: res.message
  84. });
  85. this.loadingType = 0;
  86. }
  87. }
  88. }
  89. }
  90. </script>
  91. <style>
  92. .list_item {
  93. padding: 20rpx;
  94. border-radius: 16rpx;
  95. box-shadow: 6rpx 6rpx 10rpx rgba(122, 122, 122, 0.2);
  96. background: #fff;
  97. }
  98. .order-num::after {
  99. border-color: #bbb;
  100. }
  101. button::after {
  102. display: none;
  103. }
  104. </style>