storeOrderDetail.vue 22 KB

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