storeOrderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. <template>
  2. <view>
  3. <view class="top-cont">
  4. <!-- 背景图片 -->
  5. <image class="bg" src="https://kntobs.jnmyunl.com/shop/images/order_top_bg.png" mode=""></image>
  6. <view class="top-inner">
  7. <!-- 这里是状态栏 -->
  8. <view class="fixed-top-box">
  9. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  10. <view class="back-box" @click="back">
  11. <image src="https://kntobs.jnmyunl.com/shop/images/back_white.png" mode=""></image>
  12. <text class="title">订单详情</text>
  13. <text></text>
  14. </view>
  15. </view>
  16. <!-- 顶部固定后站位元素 -->
  17. <view style="padding-bottom: 88upx;">
  18. <view :style="{height: statusBarHeight}"></view>
  19. </view>
  20. <!-- 订单状态 -->
  21. <view class="order-status">
  22. <!-- 待付款 -->
  23. <view v-if="order.status == 0" class="inner">
  24. <view class="img-box">
  25. <image src="https://kntobs.jnmyunl.com/shop/images/pag96.png" mode=""></image>
  26. </view>
  27. <view class="status-box">
  28. <text class="status">待付款</text>
  29. <!-- <text class="desc">请在{{payLimitTime}}前完成支付</text> -->
  30. </view>
  31. </view>
  32. <!-- 待发货 -->
  33. <view v-if="order.status == 1" class="inner">
  34. <view class="img-box">
  35. <image src="https://kntobs.jnmyunl.com/shop/images/pag96.png" mode=""></image>
  36. </view>
  37. <view class="status-box">
  38. <text class="status">待发货</text>
  39. <text class="desc">等待后台发货</text>
  40. </view>
  41. </view>
  42. <!-- 已发货、待收货 -->
  43. <view v-if="order.status == 2" class="inner">
  44. <view class="img-box">
  45. <image src="https://kntobs.jnmyunl.com/shop/images/receipt.png" mode=""></image>
  46. </view>
  47. <view class="status-box">
  48. <text class="status">待收货</text>
  49. <text class="desc">运输中</text>
  50. </view>
  51. </view>
  52. <!-- 已完成 -->
  53. <view v-if="order.status==3" class="inner">
  54. <view class="img-box">
  55. <image src="https://kntobs.jnmyunl.com/shop/images/finish96.png" mode=""></image>
  56. </view>
  57. <view class="status-box">
  58. <text class="status">已完成</text>
  59. <text class="desc">订单已确认收货,交易完成</text>
  60. </view>
  61. </view>
  62. <!--交易取消 -->
  63. <view v-if="order.status == -3" class="inner">
  64. <view class="img-box">
  65. <image src="https://kntobs.jnmyunl.com/shop/images/close_trade.png" mode=""></image>
  66. </view>
  67. <view class="status-box">
  68. <text class="status">交易关闭</text>
  69. <text class="desc">订单已取消</text>
  70. </view>
  71. </view>
  72. <view v-if="order.status == -1" class="inner">
  73. <view class="img-box">
  74. <image src="https://kntobs.jnmyunl.com/shop/images/close_trade.png" mode=""></image>
  75. </view>
  76. <view class="status-box">
  77. <text class="status">申请售后</text>
  78. <text class="desc">请等待客服审核</text>
  79. </view>
  80. </view>
  81. <!-- <view v-if="order.status == -1" class="inner">
  82. <view class="img-box">
  83. <image src="https://kntobs.jnmyunl.com/shop/images/close_trade.png" mode=""></image>
  84. </view>
  85. <view class="status-box">
  86. <text class="status">售后中</text>
  87. <text class="desc">请等待客服审核</text>
  88. </view>
  89. </view> -->
  90. <view v-if="order.status == -2" class="inner">
  91. <view class="img-box">
  92. <image src="https://kntobs.jnmyunl.com/shop/images/close_trade.png" mode=""></image>
  93. </view>
  94. <view class="status-box">
  95. <text class="status">退款成功</text>
  96. <text class="desc">已成功退款</text>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 下单人信息 -->
  101. <view class="order-placer">
  102. <view class="inner">
  103. <image class="location" src="https://kntobs.jnmyunl.com/shop/images/location.png" mode=""></image>
  104. <view class="info">
  105. <view class="name-phone">
  106. <text class="text">{{order.userName}}</text>
  107. <text class="text"
  108. v-if="order.userPhone!=null">{{utils.parsePhone(order.userPhone)}}</text>
  109. </view>
  110. <view class="address ellipsis2">
  111. {{order.userAddress}}
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="content">
  117. <!-- 产品列表 -->
  118. <view class="goods-list">
  119. <view class="item" @click="openDetails(product)">
  120. <view class="img-box">
  121. <image :src="product.image" mode="aspectFill"></image>
  122. </view>
  123. <view class="info-box">
  124. <view>
  125. <view class="name-box ellipsis2">
  126. <!-- <view class="tag">处方药</view> -->
  127. {{product.productName}}
  128. </view>
  129. <view class="spec ellipsis2">已售{{product.sales}}</view>
  130. </view>
  131. <view class="price-num">
  132. <view class="price">
  133. <text class="unit">¥</text>
  134. <text class="num">{{product.price.toFixed(2)}}</text>
  135. </view>
  136. <!-- <view class="num">x{{item.num}}</view> -->
  137. </view>
  138. </view>
  139. </view>
  140. <!-- <view class="item">
  141. <view class="img-box">
  142. <image :src="JSON.parse(order.packageJson).imgUrl" mode="aspectFill"></image>
  143. </view>
  144. <view class="info-box">
  145. <view>
  146. <view class="name-box ellipsis2">
  147. <view class="tag">套餐</view>{{JSON.parse(order.packageJson).title}}
  148. </view>
  149. <view class="spec ellipsis2">{{JSON.parse(order.packageJson).descs}}</view>
  150. </view>
  151. </view>
  152. </view> -->
  153. <!-- 已优惠、小计 -->
  154. <view class="sub-total">
  155. <view class="discount">
  156. 商品金额:¥{{order.totalPrice}}
  157. </view>
  158. </view>
  159. </view>
  160. <!-- 订单信息 -->
  161. <view class="order-info">
  162. <view class="title">订单信息</view>
  163. <view class="item">
  164. <text class="label">订单编号</text>
  165. <view class="sn-box">
  166. <text class="text">{{order.orderCode}}</text>
  167. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  168. </view>
  169. </view>
  170. <view class="item">
  171. <text class="label">下单时间</text>
  172. <text class="text">{{formattedCreateTime}}</text>
  173. </view>
  174. <view class="item">
  175. <text class="label">支付方式</text>
  176. <text class="text" v-if="order.payType==1">微信支付</text>
  177. <!-- <text class="text" v-if="order.payType==2">物流代收</text> -->
  178. </view>
  179. <view class="item">
  180. <text class="label">商品金额</text>
  181. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  182. </view>
  183. <view class="item">
  184. <text class="label">运费</text>
  185. <text class="text" v-if="order.payDelivery!=null">¥{{order.payDelivery.toFixed(2)}}</text>
  186. </view>
  187. <!-- <view class="item">
  188. <text class="label">服务费</text>
  189. <text class="text" v-if="order.serviceFee!=null">¥{{order.serviceFee.toFixed(2)}}</text>
  190. </view> -->
  191. <view class="item">
  192. <text class="label">优惠金额</text>
  193. <text class="text" v-if="order.discountMoney!=null">-¥{{order.discountMoney.toFixed(2)}}</text>
  194. </view>
  195. <view class="item">
  196. <text class="label">应付金额</text>
  197. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  198. </view>
  199. <view class="item">
  200. <text class="label">支付金额</text>
  201. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  202. </view>
  203. <!-- <view class="item">
  204. <text class="label">代收金额</text>
  205. <text class="text" v-if="order.payDelivery!=null">¥{{order.payDelivery.toFixed(2)}}</text>
  206. </view> -->
  207. <view class="item" v-if="order.payTime!=null">
  208. <text class="label">支付时间</text>
  209. <text class="text" v-if="order.payTime!=null">{{order.payTime}}</text>
  210. </view>
  211. </view>
  212. <!-- 处方信息 -->
  213. <!-- <view class="order-info" v-if="order.isPrescribe&&prescribe!=null">
  214. <view class="title">处方信息</view>
  215. <view class="item">
  216. <text class="label">处方单号</text>
  217. <text class="text">{{prescribe.rpId}}</text>
  218. </view>
  219. <view class="item" v-if="prescribe.doctorName!=null">
  220. <text class="label">开方医生</text>
  221. <text class="text">{{prescribe.doctorName}}</text>
  222. </view>
  223. <view class="item" v-if="prescribe.rpUrl!=null">
  224. <text class="label">电子处方</text>
  225. <view class="check-box" @click="showImg()">
  226. <text class="text">查看</text>
  227. <image src="https://kntobs.jnmyunl.com/shop/images/arrow4.png" mode=""></image>
  228. </view>
  229. </view>
  230. <view class="item">
  231. <text class="label">审核意见</text>
  232. <text class="text" v-if="prescribe.auditReason!=null">{{prescribe.auditReason}}</text>
  233. </view>
  234. </view> -->
  235. </view>
  236. </view>
  237. </view>
  238. <!-- 按钮 -->
  239. <view class="btn-box">
  240. <view class="btn cancel" v-if="order.status==0" @click="cancel()">取消订单</view>
  241. <view class="btn pay" v-if="order.status==0" @click="pay()">立即付款</view>
  242. <!-- <view class="btn cancel" v-if="(order.status==0||order.status==1)&&order.isPrescribe==1&&prescribe==null" @click="addPrescribe()">开处方</view> -->
  243. <view class="btn cancel"
  244. v-if="order.status !== -1 && order.status !== -3&& order.status !== 0&& order.status !==-2"
  245. @click="refund()">申请售后</view>
  246. <view class="btn pay" v-if="order.status>=1&&order.deliveryId!=null" @click="express()">查看物流</view>
  247. <view class="btn pay" v-if="order.status==1&&order.payType!=1&&order.isPayRemain==0&&order.deliverySn=='SF'"
  248. @click="payRemain()">支付尾款</view>
  249. <view class="btn pay" v-if="order.status==2" @click="finish()">确认收货</view>
  250. </view>
  251. </view>
  252. </template>
  253. <script>
  254. import {
  255. getMyStoreOrderById,
  256. cancelOrder,
  257. finishOrder
  258. } from '@/api/order.js'
  259. export default {
  260. data() {
  261. return {
  262. liveId:null,
  263. product: {},
  264. isAfterSales: 0,
  265. payLimitTime: null,
  266. orderId: null,
  267. order: {},
  268. items: [],
  269. prescribe: null,
  270. orderCode: '',
  271. // 状态栏的高度
  272. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  273. };
  274. },
  275. onLoad(option) {
  276. this.orderId = option.orderId
  277. this.liveId=option.liveId
  278. if (!option.orderCode) {}
  279. },
  280. onShow() {
  281. this.getMyStoreOrderById()
  282. },
  283. computed: {
  284. formattedCreateTime() {
  285. if (!this.order || !this.order.createTime) return '';
  286. // 如果是时间戳格式
  287. if (typeof this.order.createTime === 'number') {
  288. const date = new Date(this.order.createTime);
  289. return this.formatDate(date);
  290. }
  291. // 如果是字符串格式,尝试解析
  292. const date = new Date(this.order.createTime);
  293. if (!isNaN(date.getTime())) {
  294. return this.formatDate(date);
  295. }
  296. // 如果无法解析,返回原值
  297. return this.order.createTime;
  298. },
  299. },
  300. methods: { // 日期格式化方法
  301. formatDate(date) {
  302. const year = date.getFullYear();
  303. const month = String(date.getMonth() + 1).padStart(2, '0');
  304. const day = String(date.getDate()).padStart(2, '0');
  305. const hours = String(date.getHours()).padStart(2, '0');
  306. const minutes = String(date.getMinutes()).padStart(2, '0');
  307. const seconds = String(date.getSeconds()).padStart(2, '0');
  308. return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  309. },
  310. openDetails(item) {
  311. console.log(item.productId)
  312. uni.navigateTo({
  313. url: '/pages_shopping/live/goods?productId=' + item.productId+'&liveId='+this.liveId
  314. })
  315. },
  316. // addPrescribe() {
  317. // uni.navigateTo({
  318. // url: "/pages/shopping/prescribe?orderId=" + this.order.id
  319. // })
  320. // },
  321. showImg() {
  322. var imgArr = [];
  323. imgArr.push(this.prescribe.rpUrl)
  324. //预览图片
  325. uni.previewImage({
  326. urls: imgArr,
  327. current: imgArr[0]
  328. });
  329. },
  330. getMyStoreOrderById() {
  331. // var data={orderId:this.orderId};
  332. getMyStoreOrderById(this.orderId).then(res => {
  333. if (res.code == 200) {
  334. this.order = res.data;
  335. this.product = JSON.parse(res.data.itemJson)
  336. console.log(this.product.image)
  337. // this.order=res.order;
  338. // this.items=res.items;
  339. // this.payLimitTime=res.payLimitTime;
  340. // this.prescribe=res.prescribe;
  341. // this.isAfterSales=res.isAfterSales;
  342. } else {
  343. uni.showToast({
  344. icon: 'none',
  345. title: "请求失败",
  346. });
  347. }
  348. });
  349. },
  350. express() {
  351. uni.navigateTo({
  352. url: './storeOrderDelivery?orderId=' + this.order.orderId
  353. })
  354. },
  355. cancel() {
  356. var that = this;
  357. uni.showModal({
  358. title: '提示',
  359. content: '确定取消订单吗',
  360. success: function(res) {
  361. if (res.confirm) {
  362. var data = {
  363. orderId: that.order.orderId
  364. };
  365. cancelOrder(data).then(res => {
  366. if (res.code == 200) {
  367. that.getMyStoreOrderById()
  368. // uni.$emit('refreshOrder');
  369. } else {
  370. uni.showToast({
  371. icon: 'none',
  372. title: res.msg,
  373. });
  374. }
  375. });
  376. } else if (res.cancel) {}
  377. }
  378. });
  379. },
  380. finish() {
  381. var that = this;
  382. uni.showModal({
  383. title: '提示',
  384. content: '确定已收货吗',
  385. success: function(res) {
  386. if (res.confirm) {
  387. var data = {
  388. orderId: that.order.orderId
  389. };
  390. finishOrder(data).then(res => {
  391. if (res.code == 200) {
  392. that.getMyStoreOrderById()
  393. uni.$emit('refreshOrder');
  394. } else {
  395. uni.showToast({
  396. icon: 'none',
  397. title: res.msg,
  398. });
  399. }
  400. });
  401. } else if (res.cancel) {}
  402. }
  403. });
  404. },
  405. pay() {
  406. uni.navigateTo({
  407. url: `./paymentOrder?orderList=${encodeURIComponent(JSON.stringify(this.order))}`
  408. // url: './paymentOrder?orderId=' + this.order.orderId
  409. })
  410. },
  411. // 返回上一页
  412. back() {
  413. let pages = getCurrentPages();
  414. console.log(pages.length);
  415. if (pages.length > 1) {
  416. uni.navigateBack()
  417. } else {
  418. uni.reLaunch({
  419. url: "/pages/common/launch"
  420. })
  421. }
  422. },
  423. // 复制订单编号
  424. copyOrderSn(text) {
  425. // 复制方法
  426. uni.setClipboardData({
  427. data: text,
  428. success: () => {
  429. uni.showToast({
  430. title: '内容已成功复制到剪切板',
  431. icon: 'none'
  432. })
  433. }
  434. });
  435. },
  436. // 退货
  437. refund() {
  438. uni.navigateTo({
  439. url: './refundOrderProduct?orderId=' + this.orderId
  440. })
  441. }
  442. }
  443. }
  444. </script>
  445. <style lang="scss">
  446. .fixed-top-box {
  447. width: 100%;
  448. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  449. position: fixed;
  450. top: 0;
  451. left: 0;
  452. z-index: 1000;
  453. }
  454. .top-cont {
  455. width: 100%;
  456. height: 476upx;
  457. position: relative;
  458. .bg {
  459. width: 100%;
  460. height: 100%;
  461. position: absolute;
  462. top: 0;
  463. left: 0;
  464. z-index: 1;
  465. }
  466. .top-inner {
  467. width: 100%;
  468. height: 100%;
  469. position: absolute;
  470. top: 0;
  471. left: 0;
  472. z-index: 2;
  473. .back-box {
  474. height: 88upx;
  475. padding-left: 22upx;
  476. display: flex;
  477. align-items: center;
  478. justify-content: space-between;
  479. padding: 0 20upx;
  480. image {
  481. width: 40upx;
  482. height: 40upx;
  483. }
  484. .title {
  485. font-size: 36upx;
  486. font-family: PingFang SC;
  487. font-weight: 500;
  488. color: #FFFFFF;
  489. }
  490. }
  491. .order-status {
  492. margin-top: 60upx;
  493. display: flex;
  494. align-items: center;
  495. justify-content: space-between;
  496. padding: 0 30upx;
  497. .inner {
  498. display: flex;
  499. align-items: center;
  500. .img-box {
  501. width: 96upx;
  502. height: 96upx;
  503. margin-right: 30upx;
  504. image {
  505. width: 100%;
  506. height: 100%;
  507. }
  508. }
  509. .status-box {
  510. height: 96upx;
  511. display: flex;
  512. flex-direction: column;
  513. justify-content: center;
  514. .status {
  515. font-size: 40upx;
  516. font-family: PingFang SC;
  517. font-weight: bold;
  518. color: #FFFFFF;
  519. line-height: 1;
  520. }
  521. .desc {
  522. font-size: 26upx;
  523. font-family: PingFang SC;
  524. font-weight: 500;
  525. color: #FFFFFF;
  526. line-height: 1;
  527. margin-top: 30upx;
  528. }
  529. }
  530. }
  531. }
  532. .order-placer {
  533. margin-top: 50upx;
  534. padding: 0 20upx;
  535. .inner {
  536. box-sizing: border-box;
  537. border-radius: 16upx;
  538. height: 150upx;
  539. padding: 40upx 30upx;
  540. display: flex;
  541. align-items: center;
  542. background: #FFFFFF;
  543. .location {
  544. width: 24upx;
  545. height: 27upx;
  546. margin-right: 18upx;
  547. flex-shrink: 0;
  548. }
  549. .info {
  550. .name-phone {
  551. display: flex;
  552. align-items: center;
  553. .text {
  554. font-size: 28upx;
  555. font-family: PingFang SC;
  556. font-weight: bold;
  557. color: #333333;
  558. line-height: 1;
  559. margin-right: 20upx;
  560. &:last-child {
  561. margin-right: 0;
  562. }
  563. }
  564. }
  565. .address {
  566. font-size: 26upx;
  567. font-family: PingFang SC;
  568. font-weight: 500;
  569. color: #999999;
  570. line-height: 1.3;
  571. margin-top: 10upx;
  572. }
  573. }
  574. }
  575. }
  576. }
  577. }
  578. .content {
  579. margin: 20rpx 0rpx;
  580. padding: 0 20upx 140rpx 20upx;
  581. .goods-list {
  582. padding: 0 30upx;
  583. background-color: #FFFFFF;
  584. border-radius: 16upx;
  585. .item {
  586. padding: 30upx 0;
  587. border-bottom: 1px solid #EDEEEF;
  588. display: flex;
  589. align-items: center;
  590. .img-box {
  591. width: 160upx;
  592. height: 160upx;
  593. margin-right: 30upx;
  594. image {
  595. width: 100%;
  596. height: 100%;
  597. }
  598. }
  599. .info-box {
  600. width: calc(100% - 190upx);
  601. height: 160upx;
  602. display: flex;
  603. flex-direction: column;
  604. justify-content: space-between;
  605. .name-box {
  606. font-size: 28upx;
  607. font-family: PingFang SC;
  608. font-weight: 500;
  609. color: #111111;
  610. line-height: 40upx;
  611. .tag {
  612. display: inline-block;
  613. padding: 0 6upx;
  614. height: 30upx;
  615. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  616. border-radius: 4upx;
  617. margin-right: 10upx;
  618. font-size: 22upx;
  619. font-family: PingFang SC;
  620. font-weight: bold;
  621. color: #FFFFFF;
  622. line-height: 30upx;
  623. float: left;
  624. margin-top: 7upx;
  625. }
  626. }
  627. .spec {
  628. margin-top: 18upx;
  629. font-size: 24upx;
  630. font-family: PingFang SC;
  631. font-weight: 500;
  632. color: #999999;
  633. line-height: 1;
  634. }
  635. .price-num {
  636. display: flex;
  637. align-items: center;
  638. justify-content: space-between;
  639. .price {
  640. display: flex;
  641. align-items: flex-end;
  642. .unit {
  643. font-size: 24upx;
  644. font-family: PingFang SC;
  645. font-weight: 500;
  646. color: #111111;
  647. line-height: 1.2;
  648. margin-right: 4upx;
  649. }
  650. .num {
  651. font-size: 32upx;
  652. font-family: PingFang SC;
  653. font-weight: 500;
  654. color: #111111;
  655. line-height: 1;
  656. }
  657. }
  658. .num {
  659. font-size: 24upx;
  660. font-family: PingFang SC;
  661. font-weight: 500;
  662. color: #999999;
  663. line-height: 1;
  664. }
  665. }
  666. }
  667. }
  668. .sub-total {
  669. height: 88upx;
  670. display: flex;
  671. align-items: center;
  672. justify-content: flex-end;
  673. .discount {
  674. font-size: 24upx;
  675. font-family: PingFang SC;
  676. font-weight: 500;
  677. color: #999999;
  678. line-height: 1;
  679. margin-right: 30upx;
  680. }
  681. .label {
  682. font-size: 24upx;
  683. font-family: PingFang SC;
  684. font-weight: 500;
  685. color: #999999;
  686. }
  687. .price {
  688. display: flex;
  689. align-items: flex-end;
  690. .unit {
  691. font-size: 24upx;
  692. font-family: PingFang SC;
  693. font-weight: 500;
  694. color: #FF6633;
  695. line-height: 1.2;
  696. margin-right: 4upx;
  697. }
  698. .num {
  699. font-size: 32upx;
  700. font-family: PingFang SC;
  701. font-weight: bold;
  702. color: #FF6633;
  703. line-height: 1;
  704. }
  705. }
  706. }
  707. }
  708. .order-info {
  709. margin-top: 20upx;
  710. background: #FFFFFF;
  711. border-radius: 16upx;
  712. padding: 40upx 30upx;
  713. .title {
  714. font-size: 30upx;
  715. font-family: PingFang SC;
  716. font-weight: bold;
  717. color: #222222;
  718. line-height: 1;
  719. }
  720. .item {
  721. margin-top: 40upx;
  722. display: flex;
  723. align-items: center;
  724. justify-content: space-between;
  725. .label {
  726. font-size: 26upx;
  727. font-family: PingFang SC;
  728. font-weight: 500;
  729. color: #666666;
  730. line-height: 1;
  731. }
  732. .text {
  733. font-size: 26upx;
  734. font-family: PingFang SC;
  735. font-weight: 500;
  736. color: #222222;
  737. line-height: 32upx;
  738. }
  739. .cont-text {
  740. font-size: 26upx;
  741. font-family: PingFang SC;
  742. font-weight: 500;
  743. color: #666666;
  744. .bold {
  745. color: #111111;
  746. }
  747. }
  748. .sn-box {
  749. display: flex;
  750. align-items: center;
  751. .copy-btn {
  752. width: 58upx;
  753. height: 32upx;
  754. line-height: 32upx;
  755. text-align: center;
  756. font-size: 22upx;
  757. font-family: PingFang SC;
  758. font-weight: 500;
  759. color: #222222;
  760. background: #F5F5F5;
  761. border-radius: 4upx;
  762. margin-left: 24upx;
  763. }
  764. }
  765. .check-box {
  766. display: flex;
  767. align-items: center;
  768. image {
  769. width: 14upx;
  770. height: 24upx;
  771. margin-left: 10upx;
  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. z-index: 999;
  785. bottom: 0;
  786. width: 100%;
  787. position: fixed;
  788. height: 120upx;
  789. box-sizing: border-box;
  790. background: #FFFFFF;
  791. padding: 0 30upx;
  792. display: flex;
  793. align-items: center;
  794. justify-content: flex-end;
  795. .btn {
  796. width: 155upx;
  797. height: 64upx;
  798. line-height: 64upx;
  799. font-size: 26upx;
  800. font-family: PingFang SC;
  801. font-weight: 500;
  802. text-align: center;
  803. border-radius: 32upx;
  804. margin-left: 15upx;
  805. &.cancel {
  806. border: 1px solid #DDDDDD;
  807. color: #666666;
  808. }
  809. &.pay {
  810. background: #2BC7B9;
  811. color: #FFFFFF;
  812. }
  813. }
  814. }
  815. </style>