storeOrderDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  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,syncExpress} 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. syncExpress(orderId) {
  298. var data={orderId:orderId};
  299. syncExpress(data).then(res => {
  300. if(res.code==200){
  301. }else{
  302. uni.showToast({
  303. icon:'none',
  304. title: res.msg,
  305. });
  306. }
  307. })
  308. },
  309. orderBindUser(orderId) {
  310. this.isBind = false
  311. this.isBindMsg = ''
  312. this.loading = true
  313. uni.showLoading({
  314. title: '加载中...'
  315. })
  316. orderBindUser({orderId: orderId}).then(res => {
  317. if(res.code==200){
  318. this.isBind = true
  319. this.orderId = orderId
  320. this.getMyStoreOrderById()
  321. }else{
  322. this.loading = false
  323. uni.hideLoading()
  324. this.isBind = false
  325. this.isBindMsg = res.msg
  326. uni.showToast({
  327. icon:'none',
  328. title: res.msg,
  329. });
  330. }
  331. }).catch(()=>{
  332. this.loading = false
  333. uni.hideLoading()
  334. });
  335. },
  336. openDetails(item){
  337. console.log(item)
  338. uni.navigateTo({
  339. url: '/pages/shopping/productDetails?productId='+item
  340. })
  341. },
  342. addPrescribe(){
  343. uni.navigateTo({
  344. url:"/pages/shopping/prescribe?orderId="+this.order.id
  345. })
  346. },
  347. showImg(){
  348. var imgArr = [];
  349. imgArr.push(this.prescribe.rpUrl)
  350. //预览图片
  351. uni.previewImage({
  352. urls: imgArr,
  353. current: imgArr[0]
  354. });
  355. },
  356. getMyStoreOrderById(){
  357. var data={orderId:this.orderId};
  358. getMyStoreOrderById(data).then(res => {
  359. this.loading = false
  360. uni.hideLoading()
  361. if(res.code==200){
  362. this.order=res.order;
  363. this.items=res.items;
  364. this.payLimitTime=res.payLimitTime;
  365. this.prescribe=res.prescribe;
  366. this.isAfterSales=res.isAfterSales;
  367. this.syncExpress(this.orderId)
  368. }else{
  369. uni.showToast({
  370. icon:'none',
  371. title: "请求失败",
  372. });
  373. }
  374. }).catch(()=>{
  375. uni.hideLoading()
  376. this.loading = false
  377. });
  378. },
  379. express(){
  380. uni.navigateTo({
  381. url: './storeOrderDelivery?orderId='+this.order.id
  382. })
  383. },
  384. cancel(){
  385. var that=this;
  386. uni.showModal({
  387. title: '提示',
  388. content: '确定取消订单吗',
  389. success: function (res) {
  390. if (res.confirm) {
  391. var data = {
  392. orderId:that.order.id
  393. };
  394. cancelOrder(data).then(res => {
  395. if(res.code==200){
  396. that.getMyStoreOrderById()
  397. uni.$emit('refreshOrder');
  398. }else{
  399. uni.showToast({
  400. icon:'none',
  401. title: res.msg,
  402. });
  403. }
  404. });
  405. }
  406. else if (res.cancel) {
  407. }
  408. }
  409. });
  410. },
  411. finish(){
  412. var that=this;
  413. uni.showModal({
  414. title: '提示',
  415. content: '确定已收货吗',
  416. success: function (res) {
  417. if (res.confirm) {
  418. var data = {
  419. orderId:that.order.id
  420. };
  421. finishOrder(data).then(res => {
  422. if(res.code==200){
  423. that.getMyStoreOrderById()
  424. uni.$emit('refreshOrder');
  425. }else{
  426. uni.showToast({
  427. icon:'none',
  428. title: res.msg,
  429. });
  430. }
  431. });
  432. }
  433. else if (res.cancel) {
  434. }
  435. }
  436. });
  437. },
  438. async pay() {
  439. if(this.order.isPrescribe==1 && this.order.prescribeId==null){
  440. uni.navigateTo({
  441. url:"/pages/shopping/prescribe?orderId="+this.order.id
  442. });
  443. }
  444. else{
  445. // 商城订单,使用orderCode校验限购
  446. if(this.order.orderCode){
  447. try {
  448. const res = await checkOrderPurchaseLimit({ orderCode: this.order.orderCode });
  449. if (res.code !== 200) {
  450. this.$refs.customToast.show({
  451. title: res.msg || '订单商品限购校验失败',
  452. duration: 2000
  453. });
  454. // uni.showToast({
  455. // icon: 'none',
  456. // title: res.msg || '订单商品限购校验失败'
  457. // });
  458. return;
  459. }
  460. } catch (error) {
  461. console.error('检查限购失败:', error);
  462. uni.showToast({
  463. icon: 'none',
  464. title: '检查限购失败,请稍后重试'
  465. });
  466. return;
  467. }
  468. }
  469. // 限购检查通过,进行支付跳转
  470. uni.navigateTo({
  471. url: '/pages/shopping/paymentOrder?orderId='+this.order.id
  472. })
  473. }
  474. },
  475. payRemain() {
  476. uni.navigateTo({
  477. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.id
  478. })
  479. },
  480. // 返回上一页
  481. back() {
  482. let pages = getCurrentPages();
  483. console.log(pages.length);
  484. if(pages.length>1){
  485. uni.navigateBack()
  486. }
  487. else{
  488. uni.reLaunch({
  489. url:"/pages/common/launch"
  490. })
  491. }
  492. },
  493. // 复制订单编号
  494. copyOrderSn(text) {
  495. // 复制方法
  496. uni.setClipboardData({
  497. data:text,
  498. success:()=>{
  499. uni.showToast({
  500. title:'内容已成功复制到剪切板',
  501. icon:'none'
  502. });
  503. }
  504. });
  505. },
  506. // 退货
  507. refund() {
  508. uni.navigateTo({
  509. url: './refundOrderProduct?orderId='+this.orderId
  510. })
  511. }
  512. }
  513. }
  514. </script>
  515. <style lang="scss">
  516. .fixed-top-box{
  517. width: 100%;
  518. //background: linear-gradient(135deg, #66b2ef 0%, #FF233C 100%);
  519. position: fixed;
  520. top: 0;
  521. left: 0;
  522. z-index: 1000;
  523. overflow: hidden;
  524. .bg{
  525. width: 100%;
  526. height: auto;
  527. position: absolute;
  528. top: 0;
  529. left: 0;
  530. z-index: -1;
  531. }
  532. .back-box{
  533. height: 88upx;
  534. padding-left: 22upx;
  535. display: flex;
  536. align-items: center;
  537. justify-content: space-between;
  538. padding: 0 20upx;
  539. image{
  540. width: 40upx;
  541. height: 40upx;
  542. }
  543. .title{
  544. font-size: 36upx;
  545. font-family: PingFang SC;
  546. font-weight: 500;
  547. color: #FFFFFF;
  548. }
  549. }
  550. }
  551. .top-cont{
  552. width: 100%;
  553. height: 476upx;
  554. position: relative;
  555. .bg{
  556. width: 100%;
  557. height: 100%;
  558. position: absolute;
  559. top: 0;
  560. left: 0;
  561. z-index: 1;
  562. }
  563. .top-inner{
  564. width: 100%;
  565. height: 100%;
  566. position: absolute;
  567. top: 0;
  568. left: 0;
  569. z-index: 2;
  570. .order-status{
  571. margin-top: 60upx;
  572. display: flex;
  573. align-items: center;
  574. justify-content: space-between;
  575. padding: 0 30upx;
  576. .inner{
  577. display: flex;
  578. align-items: center;
  579. .img-box{
  580. width: 96upx;
  581. height: 96upx;
  582. margin-right: 30upx;
  583. image{
  584. width: 100%;
  585. height: 100%;
  586. }
  587. }
  588. .status-box{
  589. height: 96upx;
  590. display: flex;
  591. flex-direction: column;
  592. justify-content: center;
  593. .status{
  594. font-size: 40upx;
  595. font-family: PingFang SC;
  596. font-weight: bold;
  597. color: #FFFFFF;
  598. line-height: 1;
  599. }
  600. .desc{
  601. font-size: 26upx;
  602. font-family: PingFang SC;
  603. font-weight: 500;
  604. color: #FFFFFF;
  605. line-height: 1;
  606. margin-top: 30upx;
  607. }
  608. }
  609. }
  610. }
  611. .order-placer{
  612. margin-top: 50upx;
  613. padding: 0 20upx;
  614. .inner{
  615. box-sizing: border-box;
  616. border-radius: 16upx;
  617. height: 150upx;
  618. padding: 40upx 30upx;
  619. display: flex;
  620. align-items: center;
  621. background: #FFFFFF;
  622. .location{
  623. width: 24upx;
  624. height: 27upx;
  625. margin-right: 18upx;
  626. flex-shrink: 0;
  627. }
  628. .info{
  629. .name-phone{
  630. display: flex;
  631. align-items: center;
  632. .text{
  633. font-size: 28upx;
  634. font-family: PingFang SC;
  635. font-weight: bold;
  636. color: #333333;
  637. line-height: 1;
  638. margin-right: 20upx;
  639. &:last-child{
  640. margin-right: 0;
  641. }
  642. }
  643. }
  644. .address{
  645. font-size: 26upx;
  646. font-family: PingFang SC;
  647. font-weight: 500;
  648. color: #999999;
  649. line-height: 1.3;
  650. margin-top: 10upx;
  651. }
  652. }
  653. }
  654. }
  655. }
  656. }
  657. .content{
  658. margin: 20rpx 0rpx;
  659. padding: 0 20upx 140rpx 20upx;
  660. .goods-list{
  661. padding: 0 30upx;
  662. background-color: #FFFFFF;
  663. border-radius: 16upx;
  664. .item{
  665. padding: 30upx 0;
  666. border-bottom: 1px solid #EDEEEF;
  667. display: flex;
  668. align-items: center;
  669. .img-box{
  670. width: 160upx;
  671. height: 160upx;
  672. margin-right: 30upx;
  673. image{
  674. width: 100%;
  675. height: 100%;
  676. }
  677. }
  678. .info-box{
  679. width: calc(100% - 190upx);
  680. height: 160upx;
  681. display: flex;
  682. flex-direction: column;
  683. justify-content: space-between;
  684. .name-box{
  685. font-size: 28upx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #111111;
  689. line-height: 40upx;
  690. .tag{
  691. display: inline-block;
  692. padding: 0 6upx;
  693. height: 30upx;
  694. background: linear-gradient(90deg, #FF233C 0%, #FF233C 100%);
  695. border-radius: 4upx;
  696. margin-right: 10upx;
  697. font-size: 22upx;
  698. font-family: PingFang SC;
  699. font-weight: bold;
  700. color: #FFFFFF;
  701. line-height: 30upx;
  702. // float: left;
  703. margin-top: 7upx;
  704. }
  705. }
  706. .spec{
  707. margin-top: 18upx;
  708. font-size: 24upx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #999999;
  712. line-height: 1;
  713. }
  714. .price-num{
  715. display: flex;
  716. align-items: center;
  717. justify-content: space-between;
  718. .price{
  719. display: flex;
  720. align-items: flex-end;
  721. .unit{
  722. font-size: 24upx;
  723. font-family: PingFang SC;
  724. font-weight: 500;
  725. color: #111111;
  726. line-height: 1.2;
  727. margin-right: 4upx;
  728. }
  729. .num{
  730. font-size: 32upx;
  731. font-family: PingFang SC;
  732. font-weight: 500;
  733. color: #111111;
  734. line-height: 1;
  735. }
  736. }
  737. .num{
  738. font-size: 24upx;
  739. font-family: PingFang SC;
  740. font-weight: 500;
  741. color: #999999;
  742. line-height: 1;
  743. }
  744. }
  745. }
  746. }
  747. .sub-total{
  748. height: 88upx;
  749. display: flex;
  750. align-items: center;
  751. justify-content: flex-end;
  752. .discount{
  753. font-size: 24upx;
  754. font-family: PingFang SC;
  755. font-weight: 500;
  756. color: #999999;
  757. line-height: 1;
  758. margin-right: 30upx;
  759. }
  760. .label{
  761. font-size: 24upx;
  762. font-family: PingFang SC;
  763. font-weight: 500;
  764. color: #999999;
  765. }
  766. .price{
  767. display: flex;
  768. align-items: flex-end;
  769. .unit{
  770. font-size: 24upx;
  771. font-family: PingFang SC;
  772. font-weight: 500;
  773. color: #FF6633;
  774. line-height: 1.2;
  775. margin-right: 4upx;
  776. }
  777. .num{
  778. font-size: 32upx;
  779. font-family: PingFang SC;
  780. font-weight: bold;
  781. color: #FF6633;
  782. line-height: 1;
  783. }
  784. }
  785. }
  786. }
  787. .order-info{
  788. margin-top: 20upx;
  789. background: #FFFFFF;
  790. border-radius: 16upx;
  791. padding: 40upx 30upx;
  792. .title{
  793. font-size: 30upx;
  794. font-family: PingFang SC;
  795. font-weight: bold;
  796. color: #222222;
  797. line-height: 1;
  798. }
  799. .item{
  800. margin-top: 40upx;
  801. display: flex;
  802. align-items: center;
  803. justify-content: space-between;
  804. .label{
  805. font-size: 26upx;
  806. font-family: PingFang SC;
  807. font-weight: 500;
  808. color: #666666;
  809. line-height: 1;
  810. }
  811. .text{
  812. font-size: 26upx;
  813. font-family: PingFang SC;
  814. font-weight: 500;
  815. color: #222222;
  816. line-height: 32upx;
  817. }
  818. .cont-text{
  819. font-size: 26upx;
  820. font-family: PingFang SC;
  821. font-weight: 500;
  822. color: #666666;
  823. .bold{
  824. color: #111111;
  825. }
  826. }
  827. .sn-box{
  828. display: flex;
  829. align-items: center;
  830. .copy-btn{
  831. width: 58upx;
  832. height: 32upx;
  833. line-height: 32upx;
  834. text-align: center;
  835. font-size: 22upx;
  836. font-family: PingFang SC;
  837. font-weight: 500;
  838. color: #222222;
  839. background: #F5F5F5;
  840. border-radius: 4upx;
  841. margin-left: 24upx;
  842. }
  843. }
  844. .check-box{
  845. display: flex;
  846. align-items: center;
  847. image{
  848. width: 14upx;
  849. height: 24upx;
  850. margin-left: 10upx;
  851. }
  852. }
  853. }
  854. .line{
  855. width: 100%;
  856. height: 1px;
  857. background: #F0F0F0;
  858. margin-top: 30upx;
  859. }
  860. }
  861. }
  862. .btn-box{
  863. z-index: 999;
  864. bottom: 0;
  865. width: 100%;
  866. position: fixed;
  867. height: 120upx;
  868. box-sizing: border-box;
  869. background: #FFFFFF;
  870. padding: 0 30upx;
  871. display: flex;
  872. align-items: center;
  873. justify-content: flex-end;
  874. .btn{
  875. width: 155upx;
  876. height: 64upx;
  877. line-height: 64upx;
  878. font-size: 26upx;
  879. font-family: PingFang SC;
  880. font-weight: 500;
  881. text-align: center;
  882. border-radius: 32upx;
  883. margin-left: 15upx;
  884. &.cancel{
  885. border: 1px solid #DDDDDD;
  886. color: #666666;
  887. }
  888. &.pay{
  889. background: #FF233C;
  890. color: #FFFFFF;
  891. }
  892. }
  893. }
  894. </style>