registerState.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. height: calc(100% - 318px);
  84. float: left;
  85. background: #FFFFFF;
  86. box-sizing: border-box;
  87. padding: 2px 15px 15px 15px;
  88. overflow-y: auto;
  89. .status-row {
  90. width: 100%;
  91. float: left;
  92. box-sizing: border-box;
  93. padding: 14px 0 14px 32px;
  94. position: relative;
  95. .status-line {
  96. width: 1px;
  97. position: absolute;
  98. background: #F1F3F5;
  99. left: 7px;
  100. top: 0;
  101. bottom: 0;
  102. }
  103. .icon {
  104. width: 16px;
  105. height: 16px;
  106. position: absolute;
  107. left: 0px;
  108. top: 50%;
  109. transform: translateY(-50%);
  110. color: #52A63A;
  111. font-size: 28px;
  112. }
  113. .status-title {
  114. font-family: PingFang SC;
  115. line-height: 20px;
  116. }
  117. .status-date {
  118. width: 100%;
  119. height: 20px;
  120. float: left;
  121. font-size: 12px;
  122. font-family: PingFang SC;
  123. color: #656565;
  124. line-height: 20px;
  125. }
  126. }
  127. .status-row:first-child {
  128. .status-line {
  129. top: 50%;
  130. }
  131. }
  132. .status-row:last-child {
  133. .status-line {
  134. bottom: 50%;
  135. }
  136. }
  137. }
  138. .form-handle {
  139. width: calc(100% - 30px);
  140. height: 40px;
  141. position: fixed;
  142. bottom: 20px;
  143. left: 15px;
  144. .handle-custom {
  145. background-color: #51A539;
  146. }
  147. }
  148. }
  149. </style>