resultFeedback.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view class="page">
  3. <view class="content" v-if="information.status == 0">
  4. <image class="logo" src="../../static/mine/350.png" mode=""></image>
  5. <view class="wait">{{ i18n.inReview }}</view>
  6. <view class="review">{{ i18n.WaitingReview }}</view>
  7. </view>
  8. <view class="content" v-else-if="information.status == 2">
  9. <image class="logo" src="../../static/mine/351.png" mode=""></image>
  10. <view class="wait">{{ i18n.auditFailed }}</view>
  11. <view class="review">{{ i18n.failedReview }}</view>
  12. <view class="refuse">{{
  13. i18n.rejectReason + ":" + information.refusal
  14. }}</view>
  15. </view>
  16. <view class="content" v-else>
  17. <image class="logo" src="../../static/mine/352.png" mode=""></image>
  18. <view class="prompt">{{ i18n.goodsRelease }}</view>
  19. <view class="inp">
  20. <view class="url">https://cbec-admin.hdlkeji.com/#/login</view>
  21. <view
  22. style="color: #f83224; font-size: 26rpx"
  23. @click="cope('https://cbec-admin.hdlkeji.com/#/login')"
  24. >
  25. {{ i18n.copyLink }}
  26. </view>
  27. </view>
  28. <view class="account">
  29. <view class="_label">{{ i18n.accountNumber }}:</view>
  30. <view class="_value">{{ information.username }}</view>
  31. </view>
  32. <view class="account">
  33. <view class="_label">{{ i18n.accountPassword }} :</view>
  34. <view class="_value">{{ information.password }}</view>
  35. </view>
  36. </view>
  37. <button class="go-back" @click="back" v-if="information.status == 0">
  38. {{ i18n.Backtohomepage }}
  39. </button>
  40. <button class="go-back" @click="back" v-if="information.status == 1">
  41. {{ i18n.return }}
  42. </button>
  43. <button class="go-back" @click="resetSubmit" v-if="information.status == 2">
  44. {{ i18n.resubmit }}
  45. </button>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. code: "111",
  53. information: {},
  54. };
  55. },
  56. computed: {
  57. i18n() {
  58. return this.$t("index");
  59. },
  60. },
  61. methods: {
  62. cope(e) {
  63. uni.setClipboardData({
  64. data: e,
  65. success() {
  66. uni.showToast({
  67. title: this.i18n.replicatingSuccess,
  68. icon: "none",
  69. });
  70. },
  71. });
  72. },
  73. //返回首页
  74. back() {
  75. uni.switchTab({
  76. url: "/pages/index/index",
  77. });
  78. },
  79. //重新提交
  80. resetSubmit() {
  81. uni.navigateTo({
  82. url: "/pageD/settleIn/settleIn",
  83. });
  84. },
  85. getInfo() {
  86. uni.$u.http.post(`/api/merchant/status`).then((res) => {
  87. this.information = res;
  88. });
  89. },
  90. },
  91. created() {
  92. this.getInfo();
  93. uni.setNavigationBarTitle({
  94. title: this.i18n.resultFeedback,
  95. });
  96. },
  97. };
  98. </script>
  99. <style lang="scss" scoped>
  100. .page {
  101. background-color: #fff;
  102. width: 100vw;
  103. height: 100vh;
  104. display: flex;
  105. flex-direction: column;
  106. justify-content: flex-start;
  107. align-items: center;
  108. .content {
  109. display: flex;
  110. flex-direction: column;
  111. justify-content: flex-start;
  112. align-items: center;
  113. .logo {
  114. width: 338rpx;
  115. height: 298rpx;
  116. margin: 68rpx auto;
  117. }
  118. .wait {
  119. font-size: 36rpx;
  120. color: #222;
  121. font-weight: 600;
  122. }
  123. .review {
  124. font-size: 26rpx;
  125. color: rgba(34, 34, 34, 0.9);
  126. margin-top: 14rpx;
  127. }
  128. .refuse {
  129. font-size: 24rpx;
  130. color: rgba(34, 34, 34, 0.6);
  131. margin-top: 14rpx;
  132. }
  133. .prompt {
  134. font-size: 28rpx;
  135. color: #666;
  136. margin-top: 14rpx;
  137. width: 75%;
  138. text-align: center;
  139. }
  140. .inp {
  141. display: flex;
  142. align-items: center;
  143. justify-content: space-between;
  144. background-color: #f7f7f7;
  145. border-radius: 8rpx;
  146. width: 530rpx;
  147. height: 68rpx;
  148. margin-top: 60rpx;
  149. border: 1rpx solid #c3c3c3;
  150. padding: 0 10rpx;
  151. .url {
  152. width: 80%;
  153. font-size: 28rpx;
  154. color: #777;
  155. overflow: hidden;
  156. text-overflow: ellipsis;
  157. white-space: nowrap;
  158. }
  159. }
  160. .account {
  161. display: flex;
  162. margin-top: 36rpx;
  163. width: 530rpx;
  164. ._label {
  165. font-size: 28rpx;
  166. color: #666;
  167. }
  168. ._value {
  169. font-size: 28rpx;
  170. color: #f83224;
  171. }
  172. }
  173. }
  174. .go-back {
  175. background-color: #f83224;
  176. color: #fff;
  177. border: none;
  178. border-radius: 44rpx;
  179. margin-top: 90rpx;
  180. width: 262rpx;
  181. height: 88rpx;
  182. line-height: 88rpx;
  183. }
  184. }
  185. </style>