billInfo.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <view class="pay-success" v-if="!loading">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="pay-section bg-1 dis f-c" :style="{background:style.back}">
  6. <image class="bg" src="/static/image/wallet/money-bg.png"></image>
  7. <text v-if="[2,3].includes(auditingStatus)"
  8. style="font-size: 32px;font-weight: 500;font-family: DIN, DIN;">{{orderDetail.amount.toFixed(2)}}</text>
  9. <text v-else
  10. style="font-size: 32px;font-weight: 500;font-family: DIN, DIN;">{{orderDetail.willAmount.toFixed(2)}}</text>
  11. <view class="tips-wrapper">
  12. <image :src="style.icon" mode="" style="width: 20px;height: 20px;margin-right: 5px;"></image>
  13. <view class="content">
  14. <text class="title" v-if="auditingStatus=='1'">预收金额!</text>
  15. <text class="title" v-if="auditingStatus=='2'">后台审核中</text>
  16. <text class="title" v-if="auditingStatus=='3'">提现成功</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="pay-card" v-if="[2,3].includes(auditingStatus)">
  21. <view class="item dis j-s a-c" v-if='orderDetail.id'><text>交易编号:</text> <text>{{ orderDetail.id }}</text>
  22. </view>
  23. <view class="item dis j-s a-c" v-if='orderDetail.createTime'><text>申请时间:</text>
  24. <text>{{ orderDetail.createTime}}</text>
  25. </view>
  26. <view class="item dis j-s a-c" v-if="orderDetail.auditingStatus=='3' && orderDetail.paytime">
  27. <text>到账时间:</text>{{ orderDetail.paytime }}
  28. </view>
  29. <view class="item dis j-s a-c" v-if="orderDetail.bankNumber"><text>提现账户:</text>{{ orderDetail.bankNumber }}
  30. </view>
  31. <view class="item dis j-s a-c" v-if="orderDetail.bankAccount">
  32. <text>提现银行:</text>{{ orderDetail.bankAccount }}
  33. </view>
  34. <view class="item dis j-s a-c" v-if="orderDetail.applytype=='A'"><text>提现类型:</text>账户余额提现</view>
  35. <view class="item dis j-s a-c" v-if="orderDetail.applytype=='B'"><text>提现类型:</text>推广佣金提现</view>
  36. </view>
  37. <view class="pay-card" v-else>
  38. <view class="item dis j-s a-c" v-if="orderDetail.id"><text>订单编号:</text> <text>{{ orderDetail.id }}</text>
  39. </view>
  40. <view class="item dis j-s a-c" v-if="orderDetail.signingTime"><text>签单时间:</text>
  41. <text>{{ orderDetail.signingTime}}</text>
  42. </view>
  43. <view class="item dis j-s a-c" v-if="orderDetail.licenseno"><text>车牌号:</text>{{ orderDetail.licenseno }}
  44. </view>
  45. </view>
  46. <view class="btn-group dis j-c a-c" v-if="style.btncolor">
  47. <u-button type="primary" :style="{width:'100%',background:style.btncolor,color:'#fff'}"
  48. @click="toHome">返回首页</u-button>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. loading: false,
  57. auditingStatus: "",
  58. orderId: '',
  59. orderDetail: {},
  60. style: {},
  61. StyleSheet: [{
  62. id: 1,
  63. title: "预收金额",
  64. back: 'linear-gradient( 270deg, #46CE24 0%, #229805 100%)',
  65. icon: "/static/image/bindBank/yushou.png",
  66. btncolor: '#229805',
  67. }, {
  68. id: 2,
  69. title: "后台审核中",
  70. back: 'linear-gradient( 270deg, #FFBA53 0%, #FF9900 100%)',
  71. icon: "/static/image/bindBank/shenhezhong.png",
  72. btncolor: '#FF9900',
  73. },
  74. {
  75. id: 3,
  76. title: "提现成功",
  77. back: 'linear-gradient( 270deg, #5187FA 0%, #0052FF 100%)',
  78. btncolor: '#0052FF',
  79. icon: "/static/image/bindBank/tixian.png"
  80. },
  81. ]
  82. };
  83. },
  84. onLoad() {
  85. const eventChannel = this.getOpenerEventChannel()
  86. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  87. eventChannel.on('acceptData', (data) => {
  88. console.log(data);
  89. if (!!data) {
  90. this.orderDetail = data.item; //车辆信息
  91. this.auditingStatus = data.active;
  92. let obj = this.StyleSheet.find(val => val.id == data.active);
  93. this.style = obj;
  94. }
  95. })
  96. },
  97. methods: {
  98. // 返回主页
  99. toHome() {
  100. this.navigate({
  101. url: '/pages/index/index'
  102. }, 'reLaunch', true)
  103. }
  104. }
  105. };
  106. </script>
  107. <style lang="scss" scoped>
  108. @import '@/style/mixin.scss';
  109. page {
  110. background-color: #f5f5f5;
  111. }
  112. .bg-1 {
  113. color: #FFFFFF;
  114. }
  115. .pay-success {
  116. .pay-section {
  117. height: 400upx;
  118. overflow: hidden;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. .bg {
  123. position: absolute;
  124. left: 0;
  125. top: 0;
  126. width: 100vw;
  127. height: 60vw;
  128. }
  129. .tips-wrapper {
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. color: #fff;
  134. .iconfont {
  135. font-size: 110upx;
  136. margin-right: 20upx;
  137. }
  138. .content {
  139. .title {
  140. font-size: 36upx;
  141. }
  142. .tip {
  143. font-size: 26upx;
  144. }
  145. }
  146. }
  147. }
  148. .pay-card {
  149. width: 90%;
  150. height: auto;
  151. background-color: #fff;
  152. border-radius: 12upx;
  153. margin: -80upx 5% 0;
  154. background: #FFFFFF;
  155. box-shadow: 0px 4px 10px 0px #DAE3F4;
  156. border-radius: 6px;
  157. padding: 0 10px;
  158. .pay-card-money {
  159. text-align: center;
  160. font-size: 44upx;
  161. padding: 20upx 0;
  162. color: #000;
  163. font-weight: 500;
  164. border-bottom: 1upx solid rgba(0, 0, 0, 0.05);
  165. }
  166. .item {
  167. padding: 10px 0;
  168. color: #232832;
  169. border-bottom: 1px solid #f2f2f2;
  170. }
  171. }
  172. .btn-group {
  173. position: fixed;
  174. bottom: 0;
  175. width: 100%;
  176. height: 62px;
  177. background: #FFFFFF;
  178. box-shadow: 0px -4px 10px 0px rgba(0, 0, 0, 0.05);
  179. padding: 16px;
  180. .confirm-btn {
  181. width: 100%;
  182. height: 100%;
  183. }
  184. }
  185. }
  186. </style>