storeOrderDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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="/static/images/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" :style="{paddingBottom: paddingBottom}">
  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="JSON.parse(item.jsonInfo).image==''?'/static/images/drug.svg':JSON.parse(item.jsonInfo).image" mode="aspectFill"></image>
  98. </view>
  99. <view class="info-box">
  100. <view>
  101. <view class="name-box ellipsis2">
  102. {{JSON.parse(item.jsonInfo).productName}}
  103. </view>
  104. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  105. </view>
  106. <view class="price-num">
  107. <view class="price">
  108. <!-- <text class="unit">¥</text> -->
  109. <!-- <text class="num" v-if="JSON.parse(item.jsonInfo).price!=null">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text> -->
  110. </view>
  111. <view class="num" v-if="order.ordetType==1">x{{JSON.parse(item.jsonInfo).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. </view>
  172. </view>
  173. </view>
  174. <!-- 按钮 -->
  175. <view class="btn-box">
  176. <view class="btn cancel" @click="goToWXMsg">
  177. 联系客服
  178. <!-- #ifdef MP-WEIXIN -->
  179. <button class='contact-btn' open-type="contact">
  180. </button>
  181. <!-- #endif -->
  182. </view>
  183. <view class="btn cancel" v-if="order.status==1" @click="cancel()">取消订单</view>
  184. <view class="btn pay" v-if="order.status==1" @click="pay()">支付</view>
  185. <!-- <view class="btn pay" v-if="order.status>1&&order.prescribeId!=null&&order.prescribeId>0" @click="showPrescribe()">查看处方单</view> -->
  186. <view class="btn cancel" v-if="order.status>1&&order.isAfterSales==1&&order.orderType==1" @click="refund()">申请售后</view>
  187. <view class="btn cancel" v-if="showInvoice()&&order.status==4&&order.billPrice != order.payPrice" @click="handleInvoice()">申请开票</view>
  188. <view class="btn pay" v-if="order.status==4&&order.billPrice" @click="handleInvoiceList()">查看发票</view>
  189. <view class="btn pay" v-if="order.deliverySn!=null" @click="showDelivery()">查看物流</view>
  190. <view class="btn pay" v-if="order.status==3" @click="finish()">确认收货</view>
  191. </view>
  192. </view>
  193. </template>
  194. <script>
  195. import {getPrescribeById} from '@/api/prescribe.js'
  196. import {getMyStoreOrderById,cancelOrder,finishOrder} from '@/api/storeOrder'
  197. export default {
  198. data() {
  199. return {
  200. payLimitTime:null,
  201. orderId:null,
  202. order:{},
  203. items:[],
  204. paddingBottom: '140rpx'
  205. };
  206. },
  207. onLoad(option) {
  208. this.orderId = option.orderId
  209. uni.$on("refreshOrderDetail",()=>{
  210. this.getMyStoreOrderById()
  211. })
  212. },
  213. onUnload() {
  214. uni.$off("refreshOrderDetail")
  215. },
  216. onShow() {
  217. this.getMyStoreOrderById()
  218. },
  219. methods: {
  220. showPrescribe(){
  221. var data={prescribeId:this.order.prescribeId}
  222. getPrescribeById(data).then(
  223. res => {
  224. if(res.code==200){
  225. if(res.data.prescribe.prescribeImgUrl!=null){
  226. var data=[];
  227. data.push(res.data.prescribe.prescribeImgUrl)
  228. uni.previewImage({
  229. current: 0,
  230. urls: data
  231. });
  232. }
  233. else{
  234. uni.showToast({
  235. icon:'none',
  236. title: "电子处方单不存在",
  237. });
  238. }
  239. }
  240. },
  241. err => {
  242. }
  243. );
  244. },
  245. getMyStoreOrderById(){
  246. var data={orderId:this.orderId};
  247. getMyStoreOrderById(data).then(res => {
  248. if(res.code==200){
  249. this.order=res.order;
  250. this.items=res.items;
  251. this.payLimitTime=res.payLimitTime;
  252. this.prescribe=res.prescribe;
  253. }else{
  254. uni.showToast({
  255. icon:'none',
  256. title: "请求失败",
  257. });
  258. }
  259. this.$nextTick(()=>{
  260. this.getPaddingBottom()
  261. })
  262. }).catch(()=>{
  263. this.$nextTick(()=>{
  264. this.getPaddingBottom()
  265. })
  266. });
  267. },
  268. getPaddingBottom() {
  269. const query = uni.createSelectorQuery().in(this);
  270. query
  271. .select(".btn-box")
  272. .boundingClientRect((data) => {
  273. this.paddingBottom = `calc(${data.height}px + 20rpx)`
  274. })
  275. .exec();
  276. },
  277. showDelivery(){
  278. uni.navigateTo({
  279. url: './storeOrderDelivery?orderId='+this.orderId
  280. })
  281. },
  282. cancel(){
  283. var that=this;
  284. uni.showModal({
  285. title: '提示',
  286. content: '确定取消订单吗',
  287. success: function (res) {
  288. if (res.confirm) {
  289. var data = {
  290. orderId:that.order.orderId
  291. };
  292. cancelOrder(data).then(res => {
  293. if(res.code==200){
  294. that.getMyStoreOrderById()
  295. uni.$emit('refreshStoreOrder');
  296. }else{
  297. uni.showToast({
  298. icon:'none',
  299. title: res.msg,
  300. });
  301. }
  302. });
  303. }
  304. else if (res.cancel) {
  305. }
  306. }
  307. });
  308. },
  309. finish(){
  310. var that=this;
  311. uni.showModal({
  312. title: '提示',
  313. content: '确定已收货吗',
  314. success: function (res) {
  315. if (res.confirm) {
  316. var data = {
  317. orderId:that.orderId
  318. };
  319. finishOrder(data).then(res => {
  320. if(res.code==200){
  321. that.getMyStoreOrderById()
  322. uni.$emit('refreshStoreOrder');
  323. }else{
  324. uni.showToast({
  325. icon:'none',
  326. title: res.msg,
  327. });
  328. }
  329. });
  330. }
  331. else if (res.cancel) {
  332. }
  333. }
  334. });
  335. },
  336. pay() {
  337. uni.navigateTo({
  338. url: '/pages/store/storeOrderPay?orderId='+this.order.orderId
  339. })
  340. },
  341. // 复制订单编号
  342. copyOrderSn(text) {
  343. // 复制方法
  344. uni.setClipboardData({
  345. data:text,
  346. success:()=>{
  347. uni.showToast({
  348. title:'内容已成功复制到剪切板',
  349. icon:'none'
  350. })
  351. }
  352. });
  353. },
  354. // 退货
  355. refund() {
  356. uni.navigateTo({
  357. url: '/pages/store/storeOrderRefundApply?orderId='+this.orderId
  358. })
  359. },
  360. showInvoice() {
  361. const time = this.order.createTime
  362. const targetDate = new Date('2025-01-01 00:00:00');
  363. const currentDate = new Date(time);
  364. if (time && currentDate >= targetDate) {
  365. return true
  366. } else {
  367. return false
  368. }
  369. },
  370. // 申请开票
  371. handleInvoice() {
  372. uni.navigateTo({
  373. url: './invoice/index?orderId='+this.order.orderId
  374. })
  375. },
  376. // 开票历史
  377. handleInvoiceList() {
  378. uni.navigateTo({
  379. url: './invoice/invoiceList?orderId='+this.order.orderId
  380. })
  381. },
  382. async goToWXMsg(){
  383. const url = getApp().globalData.kfurl //企业微信客服链接
  384. const corpId = getApp().globalData.corpId //企业id
  385. // #ifdef H5
  386. window.location.href = url
  387. // #endif
  388. // #ifdef APP-PLUS
  389. let shares = await this.getAppShare().catch(err => {
  390. throw Error(err)
  391. });
  392. shares['weixin'].openCustomerServiceChat({
  393. corpid: corpId,
  394. url
  395. }, suc => {
  396. console.log("客服打开成功", JSON.stringify(res))
  397. }, err => {
  398. console.log("error", JSON.stringify(err))
  399. })
  400. // #endif
  401. },
  402. getAppShare() {
  403. // #ifdef APP-PLUS
  404. return new Promise((re, rj) => {
  405. let shares = null;
  406. var pusher = plus.share.getServices(function(s) {
  407. shares = {};
  408. s.forEach(e => shares[e.id] = e);
  409. re(shares)
  410. }, function(e) {
  411. rj(e);
  412. });
  413. });
  414. // #endif
  415. },
  416. }
  417. }
  418. </script>
  419. <style lang="scss">
  420. .cont{
  421. width: 100%;
  422. position: relative;
  423. .bg{
  424. width: 100%;
  425. height: 350upx;
  426. position: absolute;
  427. top: 0;
  428. left: 0;
  429. z-index: 1;
  430. background-color: #FF5C03;
  431. background: linear-gradient(#FF5C03, #E2C99E);
  432. border-radius: 0rpx 0rpx 100rpx 100rpx;
  433. }
  434. .inner{
  435. position: relative;
  436. padding: 30upx 0rpx;
  437. width: 100%;
  438. height: 100%;
  439. z-index: 9;
  440. .order-status{
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-between;
  444. padding: 0 30upx;
  445. .inner{
  446. display: flex;
  447. align-items: center;
  448. .img-box{
  449. width: 96upx;
  450. height: 96upx;
  451. margin-right: 30upx;
  452. image{
  453. width: 100%;
  454. height: 100%;
  455. }
  456. }
  457. .status-box{
  458. height: 96upx;
  459. display: flex;
  460. flex-direction: column;
  461. justify-content: center;
  462. .status{
  463. font-size: 40upx;
  464. font-family: PingFang SC;
  465. font-weight: bold;
  466. color: #FFFFFF;
  467. line-height: 1;
  468. }
  469. .desc{
  470. font-size: 26upx;
  471. font-family: PingFang SC;
  472. font-weight: 500;
  473. color: #FFFFFF;
  474. line-height: 1;
  475. margin-top: 30upx;
  476. }
  477. }
  478. }
  479. }
  480. .order-placer{
  481. margin-top: 30upx;
  482. padding: 0 20upx;
  483. .inner{
  484. box-sizing: border-box;
  485. border-radius: 16upx;
  486. height: 150upx;
  487. padding: 40upx 30upx;
  488. display: flex;
  489. align-items: center;
  490. background: #FFFFFF;
  491. .location{
  492. width: 24upx;
  493. height: 27upx;
  494. margin-right: 18upx;
  495. flex-shrink: 0;
  496. }
  497. .info{
  498. .name-phone{
  499. display: flex;
  500. align-items: center;
  501. .text{
  502. font-size: 28upx;
  503. font-family: PingFang SC;
  504. font-weight: bold;
  505. color: #333333;
  506. line-height: 1;
  507. margin-right: 20upx;
  508. &:last-child{
  509. margin-right: 0;
  510. }
  511. }
  512. }
  513. .address{
  514. font-size: 26upx;
  515. font-family: PingFang SC;
  516. font-weight: 500;
  517. color: #999999;
  518. line-height: 1.3;
  519. margin-top: 10upx;
  520. }
  521. }
  522. }
  523. }
  524. }
  525. }
  526. .content{
  527. margin: 20rpx 0rpx;
  528. padding: 0 20upx 140rpx 20upx;
  529. .goods-list{
  530. padding: 0 30upx;
  531. background-color: #FFFFFF;
  532. border-radius: 16upx;
  533. .item{
  534. padding: 30upx 0;
  535. border-bottom: 1px solid #EDEEEF;
  536. display: flex;
  537. align-items: center;
  538. .img-box{
  539. width: 160upx;
  540. height: 160upx;
  541. margin-right: 30upx;
  542. image{
  543. width: 100%;
  544. height: 100%;
  545. }
  546. }
  547. .info-box{
  548. width: calc(100% - 190upx);
  549. height: 160upx;
  550. display: flex;
  551. flex-direction: column;
  552. justify-content: space-between;
  553. .name-box{
  554. font-size: 28upx;
  555. font-family: PingFang SC;
  556. font-weight: 500;
  557. color: #111111;
  558. line-height: 40upx;
  559. .tag{
  560. display: inline-block;
  561. padding: 0 6upx;
  562. height: 30upx;
  563. background: linear-gradient(90deg, #C39A58 0%, #E2C99E 100%);
  564. border-radius: 4upx;
  565. margin-right: 10upx;
  566. font-size: 22upx;
  567. font-family: PingFang SC;
  568. font-weight: bold;
  569. color: #FFFFFF;
  570. line-height: 30upx;
  571. float: left;
  572. margin-top: 7upx;
  573. }
  574. }
  575. .spec{
  576. margin-top: 18upx;
  577. font-size: 24upx;
  578. font-family: PingFang SC;
  579. font-weight: 500;
  580. color: #999999;
  581. line-height: 1;
  582. }
  583. .price-num{
  584. display: flex;
  585. align-items: center;
  586. justify-content: space-between;
  587. .price{
  588. display: flex;
  589. align-items: flex-end;
  590. .unit{
  591. font-size: 24upx;
  592. font-family: PingFang SC;
  593. font-weight: 500;
  594. color: #111111;
  595. line-height: 1.2;
  596. margin-right: 4upx;
  597. }
  598. .num{
  599. font-size: 32upx;
  600. font-family: PingFang SC;
  601. font-weight: 500;
  602. color: #111111;
  603. line-height: 1;
  604. }
  605. }
  606. .num{
  607. font-size: 24upx;
  608. font-family: PingFang SC;
  609. font-weight: 500;
  610. color: #999999;
  611. line-height: 1;
  612. }
  613. }
  614. }
  615. }
  616. .sub-total{
  617. height: 88upx;
  618. display: flex;
  619. align-items: center;
  620. justify-content: flex-end;
  621. .discount{
  622. font-size: 24upx;
  623. font-family: PingFang SC;
  624. font-weight: 500;
  625. color: #999999;
  626. line-height: 1;
  627. margin-right: 30upx;
  628. }
  629. .label{
  630. font-size: 24upx;
  631. font-family: PingFang SC;
  632. font-weight: 500;
  633. color: #999999;
  634. }
  635. .price{
  636. display: flex;
  637. align-items: flex-end;
  638. .unit{
  639. font-size: 24upx;
  640. font-family: PingFang SC;
  641. font-weight: 500;
  642. color: #FF6633;
  643. line-height: 1.2;
  644. margin-right: 4upx;
  645. }
  646. .num{
  647. font-size: 32upx;
  648. font-family: PingFang SC;
  649. font-weight: bold;
  650. color: #FF6633;
  651. line-height: 1;
  652. }
  653. }
  654. }
  655. }
  656. .order-info{
  657. margin-top: 20upx;
  658. background: #FFFFFF;
  659. border-radius: 16upx;
  660. padding: 40upx 30upx;
  661. .title{
  662. font-size: 30upx;
  663. font-family: PingFang SC;
  664. font-weight: bold;
  665. color: #222222;
  666. line-height: 1;
  667. }
  668. .item{
  669. margin-top: 40upx;
  670. display: flex;
  671. align-items: center;
  672. justify-content: space-between;
  673. .label{
  674. font-size: 26upx;
  675. font-family: PingFang SC;
  676. font-weight: 500;
  677. color: #666666;
  678. line-height: 1;
  679. }
  680. .text{
  681. font-size: 26upx;
  682. font-family: PingFang SC;
  683. font-weight: 500;
  684. color: #222222;
  685. line-height: 32upx;
  686. }
  687. .cont-text{
  688. font-size: 26upx;
  689. font-family: PingFang SC;
  690. font-weight: 500;
  691. color: #666666;
  692. .bold{
  693. color: #111111;
  694. }
  695. }
  696. .sn-box{
  697. display: flex;
  698. align-items: center;
  699. .copy-btn{
  700. width: 58upx;
  701. height: 32upx;
  702. line-height: 32upx;
  703. text-align: center;
  704. font-size: 22upx;
  705. font-family: PingFang SC;
  706. font-weight: 500;
  707. color: #222222;
  708. background: #F5F5F5;
  709. border-radius: 4upx;
  710. margin-left: 24upx;
  711. }
  712. }
  713. .check-box{
  714. display: flex;
  715. align-items: center;
  716. image{
  717. width: 14upx;
  718. height: 24upx;
  719. margin-left: 10upx;
  720. }
  721. }
  722. }
  723. .line{
  724. width: 100%;
  725. height: 1px;
  726. background: #F0F0F0;
  727. margin-top: 30upx;
  728. }
  729. }
  730. }
  731. .btn-box{
  732. z-index: 99;
  733. bottom: 0;
  734. width: 100%;
  735. position: fixed;
  736. min-height: 120upx;
  737. margin-bottom: -15rpx;
  738. box-sizing: border-box;
  739. background: #FFFFFF;
  740. padding: 30upx;
  741. display: flex;
  742. align-items: center;
  743. justify-content: flex-end;
  744. flex-wrap: wrap;
  745. box-sizing: border-box;
  746. .btn{
  747. position: relative;
  748. width: 155upx;
  749. height: 64upx;
  750. line-height: 64upx;
  751. font-size: 26upx;
  752. font-family: PingFang SC;
  753. font-weight: 500;
  754. text-align: center;
  755. border-radius: 32upx;
  756. margin-left: 15upx;
  757. margin-bottom: 15rpx;
  758. &.cancel{
  759. border: 1px solid #DDDDDD;
  760. color: #666666;
  761. }
  762. &.pay{
  763. background: #FF5C03;
  764. color: #FFFFFF;
  765. }
  766. .contact-btn {
  767. top: 0;
  768. position: absolute;
  769. width:100%;
  770. height:100%;
  771. opacity: 0;
  772. }
  773. }
  774. }
  775. </style>