Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

order_payment.vue 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  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. <TipsInfo
  29. v-model="state.ipsInfoShow"
  30. title="提示"
  31. des="本次收取费用为ETC办理费用,并非预存金、押金、服务费、可抵扣高速费等其他费用,设备激活成功后将无法进行退费,敬请知悉!"
  32. @confirm="confirmPay">
  33. </TipsInfo>
  34. </template>
  35. <script setup lang="ts">
  36. import { onLoad, onPageScroll, onShow } from "@dcloudio/uni-app";
  37. import { reactive, ref } from "vue";
  38. import {
  39. PAYMENTORDERAPPLY,
  40. aliPayConfigIdTwo,
  41. obtainUserId,
  42. getOpenId, payApply, payQuery, orderDetailQuery, payAfterOrder
  43. } from "@/utils/network/api.js";
  44. import { request, requestNew } from "@/utils/network/request.js";
  45. import { stringToJson } from "@/utils/network/encryption";
  46. import { fileURL } from "@/datas/fileURL.js";
  47. import navBgCar from "./components/nav-bg-car1";
  48. import navBar from "@/components/nav-bar/nav-bar2.vue";
  49. const imgURL = `${fileURL}image/`;
  50. import { confirm, navTo } from "@/utils/utils";
  51. import {
  52. OrderStatus
  53. } from "@/datas/enum";
  54. import useOrderSkip from "@/composables/order/useOrderSkip";
  55. import { setItem, getItem } from "@/utils/storage";
  56. import TipsInfo from "@/components/common/TipsInfo.vue";
  57. import { getCodeName } from '@/datas/queryKey.js'
  58. const tools = require("../../static/etcUtil/tools.js");
  59. const { gotoActiveOrder } = useOrderSkip();
  60. let imageUrl = ""
  61. let logo
  62. const scrollTop = ref(0); //滚动距离
  63. var counter = 0;
  64. function myFunc() {
  65. counter++;
  66. console.log("====")
  67. if (counter == 2) {
  68. clearInterval(intervalId);
  69. state.isclick = true
  70. console.log("改为true");
  71. }
  72. }
  73. var intervalId = setInterval(myFunc, 2000);
  74. const payTypeMap = ref([])
  75. const savaHandle = (val) => {
  76. state.payDetail = val
  77. state.ipsInfoShow = true
  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. const data = res;
  213. if (data.paymentStatus == 1) {
  214. // gotoEditUserOrUnitInfo()
  215. }
  216. state.dataArray = dataFilter(data.datas);
  217. });
  218. }
  219. interface dataListItem{
  220. payName: string,
  221. payStatus: string,
  222. payType: string,
  223. payStatusName: string
  224. }
  225. const dataFilter = (list: Array<object> = []) => {
  226. return list.map((item: dataListItem) => {
  227. item.payName = getCodeName('PROCESSING_FEE_TYPE', item.payType) || '未知费'
  228. if (item.payStatus === 'SUCCESS') {
  229. item.payStatusName = '已支付'
  230. } else if (item.payStatus === 'PAYING') {
  231. item.payStatusName = '支付中'
  232. } else if (item.payStatus === 'FAILED') {
  233. item.payStatusName = '支付失败'
  234. } else if (item.payStatus === 'UNPAY') {
  235. item.payStatusName = '未支付'
  236. } else if (item.payStatus === 'CLOSED') {
  237. item.payStatusName = '已关闭'
  238. } else if (item.payStatus === 'CANCELED') {
  239. item.payStatusName = '已撤销'
  240. } else if (item.payStatus === 'REFUND') {
  241. item.payStatusName = '转入退费'
  242. } else {
  243. item.payStatusName = '未知'
  244. }
  245. return item
  246. })
  247. }
  248. onShow(() => {
  249. // 支付完跳转到广告页,回来再次查询跳转 (签约完回来也要查询)
  250. if (state.payOK) {
  251. console.log("刷新页面",state)
  252. refreshFirst()
  253. }
  254. })
  255. onLoad((option : any) => {
  256. console.log("传递过来的到支付页面", option)
  257. state.orderId = option.orderId;
  258. state.isValueCard = option.isValueCard;
  259. state.vehicleId = option.vehicleId;
  260. state.orderQuery = option.orderQuery;
  261. state.qdSignUrl = option.qdSignUrl;
  262. state.qdSignAppId = option.qdSignAppId;
  263. state.qtSign = option.qtSign;
  264. state.cardType = option.cardType;
  265. // #ifdef MP-WEIXIN
  266. uni.login({
  267. provider: "weixin",
  268. success: function (e) {
  269. const options1 = {
  270. type: 2,
  271. data: {
  272. "jsCode": e.code
  273. },
  274. method: "POST",
  275. showLoading: true,
  276. };
  277. requestNew(getOpenId, options1).then((res) => {
  278. const result = res;
  279. console.log("获取openid返回数据:", res)
  280. state.openidData = stringToJson(result.bizContent);
  281. refreshFirst()
  282. })
  283. },
  284. })
  285. // #endif
  286. // #ifdef MP-ALIPAY
  287. refreshFirst()
  288. // #endif
  289. });
  290. // 订单详情
  291. const orderDetail = () => {
  292. const options = {
  293. type: 2,
  294. data: {
  295. orderNo: state.orderId
  296. },
  297. method: "POST",
  298. showLoading: true,
  299. };
  300. return new Promise(async (resolve, reject) => {
  301. const res = await requestNew(orderDetailQuery, options);
  302. setItem('orderQueryActivate', res)
  303. resolve(res);
  304. }).catch((error) => {
  305. reject(error);
  306. });
  307. }
  308. const refreshFirst = () => {
  309. let source = ""
  310. // #ifdef MP-ALIPAY
  311. imageUrl = imgURL + "applyCard/alibaba.png";
  312. source = "ALI"
  313. // #endif
  314. // #ifdef MP-WEIXIN
  315. imageUrl = imgURL + "applyCard/wechat.png";
  316. source = "WECHAT"
  317. // #endif
  318. var data = {
  319. orderNo: state.orderId,
  320. wxOpenId: state.openidData.openid,
  321. "customerId": "",
  322. };
  323. const options = {
  324. type: 2,
  325. data: data,
  326. method: "POST",
  327. showLoading: true,
  328. };
  329. console.log("输出内容", options);
  330. requestNew(payQuery, options).then((res) => {
  331. let data = res
  332. if (data.paymentStatus == 1) {
  333. gotoEditUserOrUnitInfo();
  334. // isValueCard 1 储值卡 2 记账卡
  335. // if (state.orderQuery == '1') {
  336. // console.log("state.qtSign", state.qtSign, state.qtSign == '0')
  337. // // 记账卡
  338. // if (state.cardType == '1') {
  339. // // 去诺德签约
  340. // if (state.qtSign == '0') {
  341. // // 去签约,已经签约完,回来查订单详情,如果是激活就去激活
  342. // orderDetail().then((res) => {
  343. // if (res['orderStep'] == OrderStatus['待激活']) {
  344. // // 已签约
  345. // gotoActiveOrder(getItem('orderQueryActivate'))
  346. // } else {
  347. // // 未签约
  348. // if (state.qdSignAppId) {
  349. // uni.navigateToMiniProgram({
  350. // appId: state.qdSignAppId,
  351. // path: state.qdSignUrl,
  352. // extraData: {},
  353. // envVersion: 'trial',
  354. // success(res) {
  355. // state.payOK = true
  356. // console.log(res);
  357. // },
  358. // complete(res) {
  359. // console.log(res);
  360. // },
  361. // fail(res) {
  362. // console.log(res);
  363. // // 未成功跳转到车主小程序
  364. // },
  365. // });
  366. // } else {
  367. // const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  368. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  369. // }
  370. // }
  371. // })
  372. // } else {
  373. // console.log("前往签约3")
  374. // // 签约
  375. // uni.redirectTo({
  376. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  377. // });
  378. // }
  379. // } else {
  380. // gotoActiveOrder(getItem('orderQueryActivate'))
  381. // }
  382. // } else {
  383. // if (state.isValueCard == 1) {
  384. // // 不签约
  385. // uni.switchTab({
  386. // url: "/pages/order/order"
  387. // })
  388. // } else {
  389. // console.log("前往签约2")
  390. // // 签约
  391. // uni.redirectTo({
  392. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  393. // });
  394. // }
  395. // }
  396. }
  397. state.dataArray = dataFilter(data.datas);
  398. console.log("state.dataArray", state.dataArray)
  399. });
  400. }
  401. //解析URL获取参数
  402. const getRequest = (urlStr) => {
  403. if (typeof urlStr == "undefined") {
  404. // 获取url中"?"符后的字符串
  405. var url = decodeURI(location.search);
  406. } else {
  407. var url = "?" + urlStr.split("?")[1];
  408. }
  409. var theRequest = new Object();
  410. if (url.indexOf("?") != -1) {
  411. var str = url.substr(1);
  412. var strs = str.split("&");
  413. for (var i = 0; i < strs.length; i++) {
  414. theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
  415. }
  416. }
  417. return theRequest;
  418. };
  419. //监听页面滚动
  420. onPageScroll((e) => {
  421. scrollTop.value = e.scrollTop;
  422. });
  423. // isValueCard 1 储值卡 2 记账卡
  424. const gotoEditUserOrUnitInfo = () => {
  425. // if (state.orderQuery == '1') {
  426. const options = {
  427. type: 2,
  428. data: {
  429. orderNo: state.orderId
  430. },
  431. method: "POST",
  432. showLoading: true,
  433. }
  434. requestNew(payAfterOrder, options).then(async (res) => {
  435. const orderDetailData = await orderDetail()
  436. if (res.orderStep === 'WAITING_ACTIVE') {
  437. // 前往激活
  438. console.log("前往激活")
  439. if(state.jhOk){
  440. uni.showModal({
  441. title: "*激活检测*",
  442. content: "您还没有激活成功,将要去激活",
  443. showCancel: false,
  444. confirmText: "我知道了",
  445. success() {
  446. state.jhOk = true
  447. gotoActiveOrder(getItem('orderQueryActivate'));
  448. }
  449. });
  450. }else{
  451. state.jhOk = true
  452. gotoActiveOrder(getItem('orderQueryActivate'));
  453. }
  454. } else if (res.orderStep === 'ORDER_PAID') {
  455. // 前往签约
  456. console.log("前往签约1")
  457. uni.redirectTo({
  458. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  459. });
  460. // if (res.qtSign) {
  461. // // 黔通智联签约
  462. // uni.redirectTo({
  463. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  464. // });
  465. // } else if (res.qdAppId){
  466. // // 其他渠道签约
  467. // uni.navigateToMiniProgram({
  468. // appId: res.qdAppId,
  469. // path: res.qdSignUrl,
  470. // extraData: {},
  471. // envVersion: 'trial',
  472. // success(res) {
  473. // state.payOK = true
  474. // console.log(res);
  475. // },
  476. // complete(res) {
  477. // console.log(res);
  478. // },
  479. // fail(res) {
  480. // console.log(res);
  481. // // 未成功跳转到车主小程序
  482. // },
  483. // });
  484. // } else {
  485. // // 其他渠道签约
  486. // const params = encodeURIComponent(JSON.stringify(res.qdSignUrl))
  487. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  488. // }
  489. }else{
  490. uni.showModal({
  491. content: "订单待审核,可在ETC订单查看",
  492. showCancel: false,
  493. confirmText: "我知道了",
  494. success() {
  495. uni.redirectTo({
  496. url: `/pages/order/order?indexPage=1`
  497. });
  498. }
  499. });
  500. }
  501. });
  502. // if (state.cardType == '1') {
  503. // if (state.qtSign == '0') {
  504. // if (state.qdSignAppId) {
  505. // // 去外边签约
  506. // uni.navigateToMiniProgram({
  507. // appId: state.qdSignAppId,
  508. // path: state.qdSignUrl,
  509. // extraData: {},
  510. // envVersion: 'trial',
  511. // success(res) {
  512. // state.payOK = true
  513. // console.log(res);
  514. // },
  515. // complete(res) {
  516. // console.log(res);
  517. // },
  518. // fail(res) {
  519. // console.log(res);
  520. // // 未成功跳转到车主小程序
  521. // },
  522. // });
  523. // } else {
  524. // const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  525. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  526. // }
  527. // } else {
  528. // // 签约
  529. // uni.redirectTo({
  530. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  531. // });
  532. // }
  533. // } else {
  534. // gotoActiveOrder(getItem('orderQueryActivate'))
  535. // }
  536. // } else {
  537. // if (state.isValueCard == 1) {
  538. // // 不签约
  539. // uni.switchTab({
  540. // url: "/pages/order/order"
  541. // })
  542. // } else {
  543. // uni.redirectTo({
  544. // url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  545. // });
  546. // }
  547. // }
  548. }
  549. const state = reactive({
  550. isValueCard: 1, //卡的类型
  551. radiolist1: [], //选择卡的数据列表
  552. choiceCardShow: false, //选择卡的弹出框
  553. isSign: '',
  554. id: "",
  555. orderId: "",
  556. userType: 1, //1 个人 2单位
  557. type: 0, //0 客车 1货车
  558. vehiclePlateColor: "",
  559. data: {
  560. show: false,
  561. src: imgURL + "applyCard/edit.png",
  562. },
  563. dataArray: [],
  564. list: [
  565. {
  566. bg: imgURL + "applyCard/product-bg.png",
  567. icon: imgURL + "applyCard/wechat.png",
  568. title: "【货车】微信车主服务",
  569. tip: "绑定微信支付,无需绑定银行卡",
  570. },
  571. ],
  572. openid: "",
  573. isclick: true,//防止重复点击
  574. vehicleId: "",
  575. orderQuery: "0",
  576. openidData: {},
  577. qdSignUrl: "",
  578. qdSignAppId: "",
  579. qtSign: "",
  580. payOK: false,
  581. jhOk: false,
  582. cardType: "",
  583. ipsInfoShow: false,
  584. payDetail: {
  585. payStatus: ''
  586. }
  587. });
  588. const confirmPay = () => {
  589. let val = state.payDetail
  590. if (state.isclick) {
  591. if (val.payStatus == "SUCCESS") {
  592. return;
  593. }
  594. state.isclick = false
  595. payMethods(val)
  596. }
  597. }
  598. </script>
  599. <style lang="scss" scoped>
  600. // ::v-deep .u-radio {
  601. // display: flex !important;
  602. // align-items: center !important;
  603. // float: none !important;
  604. // }
  605. // ::v-deep .u-icon__icon {
  606. // top: -4px !important;
  607. // }
  608. .bottomTip {
  609. margin-top: 100rpx;
  610. text-align: center;
  611. font-size: 28rpx;
  612. font-family: Microsoft YaHei;
  613. font-weight: 400;
  614. color: #b3b3b3;
  615. }
  616. .content-value {
  617. position: absolute;
  618. top: 370rpx;
  619. width: 100%;
  620. min-height: calc(100% - 370rpx);
  621. box-sizing: border-box;
  622. padding: 0 30rpx 210rpx;
  623. .t-card {
  624. background-color: #fff;
  625. padding: 40rpx 30rpx;
  626. border-radius: 12rpx;
  627. }
  628. .img-pos {
  629. position: absolute;
  630. left: 500rpx;
  631. top: -38rpx;
  632. right: 50rpx;
  633. .img-flex {
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. .car-img {
  638. width: 86rpx;
  639. height: 42rpx;
  640. }
  641. .flag-img {
  642. width: 30rpx;
  643. height: 35rpx;
  644. }
  645. }
  646. }
  647. }
  648. .flex {
  649. display: flex;
  650. align-items: center;
  651. }
  652. .action {
  653. margin-top: 30rpx;
  654. padding-left: 20rpx;
  655. padding-right: 20rpx;
  656. padding-bottom: 30rpx;
  657. .button {
  658. height: 80rpx;
  659. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  660. border-radius: 40rpx;
  661. font-size: 32rpx;
  662. font-weight: 400;
  663. color: #ffffff;
  664. line-height: 80rpx;
  665. }
  666. }
  667. .action-btn {
  668. margin-left: 45rpx;
  669. width: 121rpx;
  670. height: 61rpx;
  671. border: 1px solid rgba(255, 255, 255, 1);
  672. border-radius: 30rpx;
  673. background: rgba(255, 255, 255, 0.2);
  674. text-align: center;
  675. font-size: 30rpx;
  676. font-family: Microsoft YaHei;
  677. font-weight: 400;
  678. color: #ffffff;
  679. line-height: 61rpx;
  680. }
  681. .tag1 {
  682. padding: 5rpx;
  683. background: rgba(0, 179, 139, 0.5);
  684. border-radius: 6rpx;
  685. font-size: 22rpx;
  686. font-family: Microsoft YaHei;
  687. font-weight: 400;
  688. color: #ffffff;
  689. }
  690. .tag3 {
  691. padding: 5rpx;
  692. background: rgba(139, 112, 228, 0.5);
  693. border-radius: 6rpx;
  694. font-size: 22rpx;
  695. font-family: Microsoft YaHei;
  696. font-weight: 400;
  697. color: #ffffff;
  698. }
  699. .tag2 {
  700. padding: 5rpx;
  701. background: rgba(249, 97, 60, 0.5);
  702. border-radius: 6rpx;
  703. font-size: 22rpx;
  704. font-family: Microsoft YaHei;
  705. font-weight: 400;
  706. color: #ffffff;
  707. }
  708. .ul-item {
  709. display: flex;
  710. align-items: center;
  711. &:nth-child(n+2) {
  712. margin-top: 30rpx;
  713. }
  714. .item-value {
  715. padding: 20rpx;
  716. position: absolute;
  717. display: flex;
  718. align-items: center;
  719. width: 81%;
  720. box-sizing: border-box;
  721. height: 146rpx;
  722. .money {
  723. color: #fff;
  724. font-size: 46rpx;
  725. font-family: SourceHanSansCN, SourceHanSansCN;
  726. font-weight: 400;
  727. flex: 1;
  728. .unit {
  729. font-size: 29rpx;
  730. margin-right: 2rpx;
  731. }
  732. }
  733. .content {
  734. margin-left: 60rpx;
  735. flex: 2;
  736. .title {
  737. font-weight: 400;
  738. font-family: SourceHanSansCN, SourceHanSansCN;
  739. font-size: 36rpx;
  740. color: #2C3246;
  741. }
  742. }
  743. .r-btn {
  744. width: 139rpx;
  745. height: 65rpx;
  746. background: radial-gradient(at 0% 0%, #C6B077 0%, #DFCC96 100%);
  747. border-radius: 33rpx;
  748. font-family: SourceHanSansCN, SourceHanSansCN;
  749. font-weight: 400;
  750. font-size: 26rpx;
  751. color: #FFFFFF;
  752. line-height: 65rpx;
  753. text-align: center;
  754. flex: 1;
  755. }
  756. }
  757. .icon-tip {
  758. width: 100rpx;
  759. height: 100rpx;
  760. }
  761. }
  762. ::v-deep .u-mode-center-box {
  763. border-radius: 10rpx;
  764. }
  765. .squire {
  766. padding: 30rpx 30rpx 50rpx 50rpx;
  767. }
  768. .mask-close {
  769. text-align: right;
  770. }
  771. .icon-closed {
  772. width: 48rpx;
  773. height: 48rpx;
  774. }
  775. .mask-title {
  776. text-align: center;
  777. font-size: 32rpx;
  778. color: $uni-text-color-black;
  779. margin-bottom: 50rpx;
  780. }
  781. </style>