storeOrderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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&&order.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&&order.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. };
  266. },
  267. onLoad(option) {
  268. this.orderId = option.id
  269. },
  270. onShow() {
  271. this.getMyStoreOrderById()
  272. },
  273. methods: {
  274. showEvaluate(url){
  275. uni.navigateTo({
  276. url: url
  277. })
  278. },
  279. openDetails(item){
  280. uni.navigateTo({
  281. url: '/pages_shopping/productDetails?productId='+item.productId
  282. })
  283. },
  284. addPrescribe(){
  285. orderPrescription(this.order.id).then(res=>{
  286. if(res.code == 200) {
  287. // {status:状态 0未开放,跳转填写信息界面。 1开方中,跳转医生开方界面 2开方完成,跳转到支付,jumpLink:status为1时用这个跳转连接}
  288. if(res.data.status == 0) {
  289. uni.navigateTo({
  290. url:"/pages_shopping/prescribe?orderId="+this.order.id
  291. })
  292. } else if(res.data.status == 1) {
  293. uni.navigateTo({
  294. url: '/pages/index/webview?url='+encodeURIComponent(res.data.jumpLink)
  295. })
  296. } else if(res.data.status == 2) {
  297. uni.navigateTo({
  298. url: '/pages_shopping/paymentOrder?orderId='+this.order.id
  299. })
  300. }
  301. }
  302. })
  303. },
  304. goPrescribe(){
  305. uni.navigateTo({
  306. url:"/pages_order/prescribeDetails?source=order&prescribeId="+this.prescribe.prescribeId
  307. })
  308. },
  309. showImg(){
  310. var imgArr = [];
  311. imgArr.push(this.prescribe.rpUrl)
  312. //预览图片
  313. uni.previewImage({
  314. urls: imgArr,
  315. current: imgArr[0]
  316. });
  317. },
  318. getMyStoreOrderById(){
  319. var data={orderId:this.orderId};
  320. getMyStoreOrderById(data).then(res => {
  321. if(res.code==200){
  322. this.order=res.order;
  323. this.items=res.items;
  324. this.payLimitTime=res.payLimitTime;
  325. this.prescribe=res.prescribe;
  326. this.isAfterSales=res.isAfterSales;
  327. }else{
  328. uni.showToast({
  329. icon:'none',
  330. title: "请求失败",
  331. });
  332. }
  333. });
  334. },
  335. express(){
  336. uni.navigateTo({
  337. url: './storeOrderDelivery?orderId='+this.order.id
  338. })
  339. },
  340. cancel(){
  341. var that=this;
  342. uni.showModal({
  343. title: '提示',
  344. content: '确定取消订单吗',
  345. success: function (res) {
  346. if (res.confirm) {
  347. var data = {
  348. orderId:that.order.id
  349. };
  350. cancelOrder(data).then(res => {
  351. if(res.code==200){
  352. that.getMyStoreOrderById()
  353. uni.$emit('refreshOrder');
  354. }else{
  355. uni.showToast({
  356. icon:'none',
  357. title: res.msg,
  358. });
  359. }
  360. });
  361. }
  362. else if (res.cancel) {
  363. }
  364. }
  365. });
  366. },
  367. finish(){
  368. var that=this;
  369. uni.showModal({
  370. title: '提示',
  371. content: '确定已收货吗',
  372. success: function (res) {
  373. if (res.confirm) {
  374. var data = {
  375. orderId:that.order.id
  376. };
  377. finishOrder(data).then(res => {
  378. if(res.code==200){
  379. that.getMyStoreOrderById()
  380. uni.$emit('refreshOrder');
  381. }else{
  382. uni.showToast({
  383. icon:'none',
  384. title: res.msg,
  385. });
  386. }
  387. });
  388. }
  389. else if (res.cancel) {
  390. }
  391. }
  392. });
  393. },
  394. pay() {
  395. uni.navigateTo({
  396. url: '/pages_shopping/paymentOrder?orderId='+this.order.id
  397. })
  398. },
  399. payRemain() {
  400. uni.navigateTo({
  401. url: '/pages_user/shopping/paymentOrderRemain?orderId='+this.order.id
  402. })
  403. },
  404. // 返回上一页
  405. back() {
  406. let pages = getCurrentPages();
  407. console.log(pages.length);
  408. if(pages.length>1){
  409. uni.navigateBack()
  410. }
  411. else{
  412. uni.reLaunch({
  413. url:"/pages/common/launch"
  414. })
  415. }
  416. },
  417. // 复制订单编号
  418. copyOrderSn(text) {
  419. // 复制方法
  420. uni.setClipboardData({
  421. data:text,
  422. success:()=>{
  423. uni.showToast({
  424. title:'内容已成功复制到剪切板',
  425. icon:'none'
  426. })
  427. }
  428. });
  429. },
  430. // 退货
  431. refund() {
  432. uni.navigateTo({
  433. url: './refundOrderProduct?orderId='+this.orderId
  434. })
  435. }
  436. }
  437. }
  438. </script>
  439. <style lang="scss">
  440. .fixed-top-box{
  441. width: 100%;
  442. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  443. position: fixed;
  444. top: 0;
  445. left: 0;
  446. z-index: 1000;
  447. }
  448. .top-cont{
  449. width: 100%;
  450. height: 476upx;
  451. position: relative;
  452. .bg{
  453. width: 100%;
  454. height: 100%;
  455. position: absolute;
  456. top: 0;
  457. left: 0;
  458. z-index: 1;
  459. }
  460. .top-inner{
  461. width: 100%;
  462. height: 100%;
  463. position: absolute;
  464. top: 0;
  465. left: 0;
  466. z-index: 2;
  467. .back-box{
  468. height: 88upx;
  469. padding-left: 22upx;
  470. display: flex;
  471. align-items: center;
  472. justify-content: space-between;
  473. padding: 0 20upx;
  474. image{
  475. width: 40upx;
  476. height: 40upx;
  477. }
  478. .title{
  479. font-size: 36upx;
  480. font-family: PingFang SC;
  481. font-weight: 500;
  482. color: #FFFFFF;
  483. }
  484. }
  485. .order-status{
  486. margin-top: 60upx;
  487. display: flex;
  488. align-items: center;
  489. justify-content: space-between;
  490. padding: 0 30upx;
  491. .inner{
  492. display: flex;
  493. align-items: center;
  494. .img-box{
  495. width: 96upx;
  496. height: 96upx;
  497. margin-right: 30upx;
  498. image{
  499. width: 100%;
  500. height: 100%;
  501. }
  502. }
  503. .status-box{
  504. height: 96upx;
  505. display: flex;
  506. flex-direction: column;
  507. justify-content: center;
  508. .status{
  509. font-size: 40upx;
  510. font-family: PingFang SC;
  511. font-weight: bold;
  512. color: #FFFFFF;
  513. line-height: 1;
  514. }
  515. .desc{
  516. font-size: 26upx;
  517. font-family: PingFang SC;
  518. font-weight: 500;
  519. color: #FFFFFF;
  520. line-height: 1;
  521. margin-top: 30upx;
  522. }
  523. }
  524. }
  525. }
  526. .order-placer{
  527. margin-top: 50upx;
  528. padding: 0 20upx;
  529. .inner{
  530. box-sizing: border-box;
  531. border-radius: 16upx;
  532. height: 150upx;
  533. padding: 40upx 30upx;
  534. display: flex;
  535. align-items: center;
  536. background: #FFFFFF;
  537. .location{
  538. width: 24upx;
  539. height: 27upx;
  540. margin-right: 18upx;
  541. flex-shrink: 0;
  542. }
  543. .info{
  544. .name-phone{
  545. display: flex;
  546. align-items: center;
  547. .text{
  548. font-size: 28upx;
  549. font-family: PingFang SC;
  550. font-weight: bold;
  551. color: #333333;
  552. line-height: 1;
  553. margin-right: 20upx;
  554. &:last-child{
  555. margin-right: 0;
  556. }
  557. }
  558. }
  559. .address{
  560. font-size: 26upx;
  561. font-family: PingFang SC;
  562. font-weight: 500;
  563. color: #999999;
  564. line-height: 1.3;
  565. margin-top: 10upx;
  566. }
  567. }
  568. }
  569. }
  570. }
  571. }
  572. .content{
  573. margin: 20rpx 0rpx;
  574. padding: 0 20upx 140rpx 20upx;
  575. .goods-list{
  576. padding: 0 30upx;
  577. background-color: #FFFFFF;
  578. border-radius: 16upx;
  579. .item{
  580. padding: 30upx 0;
  581. border-bottom: 1px solid #EDEEEF;
  582. display: flex;
  583. align-items: center;
  584. .img-box{
  585. width: 160upx;
  586. height: 160upx;
  587. margin-right: 30upx;
  588. image{
  589. width: 100%;
  590. height: 100%;
  591. }
  592. }
  593. .info-box{
  594. width: calc(100% - 190upx);
  595. height: 160upx;
  596. display: flex;
  597. flex-direction: column;
  598. justify-content: space-between;
  599. .name-box{
  600. font-size: 28upx;
  601. font-family: PingFang SC;
  602. font-weight: 500;
  603. color: #111111;
  604. line-height: 40upx;
  605. .tag{
  606. display: inline-block;
  607. padding: 0 6upx;
  608. height: 30upx;
  609. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  610. border-radius: 4upx;
  611. margin-right: 10upx;
  612. font-size: 22upx;
  613. font-family: PingFang SC;
  614. font-weight: bold;
  615. color: #FFFFFF;
  616. line-height: 30upx;
  617. float: left;
  618. margin-top: 7upx;
  619. }
  620. }
  621. .spec{
  622. margin-top: 18upx;
  623. font-size: 24upx;
  624. font-family: PingFang SC;
  625. font-weight: 500;
  626. color: #999999;
  627. line-height: 1;
  628. }
  629. .price-num{
  630. display: flex;
  631. align-items: center;
  632. justify-content: space-between;
  633. .price{
  634. display: flex;
  635. align-items: flex-end;
  636. .unit{
  637. font-size: 24upx;
  638. font-family: PingFang SC;
  639. font-weight: 500;
  640. color: #111111;
  641. line-height: 1.2;
  642. margin-right: 4upx;
  643. }
  644. .num{
  645. font-size: 32upx;
  646. font-family: PingFang SC;
  647. font-weight: 500;
  648. color: #111111;
  649. line-height: 1;
  650. }
  651. }
  652. .num{
  653. font-size: 24upx;
  654. font-family: PingFang SC;
  655. font-weight: 500;
  656. color: #999999;
  657. line-height: 1;
  658. }
  659. }
  660. }
  661. }
  662. .sub-total{
  663. height: 88upx;
  664. display: flex;
  665. align-items: center;
  666. justify-content: flex-end;
  667. .discount{
  668. font-size: 24upx;
  669. font-family: PingFang SC;
  670. font-weight: 500;
  671. color: #999999;
  672. line-height: 1;
  673. margin-right: 30upx;
  674. }
  675. .label{
  676. font-size: 24upx;
  677. font-family: PingFang SC;
  678. font-weight: 500;
  679. color: #999999;
  680. }
  681. .price{
  682. display: flex;
  683. align-items: flex-end;
  684. .unit{
  685. font-size: 24upx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #FF6633;
  689. line-height: 1.2;
  690. margin-right: 4upx;
  691. }
  692. .num{
  693. font-size: 32upx;
  694. font-family: PingFang SC;
  695. font-weight: bold;
  696. color: #FF6633;
  697. line-height: 1;
  698. }
  699. }
  700. }
  701. }
  702. .order-info{
  703. margin-top: 20upx;
  704. background: #FFFFFF;
  705. border-radius: 16upx;
  706. padding: 40upx 30upx;
  707. .title{
  708. font-size: 30upx;
  709. font-family: PingFang SC;
  710. font-weight: bold;
  711. color: #222222;
  712. line-height: 1;
  713. }
  714. .item{
  715. margin-top: 40upx;
  716. display: flex;
  717. align-items: center;
  718. justify-content: space-between;
  719. .label{
  720. font-size: 26upx;
  721. font-family: PingFang SC;
  722. font-weight: 500;
  723. color: #666666;
  724. line-height: 1;
  725. }
  726. .text{
  727. font-size: 26upx;
  728. font-family: PingFang SC;
  729. font-weight: 500;
  730. color: #222222;
  731. line-height: 32upx;
  732. }
  733. .cont-text{
  734. font-size: 26upx;
  735. font-family: PingFang SC;
  736. font-weight: 500;
  737. color: #666666;
  738. .bold{
  739. color: #111111;
  740. }
  741. }
  742. .sn-box{
  743. display: flex;
  744. align-items: center;
  745. .copy-btn{
  746. width: 58upx;
  747. height: 32upx;
  748. line-height: 32upx;
  749. text-align: center;
  750. font-size: 22upx;
  751. font-family: PingFang SC;
  752. font-weight: 500;
  753. color: #222222;
  754. background: #F5F5F5;
  755. border-radius: 4upx;
  756. margin-left: 24upx;
  757. }
  758. }
  759. .check-box{
  760. display: flex;
  761. align-items: center;
  762. image{
  763. width: 14upx;
  764. height: 24upx;
  765. margin-left: 10upx;
  766. }
  767. }
  768. }
  769. .line{
  770. width: 100%;
  771. height: 1px;
  772. background: #F0F0F0;
  773. margin-top: 30upx;
  774. }
  775. }
  776. }
  777. .btn-box{
  778. z-index: 999;
  779. bottom: 0;
  780. width: 100%;
  781. position: fixed;
  782. height: 120upx;
  783. box-sizing: border-box;
  784. background: #FFFFFF;
  785. padding: 0 30upx;
  786. display: flex;
  787. align-items: center;
  788. justify-content: flex-end;
  789. .btn{
  790. width: 155upx;
  791. height: 64upx;
  792. line-height: 64upx;
  793. font-size: 26upx;
  794. font-family: PingFang SC;
  795. font-weight: 500;
  796. text-align: center;
  797. border-radius: 32upx;
  798. margin-left: 15upx;
  799. &.cancel{
  800. border: 1px solid #DDDDDD;
  801. color: #666666;
  802. }
  803. &.pay{
  804. background: #2BC7B9;
  805. color: #FFFFFF;
  806. }
  807. }
  808. }
  809. </style>