storeOrderDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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. </view> -->
  161. </view>
  162. <!-- 订单信息 -->
  163. <view class="order-info">
  164. <view class="title">订单信息</view>
  165. <view class="item">
  166. <text class="label">订单编号</text>
  167. <view class="sn-box">
  168. <text class="text">{{order.orderCode}}</text>
  169. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  170. </view>
  171. </view>
  172. <view class="item">
  173. <text class="label">下单时间</text>
  174. <text class="text">{{order.createTime}}</text>
  175. </view>
  176. <view class="item">
  177. <text class="label">支付方式</text>
  178. <text class="text" v-if="order.payType==1">微信支付</text>
  179. <!-- <text class="text" v-if="order.payType==2">物流代收</text> -->
  180. </view>
  181. <view class="item">
  182. <text class="label">商品金额</text>
  183. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.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.payPostage!=null">¥{{order.payPostage.toFixed(2)}}</text>
  200. </view>
  201. <!-- <view class="item">
  202. <text class="label">代收金额</text>
  203. <text class="text" v-if="order.payDelivery!=null">¥{{order.payDelivery.toFixed(2)}}</text>
  204. </view> -->
  205. <view class="item">
  206. <text class="label">支付时间</text>
  207. <text class="text" v-if="order.payTime!=null">{{order.payTime}}</text>
  208. </view>
  209. <!-- <view v-if="order.status >1" class="item">
  210. <text class="label">发货时间</text>
  211. <text class="text"></text>
  212. </view> -->
  213. </view>
  214. <!-- 处方信息 -->
  215. <view class="order-info" v-if="order.isPrescribe&&prescribe!=null">
  216. <view class="title">处方信息</view>
  217. <view class="item">
  218. <text class="label">处方单号</text>
  219. <text class="text">{{prescribe.rpId}}</text>
  220. </view>
  221. <view class="item" v-if="prescribe.doctorName!=null">
  222. <text class="label">开方医生</text>
  223. <text class="text">{{prescribe.doctorName}}</text>
  224. </view>
  225. <view class="item" v-if="prescribe.rpUrl!=null">
  226. <text class="label">电子处方</text>
  227. <view class="check-box" @click="showImg()">
  228. <text class="text">查看</text>
  229. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/arrow4.png" mode=""></image>
  230. </view>
  231. </view>
  232. <view class="item">
  233. <text class="label">审核意见</text>
  234. <text class="text" v-if="prescribe.auditReason!=null">{{prescribe.auditReason}}</text>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <!-- 按钮 -->
  241. <view class="btn-box" v-if="!loading&&!isBindMsg">
  242. <!-- <view class="btn cancel">联系客服</view> -->
  243. <view class="btn cancel" v-if="order.status==0" @click="cancel()">取消订单</view>
  244. <view class="btn pay" v-if="order.status==0" @click="pay()">立即付款</view>
  245. <view class="btn cancel" v-if="(order.status==0||order.status==1)&&order.isPrescribe==1&&prescribe==null" @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>
  251. <CustomToast ref="customToast">
  252. </CustomToast>
  253. </view>
  254. </template>
  255. <script>
  256. import {getMyStoreOrderById,cancelOrder,express,finishOrder,orderBindUser} from '@/api/storeOrder'
  257. import {checkOrderPurchaseLimit} from '@/api/product'
  258. import {CustomToast} from '@/components/custom-toast.vue';
  259. export default {
  260. components: {
  261. CustomToast
  262. },
  263. data() {
  264. return {
  265. isAfterSales:0,
  266. payLimitTime:null,
  267. orderId:null,
  268. order:{},
  269. items:[],
  270. prescribe:null,
  271. // 状态栏的高度
  272. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  273. query: "",
  274. isBind: false,
  275. loading: true,
  276. isBindMsg: ''
  277. };
  278. },
  279. onLoad(option) {
  280. this.orderId = option.id
  281. this.query = option.q && option.q != undefined ? decodeURIComponent(option.q) : '' // 获取到二维码原始链接内容
  282. },
  283. onShow() {
  284. if(this.query&&!this.isBind) {
  285. const params = this.utils.urlToObj(this.query)
  286. this.orderBindUser(params.orderId)
  287. } else {
  288. this.isBindMsg = ''
  289. this.loading = true
  290. uni.showLoading({
  291. title: '加载中...'
  292. })
  293. this.getMyStoreOrderById()
  294. }
  295. },
  296. methods: {
  297. orderBindUser(orderId) {
  298. this.isBind = false
  299. this.isBindMsg = ''
  300. this.loading = true
  301. uni.showLoading({
  302. title: '加载中...'
  303. })
  304. orderBindUser({orderId: orderId}).then(res => {
  305. if(res.code==200){
  306. this.isBind = true
  307. this.orderId = orderId
  308. this.getMyStoreOrderById()
  309. }else{
  310. this.loading = false
  311. uni.hideLoading()
  312. this.isBind = false
  313. this.isBindMsg = res.msg
  314. uni.showToast({
  315. icon:'none',
  316. title: res.msg,
  317. });
  318. }
  319. }).catch(()=>{
  320. this.loading = false
  321. uni.hideLoading()
  322. });
  323. },
  324. openDetails(item){
  325. console.log(item)
  326. uni.navigateTo({
  327. url: '/pages/shopping/productDetails?productId='+item
  328. })
  329. },
  330. addPrescribe(){
  331. uni.navigateTo({
  332. url:"/pages/shopping/prescribe?orderId="+this.order.id
  333. })
  334. },
  335. showImg(){
  336. var imgArr = [];
  337. imgArr.push(this.prescribe.rpUrl)
  338. //预览图片
  339. uni.previewImage({
  340. urls: imgArr,
  341. current: imgArr[0]
  342. });
  343. },
  344. getMyStoreOrderById(){
  345. var data={orderId:this.orderId};
  346. getMyStoreOrderById(data).then(res => {
  347. this.loading = false
  348. uni.hideLoading()
  349. if(res.code==200){
  350. this.order=res.order;
  351. this.items=res.items;
  352. this.payLimitTime=res.payLimitTime;
  353. this.prescribe=res.prescribe;
  354. this.isAfterSales=res.isAfterSales;
  355. }else{
  356. uni.showToast({
  357. icon:'none',
  358. title: "请求失败",
  359. });
  360. }
  361. }).catch(()=>{
  362. uni.hideLoading()
  363. this.loading = false
  364. });
  365. },
  366. express(){
  367. uni.navigateTo({
  368. url: './storeOrderDelivery?orderId='+this.order.id
  369. })
  370. },
  371. cancel(){
  372. var that=this;
  373. uni.showModal({
  374. title: '提示',
  375. content: '确定取消订单吗',
  376. success: function (res) {
  377. if (res.confirm) {
  378. var data = {
  379. orderId:that.order.id
  380. };
  381. cancelOrder(data).then(res => {
  382. if(res.code==200){
  383. that.getMyStoreOrderById()
  384. uni.$emit('refreshOrder');
  385. }else{
  386. uni.showToast({
  387. icon:'none',
  388. title: res.msg,
  389. });
  390. }
  391. });
  392. }
  393. else if (res.cancel) {
  394. }
  395. }
  396. });
  397. },
  398. finish(){
  399. var that=this;
  400. uni.showModal({
  401. title: '提示',
  402. content: '确定已收货吗',
  403. success: function (res) {
  404. if (res.confirm) {
  405. var data = {
  406. orderId:that.order.id
  407. };
  408. finishOrder(data).then(res => {
  409. if(res.code==200){
  410. that.getMyStoreOrderById()
  411. uni.$emit('refreshOrder');
  412. }else{
  413. uni.showToast({
  414. icon:'none',
  415. title: res.msg,
  416. });
  417. }
  418. });
  419. }
  420. else if (res.cancel) {
  421. }
  422. }
  423. });
  424. },
  425. async pay() {
  426. if(this.order.isPrescribe==1 && this.order.prescribeId==null){
  427. uni.navigateTo({
  428. url:"/pages/shopping/prescribe?orderId="+this.order.id
  429. });
  430. }
  431. else{
  432. // 商城订单,使用orderCode校验限购
  433. if(this.order.orderCode){
  434. try {
  435. const res = await checkOrderPurchaseLimit({ orderCode: this.order.orderCode });
  436. if (res.code !== 200) {
  437. this.$refs.customToast.show({
  438. title: res.msg || '订单商品限购校验失败',
  439. duration: 2000
  440. });
  441. // uni.showToast({
  442. // icon: 'none',
  443. // title: res.msg || '订单商品限购校验失败'
  444. // });
  445. return;
  446. }
  447. } catch (error) {
  448. console.error('检查限购失败:', error);
  449. uni.showToast({
  450. icon: 'none',
  451. title: '检查限购失败,请稍后重试'
  452. });
  453. return;
  454. }
  455. }
  456. // 限购检查通过,进行支付跳转
  457. uni.navigateTo({
  458. url: '/pages/shopping/paymentOrder?orderId='+this.order.id
  459. })
  460. }
  461. },
  462. payRemain() {
  463. uni.navigateTo({
  464. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.id
  465. })
  466. },
  467. // 返回上一页
  468. back() {
  469. let pages = getCurrentPages();
  470. console.log(pages.length);
  471. if(pages.length>1){
  472. uni.navigateBack()
  473. }
  474. else{
  475. uni.reLaunch({
  476. url:"/pages/common/launch"
  477. })
  478. }
  479. },
  480. // 复制订单编号
  481. copyOrderSn(text) {
  482. // 复制方法
  483. uni.setClipboardData({
  484. data:text,
  485. success:()=>{
  486. uni.showToast({
  487. title:'内容已成功复制到剪切板',
  488. icon:'none'
  489. });
  490. }
  491. });
  492. },
  493. // 退货
  494. refund() {
  495. uni.navigateTo({
  496. url: './refundOrderProduct?orderId='+this.orderId
  497. })
  498. }
  499. }
  500. }
  501. </script>
  502. <style lang="scss">
  503. .fixed-top-box{
  504. width: 100%;
  505. //background: linear-gradient(135deg, #66b2ef 0%, #2BC7B9 100%);
  506. position: fixed;
  507. top: 0;
  508. left: 0;
  509. z-index: 1000;
  510. overflow: hidden;
  511. .bg{
  512. width: 100%;
  513. height: auto;
  514. position: absolute;
  515. top: 0;
  516. left: 0;
  517. z-index: -1;
  518. }
  519. .back-box{
  520. height: 88upx;
  521. padding-left: 22upx;
  522. display: flex;
  523. align-items: center;
  524. justify-content: space-between;
  525. padding: 0 20upx;
  526. image{
  527. width: 40upx;
  528. height: 40upx;
  529. }
  530. .title{
  531. font-size: 36upx;
  532. font-family: PingFang SC;
  533. font-weight: 500;
  534. color: #FFFFFF;
  535. }
  536. }
  537. }
  538. .top-cont{
  539. width: 100%;
  540. height: 476upx;
  541. position: relative;
  542. .bg{
  543. width: 100%;
  544. height: 100%;
  545. position: absolute;
  546. top: 0;
  547. left: 0;
  548. z-index: 1;
  549. }
  550. .top-inner{
  551. width: 100%;
  552. height: 100%;
  553. position: absolute;
  554. top: 0;
  555. left: 0;
  556. z-index: 2;
  557. .order-status{
  558. margin-top: 60upx;
  559. display: flex;
  560. align-items: center;
  561. justify-content: space-between;
  562. padding: 0 30upx;
  563. .inner{
  564. display: flex;
  565. align-items: center;
  566. .img-box{
  567. width: 96upx;
  568. height: 96upx;
  569. margin-right: 30upx;
  570. image{
  571. width: 100%;
  572. height: 100%;
  573. }
  574. }
  575. .status-box{
  576. height: 96upx;
  577. display: flex;
  578. flex-direction: column;
  579. justify-content: center;
  580. .status{
  581. font-size: 40upx;
  582. font-family: PingFang SC;
  583. font-weight: bold;
  584. color: #FFFFFF;
  585. line-height: 1;
  586. }
  587. .desc{
  588. font-size: 26upx;
  589. font-family: PingFang SC;
  590. font-weight: 500;
  591. color: #FFFFFF;
  592. line-height: 1;
  593. margin-top: 30upx;
  594. }
  595. }
  596. }
  597. }
  598. .order-placer{
  599. margin-top: 50upx;
  600. padding: 0 20upx;
  601. .inner{
  602. box-sizing: border-box;
  603. border-radius: 16upx;
  604. height: 150upx;
  605. padding: 40upx 30upx;
  606. display: flex;
  607. align-items: center;
  608. background: #FFFFFF;
  609. .location{
  610. width: 24upx;
  611. height: 27upx;
  612. margin-right: 18upx;
  613. flex-shrink: 0;
  614. }
  615. .info{
  616. .name-phone{
  617. display: flex;
  618. align-items: center;
  619. .text{
  620. font-size: 28upx;
  621. font-family: PingFang SC;
  622. font-weight: bold;
  623. color: #333333;
  624. line-height: 1;
  625. margin-right: 20upx;
  626. &:last-child{
  627. margin-right: 0;
  628. }
  629. }
  630. }
  631. .address{
  632. font-size: 26upx;
  633. font-family: PingFang SC;
  634. font-weight: 500;
  635. color: #999999;
  636. line-height: 1.3;
  637. margin-top: 10upx;
  638. }
  639. }
  640. }
  641. }
  642. }
  643. }
  644. .content{
  645. margin: 20rpx 0rpx;
  646. padding: 0 20upx 140rpx 20upx;
  647. .goods-list{
  648. padding: 0 30upx;
  649. background-color: #FFFFFF;
  650. border-radius: 16upx;
  651. .item{
  652. padding: 30upx 0;
  653. border-bottom: 1px solid #EDEEEF;
  654. display: flex;
  655. align-items: center;
  656. .img-box{
  657. width: 160upx;
  658. height: 160upx;
  659. margin-right: 30upx;
  660. image{
  661. width: 100%;
  662. height: 100%;
  663. }
  664. }
  665. .info-box{
  666. width: calc(100% - 190upx);
  667. height: 160upx;
  668. display: flex;
  669. flex-direction: column;
  670. justify-content: space-between;
  671. .name-box{
  672. font-size: 28upx;
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. color: #111111;
  676. line-height: 40upx;
  677. .tag{
  678. display: inline-block;
  679. padding: 0 6upx;
  680. height: 30upx;
  681. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  682. border-radius: 4upx;
  683. margin-right: 10upx;
  684. font-size: 22upx;
  685. font-family: PingFang SC;
  686. font-weight: bold;
  687. color: #FFFFFF;
  688. line-height: 30upx;
  689. float: left;
  690. margin-top: 7upx;
  691. }
  692. }
  693. .spec{
  694. margin-top: 18upx;
  695. font-size: 24upx;
  696. font-family: PingFang SC;
  697. font-weight: 500;
  698. color: #999999;
  699. line-height: 1;
  700. }
  701. .price-num{
  702. display: flex;
  703. align-items: center;
  704. justify-content: space-between;
  705. .price{
  706. display: flex;
  707. align-items: flex-end;
  708. .unit{
  709. font-size: 24upx;
  710. font-family: PingFang SC;
  711. font-weight: 500;
  712. color: #111111;
  713. line-height: 1.2;
  714. margin-right: 4upx;
  715. }
  716. .num{
  717. font-size: 32upx;
  718. font-family: PingFang SC;
  719. font-weight: 500;
  720. color: #111111;
  721. line-height: 1;
  722. }
  723. }
  724. .num{
  725. font-size: 24upx;
  726. font-family: PingFang SC;
  727. font-weight: 500;
  728. color: #999999;
  729. line-height: 1;
  730. }
  731. }
  732. }
  733. }
  734. .sub-total{
  735. height: 88upx;
  736. display: flex;
  737. align-items: center;
  738. justify-content: flex-end;
  739. .discount{
  740. font-size: 24upx;
  741. font-family: PingFang SC;
  742. font-weight: 500;
  743. color: #999999;
  744. line-height: 1;
  745. margin-right: 30upx;
  746. }
  747. .label{
  748. font-size: 24upx;
  749. font-family: PingFang SC;
  750. font-weight: 500;
  751. color: #999999;
  752. }
  753. .price{
  754. display: flex;
  755. align-items: flex-end;
  756. .unit{
  757. font-size: 24upx;
  758. font-family: PingFang SC;
  759. font-weight: 500;
  760. color: #FF6633;
  761. line-height: 1.2;
  762. margin-right: 4upx;
  763. }
  764. .num{
  765. font-size: 32upx;
  766. font-family: PingFang SC;
  767. font-weight: bold;
  768. color: #FF6633;
  769. line-height: 1;
  770. }
  771. }
  772. }
  773. }
  774. .order-info{
  775. margin-top: 20upx;
  776. background: #FFFFFF;
  777. border-radius: 16upx;
  778. padding: 40upx 30upx;
  779. .title{
  780. font-size: 30upx;
  781. font-family: PingFang SC;
  782. font-weight: bold;
  783. color: #222222;
  784. line-height: 1;
  785. }
  786. .item{
  787. margin-top: 40upx;
  788. display: flex;
  789. align-items: center;
  790. justify-content: space-between;
  791. .label{
  792. font-size: 26upx;
  793. font-family: PingFang SC;
  794. font-weight: 500;
  795. color: #666666;
  796. line-height: 1;
  797. }
  798. .text{
  799. font-size: 26upx;
  800. font-family: PingFang SC;
  801. font-weight: 500;
  802. color: #222222;
  803. line-height: 32upx;
  804. }
  805. .cont-text{
  806. font-size: 26upx;
  807. font-family: PingFang SC;
  808. font-weight: 500;
  809. color: #666666;
  810. .bold{
  811. color: #111111;
  812. }
  813. }
  814. .sn-box{
  815. display: flex;
  816. align-items: center;
  817. .copy-btn{
  818. width: 58upx;
  819. height: 32upx;
  820. line-height: 32upx;
  821. text-align: center;
  822. font-size: 22upx;
  823. font-family: PingFang SC;
  824. font-weight: 500;
  825. color: #222222;
  826. background: #F5F5F5;
  827. border-radius: 4upx;
  828. margin-left: 24upx;
  829. }
  830. }
  831. .check-box{
  832. display: flex;
  833. align-items: center;
  834. image{
  835. width: 14upx;
  836. height: 24upx;
  837. margin-left: 10upx;
  838. }
  839. }
  840. }
  841. .line{
  842. width: 100%;
  843. height: 1px;
  844. background: #F0F0F0;
  845. margin-top: 30upx;
  846. }
  847. }
  848. }
  849. .btn-box{
  850. z-index: 999;
  851. bottom: 0;
  852. width: 100%;
  853. position: fixed;
  854. height: 120upx;
  855. box-sizing: border-box;
  856. background: #FFFFFF;
  857. padding: 0 30upx;
  858. display: flex;
  859. align-items: center;
  860. justify-content: flex-end;
  861. .btn{
  862. width: 155upx;
  863. height: 64upx;
  864. line-height: 64upx;
  865. font-size: 26upx;
  866. font-family: PingFang SC;
  867. font-weight: 500;
  868. text-align: center;
  869. border-radius: 32upx;
  870. margin-left: 15upx;
  871. &.cancel{
  872. border: 1px solid #DDDDDD;
  873. color: #666666;
  874. }
  875. &.pay{
  876. background: #2BC7B9;
  877. color: #FFFFFF;
  878. }
  879. }
  880. }
  881. </style>