merchantApplyList.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <template>
  2. <!-- 商家申请审核记录 -->
  3. <s-layout class="wallet-wrap" :bgStyle="{'backgroundColor':'#ffffff'}" title="审核记录" navbar="normal">
  4. <view class="model-box ss-flex-col">
  5. <view v-if="state.pagination.total > 0" style="padding:0 20rpx;">
  6. <view class="list-item ss-flex ss-col-center ss-row-between "
  7. style="padding:0;padding: 20rpx 0;border-bottom: 1px solid #c4c4c4;">
  8. <view class="ss-flex ss-col-center" style="width: 100%;">
  9. <view class="ss-flex ss-m-t-10"
  10. style="flex-direction: column;align-items: flex-start;width: 100%;">
  11. <view class="name" style="width: 100%;">
  12. 商户登陆地址: <text class="color-red" @click="sheep.$helper.copyText('https://sh.letcgo.com')">https://sh.letcgo.com</text>
  13. </view>
  14. <view class="time " style="width: 100%;">
  15. 默认管理员账号: 联络人手机号
  16. </view>
  17. <view class="time " style="width: 100%;">
  18. 默认管理员密码: zxpt@联络人手机号
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <scroll-view class="list-box" scroll-y="true" @touchmove.stop>
  25. <view v-if="state.pagination.total > 0" style="padding: 20rpx;padding-top:0">
  26. <view class="list-item ss-flex ss-col-center ss-row-between "
  27. v-for="(item,index) in state.pagination.list" :key="item.id"
  28. style="padding:0;padding: 20rpx 0;border-bottom: 1px solid #c4c4c4;">
  29. <view class="ss-flex ss-col-center" style="width: 100%;">
  30. <view class="ss-flex ss-m-t-10"
  31. style="flex-direction: column;align-items: flex-start;width: 100%;">
  32. <view class="name" style="width: 100%;">
  33. {{item.status === 1 ? '通过' : '拒绝'}}
  34. </view>
  35. <view class="time " style="width: 100%;">
  36. 审核时间:{{sheep.$helper.timeFormat(item.createTime, 'yyyy-mm-dd hh:MM')}}
  37. </view>
  38. <view class="time " style="width: 100%;">
  39. 描述:{{item.checkComment}}
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <s-empty v-else text="暂无数据" paddingTop="200" icon="/static/data-empty.png" />
  46. <uni-load-more v-if="state.pagination.total > 0" :status="state.loadStatus" :content-text="{
  47. contentdown: '点击加载更多',
  48. }" @tap="onLoadMore(true)" @scrolltolower="onLoadMore(true)" />
  49. </scroll-view>
  50. </view>
  51. </s-layout>
  52. </template>
  53. <script setup>
  54. import sheep from '@/sheep';
  55. import {
  56. onLoad,
  57. onReachBottom
  58. } from '@dcloudio/uni-app';
  59. import {
  60. computed,
  61. reactive
  62. } from 'vue';
  63. import {
  64. points2point
  65. } from '@/sheep/hooks/useGoods';
  66. import _ from 'lodash';
  67. import dayjs from 'dayjs';
  68. import PointApi from '@/sheep/api/member/point';
  69. import {
  70. resetPagination
  71. } from '@/sheep/util';
  72. import SaleApi from '@/sheep/api/sale/sale';
  73. const props = defineProps({
  74. merchantApplyId: {
  75. type: Number,
  76. default: ''
  77. }
  78. })
  79. const userWallet = computed(() => sheep.$store('user').userWallet);
  80. const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
  81. const userInfo = computed(() => sheep.$store('user').userInfo);
  82. const sys_navBar = sheep.$platform.navbar;
  83. const state = reactive({
  84. currentTab: 0,
  85. pagination: {
  86. list: [],
  87. total: 0,
  88. pageSize: 10,
  89. pageNo: 1,
  90. },
  91. loadStatus: '',
  92. });
  93. async function getLogList() {
  94. state.loadStatus = 'loading';
  95. let {
  96. code,
  97. data
  98. } = await SaleApi.getMerchantPage({
  99. pageNo: state.pagination.pageNo,
  100. pageSize: state.pagination.pageSize,
  101. merchantApplyId: props.merchantApplyId
  102. });
  103. if (code !== 0) {
  104. return;
  105. }
  106. let list = _.concat(state.pagination.list, data.list);
  107. state.pagination.list = list;
  108. state.pagination.total = data.total;
  109. state.loadStatus = state.pagination.list.length < state.pagination.total ? 'more' : 'noMore';
  110. }
  111. onLoad(() => {
  112. getLogList();
  113. });
  114. function onLoadMore() {
  115. if (state.loadStatus === 'noMore') {
  116. return;
  117. }
  118. state.pagination.pageNo++;
  119. getLogList();
  120. }
  121. onReachBottom(() => {
  122. onLoadMore();
  123. });
  124. </script>
  125. <style lang="scss" scoped>
  126. .color-red {
  127. color: #f40;
  128. }
  129. .color-green {
  130. color: green;
  131. }
  132. .score-box {
  133. margin: 20rpx;
  134. border-radius: 20rpx;
  135. padding-top: 100rpx;
  136. }
  137. .avatar-box {
  138. width: 100rpx;
  139. height: 100rpx;
  140. border-radius: 50%;
  141. overflow: hidden;
  142. .avatar-img {
  143. width: 100%;
  144. height: 100%;
  145. }
  146. }
  147. .value-box {
  148. width: 100rpx;
  149. height: 100rpx;
  150. line-height: 100rpx;
  151. text-align: center;
  152. border-radius: 50%;
  153. border: 2px solid #f6f6f6;
  154. }
  155. .btn {
  156. width: 300rpx;
  157. background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  158. border-radius: 20rpx;
  159. font-size: 30rpx;
  160. font-weight: 500;
  161. line-height: 80rpx;
  162. color: $white;
  163. position: relative;
  164. z-index: 1;
  165. }
  166. .header-box {
  167. width: 100%;
  168. background: linear-gradient(180deg, var(--ui-BG-Main) 0%, var(--ui-BG-Main-gradient) 100%) no-repeat;
  169. background-size: 750rpx 100%;
  170. padding: 0 0 120rpx 0;
  171. box-sizing: border-box;
  172. .score-box {
  173. height: 100%;
  174. .all-num {
  175. font-size: 50rpx;
  176. font-weight: bold;
  177. color: #fff;
  178. font-family: OPPOSANS;
  179. }
  180. .all-title {
  181. font-size: 26rpx;
  182. font-weight: 500;
  183. color: #fff;
  184. }
  185. .cicon-help-o {
  186. color: #fff;
  187. font-size: 28rpx;
  188. }
  189. }
  190. }
  191. // 筛选
  192. .filter-box {
  193. height: 114rpx;
  194. background-color: $bg-page;
  195. .total-box {
  196. font-size: 24rpx;
  197. font-weight: 500;
  198. color: $dark-9;
  199. }
  200. .date-btn {
  201. background-color: $white;
  202. line-height: 54rpx;
  203. border-radius: 27rpx;
  204. padding: 0 20rpx;
  205. font-size: 24rpx;
  206. font-weight: 500;
  207. color: $dark-6;
  208. .ss-seldate-icon {
  209. font-size: 50rpx;
  210. color: $dark-9;
  211. }
  212. }
  213. }
  214. .list-box {
  215. // width: 600rpx;
  216. // padding: 0 30rpx;
  217. overflow-y: auto;
  218. height: 100vh;
  219. .list-item {
  220. background: #fff;
  221. // border-bottom: 1rpx solid #dfdfdf;
  222. padding: 30rpx;
  223. .name {
  224. font-size: 28rpx;
  225. font-weight: 500;
  226. color: rgba(102, 102, 102, 1);
  227. // line-height: 28rpx;
  228. // margin-bottom: 20rpx;
  229. }
  230. .time {
  231. font-size: 24rpx;
  232. font-weight: 500;
  233. color: rgba(196, 196, 196, 1);
  234. // line-height: 24px;
  235. }
  236. .add {
  237. font-size: 30rpx;
  238. font-weight: 500;
  239. color: #e6b873;
  240. }
  241. .minus {
  242. font-size: 30rpx;
  243. font-weight: 500;
  244. color: $dark-3;
  245. }
  246. }
  247. }
  248. </style>