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

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