storeOrderDetail.vue 22 KB

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