您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

order_payment.vue 19KB

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