storeOrder.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <view>
  3. <view class="top-fixed">
  4. <!-- tab切换 -->
  5. <view class="pub-tab-box">
  6. <view class="tab-inner">
  7. <view
  8. v-for="(item,index) in orderStatus"
  9. :key="index"
  10. :class="status ==item.value?'item active':'item'"
  11. @click="orderStatusChange(item)">
  12. <view class="text">
  13. {{ item.name }}
  14. <image v-show="status ==item.value" class="tab-bg" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/tab_bg.png" mode=""></image>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="search-cont">
  20. <view class="inner">
  21. <image class="icon-search" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/search.png" mode=""></image>
  22. <input type="text" value="" placeholder="输入订单号" confirm-type="搜索" @confirm="goSearch" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" />
  23. </view>
  24. </view>
  25. </view>
  26. <view class="top-seat"></view>
  27. <!-- 订单列表 -->
  28. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
  29. <view class="order-list">
  30. <view v-for="(item,index) in dataList" :key="index" class="item" >
  31. <!-- 订单号,状态 -->
  32. <view class="ordersn-box" @click="showDetail(item)">
  33. <view class="num">订单号:{{item.orderCode}}</view>
  34. <view class="status-box">
  35. <!-- <view class="recom-box">推荐订单</view> -->
  36. <text class="text success">
  37. {{utils.getDictLabelName("storeOrderStatus",item.status)||''}}
  38. </text>
  39. </view>
  40. </view>
  41. <!-- 产品列表 -->
  42. <!-- 商城 -->
  43. <view class="drug-list" v-if="item.orderType!==2">
  44. <view @click="showDetail(item)" v-if="item.isPackage!=1" v-for="(subItem,subIndex) in item.items" :key="subIndex" class="drug-item" >
  45. <view class="img-box">
  46. <image :src="JSON.parse(subItem.jsonInfo).image" mode="aspectFill"></image>
  47. </view>
  48. <view class="drug-info" >
  49. <view>
  50. <view class="name-box ellipsis2">
  51. <view v-if="subItem.isPrescribe==1" class="tag">处方药</view>{{JSON.parse(subItem.jsonInfo).productName}}
  52. </view>
  53. <view class="spec ellipsis2">{{JSON.parse(subItem.jsonInfo).sku}}</view>
  54. </view>
  55. <view class="num-box">
  56. <view class="price">
  57. <text class="unit">¥</text>
  58. <text class="num">{{JSON.parse(subItem.jsonInfo).price.toFixed(2)}}</text>
  59. </view>
  60. <view class="amount">x{{JSON.parse(subItem.jsonInfo).num}}</view>
  61. </view>
  62. </view>
  63. </view>
  64. <view v-if="item.isPackage==1&&item.packageJson!=null" class="drug-item" @click="showDetail(item)">
  65. <view class="img-box">
  66. <image :src="JSON.parse(item.packageJson).imgUrl" mode="aspectFill"></image>
  67. </view>
  68. <view class="drug-info" >
  69. <view>
  70. <view class="name-box ellipsis2">
  71. <view class="tag">套餐</view>{{JSON.parse(item.packageJson).title}}
  72. </view>
  73. <view class="spec ellipsis2">{{JSON.parse(item.packageJson).descs}}</view>
  74. </view>
  75. <!-- <view class="num-box">
  76. <view class="price">
  77. <text class="unit">¥</text>
  78. <text class="num">{{JSON.parse(item.packageJson).payMoney.toFixed(2)}}</text>
  79. </view>
  80. <view class="amount"></view>
  81. </view> -->
  82. </view>
  83. </view>
  84. <!-- 实付金额、按钮 -->
  85. <view class="bottom-box">
  86. <view class="amount-paid">
  87. <text class="label">订单金额:</text>
  88. <view class="price-box">
  89. <view class="unit">¥</view>
  90. <view class="num" >{{item.payPrice.toFixed(2)}}</view>
  91. </view>
  92. </view>
  93. <view class="btn-box">
  94. <view v-if="item.status == 0" class="btn cancel" @click="cancel(item)">取消订单</view>
  95. <view v-if="item.status == 0" class="btn pay" @click="pay(item)">支付</view>
  96. <view v-if="item.isAfterSales==1" class="btn cancel" @click="refund(item)">申请售后</view>
  97. <view v-if="item.status >=2 &&item.deliveryId!=null" class="btn pay" @click.stop="showDelivery(item)">查看物流</view>
  98. <view v-if="item.status == -3" class="btn cancel" @click="deleteOrder(item)">删除订单</view>
  99. <!-- <view v-if="item.status==4" class="btn pay">再次购买</view> -->
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 直播 -->
  104. <view class="drug-list" v-if="item.orderType==2">
  105. <view @click="showDetail(item)" v-if="item.isPackage!=1" class="drug-item" >
  106. <view class="img-box">
  107. <image :src="JSON.parse(item.itemJson).image" mode="aspectFill"></image>
  108. </view>
  109. <view class="drug-info" >
  110. <view>
  111. <view class="name-box ellipsis2">
  112. <view v-if="item.isPrescribe==1" class="tag">处方药</view>{{JSON.parse(item.itemJson).productName}}
  113. </view>
  114. <view class="spec ellipsis2">{{JSON.parse(item.itemJson).sku}}</view>
  115. </view>
  116. <view class="num-box">
  117. <view class="price">
  118. <text class="unit">¥</text>
  119. <text class="num">{{JSON.parse(item.itemJson).price.toFixed(2)}}</text>
  120. </view>
  121. <view class="amount">x{{item.totalNum}}</view>
  122. </view>
  123. </view>
  124. </view>
  125. <view v-if="item.isPackage==1&&item.packageJson!=null" class="drug-item" @click="showDetail(item)">
  126. <view class="img-box">
  127. <image :src="JSON.parse(item.packageJson).imgUrl" mode="aspectFill"></image>
  128. </view>
  129. <view class="drug-info" >
  130. <view>
  131. <view class="name-box ellipsis2">
  132. <view class="tag">套餐</view>{{JSON.parse(item.packageJson).title}}
  133. </view>
  134. <view class="spec ellipsis2">{{JSON.parse(item.packageJson).descs}}</view>
  135. </view>
  136. <!-- <view class="num-box">
  137. <view class="price">
  138. <text class="unit">¥</text>
  139. <text class="num">{{JSON.parse(item.packageJson).payMoney.toFixed(2)}}</text>
  140. </view>
  141. <view class="amount"></view>
  142. </view> -->
  143. </view>
  144. </view>
  145. <!-- 实付金额、按钮 -->
  146. <view class="bottom-box">
  147. <view class="amount-paid">
  148. <text class="label">订单金额:</text>
  149. <view class="price-box">
  150. <view class="unit">¥</view>
  151. <view class="num" >{{item.payPrice.toFixed(2)}}</view>
  152. </view>
  153. </view>
  154. <view class="btn-box">
  155. <view v-if="item.status == 0" class="btn cancel" @click="cancel(item)">取消订单</view>
  156. <view v-if="item.status == 0" class="btn pay" @click="pay(item)">支付</view>
  157. <view v-if="item.isAfterSales==1" class="btn cancel" @click="refund(item)">申请售后</view>
  158. <view v-if="item.status >=2 &&item.deliveryId!=null" class="btn pay" @click.stop="showDelivery(item)">查看物流</view>
  159. <view v-if="item.status == -3" class="btn cancel" @click="deleteOrder(item)">删除订单</view>
  160. <!-- <view v-if="item.status==4" class="btn pay">再次购买</view> -->
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </mescroll-body>
  167. <CustomToast ref="customToast">
  168. </CustomToast>
  169. </view>
  170. </template>
  171. <script>
  172. import {getMyStoreOrderList,cancelOrder,canceliveOrder, deleteOrder as deleteOrderApi, cancelLiveOrder} from '@/api/storeOrder'
  173. import {getDicts} from '@/api/index'
  174. import {checkPurchaseLimit,checkOrderPurchaseLimit} from '@/api/product';
  175. import {CustomToast} from '@/components/custom-toast.vue';
  176. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  177. export default {
  178. mixins: [MescrollMixin],
  179. components: {
  180. CustomToast
  181. },
  182. data() {
  183. return {
  184. searchKey:"",
  185. status:0,
  186. orderStatus: [
  187. {name:"全部",value:""},
  188. {name:"待付款",value:"0"},
  189. {name:"待发货",value:"1"},
  190. {name:"待收货",value:"2"},
  191. {name:"已完成",value:"3"}
  192. ],
  193. mescroll:null,
  194. // 上拉加载的配置
  195. upOption: {
  196. onScroll:true,
  197. use: true, // 是否启用上拉加载; 默认true
  198. page: {
  199. num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  200. size: 10 // 每页数据的数量,默认10
  201. },
  202. noMoreSize: 10, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
  203. empty: {
  204. icon:'https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/no_data.png',
  205. tip: '暂无数据'
  206. }
  207. },
  208. // 列表数据
  209. dataList: [],
  210. };
  211. },
  212. onLoad(option) {
  213. this.status = option.status
  214. this.getDicts();
  215. var that=this;
  216. uni.$on('refreshOrder', () => {
  217. that.mescroll.resetUpScroll()
  218. });
  219. },
  220. methods: {
  221. goSearch(e) {
  222. this.searchKey=e.detail.value;
  223. this.mescroll.resetUpScroll()
  224. },
  225. getDicts:function(){
  226. getDicts().then(
  227. res => {
  228. if(res.code==200){
  229. uni.setStorageSync('dicts',JSON.stringify(res));
  230. }else{
  231. }
  232. // this.loadding=false;
  233. // this.navigatHandler();
  234. },
  235. rej => {}
  236. );
  237. },
  238. refund(item) {
  239. if(item.orderType==2){
  240. uni.navigateTo({
  241. url: '/pages_shopping/live/refundOrderProduct?orderId=' + item.orderId
  242. })
  243. }else{
  244. uni.navigateTo({
  245. url: './refundOrderProduct?orderId='+item.id
  246. })
  247. }
  248. },
  249. // tab切换
  250. orderStatusChange(item) {
  251. this.status = item.value
  252. this.mescroll.resetUpScroll()
  253. },
  254. mescrollInit(mescroll) {
  255. this.mescroll = mescroll;
  256. },
  257. /*下拉刷新的回调 */
  258. downCallback(mescroll) {
  259. mescroll.resetUpScroll()
  260. },
  261. upCallback(page) {
  262. //联网加载数据
  263. var that = this;
  264. var data = {
  265. keyword:this.searchKey,
  266. status:this.status,
  267. page: page.num,
  268. pageSize: page.size
  269. };
  270. getMyStoreOrderList(data).then(res => {
  271. if(res.code==200){
  272. //设置列表数据
  273. if (page.num == 1) {
  274. that.dataList = res.data.list;
  275. } else {
  276. that.dataList = that.dataList.concat(res.data.list);
  277. }
  278. that.mescroll.endBySize(res.data.list.length, res.data.total);
  279. }else{
  280. uni.showToast({
  281. icon:'none',
  282. title: "请求失败",
  283. });
  284. that.dataList = null;
  285. that.mescroll.endErr();
  286. }
  287. });
  288. },
  289. // 查看订单详情
  290. showDetail(item) {
  291. console.log(item)
  292. if(item.orderType==2){
  293. uni.navigateTo({
  294. url: '/pages_shopping/live/storeOrderDetail?orderId=' + item.orderId
  295. })
  296. }else{
  297. uni.navigateTo({
  298. url: './storeOrderDetail?id=' + item.id
  299. })
  300. }
  301. },
  302. cancel(item){
  303. var that=this;
  304. uni.showModal({
  305. title: '提示',
  306. content: '确定取消订单吗',
  307. success: function (res) {
  308. if (res.confirm) {
  309. var data = {
  310. orderId:item.orderType==2?item.orderId:item.id
  311. };
  312. if(item.orderType==2){
  313. cancelLiveOrder(data).then(res => {
  314. if(res.code==200){
  315. uni.showToast({
  316. icon:'success',
  317. title: "操作成功",
  318. });
  319. that.mescroll.resetUpScroll()
  320. }else{
  321. uni.showToast({
  322. icon:'none',
  323. title: res.msg,
  324. });
  325. }
  326. });
  327. }else{
  328. cancelOrder(data).then(res => {
  329. if(res.code==200){
  330. uni.showToast({
  331. icon:'success',
  332. title: "操作成功",
  333. });
  334. that.mescroll.resetUpScroll()
  335. }else{
  336. uni.showToast({
  337. icon:'none',
  338. title: res.msg,
  339. });
  340. }
  341. });
  342. }
  343. }
  344. else if (res.cancel) {
  345. }
  346. }
  347. });
  348. },
  349. async pay(item) {
  350. if(item.isPrescribe==1 && item.prescribeId==null){
  351. uni.navigateTo({
  352. url:"/pages/shopping/prescribe?orderId="+item.id
  353. });
  354. }
  355. else{
  356. if(item.orderType==2){
  357. // 直播订单,限购逻辑不变,使用原有逻辑
  358. let productId = null;
  359. if(item.productId){
  360. productId = item.productId;
  361. } else if(item.itemJson){
  362. try {
  363. const itemJson = JSON.parse(item.itemJson);
  364. productId = itemJson.productId;
  365. } catch(e) {
  366. console.error('解析 itemJson 失败:', e);
  367. }
  368. }
  369. // 如果获取到 productId,检查限购
  370. if(productId){
  371. try {
  372. const res = await checkPurchaseLimit({ productId: productId });
  373. if (res.code !== 200) {
  374. this.$refs.customToast.show({
  375. title: res.msg || '该商品限购,目前剩余可购买数量不足',
  376. duration: 2000
  377. });
  378. // uni.showToast({
  379. // icon: 'none',
  380. // title: res.msg || '该商品限购,目前剩余可购买数量不足'
  381. // });
  382. return;
  383. }
  384. } catch (error) {
  385. console.error('检查限购失败:', error);
  386. uni.showToast({
  387. icon: 'none',
  388. title: '检查限购失败,请稍后重试'
  389. });
  390. return;
  391. }
  392. }
  393. // 支付
  394. console.log("去支付", item)
  395. uni.navigateTo({
  396. url: `/pages_shopping/live/paymentOrder?orderList=${encodeURIComponent(JSON.stringify(item))}`
  397. })
  398. }else{
  399. // 商城订单,使用新接口根据orderCode校验
  400. if(item.orderCode){
  401. try {
  402. const res = await checkOrderPurchaseLimit({ orderCode: item.orderCode });
  403. if (res.code !== 200) {
  404. this.$refs.customToast.show({
  405. title: res.msg || '订单商品限购校验失败',
  406. duration: 2000
  407. });
  408. // uni.showToast({
  409. // icon: 'none',
  410. // title: res.msg || '订单商品限购校验失败'
  411. // });
  412. return;
  413. }
  414. } catch (error) {
  415. console.error('检查限购失败:', error);
  416. uni.showToast({
  417. icon: 'none',
  418. title: '检查限购失败,请稍后重试'
  419. });
  420. return;
  421. }
  422. }
  423. // 限购检查通过,进行支付跳转
  424. uni.navigateTo({
  425. url: '/pages/shopping/paymentOrder?orderId='+item.id
  426. })
  427. }
  428. }
  429. },
  430. // 查看物流
  431. showDelivery(item) {
  432. if(item.orderType==2){
  433. uni.navigateTo({
  434. url: `/pages_shopping/live/storeOrderDelivery?orderId=${item.orderId}`
  435. })
  436. }else{
  437. uni.navigateTo({
  438. url: './storeOrderDelivery?orderId='+item.id
  439. })
  440. }
  441. },
  442. // 删除订单
  443. deleteOrder(item) {
  444. var that = this;
  445. uni.showModal({
  446. title: '提示',
  447. content: '确定删除订单吗?删除后无法恢复',
  448. success: function (res) {
  449. if (res.confirm) {
  450. var data = {
  451. orderId: item.orderType == 2 ? item.orderId : item.id,
  452. orderType: item.orderType
  453. };
  454. deleteOrderApi(data).then(res => {
  455. if(res.code == 200){
  456. uni.showToast({
  457. icon:'success',
  458. title: "删除成功",
  459. });
  460. that.mescroll.resetUpScroll()
  461. }else{
  462. uni.showToast({
  463. icon:'none',
  464. title: res.msg,
  465. });
  466. }
  467. });
  468. }
  469. }
  470. });
  471. }
  472. }
  473. }
  474. </script>
  475. <style lang="scss">
  476. .top-fixed{
  477. width: 100%;
  478. position: fixed;
  479. top: 0;
  480. left: 0;
  481. z-index: 10;
  482. }
  483. .pub-tab-box{
  484. box-sizing: border-box;
  485. width: 100%;
  486. padding: 0 40upx;
  487. background-color: #FFFFFF;
  488. .tab-inner{
  489. height: 88upx;
  490. line-height: 88upx;
  491. display: flex;
  492. align-items: center;
  493. justify-content: space-between;
  494. overflow-x: auto;
  495. }
  496. .item{
  497. font-size: 28upx;
  498. white-space: nowrap;
  499. line-height: 1;
  500. font-family: PingFang SC;
  501. font-weight: 500;
  502. color: #666666;
  503. margin-right: 60upx;
  504. display: flex;
  505. align-items: center;
  506. justify-content: center;
  507. &:last-child{
  508. margin-right: 0;
  509. }
  510. &.active{
  511. font-weight: bold;
  512. color: #333333;
  513. }
  514. .text{
  515. position: relative;
  516. z-index: 1;
  517. }
  518. .tab-bg{
  519. width: 72upx;
  520. height: 28upx;
  521. position: absolute;
  522. top: 17upx;
  523. left: 50%;
  524. transform: translateX(-36upx);
  525. z-index: -1;
  526. }
  527. }
  528. }
  529. .top-seat{
  530. width: 100%;
  531. height: 192upx;
  532. }
  533. .search-cont{
  534. padding: 16upx 30upx;
  535. background-color: #FFFFFF;
  536. .inner{
  537. box-sizing: border-box;
  538. width: 100%;
  539. height: 72upx;
  540. background: #F7F7F7;
  541. border-radius: 36upx;
  542. display: flex;
  543. align-items: center;
  544. padding: 0 30upx;
  545. .icon-search{
  546. width: 28upx;
  547. height: 28upx;
  548. margin-right: 20upx;
  549. }
  550. input{
  551. height: 60upx;
  552. line-height: 60upx;
  553. flex: 1;
  554. }
  555. }
  556. }
  557. .order-list{
  558. padding: 20upx;
  559. .item{
  560. background: #FFFFFF;
  561. border-radius: 16upx;
  562. padding: 0 30upx;
  563. margin-bottom: 20upx;
  564. .ordersn-box{
  565. display: flex;
  566. align-items: center;
  567. justify-content: space-between;
  568. padding: 34upx 0 20upx;
  569. .num{
  570. font-size: 26upx;
  571. font-family: PingFang SC;
  572. font-weight: 500;
  573. color: #999999;
  574. line-height: 1;
  575. }
  576. .status-box{
  577. display: flex;
  578. align-items: center;
  579. .recom-box{
  580. width: 108upx;
  581. height: 30upx;
  582. line-height: 30upx;
  583. text-align: left;
  584. padding-left: 8upx;
  585. font-size: 22upx;
  586. font-family: PingFang SC;
  587. font-weight: 500;
  588. color: #FFFFFF;
  589. background-image: url(https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/recom.png);
  590. background-repeat: no-repeat;
  591. background-size: 100% 100%;
  592. margin-right: 8upx;
  593. }
  594. .text{
  595. font-size: 28upx;
  596. font-family: PingFang SC;
  597. font-weight: 500;
  598. line-height: 1;
  599. &.success{
  600. color: #2BC7B9;
  601. }
  602. &.black{
  603. color: #111111;
  604. }
  605. &.info{
  606. color: #999999;
  607. }
  608. }
  609. }
  610. }
  611. .drug-list{
  612. .drug-item{
  613. padding: 30upx 0;
  614. border-bottom: 1px soli #F0F0F0;
  615. display: flex;
  616. align-items: center;
  617. .img-box{
  618. width: 160upx;
  619. height: 160upx;
  620. margin-right: 30upx;
  621. flex-shrink: 0;
  622. image{
  623. width: 100%;
  624. height: 100%;
  625. }
  626. }
  627. .drug-info{
  628. width: calc(100% - 190upx);
  629. height: 160upx;
  630. display: flex;
  631. flex-direction: column;
  632. justify-content: space-between;
  633. .name-box{
  634. font-size: 28upx;
  635. font-family: PingFang SC;
  636. font-weight: 500;
  637. color: #111111;
  638. line-height: 40upx;
  639. .tag{
  640. display: inline-block;
  641. padding: 0 6upx;
  642. height: 30upx;
  643. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  644. border-radius: 4upx;
  645. margin-right: 10upx;
  646. font-size: 22upx;
  647. font-family: PingFang SC;
  648. font-weight: bold;
  649. color: #FFFFFF;
  650. line-height: 30upx;
  651. float: left;
  652. margin-top: 7upx;
  653. }
  654. }
  655. .spec{
  656. font-size: 24upx;
  657. font-family: PingFang SC;
  658. font-weight: 500;
  659. color: #999999;
  660. line-height: 1;
  661. margin-top: 10upx;
  662. }
  663. .num-box{
  664. display: flex;
  665. align-items: center;
  666. justify-content: space-between;
  667. .price{
  668. display: flex;
  669. align-items: flex-end;
  670. .unit{
  671. font-size: 24upx;
  672. font-family: PingFang SC;
  673. font-weight: 500;
  674. color: #111111;
  675. line-height: 1.2;
  676. margin-right: 4upx;
  677. }
  678. .num{
  679. font-size: 32upx;
  680. font-family: PingFang SC;
  681. font-weight: 500;
  682. color: #111111;
  683. line-height: 1;
  684. }
  685. }
  686. .amount{
  687. font-size: 24upx;
  688. font-family: PingFang SC;
  689. font-weight: 500;
  690. color: #999999;
  691. line-height: 1;
  692. }
  693. }
  694. }
  695. }
  696. .bottom-box{
  697. height: 110upx;
  698. display: flex;
  699. align-items: center;
  700. justify-content: space-between;
  701. .amount-paid{
  702. display: flex;
  703. align-items: center;
  704. .label{
  705. font-size: 24upx;
  706. font-family: PingFang SC;
  707. font-weight: 500;
  708. color: #999999;
  709. line-height: 1;
  710. }
  711. .price-box{
  712. display: flex;
  713. align-items: flex-end;
  714. .unit{
  715. font-size: 24upx;
  716. font-family: PingFang SC;
  717. font-weight: 500;
  718. color: #FF6633;
  719. line-height: 1.2;
  720. margin-right: 4upx;
  721. }
  722. .num{
  723. font-size: 32upx;
  724. font-family: PingFang SC;
  725. font-weight: bold;
  726. color: #FF6633;
  727. line-height: 1;
  728. }
  729. }
  730. }
  731. .btn-box{
  732. box-sizing: border-box;
  733. display: flex;
  734. align-items: center;
  735. .btn{
  736. width: 155upx;
  737. height: 64upx;
  738. line-height: 64upx;
  739. font-size: 26upx;
  740. font-family: PingFang SC;
  741. font-weight: 500;
  742. text-align: center;
  743. border-radius: 32upx;
  744. margin-left: 15upx;
  745. &:first-child{
  746. margin-left: 0;
  747. }
  748. &.cancel{
  749. border: 1px solid #DDDDDD;
  750. color: #666666;
  751. }
  752. &.pay{
  753. background: #2BC7B9;
  754. color: #FFFFFF;
  755. }
  756. }
  757. }
  758. }
  759. }
  760. }
  761. }
  762. </style>