storeOrderDetail.vue 20 KB

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