storeOrderDetail.vue 23 KB

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