check.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. })
  77. }
  78. }.bind(this)
  79. }
  80. },
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .head {
  85. display: flex;
  86. align-items: center;
  87. justify-content: space-between;
  88. height: 37px;
  89. padding: 0 10px;
  90. box-sizing: border-box;
  91. font-family: Source Han Sans SC, Source Han Sans SC;
  92. font-size: 12px;
  93. color: #666666;
  94. }
  95. .footer {
  96. position: fixed;
  97. bottom: 0;
  98. display: flex;
  99. justify-content: space-between;
  100. width: 100vw;
  101. height: 65px;
  102. background: #FFFFFF;
  103. box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
  104. padding: 5px 10px;
  105. box-sizing: border-box;
  106. .invite {
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. flex: 1;
  111. height: 45px;
  112. background: #C30D23;
  113. border-radius: 5px;
  114. font-family: PingFang SC, PingFang SC;
  115. font-weight: 500;
  116. font-size: 16px;
  117. color: #FFFFFF;
  118. }
  119. }
  120. </style>