storeOrderDetail.vue 22 KB

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