storeOrderDetail.vue 22 KB

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