storeOrderDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <view>
  3. <view class="cont">
  4. <view class="bg"></view>
  5. <view class="inner">
  6. <!-- 订单状态 -->
  7. <view class="order-status">
  8. <!-- 待付款 -->
  9. <view v-if="order.status == 1" class="inner">
  10. <view class="img-box">
  11. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/67eda0644e5847008096525b04cd12ca.png" mode=""></image>
  12. </view>
  13. <view class="status-box">
  14. <text class="status">待付款</text>
  15. <text class="desc">请在{{payLimitTime}}前完成支付</text>
  16. </view>
  17. </view>
  18. <!-- 待发货 -->
  19. <view v-if="order.status == 2" class="inner">
  20. <view class="img-box">
  21. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/520e24fba47441b3b0f73b5250bb0b57.png" mode=""></image>
  22. </view>
  23. <view class="status-box">
  24. <text class="status">待发货</text>
  25. <text class="desc">等待后台发货</text>
  26. </view>
  27. </view>
  28. <!-- 已发货、待收货 -->
  29. <view v-if="order.status == 3" class="inner">
  30. <view class="img-box">
  31. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/1e6ba423ff7e4537bef87a022d530015.png" mode=""></image>
  32. </view>
  33. <view class="status-box">
  34. <text class="status">待收货</text>
  35. <text class="desc">运输中</text>
  36. </view>
  37. </view>
  38. <!-- 已完成 -->
  39. <view v-if="order.status == 4" class="inner">
  40. <view class="img-box">
  41. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/0712ba14f3a648afa69c9912fcbf9b61.png" mode=""></image>
  42. </view>
  43. <view class="status-box">
  44. <text class="status">已完成</text>
  45. <text class="desc">订单已确认收货,交易完成</text>
  46. </view>
  47. </view>
  48. <!--交易取消 -->
  49. <view v-if="order.status == -3" class="inner">
  50. <view class="img-box">
  51. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/02f95bd03e854a9c8076aef1e6c05e74.png" mode=""></image>
  52. </view>
  53. <view class="status-box">
  54. <text class="status">交易关闭</text>
  55. <text class="desc">订单已取消</text>
  56. </view>
  57. </view>
  58. <view v-if="order.status == -1" class="inner">
  59. <view class="img-box">
  60. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/6020712aa10f4bb08db92957cb7eb8ed.png" mode=""></image>
  61. </view>
  62. <view class="status-box">
  63. <text class="status">申请售后</text>
  64. <text class="desc">请等待客服审核,您的退款将在2-5个工作日内原路退回</text>
  65. </view>
  66. </view>
  67. <view v-if="order.status == -2" class="inner">
  68. <view class="img-box">
  69. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/6020712aa10f4bb08db92957cb7eb8ed.png" mode=""></image>
  70. </view>
  71. <view class="status-box">
  72. <text class="status">退款成功</text>
  73. <text class="desc">已成功退款</text>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 下单人信息 -->
  78. <view class="order-placer" v-if="order.userName!=null">
  79. <view class="inner">
  80. <image class="location" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/location.png" mode=""></image>
  81. <view class="info">
  82. <view class="name-phone">
  83. <text class="text">{{order.userName}}</text>
  84. <text class="text" v-if="order.userPhone!=null">{{order.userPhone}}</text>
  85. </view>
  86. <view class="address ellipsis2">
  87. {{order.userAddress}}
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="content">
  93. <!-- 药品列表 -->
  94. <view class="goods-list">
  95. <view v-for="(item,index) in items" :key="index" class="item" >
  96. <view class="img-box">
  97. <image :src="item.image==''?'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/drug.svg':item.image" mode="aspectFill"></image>
  98. </view>
  99. <view class="info-box">
  100. <view>
  101. <view class="name-box ellipsis2">
  102. {{item.productName}}
  103. </view>
  104. <view class="spec ellipsis2">{{item.sku}}</view>
  105. </view>
  106. <view class="price-num">
  107. <view class="price">
  108. <!-- <text class="unit">¥</text> -->
  109. <!-- <text class="num" v-if="item.price!=null">{{item.price.toFixed(2)}}</text> -->
  110. </view>
  111. <view class="num" v-if="order.ordetType==1">x{{item.num}}</view>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 已优惠、小计 -->
  116. <view class="sub-total">
  117. <view class="discount">
  118. 订单金额:¥{{order.payPrice }}
  119. </view>
  120. <!-- <text class="label">实付金额:</text>
  121. <view class="price">
  122. <text class="unit">¥</text>
  123. <text class="num">{{order.payMoney}}</text>
  124. </view> -->
  125. </view>
  126. </view>
  127. <!-- 订单信息 -->
  128. <view class="order-info">
  129. <view class="title">订单信息</view>
  130. <view class="item">
  131. <text class="label">订单编号</text>
  132. <view class="sn-box">
  133. <text class="text">{{order.orderCode}}</text>
  134. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  135. </view>
  136. </view>
  137. <view class="item">
  138. <text class="label">下单时间</text>
  139. <text class="text">{{order.createTime}}</text>
  140. </view>
  141. <view class="item">
  142. <text class="label">支付方式</text>
  143. <text class="text" v-if="order.payType==1">微信支付</text>
  144. <text class="text" v-if="order.payType==2">物流代收</text>
  145. </view>
  146. <view class="item">
  147. <text class="label">订单金额</text>
  148. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  149. </view>
  150. <view class="item">
  151. <text class="label">优惠金额</text>
  152. <text class="text" v-if="order.discountMoney!=null">¥{{order.discountMoney.toFixed(2)}}</text>
  153. </view>
  154. <view class="item">
  155. <text class="label">应付金额</text>
  156. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  157. </view>
  158. <view class="item">
  159. <text class="label">支付金额</text>
  160. <text class="text" v-if="order.payMoney!=null">¥{{order.payMoney.toFixed(2)}}</text>
  161. </view>
  162. <view class="item">
  163. <text class="label">支付时间</text>
  164. <text class="text" v-if="order.payTime!=null">{{order.payTime}}</text>
  165. </view>
  166. <!-- <view v-if="order.status >1" class="item">
  167. <text class="label">发货时间</text>
  168. <text class="text"></text>
  169. </view> -->
  170. </view>
  171. <!-- 子订单 -->
  172. <view class="order-info" v-for="(children,index) in childrenItems" :key="index">
  173. <view class="order-info-title">
  174. <view class="title">子订单{{index}}<text style="font-weight: normal;color: #FF5C03;margin-left: 10rpx;" v-if="children[0].extendOrderId">(已发货)</text></view>
  175. <view class="order-info-r">
  176. <view class="btn pay" v-if="!children[0].extendOrderId" @click="splitOrder2ERP(children[0].orderCode)">申请发货</view>
  177. <view class="btn cancel" v-if="children[0].extendOrderId" @click="showDelivery(1,children[0].orderCode)">查看物流</view>
  178. </view>
  179. </view>
  180. <view class="item" v-if="children[0].extendOrderId">
  181. <text class="label">发货时间</text>
  182. <view class="sn-box">
  183. <text class="text">{{children[0].deliveryTime||'--'}}</text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 按钮 -->
  191. <view class="btn-box">
  192. <view class="btn cancel">
  193. 联系客服
  194. <button class='contact-btn' open-type="contact">
  195. </button>
  196. </view>
  197. <view class="btn cancel" v-if="order.status==1" @click="cancel()">取消订单</view>
  198. <view class="btn pay" v-if="order.status==1" @click="pay()">支付</view>
  199. <!-- <view class="btn pay" v-if="order.status>1&&order.prescribeId!=null&&order.prescribeId>0" @click="showPrescribe()">查看处方单</view> -->
  200. <view class="btn cancel" v-if="order.status>1&&order.isAfterSales==1&&order.orderType==1" @click="refund()">申请售后</view>
  201. <view class="btn cancel" v-if="showInvoice()&&order.status==4&&order.billPrice != order.payPrice" @click="handleInvoice()">申请开票</view>
  202. <view class="btn pay" v-if="order.status==4&&order.billPrice" @click="handleInvoiceList()">查看发票</view>
  203. <view class="btn pay" v-if="order.deliverySn!=null&&order.extendOrderId != 'BATCH'" @click="showDelivery()">查看物流</view>
  204. <view class="btn pay" v-if="order.status==3" @click="finish()">确认收货</view>
  205. </view>
  206. </view>
  207. </template>
  208. <script>
  209. import {getPrescribeById} from '@/api/prescribe.js'
  210. import {getMyStoreOrderById,cancelOrder,finishOrder,splitOrder2ERP} from '@/api/storeOrder'
  211. export default {
  212. data() {
  213. return {
  214. payLimitTime:null,
  215. orderId:null,
  216. order:{},
  217. items:[],
  218. childrenItems:{}
  219. };
  220. },
  221. onLoad(option) {
  222. this.orderId = option.orderId
  223. },
  224. onShow() {
  225. this.getMyStoreOrderById()
  226. },
  227. methods: {
  228. showPrescribe(){
  229. var data={prescribeId:this.order.prescribeId}
  230. getPrescribeById(data).then(
  231. res => {
  232. if(res.code==200){
  233. if(res.data.prescribe.prescribeImgUrl!=null){
  234. var data=[];
  235. data.push(res.data.prescribe.prescribeImgUrl)
  236. uni.previewImage({
  237. current: 0,
  238. urls: data
  239. });
  240. }
  241. else{
  242. uni.showToast({
  243. icon:'none',
  244. title: "电子处方单不存在",
  245. });
  246. }
  247. }
  248. },
  249. err => {
  250. }
  251. );
  252. },
  253. getMyStoreOrderById(){
  254. var data={orderId:this.orderId};
  255. getMyStoreOrderById(data).then(res => {
  256. if(res.code==200){
  257. this.order=res.order;
  258. // this.items=res.items;
  259. this.childrenItems = res.childrenItems || {}
  260. if(this.order.extendOrderId == "BATCH") {
  261. this.items=res.items&&res.items.length > 0? JSON.parse(res.items[0].splitOrderItemJson || '[]') : [];
  262. } else {
  263. let items=JSON.parse(res.order.itemJson || '[]')
  264. if(items&&items.length>0) {
  265. this.items = items.map(it=>JSON.parse(it.jsonInfo))
  266. }
  267. }
  268. this.payLimitTime=res.payLimitTime;
  269. this.prescribe=res.prescribe;
  270. }else{
  271. uni.showToast({
  272. icon:'none',
  273. title: "请求失败",
  274. });
  275. }
  276. });
  277. },
  278. showDelivery(type,orderCode){
  279. if(type==1) {
  280. uni.navigateTo({
  281. url: './storeOrderDelivery?orderCode='+orderCode
  282. })
  283. } else {
  284. uni.navigateTo({
  285. url: './storeOrderDelivery?orderId='+this.orderId
  286. })
  287. }
  288. },
  289. splitOrder2ERP(orderCode){
  290. var that=this;
  291. uni.showModal({
  292. title: '提示',
  293. content: '确定发货吗?',
  294. success: function (res) {
  295. if (res.confirm) {
  296. var data = {
  297. orderCode:orderCode
  298. };
  299. splitOrder2ERP(data).then(res => {
  300. if(res.code==200){
  301. that.getMyStoreOrderById()
  302. }else{
  303. uni.showToast({
  304. icon:'none',
  305. title: res.msg,
  306. });
  307. }
  308. });
  309. }
  310. else if (res.cancel) {
  311. }
  312. }
  313. });
  314. },
  315. cancel(){
  316. var that=this;
  317. uni.showModal({
  318. title: '提示',
  319. content: '确定取消订单吗',
  320. success: function (res) {
  321. if (res.confirm) {
  322. var data = {
  323. orderId:that.order.orderId
  324. };
  325. cancelOrder(data).then(res => {
  326. if(res.code==200){
  327. that.getMyStoreOrderById()
  328. uni.$emit('refreshStoreOrder');
  329. }else{
  330. uni.showToast({
  331. icon:'none',
  332. title: res.msg,
  333. });
  334. }
  335. });
  336. }
  337. else if (res.cancel) {
  338. }
  339. }
  340. });
  341. },
  342. finish(){
  343. var that=this;
  344. uni.showModal({
  345. title: '提示',
  346. content: '确定已收货吗',
  347. success: function (res) {
  348. if (res.confirm) {
  349. var data = {
  350. orderId:that.orderId
  351. };
  352. finishOrder(data).then(res => {
  353. if(res.code==200){
  354. that.getMyStoreOrderById()
  355. uni.$emit('refreshStoreOrder');
  356. }else{
  357. uni.showToast({
  358. icon:'none',
  359. title: res.msg,
  360. });
  361. }
  362. });
  363. }
  364. else if (res.cancel) {
  365. }
  366. }
  367. });
  368. },
  369. pay() {
  370. uni.navigateTo({
  371. url: '/pages_order/storeOrderPay?orderId='+this.order.orderId
  372. })
  373. },
  374. payRemain() {
  375. uni.navigateTo({
  376. url: '/pages_user/user/paymentOrderRemain?orderId='+this.order.orderId
  377. })
  378. },
  379. // 复制订单编号
  380. copyOrderSn(text) {
  381. // 复制方法
  382. uni.setClipboardData({
  383. data:text,
  384. success:()=>{
  385. uni.showToast({
  386. title:'内容已成功复制到剪切板',
  387. icon:'none'
  388. })
  389. }
  390. });
  391. },
  392. // 退货
  393. refund() {
  394. uni.navigateTo({
  395. url: '/pages_order/storeOrderRefundApply?orderId='+this.orderId
  396. })
  397. },
  398. showInvoice() {
  399. const time = this.order.createTime
  400. const targetDate = new Date('2025-01-01 00:00:00');
  401. const currentDate = new Date(time);
  402. if (time && currentDate >= targetDate) {
  403. return true
  404. } else {
  405. return false
  406. }
  407. },
  408. // 申请开票
  409. handleInvoice() {
  410. uni.navigateTo({
  411. url: './invoice/index?orderId='+this.orderId
  412. })
  413. },
  414. // 开票历史
  415. handleInvoiceList() {
  416. uni.navigateTo({
  417. url: './invoice/invoiceList?orderId='+this.orderId
  418. })
  419. },
  420. }
  421. }
  422. </script>
  423. <style lang="scss">
  424. .cont{
  425. width: 100%;
  426. position: relative;
  427. .bg{
  428. width: 100%;
  429. height: 350upx;
  430. position: absolute;
  431. top: 0;
  432. left: 0;
  433. z-index: 1;
  434. background-color: #2583EB;
  435. background: linear-gradient(#2583EB, #2EDAD4);
  436. border-radius: 0rpx 0rpx 100rpx 100rpx;
  437. }
  438. .inner{
  439. position: relative;
  440. padding: 30upx 0rpx;
  441. width: 100%;
  442. height: 100%;
  443. z-index: 999;
  444. .order-status{
  445. display: flex;
  446. align-items: center;
  447. justify-content: space-between;
  448. padding: 0 30upx;
  449. .inner{
  450. display: flex;
  451. align-items: center;
  452. .img-box{
  453. width: 96upx;
  454. height: 96upx;
  455. margin-right: 30upx;
  456. image{
  457. width: 100%;
  458. height: 100%;
  459. }
  460. }
  461. .status-box{
  462. height: 96upx;
  463. display: flex;
  464. flex-direction: column;
  465. justify-content: center;
  466. .status{
  467. font-size: 40upx;
  468. font-family: PingFang SC;
  469. font-weight: bold;
  470. color: #FFFFFF;
  471. line-height: 1;
  472. }
  473. .desc{
  474. font-size: 26upx;
  475. font-family: PingFang SC;
  476. font-weight: 500;
  477. color: #FFFFFF;
  478. line-height: 1;
  479. margin-top: 30upx;
  480. }
  481. }
  482. }
  483. }
  484. .order-placer{
  485. margin-top: 30upx;
  486. padding: 0 20upx;
  487. .inner{
  488. box-sizing: border-box;
  489. border-radius: 16upx;
  490. height: 150upx;
  491. padding: 40upx 30upx;
  492. display: flex;
  493. align-items: center;
  494. background: #FFFFFF;
  495. .location{
  496. width: 24upx;
  497. height: 27upx;
  498. margin-right: 18upx;
  499. flex-shrink: 0;
  500. }
  501. .info{
  502. .name-phone{
  503. display: flex;
  504. align-items: center;
  505. .text{
  506. font-size: 28upx;
  507. font-family: PingFang SC;
  508. font-weight: bold;
  509. color: #333333;
  510. line-height: 1;
  511. margin-right: 20upx;
  512. &:last-child{
  513. margin-right: 0;
  514. }
  515. }
  516. }
  517. .address{
  518. font-size: 26upx;
  519. font-family: PingFang SC;
  520. font-weight: 500;
  521. color: #999999;
  522. line-height: 1.3;
  523. margin-top: 10upx;
  524. }
  525. }
  526. }
  527. }
  528. }
  529. }
  530. .content{
  531. margin: 20rpx 0rpx;
  532. padding: 0 20upx 140rpx 20upx;
  533. .goods-list{
  534. padding: 0 30upx;
  535. background-color: #FFFFFF;
  536. border-radius: 16upx;
  537. .item{
  538. padding: 30upx 0;
  539. border-bottom: 1px solid #EDEEEF;
  540. display: flex;
  541. align-items: center;
  542. .img-box{
  543. width: 160upx;
  544. height: 160upx;
  545. margin-right: 30upx;
  546. image{
  547. width: 100%;
  548. height: 100%;
  549. }
  550. }
  551. .info-box{
  552. width: calc(100% - 190upx);
  553. height: 160upx;
  554. display: flex;
  555. flex-direction: column;
  556. justify-content: space-between;
  557. .name-box{
  558. font-size: 28upx;
  559. font-family: PingFang SC;
  560. font-weight: 500;
  561. color: #111111;
  562. line-height: 40upx;
  563. .tag{
  564. display: inline-block;
  565. padding: 0 6upx;
  566. height: 30upx;
  567. background: linear-gradient(90deg, #2583EB 0%, #2EDAD4 100%);
  568. border-radius: 4upx;
  569. margin-right: 10upx;
  570. font-size: 22upx;
  571. font-family: PingFang SC;
  572. font-weight: bold;
  573. color: #FFFFFF;
  574. line-height: 30upx;
  575. float: left;
  576. margin-top: 7upx;
  577. }
  578. }
  579. .spec{
  580. margin-top: 18upx;
  581. font-size: 24upx;
  582. font-family: PingFang SC;
  583. font-weight: 500;
  584. color: #999999;
  585. line-height: 1;
  586. }
  587. .price-num{
  588. display: flex;
  589. align-items: center;
  590. justify-content: space-between;
  591. .price{
  592. display: flex;
  593. align-items: flex-end;
  594. .unit{
  595. font-size: 24upx;
  596. font-family: PingFang SC;
  597. font-weight: 500;
  598. color: #111111;
  599. line-height: 1.2;
  600. margin-right: 4upx;
  601. }
  602. .num{
  603. font-size: 32upx;
  604. font-family: PingFang SC;
  605. font-weight: 500;
  606. color: #111111;
  607. line-height: 1;
  608. }
  609. }
  610. .num{
  611. font-size: 24upx;
  612. font-family: PingFang SC;
  613. font-weight: 500;
  614. color: #999999;
  615. line-height: 1;
  616. }
  617. }
  618. }
  619. }
  620. .sub-total{
  621. height: 88upx;
  622. display: flex;
  623. align-items: center;
  624. justify-content: flex-end;
  625. .discount{
  626. font-size: 24upx;
  627. font-family: PingFang SC;
  628. font-weight: 500;
  629. color: #999999;
  630. line-height: 1;
  631. margin-right: 30upx;
  632. }
  633. .label{
  634. font-size: 24upx;
  635. font-family: PingFang SC;
  636. font-weight: 500;
  637. color: #999999;
  638. }
  639. .price{
  640. display: flex;
  641. align-items: flex-end;
  642. .unit{
  643. font-size: 24upx;
  644. font-family: PingFang SC;
  645. font-weight: 500;
  646. color: #FF6633;
  647. line-height: 1.2;
  648. margin-right: 4upx;
  649. }
  650. .num{
  651. font-size: 32upx;
  652. font-family: PingFang SC;
  653. font-weight: bold;
  654. color: #FF6633;
  655. line-height: 1;
  656. }
  657. }
  658. }
  659. }
  660. .order-info{
  661. margin-top: 20upx;
  662. background: #FFFFFF;
  663. border-radius: 16upx;
  664. padding: 40upx 30upx;
  665. .title{
  666. font-size: 30upx;
  667. font-family: PingFang SC;
  668. font-weight: bold;
  669. color: #222222;
  670. line-height: 1;
  671. }
  672. .item{
  673. margin-top: 40upx;
  674. display: flex;
  675. align-items: center;
  676. justify-content: space-between;
  677. .label{
  678. font-size: 26upx;
  679. font-family: PingFang SC;
  680. font-weight: 500;
  681. color: #666666;
  682. line-height: 1;
  683. }
  684. .text{
  685. font-size: 26upx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #222222;
  689. line-height: 32upx;
  690. }
  691. .cont-text{
  692. font-size: 26upx;
  693. font-family: PingFang SC;
  694. font-weight: 500;
  695. color: #666666;
  696. .bold{
  697. color: #111111;
  698. }
  699. }
  700. .sn-box{
  701. display: flex;
  702. align-items: center;
  703. .copy-btn{
  704. width: 58upx;
  705. height: 32upx;
  706. line-height: 32upx;
  707. text-align: center;
  708. font-size: 22upx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #222222;
  712. background: #F5F5F5;
  713. border-radius: 4upx;
  714. margin-left: 24upx;
  715. }
  716. }
  717. .check-box{
  718. display: flex;
  719. align-items: center;
  720. image{
  721. width: 14upx;
  722. height: 24upx;
  723. margin-left: 10upx;
  724. }
  725. }
  726. }
  727. .line{
  728. width: 100%;
  729. height: 1px;
  730. background: #F0F0F0;
  731. margin-top: 30upx;
  732. }
  733. }
  734. }
  735. .btn-box{
  736. z-index: 999;
  737. bottom: 0;
  738. width: 100%;
  739. position: fixed;
  740. height: 120upx;
  741. box-sizing: border-box;
  742. background: #FFFFFF;
  743. padding: 0 30upx;
  744. display: flex;
  745. align-items: center;
  746. justify-content: flex-end;
  747. }
  748. .btn{
  749. position: relative;
  750. width: 155upx;
  751. height: 64upx;
  752. line-height: 64upx;
  753. font-size: 26upx;
  754. font-family: PingFang SC;
  755. font-weight: 500;
  756. text-align: center;
  757. border-radius: 32upx;
  758. margin-left: 15upx;
  759. &.cancel{
  760. border: 1px solid #DDDDDD;
  761. color: #666666;
  762. }
  763. &.pay{
  764. background: #2583EB;
  765. color: #FFFFFF;
  766. }
  767. .contact-btn {
  768. top: 0;
  769. position: absolute;
  770. width:100%;
  771. height:100%;
  772. opacity: 0;
  773. }
  774. }
  775. .order-info-title {
  776. display: flex;
  777. align-items: center;
  778. justify-content: space-between;
  779. }
  780. .order-info-r {
  781. display: flex;
  782. align-items: center;
  783. .btn{
  784. margin-bottom: 0;
  785. }
  786. }
  787. </style>