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 21KB

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