billInfo.vue 8.6 KB

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