Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

order_payment.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. <template>
  2. <navBar title="订单支付" :scrollTop="scrollTop" :orderId="state.orderId" navbgClass="nav-bgXin" fontColor='#fff'>
  3. </navBar>
  4. <navBgCar :activeNum='5'></navBgCar>
  5. <view class="content-value">
  6. <view class="t-card">
  7. <view @click="savaHandle(item)" class="ul-item" v-for="(item, index) in state.dataArray" :key="index">
  8. <image style="width: 100%; height: 146rpx;" :src="`${$imgUrl}issuance/equity-bg.png`"
  9. mode='scaleToFill'>
  10. </image>
  11. <view class="item-value">
  12. <view class="money">
  13. <text class='unit'>¥</text>
  14. <text>{{ item.fee * 0.01 }}</text>
  15. </view>
  16. <view class="content">
  17. <view class="title">
  18. {{ item.payName }}
  19. </view>
  20. </view>
  21. <view class="r-btn">
  22. {{ item.payStatusName }}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup lang="ts">
  30. import { onLoad, onPageScroll, onShow } from "@dcloudio/uni-app";
  31. import { reactive, ref } from "vue";
  32. import {
  33. PAYMENTORDERAPPLY,
  34. aliPayConfigIdTwo,
  35. obtainUserId,
  36. getOpenId, payApply, payQuery, orderQueryDetail, payAfterOrder
  37. } from "@/utils/network/api.js";
  38. import { request, requestNew } from "@/utils/network/request.js";
  39. import { stringToJson } from "@/utils/network/encryption";
  40. import { fileURL } from "@/datas/fileURL.js";
  41. import navBgCar from "./components/nav-bg-car1";
  42. import navBar from "@/components/nav-bar/nav-bar2.vue";
  43. const imgURL = `${fileURL}image/`;
  44. import { confirm, navTo } from "@/utils/utils";
  45. import {
  46. OrderStatus
  47. } from "@/datas/enum";
  48. import useOrderSkip from "@/composables/order/useOrderSkip";
  49. import {
  50. setItem, getItem
  51. } from "@/utils/storage";
  52. const tools = require("../../static/etcUtil/tools.js");
  53. const { gotoActiveOrder } = useOrderSkip();
  54. let imageUrl = ""
  55. let logo
  56. const scrollTop = ref(0); //滚动距离
  57. var counter = 0;
  58. function myFunc() {
  59. counter++;
  60. console.log("====")
  61. if (counter == 2) {
  62. clearInterval(intervalId);
  63. state.isclick = true
  64. console.log("改为true");
  65. }
  66. }
  67. var intervalId = setInterval(myFunc, 2000);
  68. const savaHandle = (val) => {
  69. console.log("val", val, state.isclick)
  70. if (state.isclick) {
  71. if (val.payStatus == "SUCCESS") {
  72. return;
  73. }
  74. state.isclick = false
  75. console.log("state.isclick", state.isclick, val.payStatus)
  76. payMethods(val)
  77. }
  78. };
  79. const payMethods = (val) => {
  80. console.log("val===", val)
  81. if (val.payStatus === 'UNPAY') {
  82. myFunc()
  83. // #ifdef MP-ALIPAY
  84. my.getAuthCode({
  85. scopes: 'auth_base',
  86. success: res => {
  87. const optionsUser = {
  88. type: 2,
  89. data: {
  90. payConfigId: aliPayConfigIdTwo,
  91. code: res.authCode
  92. },
  93. method: "POST",
  94. showLoading: true,
  95. };
  96. console.log('支付宝用户编号请求:', optionsUser)
  97. requestNew(obtainUserId, optionsUser).then((res) => {
  98. console.log('支付宝用户编号返回:', res)
  99. const data = res;
  100. const optionsali = {
  101. type: 2,
  102. data: {
  103. orderId: state.orderId,
  104. wxOpenid: data.openId ? data.openId : data.alipayUserId,
  105. payType: val.payType
  106. },
  107. method: "POST",
  108. showLoading: true,
  109. };
  110. console.log('支付下单请求:', optionsali)
  111. requestNew(PAYMENTORDERAPPLY, optionsali).then((res) => {
  112. const data = res;
  113. console.log('支付下单返回:', data)
  114. my.tradePay({
  115. // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no
  116. tradeNO: data.tranPackage,
  117. success: res => {
  118. console.log("支付成功", res);
  119. refresh();
  120. },
  121. fail: res => {
  122. console.log("支付失败", res);
  123. },
  124. });
  125. },
  126. (err) => {
  127. state.isclick = true
  128. console.log("err")
  129. }
  130. );
  131. });
  132. },
  133. fail: err => {
  134. console.log('my.getAuthCode 调用失败', err)
  135. state.isclick = true
  136. }
  137. });
  138. // #endif
  139. // #ifdef MP-WEIXIN
  140. const options = {
  141. type: 2,
  142. data: {
  143. orderNo: val.orderNo,
  144. subOpenId: state.openidData.openid,
  145. // payType: val.payType,
  146. orderPayId: val.orderPayId,
  147. "customerId": "",
  148. "h5Type": "",
  149. // "spbillCreateIp": "",
  150. "staffId": "",
  151. },
  152. method: "POST",
  153. showLoading: true,
  154. };
  155. requestNew(payApply, options).then((res) => {
  156. const data = res;
  157. console.log("data======111", data)
  158. if (data) {
  159. console.log("进来了111")
  160. uni.requestPayment({
  161. provider: "wxpay",
  162. orderInfo: "",
  163. timeStamp: data.timeStamp,
  164. nonceStr: data.nonceStr,
  165. package: data.wxPackage ? data.wxPackage : "",
  166. signType: data.signType,
  167. paySign: data.paySign,
  168. success: function (e) {
  169. console.log("支付成功", res);
  170. state.payOK = true
  171. refresh();
  172. },
  173. fail: function (err) {
  174. state.isclick = true
  175. confirm(err, () => { }, "支付失败", false);
  176. },
  177. });
  178. } else {
  179. state.isclick = true
  180. console.log("state.isclick", state.isclick)
  181. }
  182. },
  183. (err) => {
  184. state.isclick = true
  185. console.log("err")
  186. }
  187. );
  188. // #endif
  189. }
  190. }
  191. const refresh = () => {
  192. state.isclick = true
  193. let source = ""
  194. // #ifdef MP-ALIPAY
  195. source = "ALI"
  196. // #endif
  197. // #ifdef MP-WEIXIN
  198. source = "WECHAT"
  199. // #endif
  200. var data = {
  201. orderNo: state.orderId,
  202. wxOpenId: state.openidData.openid,
  203. };
  204. const options = {
  205. type: 2,
  206. data: data,
  207. method: "POST",
  208. showLoading: true,
  209. };
  210. console.log("输出内容", options);
  211. requestNew(payQuery, options).then((res) => {
  212. console.log("res====", res)
  213. const data = res;
  214. console.log(data);
  215. if (data.paymentStatus == 1) {
  216. // gotoEditUserOrUnitInfo()
  217. }
  218. state.dataArray = data.datas;
  219. for (let i = 0; i < state.dataArray.length; i++) {
  220. if (state.dataArray[i].payType === 'HANDLE') {
  221. state.dataArray[i].payName = '权益金'
  222. } else if (state.dataArray[i].payType === 'MARGIN') {
  223. state.dataArray[i].payName = '保证金'
  224. } else if (state.dataArray[i].payType === 'PRESTORE') {
  225. state.dataArray[i].payName = '预存金'
  226. } else if (state.dataArray[i].payType === 'EQUITY') {
  227. state.dataArray[i].payName = '权益费'
  228. } else if (state.dataArray[i].payType === 'REPAIROBU') {
  229. state.dataArray[i].payName = '增补obu'
  230. } else if (state.dataArray[i].payType === 'CHANGECARD') {
  231. state.dataArray[i].payName = '更换卡'
  232. } else if (state.dataArray[i].payType === 'CHANGEOBU') {
  233. state.dataArray[i].payName = '更换签'
  234. } else if (state.dataArray[i].payType === 'CHANGEALL') {
  235. state.dataArray[i].payName = '更换卡签'
  236. } else {
  237. state.dataArray[i].payName = '未知费'
  238. }
  239. if (state.dataArray[i].payStatus === 'SUCCESS') {
  240. state.dataArray[i].payStatusName = '已支付'
  241. } else if (state.dataArray[i].payStatus === 'PAYING') {
  242. state.dataArray[i].payStatusName = '支付中'
  243. } else if (state.dataArray[i].payStatus === 'FAILED') {
  244. state.dataArray[i].payStatusName = '支付失败'
  245. } else if (state.dataArray[i].payStatus === 'UNPAY') {
  246. state.dataArray[i].payStatusName = '未支付'
  247. } else if (state.dataArray[i].payStatus === 'CLOSED') {
  248. state.dataArray[i].payStatusName = '已关闭'
  249. } else if (state.dataArray[i].payStatus === 'CANCELED') {
  250. state.dataArray[i].payStatusName = '已撤销'
  251. } else if (state.dataArray[i].payStatus === 'REFUND') {
  252. state.dataArray[i].payStatusName = '转入退费'
  253. } else {
  254. state.dataArray[i].payStatusName = '未知'
  255. }
  256. }
  257. console.log("state.dataArray", state.dataArray)
  258. });
  259. }
  260. onShow(() => {
  261. // 支付完跳转到广告页,回来再次查询跳转 (签约完回来也要查询)
  262. if (state.payOK) {
  263. console.log("刷新页面",state)
  264. refreshFirst()
  265. }
  266. })
  267. onLoad((option : any) => {
  268. console.log("传递过来的到支付页面", option)
  269. state.orderId = option.orderId;
  270. state.isValueCard = option.isValueCard;
  271. state.vehicleId = option.vehicleId;
  272. state.orderQuery = option.orderQuery;
  273. state.qdSignUrl = option.qdSignUrl;
  274. state.qdSignAppId = option.qdSignAppId;
  275. state.qtSign = option.qtSign;
  276. state.cardType = option.cardType;
  277. // #ifdef MP-WEIXIN
  278. uni.login({
  279. provider: "weixin",
  280. success: function (e) {
  281. const options1 = {
  282. type: 2,
  283. data: {
  284. "jsCode": e.code
  285. },
  286. method: "POST",
  287. showLoading: true,
  288. };
  289. requestNew(getOpenId, options1).then((res) => {
  290. const result = res;
  291. console.log("获取openid返回数据:", res)
  292. state.openidData = stringToJson(result.bizContent);
  293. refreshFirst()
  294. })
  295. },
  296. })
  297. // #endif
  298. // #ifdef MP-ALIPAY
  299. refreshFirst()
  300. // #endif
  301. });
  302. // 车辆详情
  303. const orderDetail = () => {
  304. const options = {
  305. type: 2,
  306. data: {
  307. orderNo: state.orderId
  308. },
  309. method: "POST",
  310. showLoading: true,
  311. };
  312. return new Promise(async (resolve, reject) => {
  313. const res = await requestNew(orderQueryDetail, options);
  314. setItem('orderQueryActivate', res)
  315. resolve(res);
  316. }).catch((error) => {
  317. reject(error);
  318. });
  319. }
  320. const refreshFirst = () => {
  321. let source = ""
  322. // #ifdef MP-ALIPAY
  323. imageUrl = imgURL + "applyCard/alibaba.png";
  324. source = "ALI"
  325. // #endif
  326. // #ifdef MP-WEIXIN
  327. imageUrl = imgURL + "applyCard/wechat.png";
  328. source = "WECHAT"
  329. // #endif
  330. var data = {
  331. orderNo: state.orderId,
  332. wxOpenId: state.openidData.openid,
  333. "customerId": "",
  334. };
  335. const options = {
  336. type: 2,
  337. data: data,
  338. method: "POST",
  339. showLoading: true,
  340. };
  341. console.log("输出内容", options);
  342. requestNew(payQuery, options).then((res) => {
  343. const data = res;
  344. console.log("1111",data);
  345. if (data.paymentStatus == 1) {
  346. gotoEditUserOrUnitInfo();
  347. // isValueCard 1 储值卡 2 记账卡
  348. // if (state.orderQuery == '1') {
  349. // console.log("state.qtSign", state.qtSign, state.qtSign == '0')
  350. // // 记账卡
  351. // if (state.cardType == '1') {
  352. // // 去诺德签约
  353. // if (state.qtSign == '0') {
  354. // // 去签约,已经签约完,回来查订单详情,如果是激活就去激活
  355. // orderDetail().then((res) => {
  356. // if (res['orderStep'] == OrderStatus['待激活']) {
  357. // // 已签约
  358. // gotoActiveOrder(getItem('orderQueryActivate'))
  359. // } else {
  360. // // 未签约
  361. // if (state.qdSignAppId) {
  362. // uni.navigateToMiniProgram({
  363. // appId: state.qdSignAppId,
  364. // path: state.qdSignUrl,
  365. // extraData: {},
  366. // envVersion: 'trial',
  367. // success(res) {
  368. // state.payOK = true
  369. // console.log(res);
  370. // },
  371. // complete(res) {
  372. // console.log(res);
  373. // },
  374. // fail(res) {
  375. // console.log(res);
  376. // // 未成功跳转到车主小程序
  377. // },
  378. // });
  379. // } else {
  380. // const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  381. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  382. // }
  383. // }
  384. // })
  385. // } else {
  386. // console.log("前往签约3")
  387. // // 签约
  388. // uni.redirectTo({
  389. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  390. // });
  391. // }
  392. // } else {
  393. // gotoActiveOrder(getItem('orderQueryActivate'))
  394. // }
  395. // } else {
  396. // if (state.isValueCard == 1) {
  397. // // 不签约
  398. // uni.switchTab({
  399. // url: "/pages/order/order"
  400. // })
  401. // } else {
  402. // console.log("前往签约2")
  403. // // 签约
  404. // uni.redirectTo({
  405. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  406. // });
  407. // }
  408. // }
  409. }
  410. state.dataArray = data.datas;
  411. for (let i = 0; i < state.dataArray.length; i++) {
  412. if (state.dataArray[i].payType === 'HANDLE') {
  413. state.dataArray[i].payName = '权益金'
  414. } else if (state.dataArray[i].payType === 'MARGIN') {
  415. state.dataArray[i].payName = '保证金'
  416. } else if (state.dataArray[i].payType === 'PRESTORE') {
  417. state.dataArray[i].payName = '预存金'
  418. } else if (state.dataArray[i].payType === 'EQUITY') {
  419. state.dataArray[i].payName = '权益费'
  420. } else if (state.dataArray[i].payType === 'REPAIROBU') {
  421. state.dataArray[i].payName = '增补obu'
  422. } else if (state.dataArray[i].payType === 'CHANGECARD') {
  423. state.dataArray[i].payName = '更换卡'
  424. } else if (state.dataArray[i].payType === 'CHANGEOBU') {
  425. state.dataArray[i].payName = '更换签'
  426. } else if (state.dataArray[i].payType === 'CHANGEALL') {
  427. state.dataArray[i].payName = '更换卡签'
  428. } else {
  429. state.dataArray[i].payName = '未知费'
  430. }
  431. if (state.dataArray[i].payStatus === 'SUCCESS') {
  432. state.dataArray[i].payStatusName = '已支付'
  433. } else if (state.dataArray[i].payStatus === 'PAYING') {
  434. state.dataArray[i].payStatusName = '支付中'
  435. } else if (state.dataArray[i].payStatus === 'FAILED') {
  436. state.dataArray[i].payStatusName = '支付失败'
  437. } else if (state.dataArray[i].payStatus === 'UNPAY') {
  438. state.dataArray[i].payStatusName = '未支付'
  439. } else if (state.dataArray[i].payStatus === 'CLOSED') {
  440. state.dataArray[i].payStatusName = '已关闭'
  441. } else if (state.dataArray[i].payStatus === 'CANCELED') {
  442. state.dataArray[i].payStatusName = '已撤销'
  443. } else if (state.dataArray[i].payStatus === 'REFUND') {
  444. state.dataArray[i].payStatusName = '转入退费'
  445. } else {
  446. state.dataArray[i].payStatusName = '未知'
  447. }
  448. }
  449. console.log("state.dataArray", state.dataArray)
  450. });
  451. }
  452. //解析URL获取参数
  453. const getRequest = (urlStr) => {
  454. if (typeof urlStr == "undefined") {
  455. // 获取url中"?"符后的字符串
  456. var url = decodeURI(location.search);
  457. } else {
  458. var url = "?" + urlStr.split("?")[1];
  459. }
  460. var theRequest = new Object();
  461. if (url.indexOf("?") != -1) {
  462. var str = url.substr(1);
  463. var strs = str.split("&");
  464. for (var i = 0; i < strs.length; i++) {
  465. theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
  466. }
  467. }
  468. return theRequest;
  469. };
  470. //监听页面滚动
  471. onPageScroll((e) => {
  472. scrollTop.value = e.scrollTop;
  473. });
  474. // isValueCard 1 储值卡 2 记账卡
  475. const gotoEditUserOrUnitInfo = () => {
  476. // if (state.orderQuery == '1') {
  477. const options = {
  478. type: 2,
  479. data: {
  480. orderNo: state.orderId
  481. },
  482. method: "POST",
  483. showLoading: true,
  484. }
  485. requestNew(payAfterOrder, options).then((res) => {
  486. console.log("res",res)
  487. if (res.orderStep === 'WAITING_ACTIVE') {
  488. // 前往激活
  489. console.log("前往激活")
  490. if(state.jhOk){
  491. uni.showModal({
  492. title: "*激活检测*",
  493. content: "您还没有激活成功,将要去激活",
  494. showCancel: false,
  495. confirmText: "我知道了",
  496. success() {
  497. state.jhOk = true
  498. gotoActiveOrder(getItem('orderQueryActivate'));
  499. }
  500. });
  501. }else{
  502. state.jhOk = true
  503. gotoActiveOrder(getItem('orderQueryActivate'));
  504. }
  505. } else if (res.orderStep === 'ORDER_PAID') {
  506. // 前往签约
  507. console.log("前往签约1")
  508. uni.redirectTo({
  509. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  510. });
  511. // if (res.qtSign) {
  512. // // 黔通智联签约
  513. // uni.redirectTo({
  514. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  515. // });
  516. // } else if (res.qdAppId){
  517. // // 其他渠道签约
  518. // uni.navigateToMiniProgram({
  519. // appId: res.qdAppId,
  520. // path: res.qdSignUrl,
  521. // extraData: {},
  522. // envVersion: 'trial',
  523. // success(res) {
  524. // state.payOK = true
  525. // console.log(res);
  526. // },
  527. // complete(res) {
  528. // console.log(res);
  529. // },
  530. // fail(res) {
  531. // console.log(res);
  532. // // 未成功跳转到车主小程序
  533. // },
  534. // });
  535. // } else {
  536. // // 其他渠道签约
  537. // const params = encodeURIComponent(JSON.stringify(res.qdSignUrl))
  538. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  539. // }
  540. }
  541. });
  542. // if (state.cardType == '1') {
  543. // if (state.qtSign == '0') {
  544. // if (state.qdSignAppId) {
  545. // // 去外边签约
  546. // uni.navigateToMiniProgram({
  547. // appId: state.qdSignAppId,
  548. // path: state.qdSignUrl,
  549. // extraData: {},
  550. // envVersion: 'trial',
  551. // success(res) {
  552. // state.payOK = true
  553. // console.log(res);
  554. // },
  555. // complete(res) {
  556. // console.log(res);
  557. // },
  558. // fail(res) {
  559. // console.log(res);
  560. // // 未成功跳转到车主小程序
  561. // },
  562. // });
  563. // } else {
  564. // const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  565. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  566. // }
  567. // } else {
  568. // // 签约
  569. // uni.redirectTo({
  570. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  571. // });
  572. // }
  573. // } else {
  574. // gotoActiveOrder(getItem('orderQueryActivate'))
  575. // }
  576. // } else {
  577. // if (state.isValueCard == 1) {
  578. // // 不签约
  579. // uni.switchTab({
  580. // url: "/pages/order/order"
  581. // })
  582. // } else {
  583. // uni.redirectTo({
  584. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  585. // });
  586. // }
  587. // }
  588. }
  589. const state = reactive({
  590. isValueCard: 1, //卡的类型
  591. radiolist1: [], //选择卡的数据列表
  592. choiceCardShow: false, //选择卡的弹出框
  593. isSign: '',
  594. id: "",
  595. orderId: "",
  596. userType: 1, //1 个人 2单位
  597. type: 0, //0 客车 1货车
  598. vehiclePlateColor: "",
  599. data: {
  600. show: false,
  601. src: imgURL + "applyCard/edit.png",
  602. },
  603. dataArray: [],
  604. list: [
  605. {
  606. bg: imgURL + "applyCard/product-bg.png",
  607. icon: imgURL + "applyCard/wechat.png",
  608. title: "【货车】微信车主服务",
  609. tip: "绑定微信支付,无需绑定银行卡",
  610. },
  611. ],
  612. openid: "",
  613. isclick: true,//防止重复点击
  614. vehicleId: "",
  615. orderQuery: "0",
  616. openidData: {},
  617. qdSignUrl: "",
  618. qdSignAppId: "",
  619. qtSign: "",
  620. payOK: false,
  621. jhOk: false,
  622. cardType: "",
  623. });
  624. </script>
  625. <style lang="scss" scoped>
  626. ::v-deep .u-radio {
  627. display: flex !important;
  628. align-items: center !important;
  629. float: none !important;
  630. }
  631. ::v-deep .u-icon__icon {
  632. top: -4px !important;
  633. }
  634. .bottomTip {
  635. margin-top: 100rpx;
  636. text-align: center;
  637. font-size: 28rpx;
  638. font-family: Microsoft YaHei;
  639. font-weight: 400;
  640. color: #b3b3b3;
  641. }
  642. .content-value {
  643. position: absolute;
  644. top: 370rpx;
  645. width: 100%;
  646. min-height: calc(100% - 370rpx);
  647. box-sizing: border-box;
  648. padding: 0 30rpx 210rpx;
  649. .t-card {
  650. background-color: #fff;
  651. padding: 40rpx 30rpx;
  652. border-radius: 12rpx;
  653. }
  654. .img-pos {
  655. position: absolute;
  656. left: 500rpx;
  657. top: -38rpx;
  658. right: 50rpx;
  659. .img-flex {
  660. display: flex;
  661. justify-content: space-between;
  662. align-items: center;
  663. .car-img {
  664. width: 86rpx;
  665. height: 42rpx;
  666. }
  667. .flag-img {
  668. width: 30rpx;
  669. height: 35rpx;
  670. }
  671. }
  672. }
  673. }
  674. .flex {
  675. display: flex;
  676. align-items: center;
  677. }
  678. .action {
  679. margin-top: 30rpx;
  680. padding-left: 20rpx;
  681. padding-right: 20rpx;
  682. padding-bottom: 30rpx;
  683. .button {
  684. height: 80rpx;
  685. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  686. border-radius: 40rpx;
  687. font-size: 32rpx;
  688. font-weight: 400;
  689. color: #ffffff;
  690. line-height: 80rpx;
  691. }
  692. }
  693. .action-btn {
  694. margin-left: 45rpx;
  695. width: 121rpx;
  696. height: 61rpx;
  697. border: 1px solid rgba(255, 255, 255, 1);
  698. border-radius: 30rpx;
  699. background: rgba(255, 255, 255, 0.2);
  700. text-align: center;
  701. font-size: 30rpx;
  702. font-family: Microsoft YaHei;
  703. font-weight: 400;
  704. color: #ffffff;
  705. line-height: 61rpx;
  706. }
  707. .tag1 {
  708. padding: 5rpx;
  709. background: rgba(0, 179, 139, 0.5);
  710. border-radius: 6rpx;
  711. font-size: 22rpx;
  712. font-family: Microsoft YaHei;
  713. font-weight: 400;
  714. color: #ffffff;
  715. }
  716. .tag3 {
  717. padding: 5rpx;
  718. background: rgba(139, 112, 228, 0.5);
  719. border-radius: 6rpx;
  720. font-size: 22rpx;
  721. font-family: Microsoft YaHei;
  722. font-weight: 400;
  723. color: #ffffff;
  724. }
  725. .tag2 {
  726. padding: 5rpx;
  727. background: rgba(249, 97, 60, 0.5);
  728. border-radius: 6rpx;
  729. font-size: 22rpx;
  730. font-family: Microsoft YaHei;
  731. font-weight: 400;
  732. color: #ffffff;
  733. }
  734. .ul-item {
  735. display: flex;
  736. align-items: center;
  737. &:nth-child(n+2) {
  738. margin-top: 30rpx;
  739. }
  740. .item-value {
  741. padding: 20rpx;
  742. position: absolute;
  743. display: flex;
  744. align-items: center;
  745. width: 81%;
  746. box-sizing: border-box;
  747. height: 146rpx;
  748. .money {
  749. color: #fff;
  750. font-size: 46rpx;
  751. font-family: SourceHanSansCN, SourceHanSansCN;
  752. font-weight: 400;
  753. flex: 1;
  754. .unit {
  755. font-size: 29rpx;
  756. margin-right: 2rpx;
  757. }
  758. }
  759. .content {
  760. margin-left: 60rpx;
  761. flex: 2;
  762. .title {
  763. font-weight: 400;
  764. font-family: SourceHanSansCN, SourceHanSansCN;
  765. font-size: 36rpx;
  766. color: #2C3246;
  767. }
  768. }
  769. .r-btn {
  770. width: 139rpx;
  771. height: 65rpx;
  772. background: radial-gradient(at 0% 0%, #C6B077 0%, #DFCC96 100%);
  773. border-radius: 33rpx;
  774. font-family: SourceHanSansCN, SourceHanSansCN;
  775. font-weight: 400;
  776. font-size: 26rpx;
  777. color: #FFFFFF;
  778. line-height: 65rpx;
  779. text-align: center;
  780. flex: 1;
  781. }
  782. }
  783. .icon-tip {
  784. width: 100rpx;
  785. height: 100rpx;
  786. }
  787. }
  788. ::v-deep .u-mode-center-box {
  789. border-radius: 10rpx;
  790. }
  791. .squire {
  792. padding: 30rpx 30rpx 50rpx 50rpx;
  793. }
  794. .mask-close {
  795. text-align: right;
  796. }
  797. .icon-closed {
  798. width: 48rpx;
  799. height: 48rpx;
  800. }
  801. .mask-title {
  802. text-align: center;
  803. font-size: 32rpx;
  804. color: $uni-text-color-black;
  805. margin-bottom: 50rpx;
  806. }
  807. </style>