Review.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view>
  3. <!-- <titlenav>提交成功</titlenav> -->
  4. <view class="review">
  5. <image class="img" :src="img"></image>
  6. <image v-if="status === 'fail'" class="img" :src="img2"></image>
  7. <view class="content">
  8. <view class="text1">{{ title }}</view>
  9. <view v-if="status === 'fail'" class="text1">{{ title2 }}</view>
  10. <view class="text2">{{ desc }}</view>
  11. <view v-if="status === 'fail'" class="text2">{{ desc2 }}</view>
  12. <template v-if="status === 'CREATED'">
  13. <u-button type="primary" block @click="navigateBack()">返回</u-button>
  14. </template>
  15. <template v-if="status === 'fail'">
  16. <u-button type="primary" block>再次申请</u-button>
  17. <view class="jump">返回</view>
  18. </template>
  19. <view class="service">
  20. 客服电话 025-86868686
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import { mapState } from 'vuex';
  28. import Titlenav from '../components/Titlenav.vue';
  29. export default {
  30. components: { Titlenav },
  31. data() {
  32. return {
  33. status: 'CREATED'
  34. };
  35. },
  36. computed: {
  37. ...mapState(['systemInfo']),
  38. img() {
  39. const imgs = [
  40. 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-16-06-21zVxTacze.png',
  41. 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-16-06-37vPVQLmbQ.png'
  42. ];
  43. return imgs[this.status === 'CREATED' ? 0 : 1];
  44. },
  45. img2() {
  46. const imgs = [
  47. 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-16-18-59TpOakNXi.png'
  48. ];
  49. return imgs
  50. },
  51. title() {
  52. const list = ['提交成功', '申请已通过'];
  53. return list[this.status === 'CREATED' ? 0 : 1];
  54. },
  55. title2() {
  56. const list = '提现申请未通过'
  57. return list
  58. },
  59. desc() {
  60. const list = ['您已成功申请提现服务,待审核成功后钱款将在72小时内提现到您的账户,请注意查收', '您已申请的提现服务已通过审核,钱款将在72小时内提现到您的账户,请注意查收'];
  61. return list[this.status === 'CREATED' ? 0 : 1];
  62. },
  63. desc2() {
  64. const list = '您已申请的提现服务未通过审核,请检账号或姓名是否输入正确'
  65. return list
  66. }
  67. },
  68. methods: {
  69. // loginMethods() {
  70. // }
  71. // back() {
  72. // wx.redirectTo({
  73. // url: '/pages/store/apply'
  74. // });
  75. // }
  76. }
  77. };
  78. </script>
  79. <style lang="scss" scoped>
  80. /deep/ .u-btn{
  81. font-size: 16px;
  82. margin: 0 10px;
  83. height: 48px;
  84. background: #214BBE;
  85. border-radius: 4px;
  86. }
  87. .review {
  88. display: flex;
  89. flex-direction: column;
  90. padding: 50px 32px 100px;
  91. .img {
  92. width: 103px;
  93. height: 78px;
  94. margin: 0 auto;
  95. }
  96. .content {
  97. display: flex;
  98. flex-direction: column;
  99. text-align: center;
  100. .text1 {
  101. font-size: 20px;
  102. color: #000000;
  103. font-weight: bold;
  104. margin-top: 30px;
  105. }
  106. .text2 {
  107. font-size: 14px;
  108. color: #939599;
  109. line-height: 24px;
  110. padding: 16px 0 60px;
  111. }
  112. .jump{
  113. height: 48px;
  114. background: #F2F4F5;
  115. font-size: 16px;
  116. font-weight: bold;
  117. color: #000000;
  118. line-height: 48px;
  119. text-align: center;
  120. border-radius: 4px;
  121. margin: 20px 10px 0;
  122. }
  123. .service{
  124. font-size: 13px;
  125. font-weight: 400;
  126. color: #AAACAD;
  127. line-height: 18px;
  128. margin-top: 196px;
  129. }
  130. }
  131. }
  132. </style>