paymentOrder.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <template>
  2. <view class="content">
  3. <view class="inner">
  4. <!-- 时间、价格 -->
  5. <view class="time-price">
  6. <!-- <text class="time">请在{{payLimitTime}}前完成支付</text> -->
  7. <text class="time">待支付</text>
  8. <view class="price-box">
  9. <text class="unit">¥</text>
  10. <text class="num">{{order ? (Number(order.totalPrice) || 0).toFixed(2) : "0.00"}}</text>
  11. </view>
  12. <!-- <text class="desc" v-if="payType==2">代收金额{{payDelivery.toFixed(2)}},请您在收到快递后支付尾款给快递人员。</text>
  13. <text class="desc" v-if="payType==3">货到付款金额{{payDelivery.toFixed(2)}},请您在收到快递后支付给快递人员。</text> -->
  14. </view>
  15. <!-- 支付方式 -->
  16. <view class="pay-type">
  17. <view class="title">支付方式</view>
  18. <!-- 改价订单只能选择微信支付和物流代收 -->
  19. <!-- <radio-group @change="payTypeChange" v-if="order.isEditMoney!=null&&order.isEditMoney==1">
  20. <view class="item" >
  21. <view class="left" >
  22. <image src="/static/images/wecha_pay.png" mode=""></image>
  23. <text class="text">微信支付</text>
  24. </view>
  25. <label>
  26. <radio :value="1" :checked="order.payType=='1'" />
  27. </label>
  28. </view>
  29. <view class="item" >
  30. <view class="left">
  31. <image src="/static/images/pay_de.png" mode=""></image>
  32. <text class="text">物流代收</text>
  33. </view>
  34. <label>
  35. <radio :value="2" :checked="order.payType=='2'" />
  36. </label>
  37. </view>
  38. </radio-group> -->
  39. <!-- <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==3">
  40. <view class="item" >
  41. <view class="left" >
  42. <image src="/static/images/wecha_pay.png" mode=""></image>
  43. <text class="text">微信支付</text>
  44. </view>
  45. <label>
  46. <radio :value="1" :checked="order.payType=='1'" />
  47. </label>
  48. </view>
  49. <view class="item" >
  50. <view class="left">
  51. <image src="/static/images/pay_de.png" mode=""></image>
  52. <text class="text">物流代收</text>
  53. </view>
  54. <label>
  55. <radio :value="2" :checked="order.payType=='2'" />
  56. </label>
  57. </view>
  58. <view class="item" v-if="user!=null&&user.level==1 ">
  59. <view class="left">
  60. <image src="/static/images/pay_1.png" mode=""></image>
  61. <text class="text">货到付款</text>
  62. </view>
  63. <label>
  64. <radio :value="3" :checked="order.payType=='3'" />
  65. </label>
  66. </view>
  67. </radio-group>
  68. <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==2">
  69. <view class="item" v-if="payType==1||payType==4" >
  70. <view class="left" >
  71. <image src="/static/images/wecha_pay.png" mode=""></image>
  72. <text class="text">微信支付</text>
  73. </view>
  74. <label>
  75. <radio :value="1" :checked="order.payType=='1'" />
  76. </label>
  77. </view>
  78. <view class="item" v-if="payType==2||payType==4">
  79. <view class="left" >
  80. <image src="/static/images/pay_de.png" mode=""></image>
  81. <text class="text">物流代收</text>
  82. </view>
  83. <label>
  84. <radio :value="2" :checked="order.payType=='2'" />
  85. </label>
  86. </view>
  87. <view class="item" v-if="user!=null&&user.level==1 ">
  88. <view class="left">
  89. <image src="/static/images/pay_1.png" mode=""></image>
  90. <text class="text">货到付款</text>
  91. </view>
  92. <label>
  93. <radio :value="3" :checked="order.payType=='3'" />
  94. </label>
  95. </view>
  96. </radio-group> -->
  97. <!-- <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&&(order.orderCreateType==1)">
  98. <view class="item" >
  99. <view class="left" >
  100. <image src="/static/images/wecha_pay.png" mode=""></image>
  101. <text class="text">微信支付</text>
  102. </view>
  103. <label>
  104. <radio :value="1" checked />
  105. </label>
  106. </view>
  107. </radio-group> -->
  108. <radio-group @change="handlePayTypeChange">
  109. <view class="item">
  110. <view class="left">
  111. <image src="/static/images/wecha_pay.png" mode=""></image>
  112. <text class="text">微信支付</text>
  113. </view>
  114. <label>
  115. <radio :value="1" :checked="payType === 1" />
  116. </label>
  117. </view>
  118. <!-- #ifdef APP-PLUS||H5 -->
  119. <view class="item">
  120. <view class="left">
  121. <image src="/static/images/zfb.png" mode=""></image>
  122. <text class="text">支付宝</text>
  123. </view>
  124. <label>
  125. <radio :value="2" :checked="payType === 2" />
  126. </label>
  127. </view>
  128. <!-- #endif -->
  129. </radio-group>
  130. </view>
  131. <!-- 订单详情查看 -->
  132. <view class="order-info">
  133. <view class="title">订单信息</view>
  134. <view class="item">
  135. <text class="label">订单编号</text>
  136. <view class="sn-box">
  137. <view>
  138. <view class="text">{{order?.orderCode}}</view>
  139. </view>
  140. <!-- <view class="copy-btn" @click="copyOrderSn(order?.orderCode)">复制</view> -->
  141. </view>
  142. </view>
  143. <view class="item">
  144. <text class="label">下单时间</text>
  145. <text class="text">{{ formattedDate}} </text>
  146. </view>
  147. <view class="item">
  148. <text class="label">订单金额</text>
  149. <text class="text" v-if="order!=null">{{order ? (Number(order.totalPrice) || 0).toFixed(2) : "0.00"}}</text>
  150. </view>
  151. <!-- <view class="item">
  152. <text class="label">支付方式</text>
  153. <text class="text">微信支付</text>
  154. </view> -->
  155. </view>
  156. </view>
  157. <view class="btn-box">
  158. <view class="btn" @click="payOrder()">去支付</view>
  159. <!-- <view class="other-btn">
  160. 亲友代付
  161. <button class="share" data-name="shareBtn" open-type="share">分享</button>
  162. </view> -->
  163. </view>
  164. </view>
  165. </template>
  166. <script>
  167. import dayjs from 'dayjs';
  168. import {
  169. zfbPayment,
  170. weChatPayment
  171. } from '@/api/pay'
  172. // const isoDate = "2025-08-07T17:08:33.450+0800";
  173. // const formatted = dayjs(isoDate).format('YYYY-MM-DD HH:mm:ss');
  174. // import {getUserInfo} from '@/api/user'
  175. // import {getStoreConfig} from '@/api/common'
  176. // import {editPayType,pay,getStoreOrderById,payByCombinationId,getStoreOrderByCombinationId,editPayTypeByCombinationId} from '@/api/storeOrder'
  177. export default {
  178. data() {
  179. return {
  180. payType: 2,
  181. order: null,
  182. // formattedDate: '',
  183. orderId: null,
  184. payDelivery: 0,
  185. payMoney: 0,
  186. config: null,
  187. payType: 1,
  188. // payLimitTime: null,
  189. user: null,
  190. combinationOrderId: '',
  191. // 需要开处方的订单id
  192. prescribeOrder: ""
  193. }
  194. },
  195. computed:{
  196. formattedDate() {
  197. return this.order?.createTime? dayjs(this.order.createTime).format('YYYY-MM-DD HH:mm:ss'): '';
  198. },
  199. payLimitTime() {
  200. return this.order?.updateTime
  201. ? dayjs(this.order.updateTime).add(2, 'day').format('YYYY-MM-DD HH:mm:ss')
  202. : '';
  203. // return this.order?.updateTime? dayjs(this.order.updateTime).format('YYYY-MM-DD HH:mm:ss'): '';
  204. }
  205. },
  206. onLoad(options) {
  207. console.log("支付订单是>>",options)
  208. // this.orderKey = options.orderKey;
  209. // this.liveId = options.liveId
  210. // this.productId=options.productId
  211. // console.log("支付订单",options)
  212. if (options.orderList) {
  213. try {
  214. const decoded = decodeURIComponent(options.orderList);
  215. this.order = JSON.parse(decoded) || {}; // 默认空对象
  216. } catch (e) {
  217. console.error('参数解析失败:', e);
  218. this.order = {}; // 显式赋默认值
  219. }
  220. }
  221. // console.log("支付订单是>>",options)
  222. // this.combinationOrderId = option.combinationOrderId ? decodeURIComponent(option.combinationOrderId) : ''
  223. // this.orderId=option.orderId ? JSON.parse(option.orderId) : '';
  224. // if(this.combinationOrderId) {
  225. // this.getStoreOrderByCombinationId()
  226. // } else {
  227. // this.getStoreOrderById();
  228. // }
  229. // this.getStoreConfig();
  230. // this.getUserInfo();
  231. // uni.showShareMenu({
  232. // withShareTicket:true,
  233. // //小程序的原生菜单中显示分享按钮,才能够让发送给朋友与分享到朋友圈两个按钮可以点击
  234. // menus:["shareAppMessage"] //不设置默认发送给朋友
  235. // })
  236. },
  237. //发送给朋友
  238. onShareAppMessage(res) {
  239. const combinationOrderId = this.combinationOrderId ?
  240. `&combinationOrderId=${encodeURIComponent(this.combinationOrderId)}` : ''
  241. return {
  242. title: "帮TA支付",
  243. path: '/pages_user/user/otherPaymentOrder?orderId=' + this.orderId + combinationOrderId,
  244. imageUrl: '/static/images/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  245. }
  246. },
  247. methods: {
  248. payOrder() {
  249. if (this.payType == 1) {
  250. this.doWechatPay()
  251. } else if(this.payType == 2) {
  252. this.doAlipay()
  253. }else{
  254. uni.showToast({
  255. title: "暂时无可用支付",
  256. icon: 'none'
  257. })
  258. }
  259. },
  260. // 选微信支付或者支付宝支付
  261. handlePayTypeChange(e) {
  262. this.payType = e.detail.value; // 获取选中的 value
  263. console.log('当前选中:', this.payType);
  264. // 根据值执行不同逻辑
  265. // if (this.payType === 1) {
  266. // this.doWechatPay();
  267. // } else if (this.payType === 2) {
  268. // this.doAlipay();
  269. // }
  270. },
  271. async doWechatPay() {
  272. try {
  273. uni.showLoading({ title: '发起支付中...', mask: true });
  274. let data={
  275. orderId:this.order.orderId
  276. }
  277. // await weChatPayment(this.order.orderId, Number(this.order.totalPrice));
  278. await weChatPayment(data);
  279. uni.redirectTo({ url: '/pages_shop/success' });
  280. } catch (err) {
  281. console.error('支付流程异常:', err);
  282. } finally {
  283. uni.hideLoading();
  284. }
  285. },
  286. // doWechatPay(){
  287. // weChatPayment(data).then(res => {
  288. // if (res.code == 200) {
  289. // }
  290. // })
  291. // },
  292. // 支付宝支付
  293. doAlipay() {
  294. var data = {
  295. orderId: this.order.orderId
  296. };
  297. console.log("orderId>>", this.order.orderId)
  298. let that = this;
  299. // #ifdef H5||APP-PLUS
  300. // #ifdef APP-PLUS
  301. const tzCashier = uni.requireNativePlugin("TZBank-Cashier");
  302. // #endif
  303. uni.showLoading();
  304. zfbPayment(data).then(res => {
  305. console.log("支付开始",res)
  306. uni.hideLoading();
  307. if (res.code == 200) {
  308. console.log("支付在这里", res)
  309. if (res.type == "tz") {
  310. //console.log("qxj orderFlowNo:"+res.data.body.orderFlowNo+" businessCstNo:"+res.data.body.orderNo+" platMerCstNo:"+res.data.body.platMerCstNo);
  311. const match = res.data.body.url.match(/[\?&]businessCstNo=([^&]+)/);
  312. const businessCstNo = match ? match[1] : null;
  313. console.log("qxj tzCashier:" + tzCashier + " businessCstNo:" + businessCstNo);
  314. tzCashier.pay({
  315. env: 0,
  316. wxMiniProgramType: 0,
  317. // wxAppId: 'wx703c4bd07bbd1695',
  318. wxAppId: 'wx9ea36eecd281bcd3',
  319. wxUniversalLink: "https://yjf.runtzh.com/",
  320. orderFlowNo: res.data.body.orderFlowNo,
  321. businessCstNo: businessCstNo,
  322. platMerCstNo: res.data.body.platMerCstNo
  323. }, (res) => {
  324. // uni.showToast({
  325. // title:'收银台回调:'+JSON.stringify(res),
  326. // icon:'none'
  327. // })
  328. uni.$emit('closePrivilege', {});
  329. that.showPayTips = true;
  330. });
  331. } else if (res.type == 'hf') {
  332. if (uni.getWindowInfo().platform == 'android') {
  333. var alipayScheme = 'alipays://platformapi/startApp?&saId=10000007&qrcode=' + res
  334. .data.qr_code;
  335. } else {
  336. var alipayScheme = 'alipay://platformapi/startApp?&saId=10000007&qrcode=' + res
  337. .data.qr_code;
  338. }
  339. // 在uni-app中使用plus.runtime.openURL打开URL
  340. plus.runtime.openURL(alipayScheme, function(error) {
  341. });
  342. uni.$emit('closePrivilege', {});
  343. that.showPayTips = true;
  344. }
  345. } else {
  346. uni.showToast({
  347. title: res.msg,
  348. icon: 'none'
  349. })
  350. }
  351. },
  352. rej => {}
  353. );
  354. // #endif
  355. },
  356. getUserInfo() {
  357. getUserInfo().then(
  358. res => {
  359. if (res.code == 200) {
  360. if (res.user != null) {
  361. this.user = res.user;
  362. }
  363. } else {
  364. uni.showToast({
  365. icon: 'none',
  366. title: "请求失败",
  367. });
  368. }
  369. },
  370. rej => {}
  371. );
  372. },
  373. getStoreConfig() {
  374. getStoreConfig().then(
  375. res => {
  376. if (res.code == 200) {
  377. this.config = res.data
  378. console.log(this.config);
  379. }
  380. },
  381. rej => {}
  382. );
  383. },
  384. payTypeChange(e) {
  385. if (this.combinationOrderId) {
  386. this.editPayTypeByCombinationId(e.detail.value)
  387. } else {
  388. this.editPayType(e.detail.value)
  389. }
  390. },
  391. // copyOrderSn(text) {
  392. // console.log(text)
  393. // // 复制方法
  394. // uni.setClipboardData({
  395. // data: text,
  396. // success: () => {
  397. // uni.showToast({
  398. // title: '内容已成功复制到剪切板',
  399. // icon: 'none'
  400. // })
  401. // }
  402. // });
  403. // },
  404. // getStoreOrderById(){
  405. // var data = {orderId:this.orderId};
  406. // var that=this;
  407. // uni.showLoading();
  408. // getStoreOrderById(data).then(
  409. // res => {
  410. // if(res.code==200){
  411. // console.log(res);
  412. // uni.hideLoading();
  413. // that.order=res.order;
  414. // that.order.orderCodes = that.order.orderCode ? [that.order.orderCode]:[]
  415. // that.orderCode = that.order.orderCode
  416. // that.payLimitTime=res.payLimitTime;
  417. // //套餐订单处理
  418. // if(res.productPackage!=null){
  419. // this.payType=res.productPackage.payType;
  420. // console.log(this.payType)
  421. // if(this.order.payType==4){
  422. // this.order.payType=1;
  423. // }
  424. // }
  425. // this.editPayType(this.order.payType)
  426. // }else{
  427. // uni.showToast({
  428. // icon:'none',
  429. // title: res.msg,
  430. // });
  431. // }
  432. // },
  433. // rej => {}
  434. // );
  435. // },
  436. editPayType(payType) {
  437. var data = {
  438. orderId: this.orderId,
  439. payType: payType
  440. };
  441. var that = this;
  442. uni.showLoading();
  443. editPayType(data).then(
  444. res => {
  445. if (res.code == 200) {
  446. console.log(res);
  447. uni.hideLoading();
  448. that.order = res.order;
  449. that.order.orderCodes = that.order.orderCode ? [that.order.orderCode] : []
  450. that.orderCode = that.order.orderCode
  451. // this.payType=this.order.payType
  452. this.payMoney = this.order.payMoney;
  453. this.payDelivery = this.order.payDelivery;
  454. } else {
  455. uni.showToast({
  456. icon: 'none',
  457. title: res.msg,
  458. });
  459. }
  460. },
  461. rej => {}
  462. );
  463. },
  464. // getStoreOrderByCombinationId() {
  465. // var data = {combinationId:this.combinationOrderId};
  466. // var that=this;
  467. // uni.showLoading();
  468. // getStoreOrderByCombinationId(data).then(
  469. // res => {
  470. // if(res.code==200){
  471. // console.log(res);
  472. // uni.hideLoading();
  473. // that.order=res.order;
  474. // that.orderCode = res.order.orderCodes ? res.order.orderCodes.join(',') : "";
  475. // that.payLimitTime=res.payLimitTime;
  476. // //套餐订单处理
  477. // if(res.productPackage!=null){
  478. // this.payType=res.productPackage.payType;
  479. // console.log(this.payType)
  480. // if(this.order.payType==4){
  481. // this.order.payType=1;
  482. // }
  483. // }
  484. // that.prescribeOrder = res.prescribeOrder;
  485. // this.editPayTypeByCombinationId(this.order.payType)
  486. // }else{
  487. // uni.showToast({
  488. // icon:'none',
  489. // title: res.msg,
  490. // });
  491. // }
  492. // },
  493. // rej => {}
  494. // );
  495. // },
  496. // editPayTypeByCombinationId(payType){
  497. // var data = {combinationOrderId:this.combinationOrderId,payType:payType};
  498. // var that=this;
  499. // uni.showLoading();
  500. // editPayTypeByCombinationId(data).then(
  501. // res => {
  502. // if(res.code==200){
  503. // console.log(res);
  504. // uni.hideLoading();
  505. // that.order=res.order;
  506. // that.orderCode = res.order.orderCodes ? res.order.orderCodes.join(',') : "";
  507. // //this.payType=this.order.payType
  508. // this.payMoney=this.order.payMoney;
  509. // this.payDelivery=this.order.payDelivery;
  510. // that.prescribeOrder = res.prescribeOrder;
  511. // }else{
  512. // uni.showToast({
  513. // icon:'none',
  514. // title: res.msg,
  515. // });
  516. // }
  517. // },
  518. // rej => {}
  519. // );
  520. // },
  521. otherPayOrder() {
  522. // uni.navigateTo({
  523. // url: '/pages_user/user/otherPaymentOrder?orderId='+this.orderId
  524. // })
  525. uni.navigateTo({
  526. url: '/pages_user/user/otherPaymentOrder?combinationOrderId=' + encodeURIComponent(this
  527. .combinationOrderId)
  528. })
  529. },
  530. // payOrder() {
  531. // if (this.combinationOrderId) {
  532. // let data = {
  533. // combinationOrderId: this.combinationOrderId,
  534. // payType: this.order.payType
  535. // };
  536. // let that = this;
  537. // uni.showLoading();
  538. // payByCombinationId(data).then(
  539. // res => {
  540. // if (res.code == 200) {
  541. // this.payfun(res)
  542. // } else {
  543. // uni.showToast({
  544. // icon: 'none',
  545. // title: res.msg,
  546. // });
  547. // }
  548. // },
  549. // rej => {}
  550. // );
  551. // } else {
  552. // let data = {
  553. // orderId: this.order.id,
  554. // payType: this.order.payType
  555. // };
  556. // let that = this;
  557. // uni.showLoading();
  558. // pay(data).then(
  559. // res => {
  560. // if (res.code == 200) {
  561. // this.payfun(res)
  562. // } else {
  563. // uni.showToast({
  564. // icon: 'none',
  565. // title: res.msg,
  566. // });
  567. // }
  568. // },
  569. // rej => {}
  570. // );
  571. // }
  572. // },
  573. payfun(res) {
  574. const that = this
  575. console.log(res.result);
  576. if (res.payType == 1 || res.payType == 2) {
  577. uni.requestPayment({
  578. provider: 'wxpay',
  579. timeStamp: res.result.timeStamp,
  580. nonceStr: res.result.nonceStr,
  581. // package: res.result.packageValue,
  582. package: res.result.packageStr,
  583. signType: res.result.signType,
  584. paySign: res.result.paySign,
  585. success: function(res) {
  586. uni.hideLoading();
  587. uni.redirectTo({
  588. url: "success?order=" + JSON.stringify(that.order)
  589. })
  590. },
  591. fail: function(err) {
  592. uni.showToast({
  593. icon: 'none',
  594. title: 'fail:' + JSON.stringify(err),
  595. });
  596. console.log('fail:' + JSON.stringify(err));
  597. uni.hideLoading();
  598. }
  599. });
  600. } else if (res.payType == 3) {
  601. uni.hideLoading();
  602. if (that.order.isPrescribe) {
  603. //如果是处方订单开处方
  604. // uni.redirectTo({
  605. // url:"prescribe?orderId="+that.order.id
  606. // })
  607. uni.redirectTo({
  608. url: "prescribe?orderId=" + that.prescribeOrder + "&combinationOrderId=" +
  609. encodeURIComponent(that.order.combinationOrderId)
  610. })
  611. } else {
  612. //如果是普通订单
  613. uni.redirectTo({
  614. url: "success?order=" + JSON.stringify(that.order)
  615. })
  616. }
  617. }
  618. }
  619. }
  620. }
  621. </script>
  622. <style lang="scss">
  623. page {
  624. height: 100%;
  625. }
  626. .content {
  627. height: 100%;
  628. display: flex;
  629. flex-direction: column;
  630. justify-content: space-between;
  631. .inner {
  632. padding: 20upx;
  633. .time-price {
  634. box-sizing: border-box;
  635. padding: 50upx 0upx;
  636. background: #FFFFFF;
  637. border-radius: 16upx;
  638. display: flex;
  639. flex-direction: column;
  640. align-items: center;
  641. .time {
  642. font-size: 32upx;
  643. font-family: PingFang SC;
  644. font-weight: 500;
  645. color: #222222;
  646. line-height: 1;
  647. text-align: center;
  648. }
  649. .desc {
  650. margin: 30upx 0upx 15upx;
  651. font-size: 26upx;
  652. font-family: PingFang SC;
  653. color: #999999;
  654. line-height: 1;
  655. text-align: center;
  656. }
  657. .price-box {
  658. display: flex;
  659. align-items: flex-end;
  660. margin-top: 28upx;
  661. .unit {
  662. font-size: 32upx;
  663. font-family: PingFang SC;
  664. font-weight: bold;
  665. color: #FF6633;
  666. line-height: 1.3;
  667. margin-right: 10upx;
  668. }
  669. .num {
  670. font-size: 56upx;
  671. font-family: PingFang SC;
  672. font-weight: bold;
  673. color: #FF6633;
  674. line-height: 1;
  675. }
  676. }
  677. }
  678. .pay-type {
  679. box-sizing: border-box;
  680. background: #FFFFFF;
  681. border-radius: 16upx;
  682. margin-top: 20upx;
  683. padding: 40upx 30upx;
  684. display: flex;
  685. flex-direction: column;
  686. justify-content: space-between;
  687. .title {
  688. font-size: 28upx;
  689. font-family: PingFang SC;
  690. font-weight: 500;
  691. color: #999999;
  692. line-height: 1;
  693. margin-bottom: 10upx;
  694. }
  695. .item {
  696. padding: 15upx 0upx;
  697. display: flex;
  698. align-items: center;
  699. justify-content: space-between;
  700. .left {
  701. display: flex;
  702. align-items: center;
  703. image {
  704. width: 44upx;
  705. height: 44upx;
  706. margin-right: 20upx;
  707. }
  708. .text {
  709. font-size: 30upx;
  710. font-family: PingFang SC;
  711. font-weight: bold;
  712. color: #222222;
  713. line-height: 1;
  714. }
  715. }
  716. }
  717. }
  718. .order-info {
  719. margin-top: 20upx;
  720. background: #FFFFFF;
  721. border-radius: 16upx;
  722. padding: 40upx 30upx;
  723. .title {
  724. font-size: 30upx;
  725. font-family: PingFang SC;
  726. font-weight: bold;
  727. color: #222222;
  728. line-height: 1;
  729. }
  730. .item {
  731. margin-top: 40upx;
  732. display: flex;
  733. align-items: center;
  734. justify-content: space-between;
  735. .label {
  736. font-size: 26upx;
  737. font-family: PingFang SC;
  738. font-weight: 500;
  739. color: #666666;
  740. line-height: 1;
  741. }
  742. .text {
  743. font-size: 26upx;
  744. font-family: PingFang SC;
  745. font-weight: 500;
  746. color: #222222;
  747. line-height: 32upx;
  748. }
  749. .cont-text {
  750. font-size: 26upx;
  751. font-family: PingFang SC;
  752. font-weight: 500;
  753. color: #666666;
  754. .bold {
  755. color: #111111;
  756. }
  757. }
  758. .sn-box {
  759. display: flex;
  760. align-items: center;
  761. .copy-btn {
  762. width: 58upx;
  763. height: 32upx;
  764. line-height: 32upx;
  765. text-align: center;
  766. font-size: 22upx;
  767. font-weight: 500;
  768. color: #222222;
  769. background: #F5F5F5;
  770. border-radius: 4upx;
  771. margin-left: 24upx;
  772. }
  773. }
  774. }
  775. .line {
  776. width: 100%;
  777. height: 1px;
  778. background: #F0F0F0;
  779. margin-top: 30upx;
  780. }
  781. }
  782. }
  783. .btn-box {
  784. height: 242upx;
  785. background: #FFFFFF;
  786. display: flex;
  787. align-items: center;
  788. justify-content: center;
  789. flex-direction: column;
  790. .btn {
  791. width: 91.73%;
  792. height: 88upx;
  793. line-height: 88upx;
  794. font-size: 30upx;
  795. font-family: PingFang SC;
  796. font-weight: bold;
  797. color: #FFFFFF;
  798. text-align: center;
  799. background: #0bb3f2;
  800. border-radius: 44upx;
  801. margin-bottom: 10rpx;
  802. }
  803. .other-btn {
  804. width: 91.73%;
  805. height: 88upx;
  806. line-height: 88upx;
  807. font-size: 30upx;
  808. font-family: PingFang SC;
  809. font-weight: bold;
  810. color: #0bb3f2;
  811. border: 1rpx solid #0bb3f2;
  812. text-align: center;
  813. background: #FFFFFF;
  814. border-radius: 44upx;
  815. margin-bottom: 10rpx;
  816. position: relative;
  817. .share {
  818. display: inline-block;
  819. position: absolute;
  820. top: 0;
  821. left: 0;
  822. width: 100%;
  823. height: 100%;
  824. opacity: 0;
  825. }
  826. }
  827. }
  828. }
  829. </style>