storeOrderDetail.vue 23 KB

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