person-list.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail" style="margin-top: 0px">
  5. <u-divider text="购买边民"></u-divider>
  6. <view class="item" style="padding-top: 0px" v-for="(item,index) in list">
  7. <text class="label" style="line-height: 50rpx;">
  8. {{item.borderName}}
  9. <view style="font-size: 30rpx;color: #9c9999;">
  10. 订单确认:
  11. <text v-if="item.peopleConfirmStatus==0">未确认</text>
  12. <text v-if="item.peopleConfirmStatus==1">已确认</text>
  13. <view v-if="item.peopleConfirmTime">时间:{{item.peopleConfirmTime}}</view>
  14. </view>
  15. </text>
  16. <text class="desc" style="width: 120rpx;">{{item.buyAmount}}</text>
  17. </view>
  18. <view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
  19. <u-empty v-if="!loadMore && list.length == 0"></u-empty>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. list: [],
  29. param: {
  30. pageNo: 1,
  31. pageSize: 10,
  32. saleMainId: ''
  33. },
  34. loadMore: true,
  35. };
  36. },
  37. onLoad(e) {
  38. this.param.saleMainId = e.id
  39. this.getData();
  40. uni.$on("refreshPage", res => {
  41. this.refresh();
  42. })
  43. },
  44. methods: {
  45. getData() {
  46. this.http.request({
  47. url: '/level-one-server/app/TbOrder/getList',
  48. data: this.param,
  49. success: res => {
  50. this.loadMore = parseInt(res.data.pageCount) > this.param.pageNo;
  51. if (res.data.data) {
  52. this.list.push(...res.data.data);
  53. }
  54. }
  55. });
  56. },
  57. refresh() {
  58. this.loadMore = true;
  59. this.param.pageNo = 1;
  60. this.list = [];
  61. this.getData();
  62. },
  63. }
  64. };
  65. </script>
  66. <style lang="scss">
  67. page {
  68. background-color: $pg;
  69. }
  70. </style>