storeOrderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. <template>
  2. <view>
  3. <view class="cont">
  4. <view class="bg"></view>
  5. <view class="inner">
  6. <!-- 订单状态 -->
  7. <view class="order-status">
  8. <!-- 待付款 -->
  9. <view v-if="order.status == 1" class="inner">
  10. <view class="img-box">
  11. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/67eda0644e5847008096525b04cd12ca.png" mode=""></image>
  12. </view>
  13. <view class="status-box">
  14. <text class="status">待付款</text>
  15. <text class="desc">请在{{payLimitTime}}前完成支付</text>
  16. </view>
  17. </view>
  18. <!-- 待发货 -->
  19. <view v-if="order.status == 2" class="inner">
  20. <view class="img-box">
  21. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/520e24fba47441b3b0f73b5250bb0b57.png" mode=""></image>
  22. </view>
  23. <view class="status-box">
  24. <text class="status">待发货</text>
  25. <text class="desc">等待后台发货</text>
  26. </view>
  27. </view>
  28. <!-- 已发货、待收货 -->
  29. <view v-if="order.status == 3" class="inner">
  30. <view class="img-box">
  31. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/1e6ba423ff7e4537bef87a022d530015.png" mode=""></image>
  32. </view>
  33. <view class="status-box">
  34. <text class="status">待收货</text>
  35. <text class="desc">运输中</text>
  36. </view>
  37. </view>
  38. <!-- 已完成 -->
  39. <view v-if="order.status == 4" class="inner">
  40. <view class="img-box">
  41. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/0712ba14f3a648afa69c9912fcbf9b61.png" mode=""></image>
  42. </view>
  43. <view class="status-box">
  44. <text class="status">已完成</text>
  45. <text class="desc">订单已确认收货,交易完成</text>
  46. </view>
  47. </view>
  48. <!--交易取消 -->
  49. <view v-if="order.status == -3" class="inner">
  50. <view class="img-box">
  51. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/02f95bd03e854a9c8076aef1e6c05e74.png" mode=""></image>
  52. </view>
  53. <view class="status-box">
  54. <text class="status">交易关闭</text>
  55. <text class="desc">订单已取消</text>
  56. </view>
  57. </view>
  58. <view v-if="order.status == -1" class="inner">
  59. <view class="img-box">
  60. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/6020712aa10f4bb08db92957cb7eb8ed.png" mode=""></image>
  61. </view>
  62. <view class="status-box">
  63. <text class="status">申请售后</text>
  64. <text class="desc">请等待客服审核,您的退款将在2-5个工作日内原路退回</text>
  65. </view>
  66. </view>
  67. <view v-if="order.status == -2" class="inner">
  68. <view class="img-box">
  69. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/6020712aa10f4bb08db92957cb7eb8ed.png" mode=""></image>
  70. </view>
  71. <view class="status-box">
  72. <text class="status">退款成功</text>
  73. <text class="desc">已成功退款</text>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 下单人信息 -->
  78. <view class="order-placer" v-if="order.userName!=null">
  79. <view class="inner">
  80. <image class="location" src="/static/images/location.png" mode=""></image>
  81. <view class="info">
  82. <view class="name-phone">
  83. <text class="text">{{order.userName}}</text>
  84. <text class="text" v-if="order.userPhone!=null">{{order.userPhone}}</text>
  85. </view>
  86. <view class="address ellipsis2">
  87. {{order.userAddress}}
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="content" :style="{paddingBottom: paddingBottom}">
  93. <!-- 药品列表 -->
  94. <view class="goods-list">
  95. <view v-for="(item,index) in items" :key="index" class="item" >
  96. <view class="img-box">
  97. <image :src="item.image==''?'/static/images/drug.svg':item.image" mode="aspectFill"></image>
  98. </view>
  99. <view class="info-box">
  100. <view>
  101. <view class="name-box ellipsis2">
  102. {{item.productName}}
  103. </view>
  104. <view class="spec ellipsis2">{{item.sku}}</view>
  105. </view>
  106. <view class="price-num">
  107. <view class="price">
  108. <!-- <text class="unit">¥</text> -->
  109. <!-- <text class="num" v-if="item.price!=null">{{item.price.toFixed(2)}}</text> -->
  110. </view>
  111. <view class="num" v-if="order.ordetType==1">x{{item.num}}</view>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 已优惠、小计 -->
  116. <view class="sub-total">
  117. <view class="discount">
  118. 订单金额:¥{{order.payPrice }}
  119. </view>
  120. <!-- <text class="label">实付金额:</text>
  121. <view class="price">
  122. <text class="unit">¥</text>
  123. <text class="num">{{order.payMoney}}</text>
  124. </view> -->
  125. </view>
  126. </view>
  127. <!-- 订单信息 -->
  128. <view class="order-info">
  129. <view class="title">订单信息</view>
  130. <view class="item">
  131. <text class="label">订单编号</text>
  132. <view class="sn-box">
  133. <text class="text">{{order.orderCode}}</text>
  134. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  135. </view>
  136. </view>
  137. <view class="item">
  138. <text class="label">下单时间</text>
  139. <text class="text">{{order.createTime}}</text>
  140. </view>
  141. <view class="item">
  142. <text class="label">支付方式</text>
  143. <text class="text" v-if="order.payType==1">微信支付</text>
  144. <text class="text" v-if="order.payType==2">物流代收</text>
  145. </view>
  146. <view class="item">
  147. <text class="label">订单金额</text>
  148. <text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
  149. </view>
  150. <view class="item">
  151. <text class="label">优惠金额</text>
  152. <text class="text" v-if="order.discountMoney!=null">¥{{order.discountMoney.toFixed(2)}}</text>
  153. </view>
  154. <view class="item">
  155. <text class="label">应付金额</text>
  156. <text class="text" v-if="order.payPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
  157. </view>
  158. <view class="item">
  159. <text class="label">支付金额</text>
  160. <text class="text" v-if="order.payMoney!=null">¥{{order.payMoney.toFixed(2)}}</text>
  161. </view>
  162. <view class="item">
  163. <text class="label">支付时间</text>
  164. <text class="text" v-if="order.payTime!=null">{{order.payTime}}</text>
  165. </view>
  166. <!-- <view v-if="order.status >1" class="item">
  167. <text class="label">发货时间</text>
  168. <text class="text"></text>
  169. </view> -->
  170. </view>
  171. <!-- 子订单 -->
  172. <view class="order-info" v-for="(children,index) in childrenItems" :key="index">
  173. <view class="order-info-title">
  174. <view class="title">子订单{{index}}<text style="font-weight: normal;color: #FF5030;margin-left: 10rpx;" v-if="children[0].extendOrderId">(已发货)</text></view>
  175. <view class="order-info-r">
  176. <view class="btn pay" v-if="!children[0].extendOrderId&&order.status>0&&order.refundStatus==0&&order.isAfterSales==0" @click="splitOrder2ERP(children[0].orderCode)">申请发货</view>
  177. <view class="btn cancel" v-if="children[0].extendOrderId" @click="showDelivery(1,children[0])">查看物流</view>
  178. </view>
  179. </view>
  180. <view class="item" v-if="children[0].extendOrderId">
  181. <text class="label">发货时间</text>
  182. <view class="sn-box">
  183. <text class="text">{{children[0].deliveryTime||'--'}}</text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 按钮 -->
  191. <view class="btn-box">
  192. <view class="btn cancel" @click="goToWXMsg">
  193. 联系客服
  194. <!-- #ifdef MP-WEIXIN -->
  195. <button class='contact-btn' open-type="contact">
  196. </button>
  197. <!-- #endif -->
  198. </view>
  199. <view class="btn cancel" v-if="order.status==1" @click="cancel()">取消订单</view>
  200. <view class="btn pay" v-if="order.status==1" @click="pay()">支付</view>
  201. <!-- <view class="btn pay" v-if="order.status>1&&order.prescribeId!=null&&order.prescribeId>0" @click="showPrescribe()">查看处方单</view> -->
  202. <view class="btn cancel" v-if="order.status>1&&order.isAfterSales==1&&order.orderType==1" @click="refund()">申请售后</view>
  203. <view class="btn cancel" v-if="showInvoice()&&order.status==4&&order.billPrice != order.payPrice" @click="handleInvoice()">申请开票</view>
  204. <view class="btn pay" v-if="order.status==4&&order.billPrice" @click="handleInvoiceList()">查看发票</view>
  205. <view class="btn pay" v-if="order.deliverySn!=null&&order.extendOrderId != 'BATCH'" @click="showDelivery()">查看物流</view>
  206. <view class="btn pay" v-if="order.status==3" @click="finish()">确认收货</view>
  207. </view>
  208. </view>
  209. </template>
  210. <script>
  211. import {getPrescribeById} from '@/api/prescribe.js'
  212. import {getMyStoreOrderById,cancelOrder,finishOrder,splitOrder2ERP} from '@/api/storeOrder'
  213. export default {
  214. data() {
  215. return {
  216. payLimitTime:null,
  217. orderId:null,
  218. order:{},
  219. items:[],
  220. paddingBottom: '140rpx',
  221. childrenItems:{}
  222. };
  223. },
  224. onLoad(option) {
  225. this.orderId = option.orderId
  226. uni.$on("refreshOrderDetail",()=>{
  227. this.getMyStoreOrderById()
  228. })
  229. },
  230. onUnload() {
  231. uni.$off("refreshOrderDetail")
  232. },
  233. onShow() {
  234. this.getMyStoreOrderById()
  235. },
  236. methods: {
  237. showPrescribe(){
  238. var data={prescribeId:this.order.prescribeId}
  239. getPrescribeById(data).then(
  240. res => {
  241. if(res.code==200){
  242. if(res.data.prescribe.prescribeImgUrl!=null){
  243. var data=[];
  244. data.push(res.data.prescribe.prescribeImgUrl)
  245. uni.previewImage({
  246. current: 0,
  247. urls: data
  248. });
  249. }
  250. else{
  251. uni.showToast({
  252. icon:'none',
  253. title: "电子处方单不存在",
  254. });
  255. }
  256. }
  257. },
  258. err => {
  259. }
  260. );
  261. },
  262. getMyStoreOrderById(){
  263. var data={orderId:this.orderId};
  264. getMyStoreOrderById(data).then(res => {
  265. if(res.code==200){
  266. this.order=res.order;
  267. this.childrenItems = res.childrenItems || {}
  268. if(this.order.extendOrderId == "BATCH") {
  269. this.items=res.items&&res.items.length > 0? JSON.parse(res.items[0].splitOrderItemJson || '[]') : [];
  270. } else {
  271. let items=JSON.parse(res.order.itemJson || '[]')
  272. if(items&&items.length>0) {
  273. this.items = items.map(it=>JSON.parse(it.jsonInfo))
  274. }
  275. }
  276. this.payLimitTime=res.payLimitTime;
  277. this.prescribe=res.prescribe;
  278. }else{
  279. uni.showToast({
  280. icon:'none',
  281. title: "请求失败",
  282. });
  283. }
  284. this.$nextTick(()=>{
  285. this.getPaddingBottom()
  286. })
  287. }).catch(()=>{
  288. this.$nextTick(()=>{
  289. this.getPaddingBottom()
  290. })
  291. });
  292. },
  293. getPaddingBottom() {
  294. const query = uni.createSelectorQuery().in(this);
  295. query
  296. .select(".btn-box")
  297. .boundingClientRect((data) => {
  298. this.paddingBottom = `calc(${data.height}px + 20rpx)`
  299. })
  300. .exec();
  301. },
  302. showDelivery(type,childrenOrder){
  303. if(type==1) {
  304. uni.navigateTo({
  305. url: './storeOrderDelivery?orderCode='+childrenOrder.orderCode
  306. })
  307. } else {
  308. uni.navigateTo({
  309. url: './storeOrderDelivery?orderId='+this.orderId
  310. })
  311. }
  312. },
  313. splitOrder2ERP(orderCode){
  314. var that=this;
  315. uni.showModal({
  316. title: '提示',
  317. content: '确定发货吗?',
  318. success: function (res) {
  319. if (res.confirm) {
  320. var data = {
  321. orderCode:orderCode
  322. };
  323. splitOrder2ERP(data).then(res => {
  324. if(res.code==200){
  325. that.getMyStoreOrderById()
  326. }else{
  327. uni.showToast({
  328. icon:'none',
  329. title: res.msg,
  330. });
  331. }
  332. });
  333. }
  334. else if (res.cancel) {
  335. }
  336. }
  337. });
  338. },
  339. cancel(){
  340. var that=this;
  341. uni.showModal({
  342. title: '提示',
  343. content: '确定取消订单吗',
  344. success: function (res) {
  345. if (res.confirm) {
  346. var data = {
  347. orderId:that.order.orderId
  348. };
  349. cancelOrder(data).then(res => {
  350. if(res.code==200){
  351. that.getMyStoreOrderById()
  352. uni.$emit('refreshStoreOrder');
  353. }else{
  354. uni.showToast({
  355. icon:'none',
  356. title: res.msg,
  357. });
  358. }
  359. });
  360. }
  361. else if (res.cancel) {
  362. }
  363. }
  364. });
  365. },
  366. finish(){
  367. var that=this;
  368. uni.showModal({
  369. title: '提示',
  370. content: '确定已收货吗',
  371. success: function (res) {
  372. if (res.confirm) {
  373. var data = {
  374. orderId:that.orderId
  375. };
  376. finishOrder(data).then(res => {
  377. if(res.code==200){
  378. that.getMyStoreOrderById()
  379. uni.$emit('refreshStoreOrder');
  380. }else{
  381. uni.showToast({
  382. icon:'none',
  383. title: res.msg,
  384. });
  385. }
  386. });
  387. }
  388. else if (res.cancel) {
  389. }
  390. }
  391. });
  392. },
  393. pay() {
  394. uni.navigateTo({
  395. url: '/pages/store/storeOrderPay?orderId='+this.order.orderId
  396. })
  397. },
  398. // 复制订单编号
  399. copyOrderSn(text) {
  400. // 复制方法
  401. uni.setClipboardData({
  402. data:text,
  403. success:()=>{
  404. uni.showToast({
  405. title:'内容已成功复制到剪切板',
  406. icon:'none'
  407. })
  408. }
  409. });
  410. },
  411. // 退货
  412. refund() {
  413. uni.navigateTo({
  414. url: '/pages/store/storeOrderRefundApply?orderId='+this.orderId
  415. })
  416. },
  417. showInvoice() {
  418. const time = this.order.createTime
  419. const targetDate = new Date('2025-01-01 00:00:00');
  420. const currentDate = new Date(time);
  421. if (time && currentDate >= targetDate) {
  422. return true
  423. } else {
  424. return false
  425. }
  426. },
  427. // 申请开票
  428. handleInvoice() {
  429. uni.navigateTo({
  430. url: './invoice/index?orderId='+this.order.orderId
  431. })
  432. },
  433. // 开票历史
  434. handleInvoiceList() {
  435. uni.navigateTo({
  436. url: './invoice/invoiceList?orderId='+this.order.orderId
  437. })
  438. },
  439. async goToWXMsg(){
  440. const url = getApp().globalData.kfurl //企业微信客服链接
  441. const corpId = getApp().globalData.corpId //企业id
  442. // #ifdef H5
  443. window.location.href = url
  444. // #endif
  445. // #ifdef APP-PLUS
  446. let shares = await this.getAppShare().catch(err => {
  447. throw Error(err)
  448. });
  449. shares['weixin'].openCustomerServiceChat({
  450. corpid: corpId,
  451. url
  452. }, suc => {
  453. console.log("客服打开成功", JSON.stringify(res))
  454. }, err => {
  455. console.log("error", JSON.stringify(err))
  456. })
  457. // #endif
  458. },
  459. getAppShare() {
  460. // #ifdef APP-PLUS
  461. return new Promise((re, rj) => {
  462. let shares = null;
  463. var pusher = plus.share.getServices(function(s) {
  464. shares = {};
  465. s.forEach(e => shares[e.id] = e);
  466. re(shares)
  467. }, function(e) {
  468. rj(e);
  469. });
  470. });
  471. // #endif
  472. },
  473. }
  474. }
  475. </script>
  476. <style lang="scss">
  477. .cont{
  478. width: 100%;
  479. position: relative;
  480. .bg{
  481. width: 100%;
  482. height: 350upx;
  483. position: absolute;
  484. top: 0;
  485. left: 0;
  486. z-index: 1;
  487. background-color: #FF5030;
  488. background: linear-gradient(#FF5030, #E2C99E);
  489. border-radius: 0rpx 0rpx 100rpx 100rpx;
  490. }
  491. .inner{
  492. position: relative;
  493. padding: 30upx 0rpx;
  494. width: 100%;
  495. height: 100%;
  496. z-index: 9;
  497. .order-status{
  498. display: flex;
  499. align-items: center;
  500. justify-content: space-between;
  501. padding: 0 30upx;
  502. .inner{
  503. display: flex;
  504. align-items: center;
  505. .img-box{
  506. width: 96upx;
  507. height: 96upx;
  508. margin-right: 30upx;
  509. image{
  510. width: 100%;
  511. height: 100%;
  512. }
  513. }
  514. .status-box{
  515. height: 96upx;
  516. display: flex;
  517. flex-direction: column;
  518. justify-content: center;
  519. .status{
  520. font-size: 40upx;
  521. font-family: PingFang SC;
  522. font-weight: bold;
  523. color: #FFFFFF;
  524. line-height: 1;
  525. }
  526. .desc{
  527. font-size: 26upx;
  528. font-family: PingFang SC;
  529. font-weight: 500;
  530. color: #FFFFFF;
  531. line-height: 1;
  532. margin-top: 30upx;
  533. }
  534. }
  535. }
  536. }
  537. .order-placer{
  538. margin-top: 30upx;
  539. padding: 0 20upx;
  540. .inner{
  541. box-sizing: border-box;
  542. border-radius: 16upx;
  543. height: 150upx;
  544. padding: 40upx 30upx;
  545. display: flex;
  546. align-items: center;
  547. background: #FFFFFF;
  548. .location{
  549. width: 24upx;
  550. height: 27upx;
  551. margin-right: 18upx;
  552. flex-shrink: 0;
  553. }
  554. .info{
  555. .name-phone{
  556. display: flex;
  557. align-items: center;
  558. .text{
  559. font-size: 28upx;
  560. font-family: PingFang SC;
  561. font-weight: bold;
  562. color: #333333;
  563. line-height: 1;
  564. margin-right: 20upx;
  565. &:last-child{
  566. margin-right: 0;
  567. }
  568. }
  569. }
  570. .address{
  571. font-size: 26upx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #999999;
  575. line-height: 1.3;
  576. margin-top: 10upx;
  577. }
  578. }
  579. }
  580. }
  581. }
  582. }
  583. .content{
  584. margin: 20rpx 0rpx;
  585. padding: 0 20upx 140rpx 20upx;
  586. .goods-list{
  587. padding: 0 30upx;
  588. background-color: #FFFFFF;
  589. border-radius: 16upx;
  590. .item{
  591. padding: 30upx 0;
  592. border-bottom: 1px solid #EDEEEF;
  593. display: flex;
  594. align-items: center;
  595. .img-box{
  596. width: 160upx;
  597. height: 160upx;
  598. margin-right: 30upx;
  599. image{
  600. width: 100%;
  601. height: 100%;
  602. }
  603. }
  604. .info-box{
  605. width: calc(100% - 190upx);
  606. height: 160upx;
  607. display: flex;
  608. flex-direction: column;
  609. justify-content: space-between;
  610. .name-box{
  611. font-size: 28upx;
  612. font-family: PingFang SC;
  613. font-weight: 500;
  614. color: #111111;
  615. line-height: 40upx;
  616. .tag{
  617. display: inline-block;
  618. padding: 0 6upx;
  619. height: 30upx;
  620. background: linear-gradient(90deg, #C39A58 0%, #E2C99E 100%);
  621. border-radius: 4upx;
  622. margin-right: 10upx;
  623. font-size: 22upx;
  624. font-family: PingFang SC;
  625. font-weight: bold;
  626. color: #FFFFFF;
  627. line-height: 30upx;
  628. float: left;
  629. margin-top: 7upx;
  630. }
  631. }
  632. .spec{
  633. margin-top: 18upx;
  634. font-size: 24upx;
  635. font-family: PingFang SC;
  636. font-weight: 500;
  637. color: #999999;
  638. line-height: 1;
  639. }
  640. .price-num{
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. .price{
  645. display: flex;
  646. align-items: flex-end;
  647. .unit{
  648. font-size: 24upx;
  649. font-family: PingFang SC;
  650. font-weight: 500;
  651. color: #111111;
  652. line-height: 1.2;
  653. margin-right: 4upx;
  654. }
  655. .num{
  656. font-size: 32upx;
  657. font-family: PingFang SC;
  658. font-weight: 500;
  659. color: #111111;
  660. line-height: 1;
  661. }
  662. }
  663. .num{
  664. font-size: 24upx;
  665. font-family: PingFang SC;
  666. font-weight: 500;
  667. color: #999999;
  668. line-height: 1;
  669. }
  670. }
  671. }
  672. }
  673. .sub-total{
  674. height: 88upx;
  675. display: flex;
  676. align-items: center;
  677. justify-content: flex-end;
  678. .discount{
  679. font-size: 24upx;
  680. font-family: PingFang SC;
  681. font-weight: 500;
  682. color: #999999;
  683. line-height: 1;
  684. margin-right: 30upx;
  685. }
  686. .label{
  687. font-size: 24upx;
  688. font-family: PingFang SC;
  689. font-weight: 500;
  690. color: #999999;
  691. }
  692. .price{
  693. display: flex;
  694. align-items: flex-end;
  695. .unit{
  696. font-size: 24upx;
  697. font-family: PingFang SC;
  698. font-weight: 500;
  699. color: #FF6633;
  700. line-height: 1.2;
  701. margin-right: 4upx;
  702. }
  703. .num{
  704. font-size: 32upx;
  705. font-family: PingFang SC;
  706. font-weight: bold;
  707. color: #FF6633;
  708. line-height: 1;
  709. }
  710. }
  711. }
  712. }
  713. .order-info{
  714. margin-top: 20upx;
  715. background: #FFFFFF;
  716. border-radius: 16upx;
  717. padding: 40upx 30upx;
  718. .title{
  719. font-size: 30upx;
  720. font-family: PingFang SC;
  721. font-weight: bold;
  722. color: #222222;
  723. line-height: 1;
  724. }
  725. .item{
  726. margin-top: 40upx;
  727. display: flex;
  728. align-items: center;
  729. justify-content: space-between;
  730. .label{
  731. font-size: 26upx;
  732. font-family: PingFang SC;
  733. font-weight: 500;
  734. color: #666666;
  735. line-height: 1;
  736. }
  737. .text{
  738. font-size: 26upx;
  739. font-family: PingFang SC;
  740. font-weight: 500;
  741. color: #222222;
  742. line-height: 32upx;
  743. }
  744. .cont-text{
  745. font-size: 26upx;
  746. font-family: PingFang SC;
  747. font-weight: 500;
  748. color: #666666;
  749. .bold{
  750. color: #111111;
  751. }
  752. }
  753. .sn-box{
  754. display: flex;
  755. align-items: center;
  756. .copy-btn{
  757. width: 58upx;
  758. height: 32upx;
  759. line-height: 32upx;
  760. text-align: center;
  761. font-size: 22upx;
  762. font-family: PingFang SC;
  763. font-weight: 500;
  764. color: #222222;
  765. background: #F5F5F5;
  766. border-radius: 4upx;
  767. margin-left: 24upx;
  768. }
  769. }
  770. .check-box{
  771. display: flex;
  772. align-items: center;
  773. image{
  774. width: 14upx;
  775. height: 24upx;
  776. margin-left: 10upx;
  777. }
  778. }
  779. }
  780. .line{
  781. width: 100%;
  782. height: 1px;
  783. background: #F0F0F0;
  784. margin-top: 30upx;
  785. }
  786. }
  787. }
  788. .btn-box{
  789. z-index: 99;
  790. bottom: 0;
  791. width: 100%;
  792. position: fixed;
  793. min-height: 120upx;
  794. margin-bottom: -15rpx;
  795. box-sizing: border-box;
  796. background: #FFFFFF;
  797. padding: 30upx;
  798. display: flex;
  799. align-items: center;
  800. justify-content: flex-end;
  801. flex-wrap: wrap;
  802. box-sizing: border-box;
  803. }
  804. .btn{
  805. position: relative;
  806. width: 155upx;
  807. height: 64upx;
  808. line-height: 64upx;
  809. font-size: 26upx;
  810. font-family: PingFang SC;
  811. font-weight: 500;
  812. text-align: center;
  813. border-radius: 32upx;
  814. margin-left: 15upx;
  815. margin-bottom: 15rpx;
  816. &.cancel{
  817. border: 1px solid #DDDDDD;
  818. color: #666666;
  819. }
  820. &.pay{
  821. background: #FF5030;
  822. color: #FFFFFF;
  823. }
  824. .contact-btn {
  825. top: 0;
  826. position: absolute;
  827. width:100%;
  828. height:100%;
  829. opacity: 0;
  830. }
  831. }
  832. .order-info-title {
  833. display: flex;
  834. align-items: center;
  835. justify-content: space-between;
  836. }
  837. .order-info-r {
  838. display: flex;
  839. align-items: center;
  840. .btn{
  841. margin-bottom: 0;
  842. }
  843. }
  844. </style>