storeOrderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. <template>
  2. <view>
  3. <!-- 这里是状态栏 -->
  4. <view class="fixed-top-box">
  5. <image class="bg" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/order_top_bg.png" mode="widthFix"></image>
  6. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  7. <view class="back-box" @click="back">
  8. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/back_white.png" mode=""></image>
  9. <text class="title">订单详情</text>
  10. <text></text>
  11. </view>
  12. </view>
  13. <view v-if="isBindMsg && !loading">
  14. <view style="padding-bottom: 188upx;">
  15. <view :style="{height: statusBarHeight}"></view>
  16. </view>
  17. <u-empty
  18. mode="order"
  19. :text="isBindMsg"
  20. icon="http://cdn.uviewui.com/uview/empty/order.png"
  21. >
  22. </u-empty>
  23. </view>
  24. <view class="top-cont" v-show="!loading&&!isBindMsg">
  25. <!-- 背景图片 -->
  26. <image class="bg" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/order_top_bg.png" mode=""></image>
  27. <view class="top-inner">
  28. <!-- 顶部固定后站位元素 -->
  29. <view style="padding-bottom: 88upx;">
  30. <view :style="{height: statusBarHeight}"></view>
  31. </view>
  32. <!-- 订单状态 -->
  33. <view class="order-status">
  34. <!-- 待付款 -->
  35. <view v-if="order.status == 0" class="inner">
  36. <view class="img-box">
  37. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pag96.png" mode=""></image>
  38. </view>
  39. <view class="status-box">
  40. <text class="status">待付款</text>
  41. <text class="desc">请在{{payLimitTime}}前完成支付</text>
  42. </view>
  43. </view>
  44. <!-- 待发货 -->
  45. <view v-if="order.status == 1" class="inner">
  46. <view class="img-box">
  47. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pag96.png" mode=""></image>
  48. </view>
  49. <view class="status-box">
  50. <text class="status">待发货</text>
  51. <text class="desc">等待后台发货</text>
  52. </view>
  53. </view>
  54. <!-- 已发货、待收货 -->
  55. <view v-if="order.status == 2" class="inner">
  56. <view class="img-box">
  57. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/receipt.png" mode=""></image>
  58. </view>
  59. <view class="status-box">
  60. <text class="status">待收货</text>
  61. <text class="desc">运输中</text>
  62. </view>
  63. </view>
  64. <!-- 已完成 -->
  65. <view v-if="order.status == 3" class="inner">
  66. <view class="img-box">
  67. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/finish96.png" mode=""></image>
  68. </view>
  69. <view class="status-box">
  70. <text class="status">已完成</text>
  71. <text class="desc">订单已确认收货,交易完成</text>
  72. </view>
  73. </view>
  74. <!--交易取消 -->
  75. <view v-if="order.status == -3" class="inner">
  76. <view class="img-box">
  77. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/close_trade.png" mode=""></image>
  78. </view>
  79. <view class="status-box">
  80. <text class="status">交易关闭</text>
  81. <text class="desc">订单已取消</text>
  82. </view>
  83. </view>
  84. <view v-if="order.status == -1" class="inner">
  85. <view class="img-box">
  86. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/close_trade.png" mode=""></image>
  87. </view>
  88. <view class="status-box">
  89. <text class="status">申请售后</text>
  90. <text class="desc">请等待客服审核</text>
  91. </view>
  92. </view>
  93. <view v-if="order.status == -2" class="inner">
  94. <view class="img-box">
  95. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/close_trade.png" mode=""></image>
  96. </view>
  97. <view class="status-box">
  98. <text class="status">退款成功</text>
  99. <text class="desc">已成功退款</text>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 下单人信息 -->
  104. <view class="order-placer">
  105. <view class="inner">
  106. <image class="location" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/location.png" mode=""></image>
  107. <view class="info">
  108. <view class="name-phone">
  109. <text class="text">{{order.realName}}</text>
  110. <text class="text" v-if="order.userPhone!=null">{{utils.parsePhone(order.userPhone)}}</text>
  111. </view>
  112. <view class="address ellipsis2">
  113. {{order.userAddress}}
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="content">
  119. <!-- 产品列表 -->
  120. <view class="goods-list">
  121. <view v-if="order.isPackage!=1" v-for="(item,index) in items" :key="index" class="item" @click="openDetails(item.productId)">
  122. <view class="img-box">
  123. <image :src="JSON.parse(item.jsonInfo).image" mode="aspectFill"></image>
  124. </view>
  125. <view class="info-box">
  126. <view>
  127. <view class="name-box ellipsis2">
  128. <!-- <view v-if="item.isPrescribe==1" class="tag">处方药</view> -->
  129. {{JSON.parse(item.jsonInfo).productName}}
  130. </view>
  131. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  132. </view>
  133. <view class="price-num">
  134. <view class="price">
  135. <text class="unit">¥</text>
  136. <text class="num">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text>
  137. </view>
  138. <view class="num">x{{JSON.parse(item.jsonInfo).num}}</view>
  139. </view>
  140. </view>
  141. </view>
  142. <view v-if="order.isPackage==1&&order.packageJson!=null" class="item" >
  143. <view class="img-box">
  144. <image :src="JSON.parse(order.packageJson).imgUrl" mode="aspectFill"></image>
  145. </view>
  146. <view class="info-box">
  147. <view>
  148. <view class="name-box ellipsis2">
  149. <view class="tag">套餐</view>{{JSON.parse(order.packageJson).title}}
  150. </view>
  151. <view class="spec ellipsis2">{{JSON.parse(order.packageJson).descs}}</view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 已优惠、小计 -->
  156. <view class="sub-total">
  157. <view class="discount">
  158. 商品金额:¥{{order.totalPrice}}
  159. </view>
  160. <!-- <text class="label">实付金额:</text>
  161. <view class="price">
  162. <text class="unit">¥</text>
  163. <text class="num">{{order.payMoney}}</text>
  164. </view> -->
  165. </view>
  166. </view>
  167. <!-- 订单信息 -->
  168. <view class="order-info">
  169. <view class="title">订单信息</view>
  170. <view class="item">
  171. <text class="label">订单编号</text>
  172. <view class="sn-box">
  173. <text class="text">{{order.orderCode}}</text>
  174. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  175. </view>
  176. </view>
  177. <view class="item">
  178. <text class="label">下单时间</text>
  179. <text class="text">{{order.createTime}}</text>
  180. </view>
  181. <view class="item">
  182. <text class="label">支付方式</text>
  183. <text class="text" v-if="order.payType==1">微信支付</text>
  184. <!-- <text class="text" v-if="order.payType==2">物流代收</text> -->
  185. </view>
  186. <view class="item">
  187. <text class="label">商品金额</text>
  188. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  189. </view>
  190. <view class="item">
  191. <text class="label">优惠金额</text>
  192. <text class="text" v-if="order.couponPrice!=null">-¥{{order.couponPrice.toFixed(2)}}</text>
  193. </view>
  194. <view class="item">
  195. <text class="label">应付金额</text>
  196. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  197. </view>
  198. <view class="item">
  199. <text class="label">支付金额</text>
  200. <text class="text" v-if="order.payMoney!=null">¥{{order.payMoney.toFixed(2)}}</text>
  201. </view>
  202. <view class="item">
  203. <text class="label">运费</text>
  204. <text class="text" v-if="order.payPostage!=null">¥{{order.payPostage.toFixed(2)}}</text>
  205. </view>
  206. <!-- <view class="item">
  207. <text class="label">代收金额</text>
  208. <text class="text" v-if="order.payDelivery!=null">¥{{order.payDelivery.toFixed(2)}}</text>
  209. </view> -->
  210. <view class="item">
  211. <text class="label">支付时间</text>
  212. <text class="text" v-if="order.payTime!=null">{{order.payTime}}</text>
  213. </view>
  214. <!-- <view v-if="order.status >1" class="item">
  215. <text class="label">发货时间</text>
  216. <text class="text"></text>
  217. </view> -->
  218. </view>
  219. <!-- 处方信息 -->
  220. <view class="order-info" v-if="order.isPrescribe&&prescribe!=null">
  221. <view class="title">处方信息</view>
  222. <view class="item">
  223. <text class="label">处方单号</text>
  224. <text class="text">{{prescribe.rpId}}</text>
  225. </view>
  226. <view class="item" v-if="prescribe.doctorName!=null">
  227. <text class="label">开方医生</text>
  228. <text class="text">{{prescribe.doctorName}}</text>
  229. </view>
  230. <view class="item" v-if="prescribe.rpUrl!=null">
  231. <text class="label">电子处方</text>
  232. <view class="check-box" @click="showImg()">
  233. <text class="text">查看</text>
  234. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/arrow4.png" mode=""></image>
  235. </view>
  236. </view>
  237. <view class="item">
  238. <text class="label">审核意见</text>
  239. <text class="text" v-if="prescribe.auditReason!=null">{{prescribe.auditReason}}</text>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <!-- 按钮 -->
  246. <view class="btn-box" v-if="!loading&&!isBindMsg">
  247. <!-- <view class="btn cancel">联系客服</view> -->
  248. <view class="btn cancel" v-if="order.status==0" @click="cancel()">取消订单</view>
  249. <view class="btn pay" v-if="order.status==0" @click="pay()">立即付款</view>
  250. <view class="btn cancel" v-if="(order.status==0||order.status==1)&&order.isPrescribe==1&&prescribe==null" @click="addPrescribe()">开处方</view>
  251. <view class="btn cancel" v-if="isAfterSales==1" @click="refund()">申请售后</view>
  252. <view class="btn pay" v-if="order.status>=2&&order.deliveryId!=null" @click="express()">查看物流</view>
  253. <view class="btn pay" v-if="order.status==2&&order.payType!=1&&order.isPayRemain==0&&order.deliverySn=='SF'" @click="payRemain()">支付尾款</view>
  254. <view class="btn pay" v-if="order.status==2" @click="finish()">确认收货</view>
  255. </view>
  256. </view>
  257. </template>
  258. <script>
  259. import {getMyStoreOrderById,cancelOrder,express,finishOrder,orderBindUser} from '@/api/storeOrder'
  260. export default {
  261. data() {
  262. return {
  263. isAfterSales:0,
  264. payLimitTime:null,
  265. orderId:null,
  266. order:{},
  267. items:[],
  268. prescribe:null,
  269. // 状态栏的高度
  270. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  271. query: "",
  272. isBind: false,
  273. loading: true,
  274. isBindMsg: ''
  275. };
  276. },
  277. onLoad(option) {
  278. this.orderId = option.id
  279. this.query = option.q && option.q != undefined ? decodeURIComponent(option.q) : '' // 获取到二维码原始链接内容
  280. },
  281. onShow() {
  282. if(this.query&&!this.isBind) {
  283. const params = this.utils.urlToObj(this.query)
  284. this.orderBindUser(params.orderId)
  285. } else {
  286. this.isBindMsg = ''
  287. this.loading = true
  288. uni.showLoading({
  289. title: '加载中...'
  290. })
  291. this.getMyStoreOrderById()
  292. }
  293. },
  294. methods: {
  295. orderBindUser(orderId) {
  296. this.isBind = false
  297. this.isBindMsg = ''
  298. this.loading = true
  299. uni.showLoading({
  300. title: '加载中...'
  301. })
  302. orderBindUser({orderId: orderId}).then(res => {
  303. if(res.code==200){
  304. this.isBind = true
  305. this.orderId = orderId
  306. this.getMyStoreOrderById()
  307. }else{
  308. this.loading = false
  309. uni.hideLoading()
  310. this.isBind = false
  311. this.isBindMsg = res.msg
  312. uni.showToast({
  313. icon:'none',
  314. title: res.msg,
  315. });
  316. }
  317. }).catch(()=>{
  318. this.loading = false
  319. uni.hideLoading()
  320. });
  321. },
  322. openDetails(item){
  323. console.log(item)
  324. uni.navigateTo({
  325. url: '/pages/shopping/productDetails?productId='+item
  326. })
  327. },
  328. addPrescribe(){
  329. uni.navigateTo({
  330. url:"/pages/shopping/prescribe?orderId="+this.order.id
  331. })
  332. },
  333. showImg(){
  334. var imgArr = [];
  335. imgArr.push(this.prescribe.rpUrl)
  336. //预览图片
  337. uni.previewImage({
  338. urls: imgArr,
  339. current: imgArr[0]
  340. });
  341. },
  342. getMyStoreOrderById(){
  343. var data={orderId:this.orderId};
  344. getMyStoreOrderById(data).then(res => {
  345. this.loading = false
  346. uni.hideLoading()
  347. if(res.code==200){
  348. this.order=res.order;
  349. this.items=res.items;
  350. this.payLimitTime=res.payLimitTime;
  351. this.prescribe=res.prescribe;
  352. this.isAfterSales=res.isAfterSales;
  353. }else{
  354. uni.showToast({
  355. icon:'none',
  356. title: "请求失败",
  357. });
  358. }
  359. }).catch(()=>{
  360. uni.hideLoading()
  361. this.loading = false
  362. });
  363. },
  364. express(){
  365. uni.navigateTo({
  366. url: './storeOrderDelivery?orderId='+this.order.id
  367. })
  368. },
  369. cancel(){
  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. cancelOrder(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. finish(){
  397. var that=this;
  398. uni.showModal({
  399. title: '提示',
  400. content: '确定已收货吗',
  401. success: function (res) {
  402. if (res.confirm) {
  403. var data = {
  404. orderId:that.order.id
  405. };
  406. finishOrder(data).then(res => {
  407. if(res.code==200){
  408. that.getMyStoreOrderById()
  409. uni.$emit('refreshOrder');
  410. }else{
  411. uni.showToast({
  412. icon:'none',
  413. title: res.msg,
  414. });
  415. }
  416. });
  417. }
  418. else if (res.cancel) {
  419. }
  420. }
  421. });
  422. },
  423. pay() {
  424. if(this.order.isPrescribe==1 && this.order.prescribeId==null){
  425. uni.navigateTo({
  426. url:"/pages/shopping/prescribe?orderId="+this.order.id
  427. });
  428. }
  429. else{
  430. uni.navigateTo({
  431. url: '/pages/shopping/paymentOrder?orderId='+this.order.id
  432. })
  433. }
  434. },
  435. payRemain() {
  436. uni.navigateTo({
  437. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.id
  438. })
  439. },
  440. // 返回上一页
  441. back() {
  442. let pages = getCurrentPages();
  443. console.log(pages.length);
  444. if(pages.length>1){
  445. uni.navigateBack()
  446. }
  447. else{
  448. uni.reLaunch({
  449. url:"/pages/common/launch"
  450. })
  451. }
  452. },
  453. // 复制订单编号
  454. copyOrderSn(text) {
  455. // 复制方法
  456. uni.setClipboardData({
  457. data:text,
  458. success:()=>{
  459. uni.showToast({
  460. title:'内容已成功复制到剪切板',
  461. icon:'none'
  462. });
  463. }
  464. });
  465. },
  466. // 退货
  467. refund() {
  468. uni.navigateTo({
  469. url: './refundOrderProduct?orderId='+this.orderId
  470. })
  471. }
  472. }
  473. }
  474. </script>
  475. <style lang="scss">
  476. .fixed-top-box{
  477. width: 100%;
  478. //background: linear-gradient(135deg, #66b2ef 0%, #2BC7B9 100%);
  479. position: fixed;
  480. top: 0;
  481. left: 0;
  482. z-index: 1000;
  483. overflow: hidden;
  484. .bg{
  485. width: 100%;
  486. height: auto;
  487. position: absolute;
  488. top: 0;
  489. left: 0;
  490. z-index: -1;
  491. }
  492. .back-box{
  493. height: 88upx;
  494. padding-left: 22upx;
  495. display: flex;
  496. align-items: center;
  497. justify-content: space-between;
  498. padding: 0 20upx;
  499. image{
  500. width: 40upx;
  501. height: 40upx;
  502. }
  503. .title{
  504. font-size: 36upx;
  505. font-family: PingFang SC;
  506. font-weight: 500;
  507. color: #FFFFFF;
  508. }
  509. }
  510. }
  511. .top-cont{
  512. width: 100%;
  513. height: 476upx;
  514. position: relative;
  515. .bg{
  516. width: 100%;
  517. height: 100%;
  518. position: absolute;
  519. top: 0;
  520. left: 0;
  521. z-index: 1;
  522. }
  523. .top-inner{
  524. width: 100%;
  525. height: 100%;
  526. position: absolute;
  527. top: 0;
  528. left: 0;
  529. z-index: 2;
  530. .order-status{
  531. margin-top: 60upx;
  532. display: flex;
  533. align-items: center;
  534. justify-content: space-between;
  535. padding: 0 30upx;
  536. .inner{
  537. display: flex;
  538. align-items: center;
  539. .img-box{
  540. width: 96upx;
  541. height: 96upx;
  542. margin-right: 30upx;
  543. image{
  544. width: 100%;
  545. height: 100%;
  546. }
  547. }
  548. .status-box{
  549. height: 96upx;
  550. display: flex;
  551. flex-direction: column;
  552. justify-content: center;
  553. .status{
  554. font-size: 40upx;
  555. font-family: PingFang SC;
  556. font-weight: bold;
  557. color: #FFFFFF;
  558. line-height: 1;
  559. }
  560. .desc{
  561. font-size: 26upx;
  562. font-family: PingFang SC;
  563. font-weight: 500;
  564. color: #FFFFFF;
  565. line-height: 1;
  566. margin-top: 30upx;
  567. }
  568. }
  569. }
  570. }
  571. .order-placer{
  572. margin-top: 50upx;
  573. padding: 0 20upx;
  574. .inner{
  575. box-sizing: border-box;
  576. border-radius: 16upx;
  577. height: 150upx;
  578. padding: 40upx 30upx;
  579. display: flex;
  580. align-items: center;
  581. background: #FFFFFF;
  582. .location{
  583. width: 24upx;
  584. height: 27upx;
  585. margin-right: 18upx;
  586. flex-shrink: 0;
  587. }
  588. .info{
  589. .name-phone{
  590. display: flex;
  591. align-items: center;
  592. .text{
  593. font-size: 28upx;
  594. font-family: PingFang SC;
  595. font-weight: bold;
  596. color: #333333;
  597. line-height: 1;
  598. margin-right: 20upx;
  599. &:last-child{
  600. margin-right: 0;
  601. }
  602. }
  603. }
  604. .address{
  605. font-size: 26upx;
  606. font-family: PingFang SC;
  607. font-weight: 500;
  608. color: #999999;
  609. line-height: 1.3;
  610. margin-top: 10upx;
  611. }
  612. }
  613. }
  614. }
  615. }
  616. }
  617. .content{
  618. margin: 20rpx 0rpx;
  619. padding: 0 20upx 140rpx 20upx;
  620. .goods-list{
  621. padding: 0 30upx;
  622. background-color: #FFFFFF;
  623. border-radius: 16upx;
  624. .item{
  625. padding: 30upx 0;
  626. border-bottom: 1px solid #EDEEEF;
  627. display: flex;
  628. align-items: center;
  629. .img-box{
  630. width: 160upx;
  631. height: 160upx;
  632. margin-right: 30upx;
  633. image{
  634. width: 100%;
  635. height: 100%;
  636. }
  637. }
  638. .info-box{
  639. width: calc(100% - 190upx);
  640. height: 160upx;
  641. display: flex;
  642. flex-direction: column;
  643. justify-content: space-between;
  644. .name-box{
  645. font-size: 28upx;
  646. font-family: PingFang SC;
  647. font-weight: 500;
  648. color: #111111;
  649. line-height: 40upx;
  650. .tag{
  651. display: inline-block;
  652. padding: 0 6upx;
  653. height: 30upx;
  654. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  655. border-radius: 4upx;
  656. margin-right: 10upx;
  657. font-size: 22upx;
  658. font-family: PingFang SC;
  659. font-weight: bold;
  660. color: #FFFFFF;
  661. line-height: 30upx;
  662. float: left;
  663. margin-top: 7upx;
  664. }
  665. }
  666. .spec{
  667. margin-top: 18upx;
  668. font-size: 24upx;
  669. font-family: PingFang SC;
  670. font-weight: 500;
  671. color: #999999;
  672. line-height: 1;
  673. }
  674. .price-num{
  675. display: flex;
  676. align-items: center;
  677. justify-content: space-between;
  678. .price{
  679. display: flex;
  680. align-items: flex-end;
  681. .unit{
  682. font-size: 24upx;
  683. font-family: PingFang SC;
  684. font-weight: 500;
  685. color: #111111;
  686. line-height: 1.2;
  687. margin-right: 4upx;
  688. }
  689. .num{
  690. font-size: 32upx;
  691. font-family: PingFang SC;
  692. font-weight: 500;
  693. color: #111111;
  694. line-height: 1;
  695. }
  696. }
  697. .num{
  698. font-size: 24upx;
  699. font-family: PingFang SC;
  700. font-weight: 500;
  701. color: #999999;
  702. line-height: 1;
  703. }
  704. }
  705. }
  706. }
  707. .sub-total{
  708. height: 88upx;
  709. display: flex;
  710. align-items: center;
  711. justify-content: flex-end;
  712. .discount{
  713. font-size: 24upx;
  714. font-family: PingFang SC;
  715. font-weight: 500;
  716. color: #999999;
  717. line-height: 1;
  718. margin-right: 30upx;
  719. }
  720. .label{
  721. font-size: 24upx;
  722. font-family: PingFang SC;
  723. font-weight: 500;
  724. color: #999999;
  725. }
  726. .price{
  727. display: flex;
  728. align-items: flex-end;
  729. .unit{
  730. font-size: 24upx;
  731. font-family: PingFang SC;
  732. font-weight: 500;
  733. color: #FF6633;
  734. line-height: 1.2;
  735. margin-right: 4upx;
  736. }
  737. .num{
  738. font-size: 32upx;
  739. font-family: PingFang SC;
  740. font-weight: bold;
  741. color: #FF6633;
  742. line-height: 1;
  743. }
  744. }
  745. }
  746. }
  747. .order-info{
  748. margin-top: 20upx;
  749. background: #FFFFFF;
  750. border-radius: 16upx;
  751. padding: 40upx 30upx;
  752. .title{
  753. font-size: 30upx;
  754. font-family: PingFang SC;
  755. font-weight: bold;
  756. color: #222222;
  757. line-height: 1;
  758. }
  759. .item{
  760. margin-top: 40upx;
  761. display: flex;
  762. align-items: center;
  763. justify-content: space-between;
  764. .label{
  765. font-size: 26upx;
  766. font-family: PingFang SC;
  767. font-weight: 500;
  768. color: #666666;
  769. line-height: 1;
  770. }
  771. .text{
  772. font-size: 26upx;
  773. font-family: PingFang SC;
  774. font-weight: 500;
  775. color: #222222;
  776. line-height: 32upx;
  777. }
  778. .cont-text{
  779. font-size: 26upx;
  780. font-family: PingFang SC;
  781. font-weight: 500;
  782. color: #666666;
  783. .bold{
  784. color: #111111;
  785. }
  786. }
  787. .sn-box{
  788. display: flex;
  789. align-items: center;
  790. .copy-btn{
  791. width: 58upx;
  792. height: 32upx;
  793. line-height: 32upx;
  794. text-align: center;
  795. font-size: 22upx;
  796. font-family: PingFang SC;
  797. font-weight: 500;
  798. color: #222222;
  799. background: #F5F5F5;
  800. border-radius: 4upx;
  801. margin-left: 24upx;
  802. }
  803. }
  804. .check-box{
  805. display: flex;
  806. align-items: center;
  807. image{
  808. width: 14upx;
  809. height: 24upx;
  810. margin-left: 10upx;
  811. }
  812. }
  813. }
  814. .line{
  815. width: 100%;
  816. height: 1px;
  817. background: #F0F0F0;
  818. margin-top: 30upx;
  819. }
  820. }
  821. }
  822. .btn-box{
  823. z-index: 999;
  824. bottom: 0;
  825. width: 100%;
  826. position: fixed;
  827. height: 120upx;
  828. box-sizing: border-box;
  829. background: #FFFFFF;
  830. padding: 0 30upx;
  831. display: flex;
  832. align-items: center;
  833. justify-content: flex-end;
  834. .btn{
  835. width: 155upx;
  836. height: 64upx;
  837. line-height: 64upx;
  838. font-size: 26upx;
  839. font-family: PingFang SC;
  840. font-weight: 500;
  841. text-align: center;
  842. border-radius: 32upx;
  843. margin-left: 15upx;
  844. &.cancel{
  845. border: 1px solid #DDDDDD;
  846. color: #666666;
  847. }
  848. &.pay{
  849. background: #2BC7B9;
  850. color: #FFFFFF;
  851. }
  852. }
  853. }
  854. </style>