storeOrder.vue 21 KB

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