storeOrderDetail.vue 22 KB

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