registerState.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view class="container">
  3. <view class="status-list">
  4. <view class="status-row">
  5. <view class="status-line"></view>
  6. <u-icon name="checkmark-circle-fill" class="icon" color="#52A63A" size="32"></u-icon>
  7. <view class="status-title">已注册</view>
  8. <text class="status-date">{{registerInfo.createTime ? registerInfo.createTime : ' '}}</text>
  9. </view>
  10. <view class="status-row">
  11. <view class="status-line"></view>
  12. <u-icon name="checkmark-circle-fill" class="icon" color="#52A63A" size="32"></u-icon>
  13. <view class="status-title">待审核</view>
  14. <text class="status-date">{{registerInfo.applyTime}}</text>
  15. </view>
  16. <view class="status-row" v-if="registerInfo.auditState != 1">
  17. <view class="status-line"></view>
  18. <u-icon name="checkmark-circle-fill" class="icon" color="#52A63A" size="32" v-if="registerInfo.auditState == 2"></u-icon>
  19. <u-icon name="close-circle-fill" class="icon" color="#FF4545" size="32" v-else></u-icon>
  20. <view class="status-title">{{registerInfo.auditState == 2 ? '审核已通过' : '审核未通过:'+registerInfo.rejectReason}}</view>
  21. <text class="status-date">{{registerInfo.auditTime}}</text>
  22. </view>
  23. </view>
  24. <view class="form-handle">
  25. <!-- <u-button type="success" shape="circle" :ripple="true" @click="againLogin" class="handle-custom" style="margin-bottom: 10px;" v-if="registerInfo.auditState == 2">重新登录</u-button> -->
  26. <u-button type="success" shape="circle" :ripple="true" @click="editRegister" class="handle-custom">重新提交注册信息</u-button>
  27. </view>
  28. <u-top-tips ref="uTips"></u-top-tips>
  29. </view>
  30. </template>
  31. <script>
  32. const NET = require('@/utils/request')
  33. const API = require('@/config/api')
  34. export default {
  35. data() {
  36. return {
  37. registerInfo: {
  38. auditState: 1,
  39. applyTime: '',
  40. auditTime: '',
  41. effectTime: '',
  42. rejectReason: ''
  43. },
  44. }
  45. },
  46. onLoad(options) {
  47. NET.request(API.getShopRegisterStatu, {}, 'POST').then(res => {
  48. this.registerInfo = res.data
  49. }).catch(error => {
  50. this.$refs.uTips.show({
  51. title: error.data.msg,
  52. type: 'warning',
  53. })
  54. })
  55. },
  56. methods: {
  57. // 重新登录
  58. againLogin() {
  59. uni.reLaunch({
  60. url: '/pages/index/index'
  61. });
  62. },
  63. // 重新提交注册信息
  64. editRegister() {
  65. uni.navigateTo({
  66. url: '/pages/index/register?type=edit'
  67. });
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="less" scoped>
  73. page {
  74. width: 100%;
  75. height: 100%;
  76. }
  77. .container {
  78. width: 100%;
  79. height: 100%;
  80. float: left;
  81. .status-list {
  82. width: 100%;
  83. float: left;
  84. background: #FFFFFF;
  85. box-sizing: border-box;
  86. padding: 2px 15px 15px 15px;
  87. overflow-y: auto;
  88. .status-row {
  89. width: 100%;
  90. float: left;
  91. box-sizing: border-box;
  92. padding: 14px 0 14px 32px;
  93. position: relative;
  94. .status-line {
  95. width: 1px;
  96. position: absolute;
  97. background: #F1F3F5;
  98. left: 7px;
  99. top: 0;
  100. bottom: 0;
  101. }
  102. .icon {
  103. width: 16px;
  104. height: 16px;
  105. position: absolute;
  106. left: 0px;
  107. top: 50%;
  108. transform: translateY(-50%);
  109. color: #52A63A;
  110. font-size: 28px;
  111. }
  112. .status-title {
  113. font-family: PingFang SC;
  114. line-height: 20px;
  115. }
  116. .status-date {
  117. width: 100%;
  118. height: 20px;
  119. float: left;
  120. font-size: 12px;
  121. font-family: PingFang SC;
  122. color: #656565;
  123. line-height: 20px;
  124. }
  125. }
  126. .status-row:first-child {
  127. .status-line {
  128. top: 50%;
  129. }
  130. }
  131. .status-row:last-child {
  132. .status-line {
  133. bottom: 50%;
  134. }
  135. }
  136. }
  137. .form-handle {
  138. width: calc(100% - 30px);
  139. height: 40px;
  140. position: fixed;
  141. bottom: 20px;
  142. left: 15px;
  143. .handle-custom {
  144. background-color: #51A539;
  145. /deep/button {
  146. background-color: #56a83a;
  147. }
  148. /deep/.u-btn--success--disabled {
  149. background-color: #74bd60 !important;
  150. }
  151. }
  152. }
  153. }
  154. </style>