processaudit.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template>
  2. <view class="process">
  3. <view class="process-header">
  4. <view class="process-header-text">
  5. <view class="process-header-text-icon" @click="topgi">
  6. <image src="https://cdn.bjtdba.com/vod/image/2022-08-11/20220811133828415.png" mode="widthFix">
  7. </image>
  8. </view>
  9. <view class="process-header-text-title">
  10. 店铺入驻
  11. </view>
  12. </view>
  13. </view>
  14. <view class="process-zhuti">
  15. <!-- 提交资料 -->
  16. <view class="process-audit" v-if="submitCode == 1">
  17. <image class="process-auditimg" src="https://cdn.bjtdba.com/vod/image/2022-08-22/20220822183048362.png"
  18. mode=""></image>
  19. <view class="process-audittitle">恭喜,您的资料提交成功!</view>
  20. <view class="process-auditintroduce">预计15个工作日内审核完毕,平台客服会及时与您联系!</view>
  21. </view>
  22. <!-- 审核中 -->
  23. <view class="process-audit" v-else-if="submitCode == 3">
  24. <image class="process-auditimg" src="https://cdn.bjtdba.com/vod/image/2022-08-22/20220822182939278.png"
  25. mode=""></image>
  26. <view class="process-audittitle">店铺审核中!</view>
  27. <view class="process-auditintroduce">提交日期:{{selectmerchant.merchantIntention.create_time}},5个工作日内审核完毕!
  28. </view>
  29. </view>
  30. <!-- 审核失败 -->
  31. <view class="process-audit" v-else>
  32. <image class="process-auditimg" src="https://cdn.bjtdba.com/vod/image/2022-08-22/20220822183146760.png"
  33. mode=""></image>
  34. <view class="process-audittitle">审核失败</view>
  35. <view class="process-auditintroduce">原因:{{selectmerchant.merchantIntention.check_result}}</view>
  36. <view class="process-audit-update" @click="amendMerchants">点击修改信息</view>
  37. </view>
  38. <view class="process-audit-service">
  39. <view class="process-audit-serviceimg">
  40. <image src="https://cdn.bjtdba.com/vod/image/2022-09-02/20220902132546705.png" mode="widthFix">
  41. </image>
  42. </view>
  43. <view class="process-audit-servicetext">专属客服微信</view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import {
  50. selectMerchant
  51. } from '@/commit/api.js'
  52. export default {
  53. data() {
  54. return {
  55. value: 0,
  56. submitCode: 1,
  57. selectmerchant: [],
  58. authorization: ""
  59. }
  60. },
  61. onLoad(opsition) {
  62. uni.showLoading({
  63. title: '加载中',
  64. mask: true
  65. });
  66. this.submitCode = opsition.submitCode;
  67. this.selectmerchant = uni.getStorageSync('selectmerchant')
  68. setTimeout(function() {
  69. uni.hideLoading();
  70. }, 700);
  71. },
  72. onShow() {
  73. let userinfo = uni.getStorageSync('userinfo')
  74. this.authorization = uni.getStorageSync('authorization')
  75. this.panduanshuhju(userinfo.uid)
  76. },
  77. methods: {
  78. panduanshuhju(e) {
  79. selectMerchant({
  80. uid: e
  81. }).then(data => {
  82. if (data.data.status == 200) {
  83. let selectmerchant = data.data.data
  84. uni.setStorageSync('selectmerchant', selectmerchant)
  85. if (this.authorization && e) {
  86. if (selectmerchant.merId >= 0 && selectmerchant.status == -1) {
  87. uni.redirectTo({
  88. url: "/openmerchant/guide/index" //有或者没有商户 没有金额支付and激活码支付
  89. });
  90. return
  91. } else if (selectmerchant.merId > 0 && (selectmerchant.status == 1 || selectmerchant.status == 5)) {
  92. uni.switchTab({
  93. url: '/pages/cashier/index' //已开通商户
  94. });
  95. return
  96. } else if (selectmerchant.merId >= 0 && (selectmerchant.status == 3 || selectmerchant.status == 4)) {
  97. uni.redirectTo({
  98. url: '/openmerchant/shopentry/process?mer_id=' + selectmerchant
  99. .merId //已开通商户未填写资料
  100. });
  101. return
  102. }
  103. } else {
  104. uni.redirectTo({
  105. url: "/pages/user/login/index"
  106. });
  107. }
  108. }
  109. }, fail => {
  110. uni.showToast({
  111. title: fail,
  112. icon: "none"
  113. })
  114. }).catch(err => {
  115. console.log(err)
  116. })
  117. },
  118. topgi() {
  119. uni.showToast({
  120. title: "请耐心等待...",
  121. icon: "none"
  122. });
  123. },
  124. amendMerchants() {
  125. this.$store.commit('changeMerchantsStatus', 1);
  126. uni.navigateTo({
  127. url: './process?mer_id=' + this.selectmerchant.merId + '&is=' + 1
  128. });
  129. }
  130. }
  131. }
  132. </script>
  133. <style>
  134. page {
  135. background-color: #F7F8FC;
  136. }
  137. </style>
  138. <style lang="scss" scoped>
  139. .process {
  140. width: 100%;
  141. height: 100%;
  142. display: flex;
  143. flex-direction: column;
  144. align-items: center;
  145. justify-content: center;
  146. .process-header {
  147. position: fixed;
  148. top: 0;
  149. left: 0;
  150. z-index: 111;
  151. width: 100%;
  152. height: 176rpx;
  153. background: #FFFFFF;
  154. display: flex;
  155. justify-content: center;
  156. .process-header-text {
  157. width: 686rpx;
  158. font-size: 36rpx;
  159. font-weight: 500;
  160. color: #333333;
  161. display: flex;
  162. margin-top: 107rpx;
  163. align-items: center;
  164. .process-header-text-icon {
  165. width: 36rpx;
  166. height: 36rpx;
  167. margin-right: 26rpx;
  168. line-height: 36rpx;
  169. image {
  170. width: 100%;
  171. height: 100%;
  172. }
  173. }
  174. }
  175. }
  176. .process-zhuti {
  177. width: 100%;
  178. height: 100%;
  179. position: fixed;
  180. top: 0;
  181. left: 0;
  182. margin-top: 202rpx;
  183. display: flex;
  184. flex-direction: column;
  185. align-items: center;
  186. // padding: 32rpx 0 40rpx;
  187. padding-bottom: 40rpx;
  188. background: #FFFFFF;
  189. text-align: center;
  190. .process-audit {
  191. padding: 0 97rpx 0 98rpx;
  192. .process-auditimg {
  193. margin: 101rpx 0 20rpx 0;
  194. width: 199rpx;
  195. height: 226rpx;
  196. }
  197. .process-audittitle {
  198. font-size: 38rpx;
  199. }
  200. .process-auditintroduce {
  201. font-size: 28rpx;
  202. color: #B6B6B6;
  203. margin-top: 70rpx;
  204. }
  205. .process-audit-update {
  206. width: 330rpx;
  207. height: 98rpx;
  208. line-height: 98rpx;
  209. color: #FFFFFF;
  210. background: #1F7CFF;
  211. margin: auto;
  212. margin-top: 108rpx;
  213. }
  214. }
  215. .process-audit-service {
  216. .process-audit-serviceimg {
  217. width: 210rpx;
  218. height: 210rpx;
  219. margin: 50rpx 0 20rpx 0;
  220. image {
  221. width: 100%;
  222. height: 100%;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. </style>