storeOrder.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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. let num = item.totalNum || 1; // 获取订单数量
  360. if(item.productId){
  361. productId = item.productId;
  362. } else if(item.itemJson){
  363. try {
  364. const itemJson = JSON.parse(item.itemJson);
  365. productId = itemJson.productId;
  366. } catch(e) {
  367. console.error('解析 itemJson 失败:', e);
  368. }
  369. }
  370. // 如果获取到 productId,检查限购
  371. if(productId){
  372. try {
  373. const res = await checkPurchaseLimit({ productId: productId, num: num });
  374. if (res.code !== 200) {
  375. this.$refs.customToast.show({
  376. title: res.msg || '该商品限购,目前剩余可购买数量不足',
  377. duration: 2000
  378. });
  379. // uni.showToast({
  380. // icon: 'none',
  381. // title: res.msg || '该商品限购,目前剩余可购买数量不足'
  382. // });
  383. return;
  384. }
  385. } catch (error) {
  386. console.error('检查限购失败:', error);
  387. uni.showToast({
  388. icon: 'none',
  389. title: '检查限购失败,请稍后重试'
  390. });
  391. return;
  392. }
  393. }
  394. // 支付
  395. console.log("去支付", item)
  396. uni.navigateTo({
  397. url: `/pages_shopping/live/paymentOrder?orderList=${encodeURIComponent(JSON.stringify(item))}`
  398. })
  399. }else{
  400. // 商城订单,使用新接口根据orderCode校验
  401. if(item.orderCode){
  402. try {
  403. const res = await checkOrderPurchaseLimit({ orderCode: item.orderCode });
  404. if (res.code !== 200) {
  405. this.$refs.customToast.show({
  406. title: res.msg || '订单商品限购校验失败',
  407. duration: 2000
  408. });
  409. // uni.showToast({
  410. // icon: 'none',
  411. // title: res.msg || '订单商品限购校验失败'
  412. // });
  413. return;
  414. }
  415. } catch (error) {
  416. console.error('检查限购失败:', error);
  417. uni.showToast({
  418. icon: 'none',
  419. title: '检查限购失败,请稍后重试'
  420. });
  421. return;
  422. }
  423. }
  424. // 限购检查通过,进行支付跳转
  425. uni.navigateTo({
  426. url: '/pages/shopping/paymentOrder?orderId='+item.id
  427. })
  428. }
  429. }
  430. },
  431. // 查看物流
  432. showDelivery(item) {
  433. if(item.orderType==2){
  434. uni.navigateTo({
  435. url: `/pages_shopping/live/storeOrderDelivery?orderId=${item.orderId}`
  436. })
  437. }else{
  438. uni.navigateTo({
  439. url: './storeOrderDelivery?orderId='+item.id
  440. })
  441. }
  442. },
  443. // 删除订单
  444. deleteOrder(item) {
  445. var that = this;
  446. uni.showModal({
  447. title: '提示',
  448. content: '确定删除订单吗?删除后无法恢复',
  449. success: function (res) {
  450. if (res.confirm) {
  451. var data = {
  452. orderId: item.orderType == 2 ? item.orderId : item.id,
  453. orderType: item.orderType
  454. };
  455. deleteOrderApi(data).then(res => {
  456. if(res.code == 200){
  457. uni.showToast({
  458. icon:'success',
  459. title: "删除成功",
  460. });
  461. that.mescroll.resetUpScroll()
  462. }else{
  463. uni.showToast({
  464. icon:'none',
  465. title: res.msg,
  466. });
  467. }
  468. });
  469. }
  470. }
  471. });
  472. }
  473. }
  474. }
  475. </script>
  476. <style lang="scss">
  477. .top-fixed{
  478. width: 100%;
  479. position: fixed;
  480. top: 0;
  481. left: 0;
  482. z-index: 10;
  483. }
  484. .pub-tab-box{
  485. box-sizing: border-box;
  486. width: 100%;
  487. padding: 0 40upx;
  488. background-color: #FFFFFF;
  489. .tab-inner{
  490. height: 88upx;
  491. line-height: 88upx;
  492. display: flex;
  493. align-items: center;
  494. justify-content: space-between;
  495. overflow-x: auto;
  496. }
  497. .item{
  498. font-size: 28upx;
  499. white-space: nowrap;
  500. line-height: 1;
  501. font-family: PingFang SC;
  502. font-weight: 500;
  503. color: #666666;
  504. margin-right: 60upx;
  505. display: flex;
  506. align-items: center;
  507. justify-content: center;
  508. &:last-child{
  509. margin-right: 0;
  510. }
  511. &.active{
  512. font-weight: bold;
  513. color: #333333;
  514. }
  515. .text{
  516. position: relative;
  517. z-index: 1;
  518. }
  519. .tab-bg{
  520. width: 72upx;
  521. height: 28upx;
  522. position: absolute;
  523. top: 17upx;
  524. left: 50%;
  525. transform: translateX(-36upx);
  526. z-index: -1;
  527. }
  528. }
  529. }
  530. .top-seat{
  531. width: 100%;
  532. height: 192upx;
  533. }
  534. .search-cont{
  535. padding: 16upx 30upx;
  536. background-color: #FFFFFF;
  537. .inner{
  538. box-sizing: border-box;
  539. width: 100%;
  540. height: 72upx;
  541. background: #F7F7F7;
  542. border-radius: 36upx;
  543. display: flex;
  544. align-items: center;
  545. padding: 0 30upx;
  546. .icon-search{
  547. width: 28upx;
  548. height: 28upx;
  549. margin-right: 20upx;
  550. }
  551. input{
  552. height: 60upx;
  553. line-height: 60upx;
  554. flex: 1;
  555. }
  556. }
  557. }
  558. .order-list{
  559. padding: 20upx;
  560. .item{
  561. background: #FFFFFF;
  562. border-radius: 16upx;
  563. padding: 0 30upx;
  564. margin-bottom: 20upx;
  565. .ordersn-box{
  566. display: flex;
  567. align-items: center;
  568. justify-content: space-between;
  569. padding: 34upx 0 20upx;
  570. .num{
  571. font-size: 26upx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #999999;
  575. line-height: 1;
  576. }
  577. .status-box{
  578. display: flex;
  579. align-items: center;
  580. .recom-box{
  581. width: 108upx;
  582. height: 30upx;
  583. line-height: 30upx;
  584. text-align: left;
  585. padding-left: 8upx;
  586. font-size: 22upx;
  587. font-family: PingFang SC;
  588. font-weight: 500;
  589. color: #FFFFFF;
  590. background-image: url(https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/recom.png);
  591. background-repeat: no-repeat;
  592. background-size: 100% 100%;
  593. margin-right: 8upx;
  594. }
  595. .text{
  596. font-size: 28upx;
  597. font-family: PingFang SC;
  598. font-weight: 500;
  599. line-height: 1;
  600. &.success{
  601. color: #2BC7B9;
  602. }
  603. &.black{
  604. color: #111111;
  605. }
  606. &.info{
  607. color: #999999;
  608. }
  609. }
  610. }
  611. }
  612. .drug-list{
  613. .drug-item{
  614. padding: 30upx 0;
  615. border-bottom: 1px soli #F0F0F0;
  616. display: flex;
  617. align-items: center;
  618. .img-box{
  619. width: 160upx;
  620. height: 160upx;
  621. margin-right: 30upx;
  622. flex-shrink: 0;
  623. image{
  624. width: 100%;
  625. height: 100%;
  626. }
  627. }
  628. .drug-info{
  629. width: calc(100% - 190upx);
  630. height: 160upx;
  631. display: flex;
  632. flex-direction: column;
  633. justify-content: space-between;
  634. .name-box{
  635. font-size: 28upx;
  636. font-family: PingFang SC;
  637. font-weight: 500;
  638. color: #111111;
  639. line-height: 40upx;
  640. .tag{
  641. display: inline-block;
  642. padding: 0 6upx;
  643. height: 30upx;
  644. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  645. border-radius: 4upx;
  646. margin-right: 10upx;
  647. font-size: 22upx;
  648. font-family: PingFang SC;
  649. font-weight: bold;
  650. color: #FFFFFF;
  651. line-height: 30upx;
  652. float: left;
  653. margin-top: 7upx;
  654. }
  655. }
  656. .spec{
  657. font-size: 24upx;
  658. font-family: PingFang SC;
  659. font-weight: 500;
  660. color: #999999;
  661. line-height: 1;
  662. margin-top: 10upx;
  663. }
  664. .num-box{
  665. display: flex;
  666. align-items: center;
  667. justify-content: space-between;
  668. .price{
  669. display: flex;
  670. align-items: flex-end;
  671. .unit{
  672. font-size: 24upx;
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. color: #111111;
  676. line-height: 1.2;
  677. margin-right: 4upx;
  678. }
  679. .num{
  680. font-size: 32upx;
  681. font-family: PingFang SC;
  682. font-weight: 500;
  683. color: #111111;
  684. line-height: 1;
  685. }
  686. }
  687. .amount{
  688. font-size: 24upx;
  689. font-family: PingFang SC;
  690. font-weight: 500;
  691. color: #999999;
  692. line-height: 1;
  693. }
  694. }
  695. }
  696. }
  697. .bottom-box{
  698. height: 110upx;
  699. display: flex;
  700. align-items: center;
  701. justify-content: space-between;
  702. .amount-paid{
  703. display: flex;
  704. align-items: center;
  705. .label{
  706. font-size: 24upx;
  707. font-family: PingFang SC;
  708. font-weight: 500;
  709. color: #999999;
  710. line-height: 1;
  711. }
  712. .price-box{
  713. display: flex;
  714. align-items: flex-end;
  715. .unit{
  716. font-size: 24upx;
  717. font-family: PingFang SC;
  718. font-weight: 500;
  719. color: #FF6633;
  720. line-height: 1.2;
  721. margin-right: 4upx;
  722. }
  723. .num{
  724. font-size: 32upx;
  725. font-family: PingFang SC;
  726. font-weight: bold;
  727. color: #FF6633;
  728. line-height: 1;
  729. }
  730. }
  731. }
  732. .btn-box{
  733. box-sizing: border-box;
  734. display: flex;
  735. align-items: center;
  736. .btn{
  737. width: 155upx;
  738. height: 64upx;
  739. line-height: 64upx;
  740. font-size: 26upx;
  741. font-family: PingFang SC;
  742. font-weight: 500;
  743. text-align: center;
  744. border-radius: 32upx;
  745. margin-left: 15upx;
  746. &:first-child{
  747. margin-left: 0;
  748. }
  749. &.cancel{
  750. border: 1px solid #DDDDDD;
  751. color: #666666;
  752. }
  753. &.pay{
  754. background: #2BC7B9;
  755. color: #FFFFFF;
  756. }
  757. }
  758. }
  759. }
  760. }
  761. }
  762. }
  763. </style>