billInfo.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. </template>
  97. <template v-if="detailsType==4">
  98. <view class="dis j-s a-c" v-if="refundData.transactionNumber">
  99. <text>交易编号:</text>
  100. <text>{{refundData.transactionNumber}}</text>
  101. </view>
  102. <view class="dis j-s a-c" v-if="refundData.refundTime">
  103. <text>退款时间:</text>
  104. <text>{{refundData.refundTime}}</text>
  105. </view>
  106. </template>
  107. </view>
  108. </view>
  109. </view>
  110. </template>
  111. <script>
  112. import {
  113. mapState
  114. } from "vuex"
  115. export default {
  116. data() {
  117. return {
  118. numList: [],
  119. MoneyData: {},
  120. promotionData: {},
  121. refundData: {},
  122. trajectoryLength: 0,
  123. detailsType: "",
  124. }
  125. },
  126. computed: {
  127. ...mapState(['userInfo'])
  128. },
  129. onShow() {
  130. },
  131. async onLoad(params) {
  132. if (params.id) {
  133. this.detailsType = params.type;
  134. switch (params.type) {
  135. case '2':
  136. let data = await this.$http.get('/sysUserAccount/getSubOrderDetails?subOrderId=' + params
  137. .subOrderNo);
  138. if (data.code == '200') {
  139. this.promotionData = data.data;
  140. this.promotionData.amount = params.amount;
  141. } else {
  142. uni.showToast({
  143. title: data.msg,
  144. icon: 'none',
  145. });
  146. }
  147. break;
  148. case '3':
  149. let res = await this.$http.get('/sysUserAccount/findDetailById?id=' + params.id);
  150. this.MoneyData = res.data;
  151. this.numList = res.data.record;
  152. const filteredArray = this.numList.filter(item => item.processingStatusFlag === true).length -
  153. 1;;
  154. this.trajectoryLength = filteredArray;
  155. break;
  156. case '4':
  157. let audit = await this.$http.get('/sysUserAccount/findRefundDetailById?id=' + params.id);
  158. if (audit.code == '200') {
  159. this.refundData = audit.data;
  160. }
  161. break;
  162. default:
  163. }
  164. }
  165. },
  166. onShow() {},
  167. methods: {
  168. // 绑定银行卡界面
  169. async changeBank() {
  170. let res = await this.$http.post('/userBank/getUserBankList', {
  171. auditStatus: "",
  172. });
  173. if (res.data.length) {
  174. this.navigate({
  175. url: "/pages/wallet/bankCard"
  176. }, "navigateTo", true);
  177. } else {
  178. this.navigate({
  179. url: '/pages/wallet/bindBank',
  180. complete: () => {
  181. setTimeout(() => {
  182. uni.showToast({
  183. title: '请先绑定银行卡',
  184. duration: 3000,
  185. icon: "none"
  186. });
  187. }, 500);
  188. }
  189. }, "navigateTo", true)
  190. }
  191. },
  192. back() {
  193. uni.navigateBack({
  194. delta: 1, // 返回的页面数,如果是1表示返回上一页
  195. success: function() {}
  196. });
  197. },
  198. details(url) {
  199. this.navigate({
  200. url: url
  201. }, "navigateTo", true);
  202. },
  203. // 去提现
  204. async toWithdraw() {
  205. let res = await this.$http.post('/userBank/getUserBankList', {
  206. auditStatus: '1',
  207. });
  208. if (res.data.length) {
  209. this.navigate({
  210. url: `/pages/wallet/withdraw?amountStatus=1&amount=${this.handlingFee}`,
  211. }, "navigateTo", true)
  212. } else {
  213. uni.showToast({
  214. title: '暂无审核通过的银行卡,不可提现',
  215. duration: 3000,
  216. icon: "none"
  217. });
  218. }
  219. },
  220. }
  221. }
  222. </script>
  223. <style lang="scss" scoped>
  224. @import '@/style/mixin.scss';
  225. page {
  226. background: #F8FAFE;
  227. }
  228. .flexd {
  229. position: fixed;
  230. left: 0;
  231. right: 0;
  232. }
  233. .assets1 {
  234. width: 100%;
  235. height: auto;
  236. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  237. box-shadow: 0px 4px 10px 0px #DAE3F4;
  238. border-radius: 6px;
  239. >view {
  240. border-bottom: 1px solid #f2f2f2;
  241. font-size: 14px;
  242. color: #232832;
  243. padding: 10px;
  244. }
  245. }
  246. .assets {
  247. width: 100%;
  248. height: auto;
  249. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  250. box-shadow: 0px 4px 10px 0px #DAE3F4;
  251. border-radius: 10px;
  252. border: 1px solid #FFFFFF;
  253. padding: 0 12px;
  254. margin-bottom: 12px;
  255. >view:nth-child(1) {
  256. border-bottom: 1px solid #CFCFCF;
  257. padding: 16px 0;
  258. color: #333;
  259. text:nth-child(1) {
  260. font-size: 14px;
  261. }
  262. text:nth-child(2) {
  263. font-size: 30px;
  264. font-weight: bold;
  265. margin: 6px 0;
  266. }
  267. }
  268. .yushou {
  269. padding: 8px;
  270. image {
  271. width: 20px;
  272. height: 20px;
  273. margin-top: 5px;
  274. }
  275. }
  276. }
  277. /* 银行卡信息Start */
  278. .search {
  279. height: auto;
  280. width: 100%;
  281. z-index: 999999;
  282. padding: 50px 16px 30px;
  283. height: auto;
  284. background: #F8FAFE;
  285. background-image: url("/static/image/wallet/qianbao.png");
  286. background-size: 100% 100%;
  287. position: relative;
  288. text {
  289. font-size: 18px;
  290. font-weight: bold;
  291. color: #000;
  292. }
  293. .bank {
  294. font-weight: 600;
  295. font-size: 28rpx;
  296. color: #000000;
  297. }
  298. .center {
  299. position: absolute;
  300. left: 50%;
  301. transform: translateX(-50%);
  302. }
  303. image {
  304. width: 22px;
  305. height: 22px;
  306. margin-left: 20px;
  307. }
  308. }
  309. </style>