storeOrderDetail.vue 24 KB

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