order.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <view class="goodsManageList">
  4. <view class="item" v-for="(item, index) in list" :key="index">
  5. <view class="top">
  6. <view class="title omit">{{ item.cooperativeName }}</view>
  7. </view>
  8. <view class="con">
  9. <view class="flex fs">
  10. <view class="f">
  11. <view class="tag">订单编号</view>
  12. <view class="v omit">{{ item.orderNo }}</view>
  13. </view>
  14. <view class="f">
  15. <view class="tag">总金额</view>
  16. <view class="v omit" style="color: coral;">¥{{ item.totalPrice }}</view>
  17. </view>
  18. </view>
  19. <view class="tradeAreaName">{{ item.tradeAreaName }}</view>
  20. <view class="date">创建于:{{ item.createTime }}</view>
  21. </view>
  22. <view class="op">
  23. <view class="flex">
  24. <view class="f" style="color: #0081ff" @click.stop="peopleOrders(item.id)">
  25. <text>边民订单</text>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="clear"></view>
  30. </view>
  31. <view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
  32. <u-empty v-if="!loadMore && list.length == 0"></u-empty>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. list: [],
  41. loadMore: false,
  42. };
  43. },
  44. onLoad() {
  45. this.getData();
  46. },
  47. methods: {
  48. getData() {
  49. this.http.request({
  50. url: '/level-one-server/app/TbCollageOrders/getList',
  51. loading: 'false',
  52. data: this.param,
  53. success: res => {
  54. this.list.push(...res.data.data);
  55. }
  56. });
  57. },
  58. peopleOrders(id) {
  59. uni.navigateTo({ url: '/pages/market/one/cooperative/peopleOrders?collageOrdersId=' + id });
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. </style>