billInfo.vue 6.5 KB

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