storeOrderDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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">{{formattedCreateTime}}</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. computed: {
  282. formattedCreateTime() {
  283. if (!this.order || !this.order.createTime) return '';
  284. // 如果是时间戳格式
  285. if (typeof this.order.createTime === 'number') {
  286. const date = new Date(this.order.createTime);
  287. return this.formatDate(date);
  288. }
  289. // 如果是字符串格式,尝试解析
  290. const date = new Date(this.order.createTime);
  291. if (!isNaN(date.getTime())) {
  292. return this.formatDate(date);
  293. }
  294. // 如果无法解析,返回原值
  295. return this.order.createTime;
  296. },
  297. },
  298. methods: { // 日期格式化方法
  299. formatDate(date) {
  300. const year = date.getFullYear();
  301. const month = String(date.getMonth() + 1).padStart(2, '0');
  302. const day = String(date.getDate()).padStart(2, '0');
  303. const hours = String(date.getHours()).padStart(2, '0');
  304. const minutes = String(date.getMinutes()).padStart(2, '0');
  305. const seconds = String(date.getSeconds()).padStart(2, '0');
  306. return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  307. },
  308. openDetails(item) {
  309. console.log(item)
  310. uni.navigateTo({
  311. url: '/pages_shopping/shopping/productDetails?productId=' + item.productId
  312. })
  313. },
  314. addPrescribe() {
  315. uni.navigateTo({
  316. url: "/pages/shopping/prescribe?orderId=" + this.order.id
  317. })
  318. },
  319. showImg() {
  320. var imgArr = [];
  321. imgArr.push(this.prescribe.rpUrl)
  322. //预览图片
  323. uni.previewImage({
  324. urls: imgArr,
  325. current: imgArr[0]
  326. });
  327. },
  328. getMyStoreOrderById() {
  329. // var data={orderId:this.orderId};
  330. getMyStoreOrderById(this.orderId).then(res => {
  331. if (res.code == 200) {
  332. this.order = res.data;
  333. this.product = JSON.parse(res.data.itemJson)
  334. console.log(this.product.image)
  335. // this.order=res.order;
  336. // this.items=res.items;
  337. // this.payLimitTime=res.payLimitTime;
  338. // this.prescribe=res.prescribe;
  339. // this.isAfterSales=res.isAfterSales;
  340. } else {
  341. uni.showToast({
  342. icon: 'none',
  343. title: "请求失败",
  344. });
  345. }
  346. });
  347. },
  348. express() {
  349. uni.navigateTo({
  350. url: './storeOrderDelivery?orderId=' + this.order.orderId
  351. })
  352. },
  353. cancel() {
  354. var that = this;
  355. uni.showModal({
  356. title: '提示',
  357. content: '确定取消订单吗',
  358. success: function(res) {
  359. if (res.confirm) {
  360. var data = {
  361. orderId: that.order.orderId
  362. };
  363. cancelOrder(data).then(res => {
  364. if (res.code == 200) {
  365. that.getMyStoreOrderById()
  366. // uni.$emit('refreshOrder');
  367. } else {
  368. uni.showToast({
  369. icon: 'none',
  370. title: res.msg,
  371. });
  372. }
  373. });
  374. } else if (res.cancel) {}
  375. }
  376. });
  377. },
  378. finish() {
  379. var that = this;
  380. uni.showModal({
  381. title: '提示',
  382. content: '确定已收货吗',
  383. success: function(res) {
  384. if (res.confirm) {
  385. var data = {
  386. orderId: that.order.orderId
  387. };
  388. finishOrder(data).then(res => {
  389. if (res.code == 200) {
  390. that.getMyStoreOrderById()
  391. uni.$emit('refreshOrder');
  392. } else {
  393. uni.showToast({
  394. icon: 'none',
  395. title: res.msg,
  396. });
  397. }
  398. });
  399. } else if (res.cancel) {}
  400. }
  401. });
  402. },
  403. pay() {
  404. uni.navigateTo({
  405. url: `./paymentOrder?orderList=${encodeURIComponent(JSON.stringify(this.order))}`
  406. // url: './paymentOrder?orderId=' + this.order.orderId
  407. })
  408. },
  409. // 返回上一页
  410. back() {
  411. let pages = getCurrentPages();
  412. console.log(pages.length);
  413. if (pages.length > 1) {
  414. uni.navigateBack()
  415. } else {
  416. uni.reLaunch({
  417. url: "/pages/common/launch"
  418. })
  419. }
  420. },
  421. // 复制订单编号
  422. copyOrderSn(text) {
  423. // 复制方法
  424. uni.setClipboardData({
  425. data: text,
  426. success: () => {
  427. uni.showToast({
  428. title: '内容已成功复制到剪切板',
  429. icon: 'none'
  430. })
  431. }
  432. });
  433. },
  434. // 退货
  435. refund() {
  436. uni.navigateTo({
  437. url: './refundOrderProduct?orderId=' + this.orderId
  438. })
  439. }
  440. }
  441. }
  442. </script>
  443. <style lang="scss">
  444. .fixed-top-box {
  445. width: 100%;
  446. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  447. position: fixed;
  448. top: 0;
  449. left: 0;
  450. z-index: 1000;
  451. }
  452. .top-cont {
  453. width: 100%;
  454. height: 476upx;
  455. position: relative;
  456. .bg {
  457. width: 100%;
  458. height: 100%;
  459. position: absolute;
  460. top: 0;
  461. left: 0;
  462. z-index: 1;
  463. }
  464. .top-inner {
  465. width: 100%;
  466. height: 100%;
  467. position: absolute;
  468. top: 0;
  469. left: 0;
  470. z-index: 2;
  471. .back-box {
  472. height: 88upx;
  473. padding-left: 22upx;
  474. display: flex;
  475. align-items: center;
  476. justify-content: space-between;
  477. padding: 0 20upx;
  478. image {
  479. width: 40upx;
  480. height: 40upx;
  481. }
  482. .title {
  483. font-size: 36upx;
  484. font-family: PingFang SC;
  485. font-weight: 500;
  486. color: #FFFFFF;
  487. }
  488. }
  489. .order-status {
  490. margin-top: 60upx;
  491. display: flex;
  492. align-items: center;
  493. justify-content: space-between;
  494. padding: 0 30upx;
  495. .inner {
  496. display: flex;
  497. align-items: center;
  498. .img-box {
  499. width: 96upx;
  500. height: 96upx;
  501. margin-right: 30upx;
  502. image {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. }
  507. .status-box {
  508. height: 96upx;
  509. display: flex;
  510. flex-direction: column;
  511. justify-content: center;
  512. .status {
  513. font-size: 40upx;
  514. font-family: PingFang SC;
  515. font-weight: bold;
  516. color: #FFFFFF;
  517. line-height: 1;
  518. }
  519. .desc {
  520. font-size: 26upx;
  521. font-family: PingFang SC;
  522. font-weight: 500;
  523. color: #FFFFFF;
  524. line-height: 1;
  525. margin-top: 30upx;
  526. }
  527. }
  528. }
  529. }
  530. .order-placer {
  531. margin-top: 50upx;
  532. padding: 0 20upx;
  533. .inner {
  534. box-sizing: border-box;
  535. border-radius: 16upx;
  536. height: 150upx;
  537. padding: 40upx 30upx;
  538. display: flex;
  539. align-items: center;
  540. background: #FFFFFF;
  541. .location {
  542. width: 24upx;
  543. height: 27upx;
  544. margin-right: 18upx;
  545. flex-shrink: 0;
  546. }
  547. .info {
  548. .name-phone {
  549. display: flex;
  550. align-items: center;
  551. .text {
  552. font-size: 28upx;
  553. font-family: PingFang SC;
  554. font-weight: bold;
  555. color: #333333;
  556. line-height: 1;
  557. margin-right: 20upx;
  558. &:last-child {
  559. margin-right: 0;
  560. }
  561. }
  562. }
  563. .address {
  564. font-size: 26upx;
  565. font-family: PingFang SC;
  566. font-weight: 500;
  567. color: #999999;
  568. line-height: 1.3;
  569. margin-top: 10upx;
  570. }
  571. }
  572. }
  573. }
  574. }
  575. }
  576. .content {
  577. margin: 20rpx 0rpx;
  578. padding: 0 20upx 140rpx 20upx;
  579. .goods-list {
  580. padding: 0 30upx;
  581. background-color: #FFFFFF;
  582. border-radius: 16upx;
  583. .item {
  584. padding: 30upx 0;
  585. border-bottom: 1px solid #EDEEEF;
  586. display: flex;
  587. align-items: center;
  588. .img-box {
  589. width: 160upx;
  590. height: 160upx;
  591. margin-right: 30upx;
  592. image {
  593. width: 100%;
  594. height: 100%;
  595. }
  596. }
  597. .info-box {
  598. width: calc(100% - 190upx);
  599. height: 160upx;
  600. display: flex;
  601. flex-direction: column;
  602. justify-content: space-between;
  603. .name-box {
  604. font-size: 28upx;
  605. font-family: PingFang SC;
  606. font-weight: 500;
  607. color: #111111;
  608. line-height: 40upx;
  609. .tag {
  610. display: inline-block;
  611. padding: 0 6upx;
  612. height: 30upx;
  613. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  614. border-radius: 4upx;
  615. margin-right: 10upx;
  616. font-size: 22upx;
  617. font-family: PingFang SC;
  618. font-weight: bold;
  619. color: #FFFFFF;
  620. line-height: 30upx;
  621. float: left;
  622. margin-top: 7upx;
  623. }
  624. }
  625. .spec {
  626. margin-top: 18upx;
  627. font-size: 24upx;
  628. font-family: PingFang SC;
  629. font-weight: 500;
  630. color: #999999;
  631. line-height: 1;
  632. }
  633. .price-num {
  634. display: flex;
  635. align-items: center;
  636. justify-content: space-between;
  637. .price {
  638. display: flex;
  639. align-items: flex-end;
  640. .unit {
  641. font-size: 24upx;
  642. font-family: PingFang SC;
  643. font-weight: 500;
  644. color: #111111;
  645. line-height: 1.2;
  646. margin-right: 4upx;
  647. }
  648. .num {
  649. font-size: 32upx;
  650. font-family: PingFang SC;
  651. font-weight: 500;
  652. color: #111111;
  653. line-height: 1;
  654. }
  655. }
  656. .num {
  657. font-size: 24upx;
  658. font-family: PingFang SC;
  659. font-weight: 500;
  660. color: #999999;
  661. line-height: 1;
  662. }
  663. }
  664. }
  665. }
  666. .sub-total {
  667. height: 88upx;
  668. display: flex;
  669. align-items: center;
  670. justify-content: flex-end;
  671. .discount {
  672. font-size: 24upx;
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. color: #999999;
  676. line-height: 1;
  677. margin-right: 30upx;
  678. }
  679. .label {
  680. font-size: 24upx;
  681. font-family: PingFang SC;
  682. font-weight: 500;
  683. color: #999999;
  684. }
  685. .price {
  686. display: flex;
  687. align-items: flex-end;
  688. .unit {
  689. font-size: 24upx;
  690. font-family: PingFang SC;
  691. font-weight: 500;
  692. color: #FF6633;
  693. line-height: 1.2;
  694. margin-right: 4upx;
  695. }
  696. .num {
  697. font-size: 32upx;
  698. font-family: PingFang SC;
  699. font-weight: bold;
  700. color: #FF6633;
  701. line-height: 1;
  702. }
  703. }
  704. }
  705. }
  706. .order-info {
  707. margin-top: 20upx;
  708. background: #FFFFFF;
  709. border-radius: 16upx;
  710. padding: 40upx 30upx;
  711. .title {
  712. font-size: 30upx;
  713. font-family: PingFang SC;
  714. font-weight: bold;
  715. color: #222222;
  716. line-height: 1;
  717. }
  718. .item {
  719. margin-top: 40upx;
  720. display: flex;
  721. align-items: center;
  722. justify-content: space-between;
  723. .label {
  724. font-size: 26upx;
  725. font-family: PingFang SC;
  726. font-weight: 500;
  727. color: #666666;
  728. line-height: 1;
  729. }
  730. .text {
  731. font-size: 26upx;
  732. font-family: PingFang SC;
  733. font-weight: 500;
  734. color: #222222;
  735. line-height: 32upx;
  736. }
  737. .cont-text {
  738. font-size: 26upx;
  739. font-family: PingFang SC;
  740. font-weight: 500;
  741. color: #666666;
  742. .bold {
  743. color: #111111;
  744. }
  745. }
  746. .sn-box {
  747. display: flex;
  748. align-items: center;
  749. .copy-btn {
  750. width: 58upx;
  751. height: 32upx;
  752. line-height: 32upx;
  753. text-align: center;
  754. font-size: 22upx;
  755. font-family: PingFang SC;
  756. font-weight: 500;
  757. color: #222222;
  758. background: #F5F5F5;
  759. border-radius: 4upx;
  760. margin-left: 24upx;
  761. }
  762. }
  763. .check-box {
  764. display: flex;
  765. align-items: center;
  766. image {
  767. width: 14upx;
  768. height: 24upx;
  769. margin-left: 10upx;
  770. }
  771. }
  772. }
  773. .line {
  774. width: 100%;
  775. height: 1px;
  776. background: #F0F0F0;
  777. margin-top: 30upx;
  778. }
  779. }
  780. }
  781. .btn-box {
  782. z-index: 999;
  783. bottom: 0;
  784. width: 100%;
  785. position: fixed;
  786. height: 120upx;
  787. box-sizing: border-box;
  788. background: #FFFFFF;
  789. padding: 0 30upx;
  790. display: flex;
  791. align-items: center;
  792. justify-content: flex-end;
  793. .btn {
  794. width: 155upx;
  795. height: 64upx;
  796. line-height: 64upx;
  797. font-size: 26upx;
  798. font-family: PingFang SC;
  799. font-weight: 500;
  800. text-align: center;
  801. border-radius: 32upx;
  802. margin-left: 15upx;
  803. &.cancel {
  804. border: 1px solid #DDDDDD;
  805. color: #666666;
  806. }
  807. &.pay {
  808. background: #2BC7B9;
  809. color: #FFFFFF;
  810. }
  811. }
  812. }
  813. </style>