You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

order_payment.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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
  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. orderId: state.orderId,
  144. wxOpenId: state.openidData.openid,
  145. payType: val.payType,
  146. },
  147. method: "POST",
  148. showLoading: true,
  149. };
  150. requestNew(payApply, options).then((res) => {
  151. const data = res;
  152. console.log("data======111", data)
  153. if (data) {
  154. console.log("进来了")
  155. uni.requestPayment({
  156. provider: "wxpay",
  157. orderInfo: "",
  158. timeStamp: data.timestamp,
  159. nonceStr: data.noncestr,
  160. package: data.wxPackage ? data.wxPackage : "",
  161. signType: data.signType,
  162. paySign: data.sign,
  163. success: function (e) {
  164. console.log("支付成功", res);
  165. state.payOK=true
  166. refresh();
  167. },
  168. fail: function (err) {
  169. state.isclick = true
  170. confirm(err, () => { }, "支付失败", false);
  171. },
  172. });
  173. } else {
  174. state.isclick = true
  175. console.log("state.isclick", state.isclick)
  176. }
  177. },
  178. (err) => {
  179. state.isclick = true
  180. console.log("err")
  181. }
  182. );
  183. // #endif
  184. }
  185. }
  186. const refresh = () => {
  187. state.isclick = true
  188. let source = ""
  189. // #ifdef MP-ALIPAY
  190. source = "ALI"
  191. // #endif
  192. // #ifdef MP-WEIXIN
  193. source = "WECHAT"
  194. // #endif
  195. var data = {
  196. orderId: state.orderId,
  197. wxOpenId: state.openidData.openid,
  198. };
  199. const options = {
  200. type: 2,
  201. data: data,
  202. method: "POST",
  203. showLoading: true,
  204. };
  205. console.log("输出内容", options);
  206. requestNew(payQuery, options).then((res) => {
  207. console.log("res====", res)
  208. const data = res;
  209. console.log(data);
  210. if (data.paymentStatus == 'ALLSUCCESS') {
  211. gotoEditUserOrUnitInfo()
  212. }
  213. state.dataArray = data.datas;
  214. for (let i = 0; i < state.dataArray.length; i++) {
  215. if (state.dataArray[i].payType === 'HANDLE') {
  216. state.dataArray[i].payName = '权益金'
  217. } else if (state.dataArray[i].payType === 'MARGIN') {
  218. state.dataArray[i].payName = '保证金'
  219. } else if (state.dataArray[i].payType === 'PRESTORE') {
  220. state.dataArray[i].payName = '预存金'
  221. } else if (state.dataArray[i].payType === 'EQUITY') {
  222. state.dataArray[i].payName = '权益费'
  223. } else if (state.dataArray[i].payType === 'REPAIROBU') {
  224. state.dataArray[i].payName = '增补obu'
  225. } else if (state.dataArray[i].payType === 'CHANGECARD') {
  226. state.dataArray[i].payName = '更换卡'
  227. } else if (state.dataArray[i].payType === 'CHANGEOBU') {
  228. state.dataArray[i].payName = '更换签'
  229. } else if (state.dataArray[i].payType === 'CHANGEALL') {
  230. state.dataArray[i].payName = '更换卡签'
  231. } else {
  232. state.dataArray[i].payName = '未知费'
  233. }
  234. if (state.dataArray[i].payStatus === 'SUCCESS') {
  235. state.dataArray[i].payStatusName = '已支付'
  236. } else if (state.dataArray[i].payStatus === 'PAYING') {
  237. state.dataArray[i].payStatusName = '支付中'
  238. } else if (state.dataArray[i].payStatus === 'FAILED') {
  239. state.dataArray[i].payStatusName = '支付失败'
  240. } else if (state.dataArray[i].payStatus === 'UNPAY') {
  241. state.dataArray[i].payStatusName = '未支付'
  242. } else if (state.dataArray[i].payStatus === 'CLOSED') {
  243. state.dataArray[i].payStatusName = '已关闭'
  244. } else if (state.dataArray[i].payStatus === 'CANCELED') {
  245. state.dataArray[i].payStatusName = '已撤销'
  246. } else if (state.dataArray[i].payStatus === 'REFUND') {
  247. state.dataArray[i].payStatusName = '转入退费'
  248. } else {
  249. state.dataArray[i].payStatusName = '未知'
  250. }
  251. }
  252. console.log("state.dataArray", state.dataArray)
  253. });
  254. }
  255. onShow(()=>{
  256. // 支付完跳转到广告页,回来再次查询跳转 (签约完回来也要查询)
  257. if(state.payOK){
  258. refreshFirst()
  259. }
  260. })
  261. onLoad((option : any) => {
  262. console.log("传递过来的到支付页面", option)
  263. state.orderId = option.orderId;
  264. state.isValueCard = option.isValueCard;
  265. state.vehicleId = option.vehicleId;
  266. state.orderQuery = option.orderQuery;
  267. state.qdSignUrl = option.qdSignUrl;
  268. state.qdSignAppId = option.qdSignAppId;
  269. state.qtSign = option.qtSign;
  270. state.cardType = option.cardType;
  271. // #ifdef MP-WEIXIN
  272. uni.login({
  273. provider: "weixin",
  274. success: function (e) {
  275. const options1 = {
  276. type: 2,
  277. data: {
  278. "jsCode": e.code
  279. },
  280. method: "POST",
  281. showLoading: true,
  282. };
  283. requestNew(getOpenId, options1).then((res) => {
  284. const result = res;
  285. state.openidData = stringToJson(result.data);
  286. refreshFirst()
  287. })
  288. },
  289. })
  290. // #endif
  291. // #ifdef MP-ALIPAY
  292. refreshFirst()
  293. // #endif
  294. });
  295. // 车辆详情
  296. const orderDetail = () => {
  297. const options = {
  298. type: 2,
  299. data: {
  300. orderNo:state.orderId
  301. },
  302. method: "POST",
  303. showLoading: true,
  304. };
  305. return new Promise(async (resolve, reject) => {
  306. const res = await requestNew(orderQueryDetail, options);
  307. setItem('orderQueryActivate', res)
  308. resolve(res);
  309. }).catch((error) => {
  310. reject(error);
  311. });
  312. }
  313. const refreshFirst = () => {
  314. let source = ""
  315. // #ifdef MP-ALIPAY
  316. imageUrl = imgURL + "applyCard/alibaba.png";
  317. source = "ALI"
  318. // #endif
  319. // #ifdef MP-WEIXIN
  320. imageUrl = imgURL + "applyCard/wechat.png";
  321. source = "WECHAT"
  322. // #endif
  323. var data = {
  324. orderId: state.orderId,
  325. wxOpenId: state.openidData.openid,
  326. };
  327. const options = {
  328. type: 2,
  329. data: data,
  330. method: "POST",
  331. showLoading: true,
  332. };
  333. console.log("输出内容", options);
  334. requestNew(payQuery, options).then((res) => {
  335. const data = res;
  336. console.log(data);
  337. if (data.paymentStatus == 'ALLSUCCESS') {
  338. // isValueCard 1 储值卡 2 记账卡
  339. if (state.orderQuery == '1') {
  340. console.log("state.qtSign",state.qtSign,state.qtSign=='0')
  341. // 记账卡
  342. if(state.cardType=='1'){
  343. // 去诺德签约
  344. if(state.qtSign=='0'){
  345. // 去签约,已经签约完,回来查订单详情,如果是激活就去激活
  346. orderDetail().then((res) => {
  347. if (res['orderStep'] == OrderStatus['待激活']) {
  348. // 已签约
  349. gotoActiveOrder(getItem('orderQueryActivate'))
  350. }else{
  351. // 未签约
  352. if(state.qdSignAppId){
  353. uni.navigateToMiniProgram({
  354. appId: state.qdSignAppId,
  355. path: state.qdSignUrl,
  356. extraData: {},
  357. envVersion:'trial',
  358. success(res) {
  359. state.payOK=true
  360. console.log(res);
  361. },
  362. complete(res) {
  363. console.log(res);
  364. },
  365. fail(res) {
  366. console.log(res);
  367. // 未成功跳转到车主小程序
  368. },
  369. });
  370. }else{
  371. const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  372. tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  373. }
  374. }
  375. })
  376. }else{
  377. // 签约
  378. uni.redirectTo({
  379. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  380. });
  381. }
  382. }else{
  383. gotoActiveOrder(getItem('orderQueryActivate'))
  384. }
  385. }else{
  386. if (state.isValueCard == 1) {
  387. // 不签约
  388. uni.switchTab({
  389. url: "/pages/order/order"
  390. })
  391. } else {
  392. // 签约
  393. uni.redirectTo({
  394. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  395. });
  396. }
  397. }
  398. }
  399. state.dataArray = data.datas;
  400. for (let i = 0; i < state.dataArray.length; i++) {
  401. if (state.dataArray[i].payType === 'HANDLE') {
  402. state.dataArray[i].payName = '权益金'
  403. } else if (state.dataArray[i].payType === 'MARGIN') {
  404. state.dataArray[i].payName = '保证金'
  405. } else if (state.dataArray[i].payType === 'PRESTORE') {
  406. state.dataArray[i].payName = '预存金'
  407. } else if (state.dataArray[i].payType === 'EQUITY') {
  408. state.dataArray[i].payName = '权益费'
  409. } else if (state.dataArray[i].payType === 'REPAIROBU') {
  410. state.dataArray[i].payName = '增补obu'
  411. } else if (state.dataArray[i].payType === 'CHANGECARD') {
  412. state.dataArray[i].payName = '更换卡'
  413. } else if (state.dataArray[i].payType === 'CHANGEOBU') {
  414. state.dataArray[i].payName = '更换签'
  415. } else if (state.dataArray[i].payType === 'CHANGEALL') {
  416. state.dataArray[i].payName = '更换卡签'
  417. } else {
  418. state.dataArray[i].payName = '未知费'
  419. }
  420. if (state.dataArray[i].payStatus === 'SUCCESS') {
  421. state.dataArray[i].payStatusName = '已支付'
  422. } else if (state.dataArray[i].payStatus === 'PAYING') {
  423. state.dataArray[i].payStatusName = '支付中'
  424. } else if (state.dataArray[i].payStatus === 'FAILED') {
  425. state.dataArray[i].payStatusName = '支付失败'
  426. } else if (state.dataArray[i].payStatus === 'UNPAY') {
  427. state.dataArray[i].payStatusName = '未支付'
  428. } else if (state.dataArray[i].payStatus === 'CLOSED') {
  429. state.dataArray[i].payStatusName = '已关闭'
  430. } else if (state.dataArray[i].payStatus === 'CANCELED') {
  431. state.dataArray[i].payStatusName = '已撤销'
  432. } else if (state.dataArray[i].payStatus === 'REFUND') {
  433. state.dataArray[i].payStatusName = '转入退费'
  434. } else {
  435. state.dataArray[i].payStatusName = '未知'
  436. }
  437. }
  438. console.log("state.dataArray", state.dataArray)
  439. });
  440. }
  441. //解析URL获取参数
  442. const getRequest = (urlStr) => {
  443. if (typeof urlStr == "undefined") {
  444. // 获取url中"?"符后的字符串
  445. var url = decodeURI(location.search);
  446. } else {
  447. var url = "?" + urlStr.split("?")[1];
  448. }
  449. var theRequest = new Object();
  450. if (url.indexOf("?") != -1) {
  451. var str = url.substr(1);
  452. var strs = str.split("&");
  453. for (var i = 0; i < strs.length; i++) {
  454. theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
  455. }
  456. }
  457. return theRequest;
  458. };
  459. //监听页面滚动
  460. onPageScroll((e) => {
  461. scrollTop.value = e.scrollTop;
  462. });
  463. // isValueCard 1 储值卡 2 记账卡
  464. const gotoEditUserOrUnitInfo = () => {
  465. if (state.orderQuery == '1') {
  466. if(state.cardType=='1'){
  467. if(state.qtSign=='0'){
  468. if(state.qdSignAppId){
  469. // 去外边签约
  470. uni.navigateToMiniProgram({
  471. appId: state.qdSignAppId,
  472. path: state.qdSignUrl,
  473. extraData: {},
  474. envVersion:'trial',
  475. success(res) {
  476. state.payOK=true
  477. console.log(res);
  478. },
  479. complete(res) {
  480. console.log(res);
  481. },
  482. fail(res) {
  483. console.log(res);
  484. // 未成功跳转到车主小程序
  485. },
  486. });
  487. }else{
  488. const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  489. tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  490. }
  491. }else{
  492. // 签约
  493. uni.redirectTo({
  494. url:`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  495. });
  496. }
  497. }else{
  498. gotoActiveOrder(getItem('orderQueryActivate'))
  499. }
  500. }else{
  501. if (state.isValueCard == 1) {
  502. // 不签约
  503. uni.switchTab({
  504. url: "/pages/order/order"
  505. })
  506. } else {
  507. uni.redirectTo({
  508. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  509. });
  510. }
  511. }
  512. }
  513. const state = reactive({
  514. isValueCard: 1, //卡的类型
  515. radiolist1: [], //选择卡的数据列表
  516. choiceCardShow: false, //选择卡的弹出框
  517. isSign: '',
  518. id: "",
  519. orderId: "",
  520. userType: 1, //1 个人 2单位
  521. type: 0, //0 客车 1货车
  522. vehiclePlateColor: "",
  523. data: {
  524. show: false,
  525. src: imgURL + "applyCard/edit.png",
  526. },
  527. dataArray: [],
  528. list: [
  529. {
  530. bg: imgURL + "applyCard/product-bg.png",
  531. icon: imgURL + "applyCard/wechat.png",
  532. title: "【货车】微信车主服务",
  533. tip: "绑定微信支付,无需绑定银行卡",
  534. },
  535. ],
  536. openid: "",
  537. isclick: true,//防止重复点击
  538. vehicleId: "",
  539. orderQuery: "0",
  540. openidData: {},
  541. qdSignUrl:"",
  542. qdSignAppId:"",
  543. qtSign:"",
  544. payOK:false,
  545. cardType:"",
  546. });
  547. </script>
  548. <style lang="scss" scoped>
  549. ::v-deep .u-radio {
  550. display: flex !important;
  551. align-items: center !important;
  552. float: none !important;
  553. }
  554. ::v-deep .u-icon__icon {
  555. top: -4px !important;
  556. }
  557. .bottomTip {
  558. margin-top: 100rpx;
  559. text-align: center;
  560. font-size: 28rpx;
  561. font-family: Microsoft YaHei;
  562. font-weight: 400;
  563. color: #b3b3b3;
  564. }
  565. .content-value {
  566. position: absolute;
  567. top: 370rpx;
  568. width: 100%;
  569. min-height: calc(100% - 370rpx);
  570. box-sizing: border-box;
  571. padding: 0 30rpx 210rpx;
  572. .t-card {
  573. background-color: #fff;
  574. padding: 40rpx 30rpx;
  575. border-radius: 12rpx;
  576. }
  577. .img-pos {
  578. position: absolute;
  579. left: 500rpx;
  580. top: -38rpx;
  581. right: 50rpx;
  582. .img-flex {
  583. display: flex;
  584. justify-content: space-between;
  585. align-items: center;
  586. .car-img {
  587. width: 86rpx;
  588. height: 42rpx;
  589. }
  590. .flag-img {
  591. width: 30rpx;
  592. height: 35rpx;
  593. }
  594. }
  595. }
  596. }
  597. .flex {
  598. display: flex;
  599. align-items: center;
  600. }
  601. .action {
  602. margin-top: 30rpx;
  603. padding-left: 20rpx;
  604. padding-right: 20rpx;
  605. padding-bottom: 30rpx;
  606. .button {
  607. height: 80rpx;
  608. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  609. border-radius: 40rpx;
  610. font-size: 32rpx;
  611. font-weight: 400;
  612. color: #ffffff;
  613. line-height: 80rpx;
  614. }
  615. }
  616. .action-btn {
  617. margin-left: 45rpx;
  618. width: 121rpx;
  619. height: 61rpx;
  620. border: 1px solid rgba(255, 255, 255, 1);
  621. border-radius: 30rpx;
  622. background: rgba(255, 255, 255, 0.2);
  623. text-align: center;
  624. font-size: 30rpx;
  625. font-family: Microsoft YaHei;
  626. font-weight: 400;
  627. color: #ffffff;
  628. line-height: 61rpx;
  629. }
  630. .tag1 {
  631. padding: 5rpx;
  632. background: rgba(0, 179, 139, 0.5);
  633. border-radius: 6rpx;
  634. font-size: 22rpx;
  635. font-family: Microsoft YaHei;
  636. font-weight: 400;
  637. color: #ffffff;
  638. }
  639. .tag3 {
  640. padding: 5rpx;
  641. background: rgba(139, 112, 228, 0.5);
  642. border-radius: 6rpx;
  643. font-size: 22rpx;
  644. font-family: Microsoft YaHei;
  645. font-weight: 400;
  646. color: #ffffff;
  647. }
  648. .tag2 {
  649. padding: 5rpx;
  650. background: rgba(249, 97, 60, 0.5);
  651. border-radius: 6rpx;
  652. font-size: 22rpx;
  653. font-family: Microsoft YaHei;
  654. font-weight: 400;
  655. color: #ffffff;
  656. }
  657. .ul-item {
  658. display: flex;
  659. align-items: center;
  660. &:nth-child(n+2) {
  661. margin-top: 30rpx;
  662. }
  663. .item-value {
  664. padding: 20rpx;
  665. position: absolute;
  666. display: flex;
  667. align-items: center;
  668. width: 81%;
  669. box-sizing: border-box;
  670. height: 146rpx;
  671. .money {
  672. color: #fff;
  673. font-size: 46rpx;
  674. font-family: SourceHanSansCN, SourceHanSansCN;
  675. font-weight: 400;
  676. flex: 1;
  677. .unit {
  678. font-size: 29rpx;
  679. margin-right: 2rpx;
  680. }
  681. }
  682. .content {
  683. margin-left: 60rpx;
  684. flex: 2;
  685. .title {
  686. font-weight: 400;
  687. font-family: SourceHanSansCN, SourceHanSansCN;
  688. font-size: 36rpx;
  689. color: #2C3246;
  690. }
  691. }
  692. .r-btn {
  693. width: 139rpx;
  694. height: 65rpx;
  695. background: radial-gradient(at 0% 0%, #C6B077 0%, #DFCC96 100%);
  696. border-radius: 33rpx;
  697. font-family: SourceHanSansCN, SourceHanSansCN;
  698. font-weight: 400;
  699. font-size: 26rpx;
  700. color: #FFFFFF;
  701. line-height: 65rpx;
  702. text-align: center;
  703. flex: 1;
  704. }
  705. }
  706. .icon-tip {
  707. width: 100rpx;
  708. height: 100rpx;
  709. }
  710. }
  711. ::v-deep .u-mode-center-box {
  712. border-radius: 10rpx;
  713. }
  714. .squire {
  715. padding: 30rpx 30rpx 50rpx 50rpx;
  716. }
  717. .mask-close {
  718. text-align: right;
  719. }
  720. .icon-closed {
  721. width: 48rpx;
  722. height: 48rpx;
  723. }
  724. .mask-title {
  725. text-align: center;
  726. font-size: 32rpx;
  727. color: $uni-text-color-black;
  728. margin-bottom: 50rpx;
  729. }
  730. </style>