check.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="">
  3. <view class="head">
  4. <text>
  5. 门店审核
  6. </text>
  7. <text>
  8. 共{{ total }}个
  9. </text>
  10. </view>
  11. <My_listbox ref="List" @getlist="getList" bottomHeight="70">
  12. <store-list check ref="storeList" :list="list" @onClick="onClick" />
  13. </My_listbox>
  14. <view class="footer">
  15. <navigator class="invite" @click="onInsert" url="/store/insert/store">
  16. 新增门店
  17. </navigator>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import storeList from "../team/modules/storeList.vue"
  23. export default {
  24. components: { storeList },
  25. data() {
  26. return {
  27. "content": {
  28. "where": {
  29. "condition": ""
  30. }
  31. },
  32. total: 0,
  33. list: [],
  34. uninitialized: true
  35. }
  36. },
  37. onLoad() {
  38. this.getList()
  39. },
  40. methods: {
  41. getList(init = false) {
  42. if (this.paging(this.content, init)) return;
  43. this.$Http.basic({
  44. "id": "20240411141602",
  45. content: this.content
  46. }).then(res => {
  47. console.log("待审核门店列表", res)
  48. this.$refs.List.RefreshToComplete()
  49. if (this.cutoff(res.msg)) return;
  50. this.uninitialized = false;
  51. this.$refs.List.setHeight()
  52. res.data = this.$refs.storeList.handleList(res.data)
  53. this.total = res.total;
  54. this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data), this.colors;
  55. this.content = this.$refs.List.paging(this.content, res)
  56. })
  57. },
  58. onClick(item) {
  59. this.onInsert();
  60. uni.navigateTo({
  61. url: '/store/center/detail?id=' + item.sa_storeid,
  62. });
  63. },
  64. onInsert() {
  65. this.$Http.uploadStoreList = function () {
  66. if (this.content.pageNumber && this.content.pageNumber >= 2) {
  67. let content = this.paging(this.content, true, true)
  68. this.$Http.basic({
  69. "id": "20240411141602",
  70. content
  71. }).then(res => {
  72. console.log("待审核门店列表", res)
  73. if (this.cutoff(res.msg)) return;
  74. this.$refs.List.setHeight()
  75. this.list = this.$refs.storeList.handleList(res.data);
  76. this.$refs.List.paging(current, res, true)
  77. })
  78. }
  79. }.bind(this)
  80. }
  81. },
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .head {
  86. display: flex;
  87. align-items: center;
  88. justify-content: space-between;
  89. height: 37px;
  90. padding: 0 10px;
  91. box-sizing: border-box;
  92. font-family: Source Han Sans SC, Source Han Sans SC;
  93. font-size: 12px;
  94. color: #666666;
  95. }
  96. .footer {
  97. position: fixed;
  98. bottom: 0;
  99. display: flex;
  100. justify-content: space-between;
  101. width: 100vw;
  102. height: 65px;
  103. background: #FFFFFF;
  104. box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
  105. padding: 5px 10px;
  106. box-sizing: border-box;
  107. .invite {
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. flex: 1;
  112. height: 45px;
  113. background: #C30D23;
  114. border-radius: 5px;
  115. font-family: PingFang SC, PingFang SC;
  116. font-weight: 500;
  117. font-size: 16px;
  118. color: #FFFFFF;
  119. }
  120. }
  121. </style>