storeOrderDetail.vue 22 KB

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