storeOrderDetail.vue 20 KB

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