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

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