billInfo.vue 8.7 KB

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