billInfo.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view style="z-index: 99;" class="flexd">
  6. <view class="search dis a-c j-s">
  7. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  8. <text class="center">账单详情</text>
  9. </view>
  10. </view>
  11. <view class="" style="padding:100px 16px 16px;">
  12. <view class="assets dis f-c j-s" v-if="detailsType==2">
  13. <view class="dis f-c j-s a-c" style="border: none;">
  14. <text>推广金额</text>
  15. <text>{{promotionData.amount}}</text>
  16. </view>
  17. </view>
  18. <view class="assets dis f-c j-s" v-if="detailsType==3">
  19. <view class="dis f-c j-s a-c">
  20. <text>业务收入提现到银行卡</text>
  21. <text>{{MoneyData.withdrawalAmount}}</text>
  22. <text>{{MoneyData.withdrawalStatusName}}</text>
  23. </view>
  24. <view class="yushou dis f-c">
  25. <u-steps :list="numList" :current="trajectoryLength" direction="column" mode="number"
  26. active-color="#13C15A">
  27. </u-steps>
  28. </view>
  29. </view>
  30. <view class="assets1 dis f-c j-s">
  31. <template v-if="detailsType==2">
  32. <view class="dis j-s a-c" v-if="promotionData.subOrderId">
  33. <text>订单编号:</text>
  34. <text>{{promotionData.subOrderId}}</text>
  35. </view>
  36. <view class="dis j-s a-c" v-if="promotionData.signingTime">
  37. <text>承保时间:</text>
  38. <text>{{promotionData.signingTime}}</text>
  39. </view>
  40. <view class="dis j-s a-c" v-if="promotionData.licenseNo">
  41. <text>车牌号:</text>
  42. <text>{{promotionData.licenseNo}}</text>
  43. </view>
  44. <view class="dis j-s a-c" v-if="promotionData.jqpremium">
  45. <text>交强险:</text>
  46. <text>{{promotionData.jqpremium}}</text>
  47. </view>
  48. <view class="dis j-s a-c" v-if="promotionData.jypremium">
  49. <text>驾意险:</text>
  50. <text>{{promotionData.jypremium}}</text>
  51. </view>
  52. <view class="dis j-s a-c" v-if="promotionData.sypremium">
  53. <text>商业险:</text>
  54. <text>{{promotionData.sypremium}}</text>
  55. </view>
  56. <view class="dis j-s a-c" v-if="promotionData.agentName">
  57. <text>代理人姓名:</text>
  58. <text>{{promotionData.agentName}}</text>
  59. </view>
  60. <view class="dis j-s a-c" v-if="promotionData.agentLevel">
  61. <text>代理人级别:</text>
  62. <text>{{promotionData.agentLevel}}</text>
  63. </view>
  64. </template>
  65. <template v-if="detailsType==3">
  66. <view class="dis j-s a-c" v-if="MoneyData.transactionNumber">
  67. <text>交易编号:</text>
  68. <text>{{MoneyData.transactionNumber}}</text>
  69. </view>
  70. <view class="dis j-s a-c" v-if="MoneyData.rejectReason">
  71. <text>失败原因:</text>
  72. <text>{{MoneyData.rejectReason}}</text>
  73. </view>
  74. <view class="dis j-s a-c" v-if="MoneyData.applicationDate">
  75. <text>申请时间:</text>
  76. <text>{{MoneyData.applicationDate}}</text>
  77. </view>
  78. <view class="dis j-s a-c" v-if="MoneyData.paymentDate && MoneyData.withdrawalStatus=='4'">
  79. <text>到账时间:</text>
  80. <text>{{MoneyData.paymentDate}}</text>
  81. </view>
  82. <view class="dis j-s a-c" v-if="MoneyData.bankNumber">
  83. <text>到账账户:</text>
  84. <text>{{MoneyData.bankNumber}}</text>
  85. </view>
  86. <view class="dis j-s a-c" v-if="MoneyData.bankAccount">
  87. <text>到账银行:</text>
  88. <text>{{MoneyData.bankAccount}}</text>
  89. </view>
  90. </template>
  91. </view>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. import {
  97. mapState
  98. } from "vuex"
  99. export default {
  100. data() {
  101. return {
  102. numList: [],
  103. MoneyData: {},
  104. promotionData: {},
  105. trajectoryLength: 0,
  106. detailsType: "",
  107. }
  108. },
  109. computed: {
  110. ...mapState(['userInfo'])
  111. },
  112. onShow() {
  113. },
  114. async onLoad(params) {
  115. if (params.id) {
  116. this.detailsType = params.type;
  117. switch (params.type) {
  118. case '2':
  119. let data = await this.$http.get('/sysUserAccount/getSubOrderDetails?subOrderId=' + params
  120. .subOrderNo);
  121. if (data.code == '200') {
  122. this.promotionData = data.data;
  123. this.promotionData.amount = params.amount;
  124. } else {
  125. uni.showToast({
  126. title: data.msg,
  127. icon: 'none',
  128. });
  129. }
  130. break;
  131. case '3':
  132. let res = await this.$http.get('/sysUserAccount/findDetailById?id=' + params.id);
  133. this.MoneyData = res.data;
  134. this.numList = res.data.record;
  135. const filteredArray = this.numList.filter(item => item.processingStatusFlag === true).length -
  136. 1;;
  137. this.trajectoryLength = filteredArray;
  138. break;
  139. default:
  140. }
  141. }
  142. },
  143. onShow() {},
  144. methods: {
  145. // 绑定银行卡界面
  146. async changeBank() {
  147. let res = await this.$http.post('/userBank/getUserBankList', {
  148. auditStatus: "",
  149. });
  150. if (res.data.length) {
  151. this.navigate({
  152. url: "/pages/wallet/bankCard"
  153. }, "navigateTo", true);
  154. } else {
  155. this.navigate({
  156. url: '/pages/wallet/bindBank',
  157. complete: () => {
  158. setTimeout(() => {
  159. uni.showToast({
  160. title: '请先绑定银行卡',
  161. duration: 3000,
  162. icon: "none"
  163. });
  164. }, 500);
  165. }
  166. }, "navigateTo", true)
  167. }
  168. },
  169. back() {
  170. uni.navigateBack({
  171. delta: 1, // 返回的页面数,如果是1表示返回上一页
  172. success: function() {}
  173. });
  174. },
  175. details(url) {
  176. this.navigate({
  177. url: url
  178. }, "navigateTo", true);
  179. },
  180. // 去提现
  181. async toWithdraw() {
  182. let res = await this.$http.post('/userBank/getUserBankList', {
  183. auditStatus: '1',
  184. });
  185. if (res.data.length) {
  186. this.navigate({
  187. url: `/pages/wallet/withdraw?amountStatus=1&amount=${this.handlingFee}`,
  188. }, "navigateTo", true)
  189. } else {
  190. uni.showToast({
  191. title: '暂无审核通过的银行卡,不可提现',
  192. duration: 3000,
  193. icon: "none"
  194. });
  195. }
  196. },
  197. }
  198. }
  199. </script>
  200. <style lang="scss" scoped>
  201. @import '@/style/mixin.scss';
  202. page {
  203. background: #F8FAFE;
  204. }
  205. .flexd {
  206. position: fixed;
  207. left: 0;
  208. right: 0;
  209. }
  210. .assets1 {
  211. width: 100%;
  212. height: auto;
  213. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  214. box-shadow: 0px 4px 10px 0px #DAE3F4;
  215. border-radius: 6px;
  216. >view {
  217. border-bottom: 1px solid #f2f2f2;
  218. font-size: 14px;
  219. color: #232832;
  220. padding: 10px;
  221. }
  222. }
  223. .assets {
  224. width: 100%;
  225. height: auto;
  226. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  227. box-shadow: 0px 4px 10px 0px #DAE3F4;
  228. border-radius: 10px;
  229. border: 1px solid #FFFFFF;
  230. padding: 0 12px;
  231. margin-bottom: 12px;
  232. >view:nth-child(1) {
  233. border-bottom: 1px solid #CFCFCF;
  234. padding: 16px 0;
  235. color: #333;
  236. text:nth-child(1) {
  237. font-size: 14px;
  238. }
  239. text:nth-child(2) {
  240. font-size: 30px;
  241. font-weight: bold;
  242. margin: 6px 0;
  243. }
  244. }
  245. .yushou {
  246. padding: 8px;
  247. image {
  248. width: 20px;
  249. height: 20px;
  250. margin-top: 5px;
  251. }
  252. }
  253. }
  254. /* 银行卡信息Start */
  255. .search {
  256. height: auto;
  257. width: 100%;
  258. z-index: 999999;
  259. padding: 50px 16px 30px;
  260. height: auto;
  261. background: #F8FAFE;
  262. background-image: url("/static/image/wallet/qianbao.png");
  263. background-size: 100% 100%;
  264. position: relative;
  265. text {
  266. font-size: 18px;
  267. font-weight: bold;
  268. color: #000;
  269. }
  270. .bank {
  271. font-weight: 600;
  272. font-size: 28rpx;
  273. color: #000000;
  274. }
  275. .center {
  276. position: absolute;
  277. left: 50%;
  278. transform: translateX(-50%);
  279. }
  280. image {
  281. width: 22px;
  282. height: 22px;
  283. margin-left: 20px;
  284. }
  285. }
  286. </style>