storeOrderDetail.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. <template>
  2. <view>
  3. <!-- 这里是状态栏 -->
  4. <view class="fixed-top-box">
  5. <image class="bg" src="https://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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)">
  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>{{JSON.parse(item.jsonInfo).productName}}
  129. </view>
  130. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  131. </view>
  132. <view class="price-num">
  133. <view class="price">
  134. <text class="unit">¥</text>
  135. <text class="num">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text>
  136. </view>
  137. <view class="num">x{{JSON.parse(item.jsonInfo).num}}</view>
  138. </view>
  139. </view>
  140. </view>
  141. <view v-if="order.isPackage==1&&order.packageJson!=null" class="item" >
  142. <view class="img-box">
  143. <image :src="JSON.parse(order.packageJson).imgUrl" mode="aspectFill"></image>
  144. </view>
  145. <view class="info-box">
  146. <view>
  147. <view class="name-box ellipsis2">
  148. <view class="tag">套餐</view>{{JSON.parse(order.packageJson).title}}
  149. </view>
  150. <view class="spec ellipsis2">{{JSON.parse(order.packageJson).descs}}</view>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 已优惠、小计 -->
  155. <view class="sub-total">
  156. <view class="discount">
  157. 订单金额:¥{{order.payPrice}}
  158. </view>
  159. <!-- <text class="label">实付金额:</text>
  160. <view class="price">
  161. <text class="unit">¥</text>
  162. <text class="num">{{order.payMoney}}</text>
  163. </view> -->
  164. </view>
  165. </view>
  166. <!-- 订单信息 -->
  167. <view class="order-info">
  168. <view class="title">订单信息</view>
  169. <view class="item">
  170. <text class="label">订单编号</text>
  171. <view class="sn-box">
  172. <text class="text">{{order.orderCode}}</text>
  173. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  174. </view>
  175. </view>
  176. <view class="item">
  177. <text class="label">下单时间</text>
  178. <text class="text">{{order.createTime}}</text>
  179. </view>
  180. <view class="item">
  181. <text class="label">支付方式</text>
  182. <text class="text" v-if="order.payType==1">微信支付</text>
  183. <text class="text" v-if="order.payType==2">物流代收</text>
  184. </view>
  185. <view class="item">
  186. <text class="label">订单金额</text>
  187. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  188. </view>
  189. <view class="item">
  190. <text class="label">优惠金额</text>
  191. <text class="text" v-if="order.couponPrice!=null">-¥{{order.couponPrice.toFixed(2)}}</text>
  192. </view>
  193. <view class="item">
  194. <text class="label">应付金额</text>
  195. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  196. </view>
  197. <view class="item">
  198. <text class="label">支付金额</text>
  199. <text class="text" v-if="order.payMoney!=null">¥{{order.payMoney.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://czwh.obs.cn-southwest-2.myhuaweicloud.com/app/orangeShop/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. </view>
  252. </template>
  253. <script>
  254. import {getMyStoreOrderById,cancelOrder,express,finishOrder,orderBindUser,getReceiptType} from '@/api/storeOrder'
  255. import ykscreenRecord from "@/components/yk-screenRecord/yk-screenRecord.vue"
  256. export default {
  257. components:{
  258. ykscreenRecord
  259. },
  260. data() {
  261. return {
  262. isAfterSales:0,
  263. payLimitTime:null,
  264. orderId:null,
  265. order:{},
  266. items:[],
  267. prescribe:null,
  268. // 状态栏的高度
  269. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  270. query: "",
  271. isBind: false,
  272. loading: true,
  273. isBindMsg: '',
  274. transactionId:''
  275. };
  276. },
  277. onLoad(option) {
  278. this.orderId = option.id
  279. this.query = option.q && option.q != undefined ? decodeURIComponent(option.q) : '' // 获取到二维码原始链接内容
  280. // app.js
  281. // 检查场景值是否来自确认收货组件回调
  282. uni.$on('getOrderList',(data)=>{
  283. this.getMyStoreOrderById(data)
  284. })
  285. },
  286. onShow() {
  287. if(this.query&&!this.isBind) {
  288. const params = this.utils.urlToObj(this.query)
  289. this.orderBindUser(params.orderId)
  290. } else {
  291. this.isBindMsg = ''
  292. this.loading = true
  293. uni.showLoading({
  294. title: '加载中...'
  295. })
  296. this.getMyStoreOrderById()
  297. }
  298. },
  299. onUnload() {
  300. uni.$on('getOrderList')
  301. },
  302. methods: {
  303. getReceiptTypes(){
  304. getReceiptType().then(res=>{
  305. if(res.code==200){
  306. if(res.data==true){
  307. // 拉起确认收货组件
  308. if (wx.openBusinessView) {
  309. wx.openBusinessView({
  310. businessType: 'weappOrderConfirm',
  311. extraData: {
  312. // 以下三种标识方式,根据实际情况选择一种即可
  313. transaction_id: this.transactionId, // 微信支付单号
  314. // merchant_id: '1230000109', // 商户号
  315. // merchant_trade_no: '1234323JKHDFE1243252' // 商户内部订单号
  316. },
  317. success(res) {
  318. console.log('调起组件成功', res);
  319. },
  320. fail(err) {
  321. console.error('调起组件失败', err);
  322. }
  323. });
  324. } else {
  325. // 引导用户升级微信客户端版本
  326. wx.showModal({
  327. title: '提示',
  328. content: '您的微信版本过低,请升级至最新版本后重试。'
  329. });
  330. }
  331. }else{
  332. var data = {
  333. orderId:that.order.id
  334. };
  335. finishOrder(data).then(res => {
  336. if(res.code==200){
  337. that.getMyStoreOrderById()
  338. uni.$emit('refreshOrder');
  339. }else{
  340. uni.showToast({
  341. icon:'none',
  342. title: res.msg,
  343. });
  344. }
  345. });
  346. }
  347. }else{
  348. uni.showToast({
  349. icon:'none',
  350. title: res.msg,
  351. });
  352. }
  353. })
  354. },
  355. orderBindUser(orderId) {
  356. this.isBind = false
  357. this.isBindMsg = ''
  358. this.loading = true
  359. uni.showLoading({
  360. title: '加载中...'
  361. })
  362. orderBindUser({orderId: orderId}).then(res => {
  363. if(res.code==200){
  364. this.isBind = true
  365. this.orderId = orderId
  366. this.getMyStoreOrderById()
  367. }else{
  368. this.loading = false
  369. uni.hideLoading()
  370. this.isBind = false
  371. this.isBindMsg = res.msg
  372. uni.showToast({
  373. icon:'none',
  374. title: res.msg,
  375. });
  376. }
  377. }).catch(()=>{
  378. this.loading = false
  379. uni.hideLoading()
  380. });
  381. },
  382. openDetails(item){
  383. uni.navigateTo({
  384. url: '/pages/shopping/productDetails?productId='+item.productId
  385. })
  386. },
  387. addPrescribe(){
  388. uni.navigateTo({
  389. url:"/pages/shopping/prescribe?orderId="+this.order.id
  390. })
  391. },
  392. showImg(){
  393. var imgArr = [];
  394. imgArr.push(this.prescribe.rpUrl)
  395. //预览图片
  396. uni.previewImage({
  397. urls: imgArr,
  398. current: imgArr[0]
  399. });
  400. },
  401. getMyStoreOrderById(){
  402. var data={orderId:this.orderId};
  403. getMyStoreOrderById(data).then(res => {
  404. this.loading = false
  405. uni.hideLoading()
  406. if(res.code==200){
  407. this.order=res.order;
  408. this.items=res.items;
  409. this.payLimitTime=res.payLimitTime;
  410. this.prescribe=res.prescribe;
  411. this.isAfterSales=res.isAfterSales;
  412. this.transactionId=res.transactionId
  413. }else{
  414. uni.showToast({
  415. icon:'none',
  416. title: "请求失败",
  417. });
  418. }
  419. }).catch(()=>{
  420. uni.hideLoading()
  421. this.loading = false
  422. });
  423. },
  424. express(){
  425. uni.navigateTo({
  426. url: './storeOrderDelivery?orderId='+this.order.id
  427. })
  428. },
  429. cancel(){
  430. var that=this;
  431. uni.showModal({
  432. title: '提示',
  433. content: '确定取消订单吗',
  434. success: function (res) {
  435. if (res.confirm) {
  436. var data = {
  437. orderId:that.order.id
  438. };
  439. cancelOrder(data).then(res => {
  440. if(res.code==200){
  441. that.getMyStoreOrderById()
  442. uni.$emit('refreshOrder');
  443. }else{
  444. uni.showToast({
  445. icon:'none',
  446. title: res.msg,
  447. });
  448. }
  449. });
  450. }
  451. else if (res.cancel) {
  452. }
  453. }
  454. });
  455. },
  456. finish(){
  457. var that=this;
  458. uni.showModal({
  459. title: '提示',
  460. content: '确定已收货吗',
  461. success: function (res) {
  462. console.log('lll',res)
  463. if (res.confirm) {
  464. console.log('lllzzz',res)
  465. var data = {
  466. orderId:that.order.id
  467. };
  468. that.getReceiptTypes()
  469. // finishOrder(data).then(res => {
  470. // if(res.code==200){
  471. // that.getMyStoreOrderById()
  472. // uni.$emit('refreshOrder');
  473. // }else{
  474. // uni.showToast({
  475. // icon:'none',
  476. // title: res.msg,
  477. // });
  478. // }
  479. // });
  480. }
  481. else if (res.cancel) {
  482. }
  483. }
  484. });
  485. },
  486. pay() {
  487. if(this.order.isPrescribe==1 && this.order.prescribeId==null){
  488. uni.navigateTo({
  489. url:"/pages/shopping/prescribe?orderId="+this.order.id
  490. });
  491. }
  492. else{
  493. uni.navigateTo({
  494. url: '/pages/shopping/paymentOrder?orderId='+this.order.id
  495. })
  496. }
  497. },
  498. payRemain() {
  499. uni.navigateTo({
  500. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.id
  501. })
  502. },
  503. // 返回上一页
  504. back() {
  505. let pages = getCurrentPages();
  506. console.log(pages.length);
  507. if(pages.length>1){
  508. uni.navigateBack()
  509. }
  510. else{
  511. uni.reLaunch({
  512. url:"/pages/common/launch"
  513. })
  514. }
  515. },
  516. // 复制订单编号
  517. copyOrderSn(text) {
  518. // 复制方法
  519. uni.setClipboardData({
  520. data:text,
  521. success:()=>{
  522. uni.showToast({
  523. title:'内容已成功复制到剪切板',
  524. icon:'none'
  525. });
  526. }
  527. });
  528. },
  529. // 退货
  530. refund() {
  531. uni.navigateTo({
  532. url: './refundOrderProduct?orderId='+this.orderId
  533. })
  534. }
  535. }
  536. }
  537. </script>
  538. <style lang="scss">
  539. .fixed-top-box{
  540. width: 100%;
  541. //background: linear-gradient(135deg, #ef9266 0%, #FC581C 100%);
  542. position: fixed;
  543. top: 0;
  544. left: 0;
  545. z-index: 1000;
  546. overflow: hidden;
  547. .bg{
  548. width: 100%;
  549. height: auto;
  550. position: absolute;
  551. top: 0;
  552. left: 0;
  553. z-index: -1;
  554. }
  555. .back-box{
  556. height: 88upx;
  557. padding-left: 22upx;
  558. display: flex;
  559. align-items: center;
  560. justify-content: space-between;
  561. padding: 0 20upx;
  562. image{
  563. width: 40upx;
  564. height: 40upx;
  565. }
  566. .title{
  567. font-size: 36upx;
  568. font-family: PingFang SC;
  569. font-weight: 500;
  570. color: #FFFFFF;
  571. }
  572. }
  573. }
  574. .top-cont{
  575. width: 100%;
  576. height: 476upx;
  577. position: relative;
  578. .bg{
  579. width: 100%;
  580. height: 100%;
  581. position: absolute;
  582. top: 0;
  583. left: 0;
  584. z-index: 1;
  585. }
  586. .top-inner{
  587. width: 100%;
  588. height: 100%;
  589. position: absolute;
  590. top: 0;
  591. left: 0;
  592. z-index: 2;
  593. .order-status{
  594. margin-top: 60upx;
  595. display: flex;
  596. align-items: center;
  597. justify-content: space-between;
  598. padding: 0 30upx;
  599. .inner{
  600. display: flex;
  601. align-items: center;
  602. .img-box{
  603. width: 96upx;
  604. height: 96upx;
  605. margin-right: 30upx;
  606. image{
  607. width: 100%;
  608. height: 100%;
  609. }
  610. }
  611. .status-box{
  612. height: 96upx;
  613. display: flex;
  614. flex-direction: column;
  615. justify-content: center;
  616. .status{
  617. font-size: 40upx;
  618. font-family: PingFang SC;
  619. font-weight: bold;
  620. color: #FFFFFF;
  621. line-height: 1;
  622. }
  623. .desc{
  624. font-size: 26upx;
  625. font-family: PingFang SC;
  626. font-weight: 500;
  627. color: #FFFFFF;
  628. line-height: 1;
  629. margin-top: 30upx;
  630. }
  631. }
  632. }
  633. }
  634. .order-placer{
  635. margin-top: 50upx;
  636. padding: 0 20upx;
  637. .inner{
  638. box-sizing: border-box;
  639. border-radius: 16upx;
  640. height: 150upx;
  641. padding: 40upx 30upx;
  642. display: flex;
  643. align-items: center;
  644. background: #FFFFFF;
  645. .location{
  646. width: 24upx;
  647. height: 27upx;
  648. margin-right: 18upx;
  649. flex-shrink: 0;
  650. }
  651. .info{
  652. .name-phone{
  653. display: flex;
  654. align-items: center;
  655. .text{
  656. font-size: 28upx;
  657. font-family: PingFang SC;
  658. font-weight: bold;
  659. color: #333333;
  660. line-height: 1;
  661. margin-right: 20upx;
  662. &:last-child{
  663. margin-right: 0;
  664. }
  665. }
  666. }
  667. .address{
  668. font-size: 26upx;
  669. font-family: PingFang SC;
  670. font-weight: 500;
  671. color: #999999;
  672. line-height: 1.3;
  673. margin-top: 10upx;
  674. }
  675. }
  676. }
  677. }
  678. }
  679. }
  680. .content{
  681. margin: 20rpx 0rpx;
  682. padding: 0 20upx 140rpx 20upx;
  683. .goods-list{
  684. padding: 0 30upx;
  685. background-color: #FFFFFF;
  686. border-radius: 16upx;
  687. .item{
  688. padding: 30upx 0;
  689. border-bottom: 1px solid #EDEEEF;
  690. display: flex;
  691. align-items: center;
  692. .img-box{
  693. width: 160upx;
  694. height: 160upx;
  695. margin-right: 30upx;
  696. image{
  697. width: 100%;
  698. height: 100%;
  699. }
  700. }
  701. .info-box{
  702. width: calc(100% - 190upx);
  703. height: 160upx;
  704. display: flex;
  705. flex-direction: column;
  706. justify-content: space-between;
  707. .name-box{
  708. font-size: 28upx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #111111;
  712. line-height: 40upx;
  713. .tag{
  714. display: inline-block;
  715. padding: 0 6upx;
  716. height: 30upx;
  717. background: linear-gradient(90deg, #ef9266 0%, #FC581C 100%);
  718. border-radius: 4upx;
  719. margin-right: 10upx;
  720. font-size: 22upx;
  721. font-family: PingFang SC;
  722. font-weight: bold;
  723. color: #FFFFFF;
  724. line-height: 30upx;
  725. float: left;
  726. margin-top: 7upx;
  727. }
  728. }
  729. .spec{
  730. margin-top: 18upx;
  731. font-size: 24upx;
  732. font-family: PingFang SC;
  733. font-weight: 500;
  734. color: #999999;
  735. line-height: 1;
  736. }
  737. .price-num{
  738. display: flex;
  739. align-items: center;
  740. justify-content: space-between;
  741. .price{
  742. display: flex;
  743. align-items: flex-end;
  744. .unit{
  745. font-size: 24upx;
  746. font-family: PingFang SC;
  747. font-weight: 500;
  748. color: #111111;
  749. line-height: 1.2;
  750. margin-right: 4upx;
  751. }
  752. .num{
  753. font-size: 32upx;
  754. font-family: PingFang SC;
  755. font-weight: 500;
  756. color: #111111;
  757. line-height: 1;
  758. }
  759. }
  760. .num{
  761. font-size: 24upx;
  762. font-family: PingFang SC;
  763. font-weight: 500;
  764. color: #999999;
  765. line-height: 1;
  766. }
  767. }
  768. }
  769. }
  770. .sub-total{
  771. height: 88upx;
  772. display: flex;
  773. align-items: center;
  774. justify-content: flex-end;
  775. .discount{
  776. font-size: 24upx;
  777. font-family: PingFang SC;
  778. font-weight: 500;
  779. color: #999999;
  780. line-height: 1;
  781. margin-right: 30upx;
  782. }
  783. .label{
  784. font-size: 24upx;
  785. font-family: PingFang SC;
  786. font-weight: 500;
  787. color: #999999;
  788. }
  789. .price{
  790. display: flex;
  791. align-items: flex-end;
  792. .unit{
  793. font-size: 24upx;
  794. font-family: PingFang SC;
  795. font-weight: 500;
  796. color: #FF6633;
  797. line-height: 1.2;
  798. margin-right: 4upx;
  799. }
  800. .num{
  801. font-size: 32upx;
  802. font-family: PingFang SC;
  803. font-weight: bold;
  804. color: #FF6633;
  805. line-height: 1;
  806. }
  807. }
  808. }
  809. }
  810. .order-info{
  811. margin-top: 20upx;
  812. background: #FFFFFF;
  813. border-radius: 16upx;
  814. padding: 40upx 30upx;
  815. .title{
  816. font-size: 30upx;
  817. font-family: PingFang SC;
  818. font-weight: bold;
  819. color: #222222;
  820. line-height: 1;
  821. }
  822. .item{
  823. margin-top: 40upx;
  824. display: flex;
  825. align-items: center;
  826. justify-content: space-between;
  827. .label{
  828. font-size: 26upx;
  829. font-family: PingFang SC;
  830. font-weight: 500;
  831. color: #666666;
  832. line-height: 1;
  833. }
  834. .text{
  835. font-size: 26upx;
  836. font-family: PingFang SC;
  837. font-weight: 500;
  838. color: #222222;
  839. line-height: 32upx;
  840. }
  841. .cont-text{
  842. font-size: 26upx;
  843. font-family: PingFang SC;
  844. font-weight: 500;
  845. color: #666666;
  846. .bold{
  847. color: #111111;
  848. }
  849. }
  850. .sn-box{
  851. display: flex;
  852. align-items: center;
  853. .copy-btn{
  854. width: 58upx;
  855. height: 32upx;
  856. line-height: 32upx;
  857. text-align: center;
  858. font-size: 22upx;
  859. font-family: PingFang SC;
  860. font-weight: 500;
  861. color: #222222;
  862. background: #F5F5F5;
  863. border-radius: 4upx;
  864. margin-left: 24upx;
  865. }
  866. }
  867. .check-box{
  868. display: flex;
  869. align-items: center;
  870. image{
  871. width: 14upx;
  872. height: 24upx;
  873. margin-left: 10upx;
  874. }
  875. }
  876. }
  877. .line{
  878. width: 100%;
  879. height: 1px;
  880. background: #F0F0F0;
  881. margin-top: 30upx;
  882. }
  883. }
  884. }
  885. .btn-box{
  886. z-index: 999;
  887. bottom: 0;
  888. width: 100%;
  889. position: fixed;
  890. height: 120upx;
  891. box-sizing: border-box;
  892. background: #FFFFFF;
  893. padding: 0 30upx;
  894. display: flex;
  895. align-items: center;
  896. justify-content: flex-end;
  897. .btn{
  898. width: 155upx;
  899. height: 64upx;
  900. line-height: 64upx;
  901. font-size: 26upx;
  902. font-family: PingFang SC;
  903. font-weight: 500;
  904. text-align: center;
  905. border-radius: 32upx;
  906. margin-left: 15upx;
  907. &.cancel{
  908. border: 1px solid #DDDDDD;
  909. color: #666666;
  910. }
  911. &.pay{
  912. background: #FC581C;
  913. color: #FFFFFF;
  914. }
  915. }
  916. }
  917. </style>