members.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view>
  3. <view class="search">
  4. <u-search placeholder="输入姓名搜索" v-model="param.goodsName" bgColor="white" @search="refresh()" :animation="true" actionText="取消" @clear="refresh()"></u-search>
  5. <view class="clear"></view>
  6. </view>
  7. <view class="list">
  8. <view class="item" v-for="(item, index) in list" :key="index">
  9. <view class="flex">
  10. <view class="f name" style="flex: 0.5">{{ item.peopleName }}</view>
  11. <view class="f" v-for="(item, index) in item.items" :key="index">
  12. <text class="icon" v-if="item.state == 0">&#xe631;</text>
  13. <text class="icon ok" v-else>&#xe631;</text>
  14. <text>{{ item.name }}</text>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. param: {},
  26. list: []
  27. };
  28. },
  29. onLoad(e) {
  30. this.param.orderId = e.id
  31. this.getData();
  32. },
  33. methods: {
  34. getData() {
  35. this.http.request({
  36. url: '/level-one-server/app/TbOrder/selectPeopleConfirmByOrderId',
  37. data: this.param,
  38. success: res => {
  39. this.list = res.data.data
  40. this.list.map(item => {
  41. item.items = [
  42. { name: '订单确认', state: item.progressApply },
  43. { name: '进境申报', state: item.importApply },
  44. ]
  45. })
  46. console.log(this.list)
  47. }
  48. });
  49. },
  50. detail(item) {
  51. uni.navigateTo({ url: '/pages/market/one/leader/detail?id=' + item.id });
  52. }
  53. }
  54. };
  55. </script>
  56. <style lang="scss">
  57. page {
  58. background-color: $pg;
  59. }
  60. .list {
  61. padding: 15px;
  62. .item {
  63. padding: 15px 10px 15px 10px;
  64. background-color: white;
  65. border-radius: 5px;
  66. margin-bottom: 10px;
  67. color: $font-c;
  68. .f {
  69. padding: 2px;
  70. font-size: 14px;
  71. .icon {
  72. color: #c3c5c7;
  73. }
  74. .ok {
  75. color: $main-color;
  76. }
  77. }
  78. .name {
  79. font-weight: bold;
  80. }
  81. }
  82. }
  83. </style>