選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

order_payment.vue 19KB

8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
1年前
8ヶ月前
8ヶ月前
5ヶ月前
5ヶ月前
1年前
1年前
1年前
1年前
8ヶ月前
1年前
1年前
8ヶ月前
9ヶ月前
1年前
1年前
1年前
1年前
6ヶ月前
5ヶ月前
9ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
1年前
5ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
5ヶ月前
1年前
6ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <template>
  2. <navBar title="订单支付" :scrollTop="scrollTop" :orderId="state.orderId" navbgClass="nav-bgXin" fontColor='#fff'>
  3. </navBar>
  4. <navBgCar :activeNum='5'></navBgCar>
  5. <view class="content-value">
  6. <view class="t-card">
  7. <view @click="savaHandle(item)" class="ul-item" v-for="(item, index) in state.dataArray" :key="index">
  8. <image style="width: 100%; height: 146rpx;" :src="`${$imgUrl}issuance/equity-bg.png`"
  9. mode='scaleToFill'>
  10. </image>
  11. <view class="item-value">
  12. <view class="money">
  13. <text class='unit'>¥</text>
  14. <text>{{ item.fee * 0.01 }}</text>
  15. </view>
  16. <view class="content">
  17. <view class="title">
  18. {{ item.payName }}
  19. </view>
  20. </view>
  21. <view class="r-btn">
  22. {{ item.payStatusName }}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup lang="ts">
  30. import { onLoad, onPageScroll, onShow } from "@dcloudio/uni-app";
  31. import { reactive, ref } from "vue";
  32. import {
  33. PAYMENTORDERAPPLY,
  34. aliPayConfigIdTwo,
  35. obtainUserId,
  36. getOpenId, payApply, payQuery, orderQueryDetail
  37. } from "@/utils/network/api.js";
  38. import { request, requestNew } from "@/utils/network/request.js";
  39. import { stringToJson } from "@/utils/network/encryption";
  40. import { fileURL } from "@/datas/fileURL.js";
  41. import navBgCar from "./components/nav-bg-car1";
  42. import navBar from "@/components/nav-bar/nav-bar2.vue";
  43. const imgURL = `${fileURL}image/`;
  44. import { confirm, navTo } from "@/utils/utils";
  45. import {
  46. OrderStatus
  47. } from "@/datas/enum";
  48. import useOrderSkip from "@/composables/order/useOrderSkip";
  49. import {
  50. setItem, getItem
  51. } from "@/utils/storage";
  52. const tools = require("../../static/etcUtil/tools.js");
  53. const { gotoActiveOrder } = useOrderSkip();
  54. let imageUrl = ""
  55. let logo
  56. const scrollTop = ref(0); //滚动距离
  57. var counter = 0;
  58. function myFunc() {
  59. counter++;
  60. console.log("====")
  61. if (counter == 2) {
  62. clearInterval(intervalId);
  63. state.isclick = true
  64. console.log("改为true");
  65. }
  66. }
  67. var intervalId = setInterval(myFunc, 2000);
  68. const savaHandle = (val) => {
  69. console.log("val", val, state.isclick)
  70. if (state.isclick) {
  71. if (val.payStatus == "SUCCESS") {
  72. return;
  73. }
  74. state.isclick = false
  75. console.log("state.isclick", state.isclick, val.payStatus)
  76. payMethods(val)
  77. }
  78. };
  79. const payMethods = (val) => {
  80. console.log("val===", val)
  81. if (val.payStatus === 'UNPAY') {
  82. myFunc()
  83. // #ifdef MP-ALIPAY
  84. my.getAuthCode({
  85. scopes: 'auth_base',
  86. success: res => {
  87. const optionsUser = {
  88. type: 2,
  89. data: {
  90. payConfigId: aliPayConfigIdTwo,
  91. code: res.authCode
  92. },
  93. method: "POST",
  94. showLoading: true,
  95. };
  96. console.log('支付宝用户编号请求:', optionsUser)
  97. requestNew(obtainUserId, optionsUser).then((res) => {
  98. console.log('支付宝用户编号返回:', res)
  99. const data = res;
  100. const optionsali = {
  101. type: 2,
  102. data: {
  103. orderId: state.orderId,
  104. wxOpenid: data.openId ? data.openId : data.alipayUserId,
  105. payType: val.payType
  106. },
  107. method: "POST",
  108. showLoading: true,
  109. };
  110. console.log('支付下单请求:', optionsali)
  111. requestNew(PAYMENTORDERAPPLY, optionsali).then((res) => {
  112. const data = res;
  113. console.log('支付下单返回:', data)
  114. my.tradePay({
  115. // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no
  116. tradeNO: data.tranPackage,
  117. success: res => {
  118. console.log("支付成功", res);
  119. refresh();
  120. },
  121. fail: res => {
  122. console.log("支付失败", res);
  123. },
  124. });
  125. },
  126. (err) => {
  127. state.isclick = true
  128. console.log("err")
  129. }
  130. );
  131. });
  132. },
  133. fail: err => {
  134. console.log('my.getAuthCode 调用失败', err)
  135. state.isclick = true
  136. }
  137. });
  138. // #endif
  139. // #ifdef MP-WEIXIN
  140. const options = {
  141. type: 2,
  142. data: {
  143. 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. if (state.cardType == '1') {
  474. if (state.qtSign == '0') {
  475. if (state.qdSignAppId) {
  476. // 去外边签约
  477. uni.navigateToMiniProgram({
  478. appId: state.qdSignAppId,
  479. path: state.qdSignUrl,
  480. extraData: {},
  481. envVersion: 'trial',
  482. success(res) {
  483. state.payOK = true
  484. console.log(res);
  485. },
  486. complete(res) {
  487. console.log(res);
  488. },
  489. fail(res) {
  490. console.log(res);
  491. // 未成功跳转到车主小程序
  492. },
  493. });
  494. } else {
  495. const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
  496. tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
  497. }
  498. } else {
  499. // 签约
  500. uni.redirectTo({
  501. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  502. });
  503. }
  504. } else {
  505. gotoActiveOrder(getItem('orderQueryActivate'))
  506. }
  507. } else {
  508. if (state.isValueCard == 1) {
  509. // 不签约
  510. uni.switchTab({
  511. url: "/pages/order/order"
  512. })
  513. } else {
  514. uni.redirectTo({
  515. url: `/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`
  516. });
  517. }
  518. }
  519. }
  520. const state = reactive({
  521. isValueCard: 1, //卡的类型
  522. radiolist1: [], //选择卡的数据列表
  523. choiceCardShow: false, //选择卡的弹出框
  524. isSign: '',
  525. id: "",
  526. orderId: "",
  527. userType: 1, //1 个人 2单位
  528. type: 0, //0 客车 1货车
  529. vehiclePlateColor: "",
  530. data: {
  531. show: false,
  532. src: imgURL + "applyCard/edit.png",
  533. },
  534. dataArray: [],
  535. list: [
  536. {
  537. bg: imgURL + "applyCard/product-bg.png",
  538. icon: imgURL + "applyCard/wechat.png",
  539. title: "【货车】微信车主服务",
  540. tip: "绑定微信支付,无需绑定银行卡",
  541. },
  542. ],
  543. openid: "",
  544. isclick: true,//防止重复点击
  545. vehicleId: "",
  546. orderQuery: "0",
  547. openidData: {},
  548. qdSignUrl: "",
  549. qdSignAppId: "",
  550. qtSign: "",
  551. payOK: false,
  552. cardType: "",
  553. });
  554. </script>
  555. <style lang="scss" scoped>
  556. ::v-deep .u-radio {
  557. display: flex !important;
  558. align-items: center !important;
  559. float: none !important;
  560. }
  561. ::v-deep .u-icon__icon {
  562. top: -4px !important;
  563. }
  564. .bottomTip {
  565. margin-top: 100rpx;
  566. text-align: center;
  567. font-size: 28rpx;
  568. font-family: Microsoft YaHei;
  569. font-weight: 400;
  570. color: #b3b3b3;
  571. }
  572. .content-value {
  573. position: absolute;
  574. top: 370rpx;
  575. width: 100%;
  576. min-height: calc(100% - 370rpx);
  577. box-sizing: border-box;
  578. padding: 0 30rpx 210rpx;
  579. .t-card {
  580. background-color: #fff;
  581. padding: 40rpx 30rpx;
  582. border-radius: 12rpx;
  583. }
  584. .img-pos {
  585. position: absolute;
  586. left: 500rpx;
  587. top: -38rpx;
  588. right: 50rpx;
  589. .img-flex {
  590. display: flex;
  591. justify-content: space-between;
  592. align-items: center;
  593. .car-img {
  594. width: 86rpx;
  595. height: 42rpx;
  596. }
  597. .flag-img {
  598. width: 30rpx;
  599. height: 35rpx;
  600. }
  601. }
  602. }
  603. }
  604. .flex {
  605. display: flex;
  606. align-items: center;
  607. }
  608. .action {
  609. margin-top: 30rpx;
  610. padding-left: 20rpx;
  611. padding-right: 20rpx;
  612. padding-bottom: 30rpx;
  613. .button {
  614. height: 80rpx;
  615. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  616. border-radius: 40rpx;
  617. font-size: 32rpx;
  618. font-weight: 400;
  619. color: #ffffff;
  620. line-height: 80rpx;
  621. }
  622. }
  623. .action-btn {
  624. margin-left: 45rpx;
  625. width: 121rpx;
  626. height: 61rpx;
  627. border: 1px solid rgba(255, 255, 255, 1);
  628. border-radius: 30rpx;
  629. background: rgba(255, 255, 255, 0.2);
  630. text-align: center;
  631. font-size: 30rpx;
  632. font-family: Microsoft YaHei;
  633. font-weight: 400;
  634. color: #ffffff;
  635. line-height: 61rpx;
  636. }
  637. .tag1 {
  638. padding: 5rpx;
  639. background: rgba(0, 179, 139, 0.5);
  640. border-radius: 6rpx;
  641. font-size: 22rpx;
  642. font-family: Microsoft YaHei;
  643. font-weight: 400;
  644. color: #ffffff;
  645. }
  646. .tag3 {
  647. padding: 5rpx;
  648. background: rgba(139, 112, 228, 0.5);
  649. border-radius: 6rpx;
  650. font-size: 22rpx;
  651. font-family: Microsoft YaHei;
  652. font-weight: 400;
  653. color: #ffffff;
  654. }
  655. .tag2 {
  656. padding: 5rpx;
  657. background: rgba(249, 97, 60, 0.5);
  658. border-radius: 6rpx;
  659. font-size: 22rpx;
  660. font-family: Microsoft YaHei;
  661. font-weight: 400;
  662. color: #ffffff;
  663. }
  664. .ul-item {
  665. display: flex;
  666. align-items: center;
  667. &:nth-child(n+2) {
  668. margin-top: 30rpx;
  669. }
  670. .item-value {
  671. padding: 20rpx;
  672. position: absolute;
  673. display: flex;
  674. align-items: center;
  675. width: 81%;
  676. box-sizing: border-box;
  677. height: 146rpx;
  678. .money {
  679. color: #fff;
  680. font-size: 46rpx;
  681. font-family: SourceHanSansCN, SourceHanSansCN;
  682. font-weight: 400;
  683. flex: 1;
  684. .unit {
  685. font-size: 29rpx;
  686. margin-right: 2rpx;
  687. }
  688. }
  689. .content {
  690. margin-left: 60rpx;
  691. flex: 2;
  692. .title {
  693. font-weight: 400;
  694. font-family: SourceHanSansCN, SourceHanSansCN;
  695. font-size: 36rpx;
  696. color: #2C3246;
  697. }
  698. }
  699. .r-btn {
  700. width: 139rpx;
  701. height: 65rpx;
  702. background: radial-gradient(at 0% 0%, #C6B077 0%, #DFCC96 100%);
  703. border-radius: 33rpx;
  704. font-family: SourceHanSansCN, SourceHanSansCN;
  705. font-weight: 400;
  706. font-size: 26rpx;
  707. color: #FFFFFF;
  708. line-height: 65rpx;
  709. text-align: center;
  710. flex: 1;
  711. }
  712. }
  713. .icon-tip {
  714. width: 100rpx;
  715. height: 100rpx;
  716. }
  717. }
  718. ::v-deep .u-mode-center-box {
  719. border-radius: 10rpx;
  720. }
  721. .squire {
  722. padding: 30rpx 30rpx 50rpx 50rpx;
  723. }
  724. .mask-close {
  725. text-align: right;
  726. }
  727. .icon-closed {
  728. width: 48rpx;
  729. height: 48rpx;
  730. }
  731. .mask-title {
  732. text-align: center;
  733. font-size: 32rpx;
  734. color: $uni-text-color-black;
  735. margin-bottom: 50rpx;
  736. }
  737. </style>