storeOrderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <template>
  2. <view>
  3. <!-- 这里是状态栏 -->
  4. <view class="fixed-top-box">
  5. <image class="bg" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/order_top_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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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: 188upx;">
  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="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/order_top_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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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">{{utils.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.productId)">
  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> -->
  129. {{JSON.parse(item.jsonInfo).productName}}
  130. </view>
  131. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  132. </view>
  133. <view class="price-num">
  134. <view class="price">
  135. <text class="unit">¥</text>
  136. <text class="num">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text>
  137. </view>
  138. <view class="num">x{{JSON.parse(item.jsonInfo).num}}</view>
  139. </view>
  140. </view>
  141. </view>
  142. <view v-if="order.isPackage==1&&order.packageJson!=null" class="item" >
  143. <view class="img-box">
  144. <image :src="JSON.parse(order.packageJson).imgUrl" mode="aspectFill"></image>
  145. </view>
  146. <view class="info-box">
  147. <view>
  148. <view class="name-box ellipsis2">
  149. <view class="tag">套餐</view>{{JSON.parse(order.packageJson).title}}
  150. </view>
  151. <view class="spec ellipsis2">{{JSON.parse(order.packageJson).descs}}</view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 已优惠、小计 -->
  156. <!-- <view class="sub-total">
  157. <view class="discount">
  158. 商品金额:¥{{order.totalPrice}}
  159. </view>
  160. </view> -->
  161. </view>
  162. <!-- 订单信息 -->
  163. <view class="order-info">
  164. <view class="title">订单信息</view>
  165. <view class="item">
  166. <text class="label">订单编号</text>
  167. <view class="sn-box">
  168. <text class="text">{{order.orderCode}}</text>
  169. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  170. </view>
  171. </view>
  172. <view class="item">
  173. <text class="label">下单时间</text>
  174. <text class="text">{{order.createTime}}</text>
  175. </view>
  176. <view class="item">
  177. <text class="label">支付方式</text>
  178. <text class="text" v-if="order.payType==1">微信支付</text>
  179. <!-- <text class="text" v-if="order.payType==2">物流代收</text> -->
  180. </view>
  181. <view class="item">
  182. <text class="label">商品金额</text>
  183. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  184. </view>
  185. <view class="item">
  186. <text class="label">优惠金额</text>
  187. <text class="text" v-if="order.couponPrice!=null">-¥{{order.couponPrice.toFixed(2)}}</text>
  188. </view>
  189. <view class="item">
  190. <text class="label">应付金额</text>
  191. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  192. </view>
  193. <view class="item">
  194. <text class="label">支付金额</text>
  195. <text class="text" v-if="order.payMoney!=null">¥{{order.payMoney.toFixed(2)}}</text>
  196. </view>
  197. <view class="item">
  198. <text class="label">运费</text>
  199. <text class="text" v-if="order.payPostage!=null">¥{{order.payPostage.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://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.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. </view>
  252. </template>
  253. <script>
  254. import {getMyStoreOrderById,cancelOrder,express,finishOrder,orderBindUser} from '@/api/storeOrder'
  255. export default {
  256. data() {
  257. return {
  258. isAfterSales:0,
  259. payLimitTime:null,
  260. orderId:null,
  261. order:{},
  262. items:[],
  263. prescribe:null,
  264. // 状态栏的高度
  265. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  266. query: "",
  267. isBind: false,
  268. loading: true,
  269. isBindMsg: ''
  270. };
  271. },
  272. onLoad(option) {
  273. this.orderId = option.id
  274. this.query = option.q && option.q != undefined ? decodeURIComponent(option.q) : '' // 获取到二维码原始链接内容
  275. },
  276. onShow() {
  277. if(this.query&&!this.isBind) {
  278. const params = this.utils.urlToObj(this.query)
  279. this.orderBindUser(params.orderId)
  280. } else {
  281. this.isBindMsg = ''
  282. this.loading = true
  283. uni.showLoading({
  284. title: '加载中...'
  285. })
  286. this.getMyStoreOrderById()
  287. }
  288. },
  289. methods: {
  290. orderBindUser(orderId) {
  291. this.isBind = false
  292. this.isBindMsg = ''
  293. this.loading = true
  294. uni.showLoading({
  295. title: '加载中...'
  296. })
  297. orderBindUser({orderId: orderId}).then(res => {
  298. if(res.code==200){
  299. this.isBind = true
  300. this.orderId = orderId
  301. this.getMyStoreOrderById()
  302. }else{
  303. this.loading = false
  304. uni.hideLoading()
  305. this.isBind = false
  306. this.isBindMsg = res.msg
  307. uni.showToast({
  308. icon:'none',
  309. title: res.msg,
  310. });
  311. }
  312. }).catch(()=>{
  313. this.loading = false
  314. uni.hideLoading()
  315. });
  316. },
  317. openDetails(item){
  318. console.log(item)
  319. uni.navigateTo({
  320. url: '/pages/shopping/productDetails?productId='+item
  321. })
  322. },
  323. addPrescribe(){
  324. uni.navigateTo({
  325. url:"/pages/shopping/prescribe?orderId="+this.order.id
  326. })
  327. },
  328. showImg(){
  329. var imgArr = [];
  330. imgArr.push(this.prescribe.rpUrl)
  331. //预览图片
  332. uni.previewImage({
  333. urls: imgArr,
  334. current: imgArr[0]
  335. });
  336. },
  337. getMyStoreOrderById(){
  338. var data={orderId:this.orderId};
  339. getMyStoreOrderById(data).then(res => {
  340. this.loading = false
  341. uni.hideLoading()
  342. if(res.code==200){
  343. this.order=res.order;
  344. this.items=res.items;
  345. this.payLimitTime=res.payLimitTime;
  346. this.prescribe=res.prescribe;
  347. this.isAfterSales=res.isAfterSales;
  348. }else{
  349. uni.showToast({
  350. icon:'none',
  351. title: "请求失败",
  352. });
  353. }
  354. }).catch(()=>{
  355. uni.hideLoading()
  356. this.loading = false
  357. });
  358. },
  359. express(){
  360. uni.navigateTo({
  361. url: './storeOrderDelivery?orderId='+this.order.id
  362. })
  363. },
  364. cancel(){
  365. var that=this;
  366. uni.showModal({
  367. title: '提示',
  368. content: '确定取消订单吗',
  369. success: function (res) {
  370. if (res.confirm) {
  371. var data = {
  372. orderId:that.order.id
  373. };
  374. cancelOrder(data).then(res => {
  375. if(res.code==200){
  376. that.getMyStoreOrderById()
  377. uni.$emit('refreshOrder');
  378. }else{
  379. uni.showToast({
  380. icon:'none',
  381. title: res.msg,
  382. });
  383. }
  384. });
  385. }
  386. else if (res.cancel) {
  387. }
  388. }
  389. });
  390. },
  391. finish(){
  392. var that=this;
  393. uni.showModal({
  394. title: '提示',
  395. content: '确定已收货吗',
  396. success: function (res) {
  397. if (res.confirm) {
  398. var data = {
  399. orderId:that.order.id
  400. };
  401. finishOrder(data).then(res => {
  402. if(res.code==200){
  403. that.getMyStoreOrderById()
  404. uni.$emit('refreshOrder');
  405. }else{
  406. uni.showToast({
  407. icon:'none',
  408. title: res.msg,
  409. });
  410. }
  411. });
  412. }
  413. else if (res.cancel) {
  414. }
  415. }
  416. });
  417. },
  418. pay() {
  419. if(this.order.isPrescribe==1 && this.order.prescribeId==null){
  420. uni.navigateTo({
  421. url:"/pages/shopping/prescribe?orderId="+this.order.id
  422. });
  423. }
  424. else{
  425. uni.navigateTo({
  426. url: '/pages/shopping/paymentOrder?orderId='+this.order.id
  427. })
  428. }
  429. },
  430. payRemain() {
  431. uni.navigateTo({
  432. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.id
  433. })
  434. },
  435. // 返回上一页
  436. back() {
  437. let pages = getCurrentPages();
  438. console.log(pages.length);
  439. if(pages.length>1){
  440. uni.navigateBack()
  441. }
  442. else{
  443. uni.reLaunch({
  444. url:"/pages/common/launch"
  445. })
  446. }
  447. },
  448. // 复制订单编号
  449. copyOrderSn(text) {
  450. // 复制方法
  451. uni.setClipboardData({
  452. data:text,
  453. success:()=>{
  454. uni.showToast({
  455. title:'内容已成功复制到剪切板',
  456. icon:'none'
  457. });
  458. }
  459. });
  460. },
  461. // 退货
  462. refund() {
  463. uni.navigateTo({
  464. url: './refundOrderProduct?orderId='+this.orderId
  465. })
  466. }
  467. }
  468. }
  469. </script>
  470. <style lang="scss">
  471. .fixed-top-box{
  472. width: 100%;
  473. //background: linear-gradient(135deg, #66b2ef 0%, #2BC7B9 100%);
  474. position: fixed;
  475. top: 0;
  476. left: 0;
  477. z-index: 1000;
  478. overflow: hidden;
  479. .bg{
  480. width: 100%;
  481. height: auto;
  482. position: absolute;
  483. top: 0;
  484. left: 0;
  485. z-index: -1;
  486. }
  487. .back-box{
  488. height: 88upx;
  489. padding-left: 22upx;
  490. display: flex;
  491. align-items: center;
  492. justify-content: space-between;
  493. padding: 0 20upx;
  494. image{
  495. width: 40upx;
  496. height: 40upx;
  497. }
  498. .title{
  499. font-size: 36upx;
  500. font-family: PingFang SC;
  501. font-weight: 500;
  502. color: #FFFFFF;
  503. }
  504. }
  505. }
  506. .top-cont{
  507. width: 100%;
  508. height: 476upx;
  509. position: relative;
  510. .bg{
  511. width: 100%;
  512. height: 100%;
  513. position: absolute;
  514. top: 0;
  515. left: 0;
  516. z-index: 1;
  517. }
  518. .top-inner{
  519. width: 100%;
  520. height: 100%;
  521. position: absolute;
  522. top: 0;
  523. left: 0;
  524. z-index: 2;
  525. .order-status{
  526. margin-top: 60upx;
  527. display: flex;
  528. align-items: center;
  529. justify-content: space-between;
  530. padding: 0 30upx;
  531. .inner{
  532. display: flex;
  533. align-items: center;
  534. .img-box{
  535. width: 96upx;
  536. height: 96upx;
  537. margin-right: 30upx;
  538. image{
  539. width: 100%;
  540. height: 100%;
  541. }
  542. }
  543. .status-box{
  544. height: 96upx;
  545. display: flex;
  546. flex-direction: column;
  547. justify-content: center;
  548. .status{
  549. font-size: 40upx;
  550. font-family: PingFang SC;
  551. font-weight: bold;
  552. color: #FFFFFF;
  553. line-height: 1;
  554. }
  555. .desc{
  556. font-size: 26upx;
  557. font-family: PingFang SC;
  558. font-weight: 500;
  559. color: #FFFFFF;
  560. line-height: 1;
  561. margin-top: 30upx;
  562. }
  563. }
  564. }
  565. }
  566. .order-placer{
  567. margin-top: 50upx;
  568. padding: 0 20upx;
  569. .inner{
  570. box-sizing: border-box;
  571. border-radius: 16upx;
  572. height: 150upx;
  573. padding: 40upx 30upx;
  574. display: flex;
  575. align-items: center;
  576. background: #FFFFFF;
  577. .location{
  578. width: 24upx;
  579. height: 27upx;
  580. margin-right: 18upx;
  581. flex-shrink: 0;
  582. }
  583. .info{
  584. .name-phone{
  585. display: flex;
  586. align-items: center;
  587. .text{
  588. font-size: 28upx;
  589. font-family: PingFang SC;
  590. font-weight: bold;
  591. color: #333333;
  592. line-height: 1;
  593. margin-right: 20upx;
  594. &:last-child{
  595. margin-right: 0;
  596. }
  597. }
  598. }
  599. .address{
  600. font-size: 26upx;
  601. font-family: PingFang SC;
  602. font-weight: 500;
  603. color: #999999;
  604. line-height: 1.3;
  605. margin-top: 10upx;
  606. }
  607. }
  608. }
  609. }
  610. }
  611. }
  612. .content{
  613. margin: 20rpx 0rpx;
  614. padding: 0 20upx 140rpx 20upx;
  615. .goods-list{
  616. padding: 0 30upx;
  617. background-color: #FFFFFF;
  618. border-radius: 16upx;
  619. .item{
  620. padding: 30upx 0;
  621. border-bottom: 1px solid #EDEEEF;
  622. display: flex;
  623. align-items: center;
  624. .img-box{
  625. width: 160upx;
  626. height: 160upx;
  627. margin-right: 30upx;
  628. image{
  629. width: 100%;
  630. height: 100%;
  631. }
  632. }
  633. .info-box{
  634. width: calc(100% - 190upx);
  635. height: 160upx;
  636. display: flex;
  637. flex-direction: column;
  638. justify-content: space-between;
  639. .name-box{
  640. font-size: 28upx;
  641. font-family: PingFang SC;
  642. font-weight: 500;
  643. color: #111111;
  644. line-height: 40upx;
  645. .tag{
  646. display: inline-block;
  647. padding: 0 6upx;
  648. height: 30upx;
  649. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  650. border-radius: 4upx;
  651. margin-right: 10upx;
  652. font-size: 22upx;
  653. font-family: PingFang SC;
  654. font-weight: bold;
  655. color: #FFFFFF;
  656. line-height: 30upx;
  657. float: left;
  658. margin-top: 7upx;
  659. }
  660. }
  661. .spec{
  662. margin-top: 18upx;
  663. font-size: 24upx;
  664. font-family: PingFang SC;
  665. font-weight: 500;
  666. color: #999999;
  667. line-height: 1;
  668. }
  669. .price-num{
  670. display: flex;
  671. align-items: center;
  672. justify-content: space-between;
  673. .price{
  674. display: flex;
  675. align-items: flex-end;
  676. .unit{
  677. font-size: 24upx;
  678. font-family: PingFang SC;
  679. font-weight: 500;
  680. color: #111111;
  681. line-height: 1.2;
  682. margin-right: 4upx;
  683. }
  684. .num{
  685. font-size: 32upx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #111111;
  689. line-height: 1;
  690. }
  691. }
  692. .num{
  693. font-size: 24upx;
  694. font-family: PingFang SC;
  695. font-weight: 500;
  696. color: #999999;
  697. line-height: 1;
  698. }
  699. }
  700. }
  701. }
  702. .sub-total{
  703. height: 88upx;
  704. display: flex;
  705. align-items: center;
  706. justify-content: flex-end;
  707. .discount{
  708. font-size: 24upx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #999999;
  712. line-height: 1;
  713. margin-right: 30upx;
  714. }
  715. .label{
  716. font-size: 24upx;
  717. font-family: PingFang SC;
  718. font-weight: 500;
  719. color: #999999;
  720. }
  721. .price{
  722. display: flex;
  723. align-items: flex-end;
  724. .unit{
  725. font-size: 24upx;
  726. font-family: PingFang SC;
  727. font-weight: 500;
  728. color: #FF6633;
  729. line-height: 1.2;
  730. margin-right: 4upx;
  731. }
  732. .num{
  733. font-size: 32upx;
  734. font-family: PingFang SC;
  735. font-weight: bold;
  736. color: #FF6633;
  737. line-height: 1;
  738. }
  739. }
  740. }
  741. }
  742. .order-info{
  743. margin-top: 20upx;
  744. background: #FFFFFF;
  745. border-radius: 16upx;
  746. padding: 40upx 30upx;
  747. .title{
  748. font-size: 30upx;
  749. font-family: PingFang SC;
  750. font-weight: bold;
  751. color: #222222;
  752. line-height: 1;
  753. }
  754. .item{
  755. margin-top: 40upx;
  756. display: flex;
  757. align-items: center;
  758. justify-content: space-between;
  759. .label{
  760. font-size: 26upx;
  761. font-family: PingFang SC;
  762. font-weight: 500;
  763. color: #666666;
  764. line-height: 1;
  765. }
  766. .text{
  767. font-size: 26upx;
  768. font-family: PingFang SC;
  769. font-weight: 500;
  770. color: #222222;
  771. line-height: 32upx;
  772. }
  773. .cont-text{
  774. font-size: 26upx;
  775. font-family: PingFang SC;
  776. font-weight: 500;
  777. color: #666666;
  778. .bold{
  779. color: #111111;
  780. }
  781. }
  782. .sn-box{
  783. display: flex;
  784. align-items: center;
  785. .copy-btn{
  786. width: 58upx;
  787. height: 32upx;
  788. line-height: 32upx;
  789. text-align: center;
  790. font-size: 22upx;
  791. font-family: PingFang SC;
  792. font-weight: 500;
  793. color: #222222;
  794. background: #F5F5F5;
  795. border-radius: 4upx;
  796. margin-left: 24upx;
  797. }
  798. }
  799. .check-box{
  800. display: flex;
  801. align-items: center;
  802. image{
  803. width: 14upx;
  804. height: 24upx;
  805. margin-left: 10upx;
  806. }
  807. }
  808. }
  809. .line{
  810. width: 100%;
  811. height: 1px;
  812. background: #F0F0F0;
  813. margin-top: 30upx;
  814. }
  815. }
  816. }
  817. .btn-box{
  818. z-index: 999;
  819. bottom: 0;
  820. width: 100%;
  821. position: fixed;
  822. height: 120upx;
  823. box-sizing: border-box;
  824. background: #FFFFFF;
  825. padding: 0 30upx;
  826. display: flex;
  827. align-items: center;
  828. justify-content: flex-end;
  829. .btn{
  830. width: 155upx;
  831. height: 64upx;
  832. line-height: 64upx;
  833. font-size: 26upx;
  834. font-family: PingFang SC;
  835. font-weight: 500;
  836. text-align: center;
  837. border-radius: 32upx;
  838. margin-left: 15upx;
  839. &.cancel{
  840. border: 1px solid #DDDDDD;
  841. color: #666666;
  842. }
  843. &.pay{
  844. background: #2BC7B9;
  845. color: #FFFFFF;
  846. }
  847. }
  848. }
  849. </style>