storeOrderDetail.vue 20 KB

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