detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. <!-- 订单详情 -->
  2. <template>
  3. <s-layout title="订单详情" class="index-wrap" navbar="inner">
  4. <!-- 订单状态 -->
  5. <view class="state-box ss-flex-col ss-col-center ss-row-right" :style="[
  6. {
  7. marginTop: '-' + Number(statusBarHeight + 88) + 'rpx',
  8. paddingTop: Number(statusBarHeight + 88) + 'rpx',
  9. },
  10. ]">
  11. <view class="ss-flex ss-m-t-32 ss-m-b-20">
  12. <image v-if="
  13. state.orderInfo.status_code == 'unpaid' ||
  14. state.orderInfo.status_code == 'nosend' ||
  15. state.orderInfo.status_code == 'nocomment'
  16. " class="state-img" :src="sheep.$url.static('/static/img/shop/order/order_loading.png')">
  17. </image>
  18. <image v-if="
  19. state.orderInfo.status_code == 'completed' ||
  20. state.orderInfo.status_code == 'refund_agree'
  21. " class="state-img" :src="sheep.$url.static('/static/img/shop/order/order_success.png')">
  22. </image>
  23. <image v-if="state.orderInfo.status_code == 'cancel' || state.orderInfo.status_code == 'closed'"
  24. class="state-img" :src="sheep.$url.static('/static/img/shop/order/order_close.png')">
  25. </image>
  26. <image v-if="state.orderInfo.status_code == 'noget'" class="state-img"
  27. :src="sheep.$url.static('/static/img/shop/order/order_express.png')">
  28. </image>
  29. <view class="ss-font-30">{{ state.orderInfo.status_text }}</view>
  30. </view>
  31. <view class="ss-font-26 ss-m-x-20 ss-m-b-70">{{ state.orderInfo.status_desc }}</view>
  32. </view>
  33. <!-- 收货地址 -->
  34. <view class="order-address-box" v-if="state.orderInfo.address">
  35. <view class="ss-flex ss-col-center">
  36. <text class="address-username">
  37. {{ state.orderInfo.address.consignee }}
  38. </text>
  39. <text class="address-phone">{{ state.orderInfo.address.mobile }}</text>
  40. </view>
  41. <view class="address-detail">{{ addressText }}</view>
  42. </view>
  43. <view class="detail-goods" :style="[{ marginTop: state.orderInfo.address ? '0' : '-40rpx' }]">
  44. <!-- 订单信息 -->
  45. <view class="order-list" v-for="item in state.orderInfo.items" :key="item.goods_id">
  46. <view class="order-card">
  47. <s-goods-item @tap="onGoodsDetail(item.goods_id)" :img="item.goods_image" :title="item.goods_title"
  48. :skuText="item.goods_sku_text" :price="item.goods_price" :score="state.orderInfo.score_amount"
  49. :num="item.goods_num">
  50. <!-- <template #top>
  51. <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white">
  52. <view class="item-title">配送方式</view>
  53. <view class="ss-flex ss-col-center">
  54. <text class="item-value ss-m-r-20">{{ item.dispatch_type_text }}</text>
  55. <button class="ss-reset-button copy-btn" @tap="onDetail(item)" v-if="
  56. (item.dispatch_type === 'autosend' || item.dispatch_type === 'custom') &&
  57. item.dispatch_status !== 0
  58. ">详情</button>
  59. </view>
  60. </view>
  61. </template>
  62. <template #tool>
  63. <view class="ss-flex">
  64. <button class="ss-reset-button apply-btn" v-if="item.btns.includes('aftersale')"
  65. @tap.stop="
  66. sheep.$router.go('/pages/order/aftersale/apply', {
  67. item: JSON.stringify(item),
  68. })
  69. ">
  70. 申请售后
  71. </button>
  72. <button class="ss-reset-button apply-btn" v-if="item.btns.includes('re_aftersale')"
  73. @tap.stop="
  74. sheep.$router.go('/pages/order/aftersale/apply', {
  75. item: JSON.stringify(item),
  76. })
  77. ">
  78. 重新售后
  79. </button>
  80. <button class="ss-reset-button apply-btn" v-if="item.btns.includes('aftersale_info')"
  81. @tap.stop="
  82. sheep.$router.go('/pages/order/aftersale/detail', {
  83. id: item.ext.aftersale_id,
  84. })
  85. ">
  86. 售后详情
  87. </button>
  88. <button class="ss-reset-button apply-btn" v-if="item.btns.includes('buy_again')"
  89. @tap.stop="
  90. sheep.$router.go('/pages/goods/index', {
  91. id: item.goods_id,
  92. })
  93. ">
  94. 再次购买
  95. </button>
  96. </view>
  97. </template>
  98. <template #priceSuffix>
  99. <button class="ss-reset-button tag-btn" v-if="item.status_text">
  100. {{ item.status_text }}
  101. </button>
  102. </template> -->
  103. </s-goods-item>
  104. </view>
  105. </view>
  106. </view>
  107. <!-- 订单信息 -->
  108. <view class="notice-box">
  109. <view class="notice-box__content">
  110. <view class="notice-item--center">
  111. <view class="ss-flex ss-flex-1">
  112. <text class="title">订单编号:</text>
  113. <text class="detail">{{ state.orderInfo.order_sn }}</text>
  114. </view>
  115. <button class="ss-reset-button copy-btn" @tap="onCopy">复制</button>
  116. </view>
  117. <view class="notice-item">
  118. <text class="title">下单时间:</text>
  119. <text class="detail">{{ state.orderInfo.create_time }}</text>
  120. </view>
  121. <view class="notice-item" v-if="state.orderInfo.paid_time">
  122. <text class="title">支付时间:</text>
  123. <text class="detail">{{ state.orderInfo.paid_time || '-' }}</text>
  124. </view>
  125. <view class="notice-item">
  126. <text class="title">支付方式:</text>
  127. <text class="detail">{{ state.orderInfo.pay_types_text?.join(',') || '-' }}</text>
  128. </view>
  129. </view>
  130. </view>
  131. <!-- 价格信息 -->
  132. <view class="order-price-box">
  133. <view class="notice-item ss-flex ss-row-between">
  134. <text class="title">商品总额</text>
  135. <view class="ss-flex">
  136. <text class="detail"
  137. v-if="Number(state.orderInfo.goods_amount) > 0">¥{{ state.orderInfo.goods_amount }}</text>
  138. <view v-if="state.orderInfo.score_amount && Number(state.orderInfo.goods_amount) > 0"
  139. class="detail">+</view>
  140. <view class="price-text ss-flex ss-col-center" v-if="state.orderInfo.score_amount">
  141. <image :src="sheep.$url.static('/static/img/shop/goods/score1.svg')" class="score-img"></image>
  142. <view class="detail">{{ state.orderInfo.score_amount }}</view>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="notice-item ss-flex ss-row-between">
  147. <text class="title">运费</text>
  148. <text class="detail">¥{{ state.orderInfo.dispatch_amount }}</text>
  149. </view>
  150. <view class="notice-item ss-flex ss-row-between" v-if="state.orderInfo.total_discount_fee > 0">
  151. <text class="title">优惠金额</text>
  152. <text class="detail">¥{{ state.orderInfo.total_discount_fee }}</text>
  153. </view>
  154. <view class="notice-item all-rpice-item ss-flex ss-m-t-20">
  155. <text class="title">{{
  156. ['paid', 'completed'].includes(state.orderInfo.status) ? '已付款' : '需付款'
  157. }}</text>
  158. <text class="detail all-price"
  159. v-if="Number(state.orderInfo.pay_fee) > 0">¥{{ state.orderInfo.pay_fee }}</text>
  160. <view v-if="
  161. state.orderInfo.score_amount &&
  162. Number(state.orderInfo.pay_fee) > 0 &&
  163. ['paid', 'completed'].includes(state.orderInfo.status)
  164. " class="detail all-price">+</view>
  165. <view class="price-text ss-flex ss-col-center" v-if="
  166. state.orderInfo.score_amount && ['paid', 'completed'].includes(state.orderInfo.status)
  167. ">
  168. <image :src="sheep.$url.static('/static/img/shop/goods/score1.svg')" class="score-img"></image>
  169. <view class="detail all-price">{{ state.orderInfo.score_amount }}</view>
  170. </view>
  171. </view>
  172. <view class="notice-item all-rpice-item ss-flex ss-m-t-20" v-if="refundFee > 0">
  173. <text class="title">已退款</text>
  174. <text class="detail all-price">¥{{ refundFee.toFixed(2) }}</text>
  175. </view>
  176. </view>
  177. <!-- 底部按钮 -->
  178. <!-- TODO: 查看物流、等待成团、评价完后返回页面没刷新页面 -->
  179. <su-fixed bottom placeholder bg="bg-white" v-if="state.orderInfo.btns?.length">
  180. <view class="footer-box ss-flex ss-col-center ss-row-right">
  181. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('cancel')"
  182. @tap="onCancel(state.orderInfo.id)">取消订单</button>
  183. <button class="ss-reset-button pay-btn ui-BG-Main-Gradient" v-if="state.orderInfo.btns?.includes('pay')"
  184. @tap="onPay(state.orderInfo.order_sn)">继续支付</button>
  185. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('apply_refund')"
  186. @tap="onRefund(state.orderInfo.id)">申请退款</button>
  187. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('groupon')" @tap="
  188. sheep.$router.go('/pages/activity/groupon/detail', {
  189. id: state.orderInfo.ext.groupon_id,
  190. })
  191. ">
  192. {{ state.orderInfo.status_code === 'groupon_ing' ? '邀请拼团' : '拼团详情' }}
  193. </button>
  194. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('express')"
  195. @tap="onExpress(state.orderInfo.id)">查看物流</button>
  196. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('confirm')"
  197. @tap="onConfirm(state.orderInfo.id)">确认收货</button>
  198. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.btns?.includes('comment')"
  199. @tap="onComment(state.orderInfo.id,state.orderInfo)">评价晒单</button>
  200. <button v-if="state.orderInfo.btns?.includes('invoice')" class="ss-reset-button cancel-btn"
  201. @tap.stop="onOrderInvoice(state.orderInfo.invoice?.id)">
  202. 查看发票
  203. </button>
  204. <button v-if="state.orderInfo.btns?.includes('re_apply_refund')" class="ss-reset-button cancel-btn"
  205. @tap.stop="onRefund(state.orderInfo.id)">
  206. 重新退款
  207. </button>
  208. </view>
  209. </su-fixed>
  210. </s-layout>
  211. </template>
  212. <script setup>
  213. import sheep from '@/sheep';
  214. import {
  215. onLoad
  216. } from '@dcloudio/uni-app';
  217. import {
  218. computed,
  219. reactive
  220. } from 'vue';
  221. import {
  222. isEmpty
  223. } from 'lodash';
  224. const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
  225. const headerBg = sheep.$url.css('/static/img/shop/order/order_bg.png');
  226. const tradeManaged = computed(() => sheep.$store('app').has_wechat_trade_managed);
  227. const state = reactive({
  228. orderInfo: {},
  229. merchantTradeNo: '', // 商户订单号
  230. comeinType: '', // 进入订单详情的来源类型
  231. });
  232. const addressText = computed(() => {
  233. let data = state.orderInfo.address;
  234. if (data) {
  235. return `${data.province_name} ${data.city_name} ${data.district_name} ${data.address}`;
  236. }
  237. return '';
  238. });
  239. // 复制
  240. const onCopy = () => {
  241. sheep.$helper.copyText(state.orderInfo.order_sn);
  242. };
  243. //退款总额
  244. const refundFee = computed(() => {
  245. let refundFee = 0;
  246. state.orderInfo.items?.forEach((i) => {
  247. refundFee += Number(i.refund_fee);
  248. });
  249. return refundFee;
  250. });
  251. // 去支付
  252. function onPay(orderSN) {
  253. sheep.$router.go('/pages/pay/index', {
  254. orderSN,
  255. });
  256. }
  257. function onGoodsDetail(id) {
  258. sheep.$router.go('/pages/goods/index', {
  259. id
  260. });
  261. }
  262. // 取消订单
  263. async function onCancel(orderId) {
  264. uni.showModal({
  265. title: '提示',
  266. content: '确定要取消订单吗?',
  267. success: async function(res) {
  268. if (res.confirm) {
  269. const {
  270. error,
  271. data
  272. } = await sheep.$api.order.cancel(orderId);
  273. if (error === 0) {
  274. getOrderDetail(data.order_sn);
  275. }
  276. }
  277. },
  278. });
  279. }
  280. // 申请退款
  281. async function onRefund(orderId) {
  282. uni.showModal({
  283. title: '提示',
  284. content: '确定要申请退款吗?',
  285. success: async function(res) {
  286. if (res.confirm) {
  287. const {
  288. error,
  289. data
  290. } = await sheep.$api.order.applyRefund(orderId);
  291. if (error === 0) {
  292. getOrderDetail(data.order_sn);
  293. }
  294. }
  295. },
  296. });
  297. }
  298. // 查看物流
  299. async function onExpress(orderId) {
  300. sheep.$router.go('/pages/order/express/list', {
  301. orderId,
  302. });
  303. }
  304. //确认收货
  305. async function onConfirm(orderId, ignore = false) {
  306. // 需开启确认收货组件
  307. // todo:
  308. // 1.怎么检测是否开启了发货组件功能?如果没有开启的话就不能在这里return出去
  309. // 2.如果开启了走mpConfirm方法,需要在App.vue的show方法中拿到确认收货结果
  310. let isOpenBusinessView = true;
  311. if (
  312. sheep.$platform.name === 'WechatMiniProgram' &&
  313. !isEmpty(state.orderInfo.wechat_extra_data) &&
  314. isOpenBusinessView &&
  315. !ignore
  316. ) {
  317. mpConfirm(orderId);
  318. return;
  319. }
  320. // 正常的确认收货流程
  321. const {
  322. error,
  323. data
  324. } = await sheep.$api.order.confirm(orderId);
  325. if (error === 0) {
  326. getOrderDetail(data.order_sn);
  327. }
  328. }
  329. // #ifdef MP-WEIXIN
  330. // 小程序确认收货组件
  331. function mpConfirm(orderId) {
  332. if (!wx.openBusinessView) {
  333. sheep.$helper.toast(`请升级微信版本`);
  334. return;
  335. }
  336. wx.openBusinessView({
  337. businessType: 'weappOrderConfirm',
  338. extraData: {
  339. merchant_trade_no: state.orderInfo.wechat_extra_data.merchant_trade_no,
  340. transaction_id: state.orderInfo.wechat_extra_data.transaction_id,
  341. },
  342. success(response) {
  343. console.log('success:', response);
  344. if (response.errMsg === 'openBusinessView:ok') {
  345. if (response.extraData.status === 'success') {
  346. onConfirm(orderId, true);
  347. }
  348. }
  349. },
  350. fail(error) {
  351. console.log('error:', error);
  352. },
  353. complete(result) {
  354. console.log('result:', result);
  355. },
  356. });
  357. }
  358. // #endif
  359. // 查看发票
  360. function onOrderInvoice(invoiceId) {
  361. sheep.$router.go('/pages/order/invoice', {
  362. invoiceId,
  363. });
  364. }
  365. // 配送方式详情
  366. function onDetail(item) {
  367. sheep.$router.go('/pages/order/dispatch/content', {
  368. id: item.order_id,
  369. item_id: item.id,
  370. });
  371. }
  372. // 评价
  373. function onComment(orderSN, orderId) {
  374. console.log(orderId);
  375. // return;
  376. uni.$once('SELECT_INVOICE', (e) => {
  377. state.invoiceInfo = e.invoiceInfo;
  378. });
  379. sheep.$router.go('/pages/goods/comment/add', {
  380. orderSN,
  381. orderId
  382. });
  383. }
  384. async function getOrderDetail(id) {
  385. // 对详情数据进行适配
  386. let res = {};
  387. if (state.comeinType === 'wechat') {
  388. res = await sheep.$api.order.detail(id, {
  389. merchant_trade_no: state.merchantTradeNo,
  390. });
  391. } else {
  392. res = await sheep.$api.order.detail(id);
  393. }
  394. console.log(res, '我的订单详情数据');
  395. if (res.code === 0) {
  396. let obj = {
  397. 10: ['待发货', '等待买家付款', ["apply_refund"]],
  398. 30: ['待评价', '等待买家评价', ["express", "comment"]]
  399. }
  400. res.data.status_text = obj[res.data.status][0];
  401. res.data.status_desc = obj[res.data.status][1];
  402. res.data.btns = obj[res.data.status][2];
  403. res.data.address = {
  404. province_name: res.data.receiverAreaName.split(' ')[0],
  405. district_name: res.data.receiverAreaName.split(' ')[2],
  406. city_name: res.data.receiverAreaName.split(' ')[1],
  407. address: res.data.receiverDetailAddress,
  408. consignee: res.data.receiverName,
  409. mobile: res.data.receiverMobile,
  410. }
  411. res.data.pay_fee = res.data.payPrice / 100
  412. res.data.create_time = sheep.$helper.timeFormat(res.data.createTime, 'yyyy-mm-dd hh:MM:ss')
  413. res.data.order_sn = res.data.no
  414. res.data.goods_amount = res.data.totalPrice / 100
  415. res.data.dispatch_amount = res.data.deliveryPrice / 100
  416. res.data.pay_types_text = res.data.payChannelName.split(',')
  417. res.data.items = res.data.items.map(ite => {
  418. return {
  419. ...ite,
  420. goods_title: ite.spuName,
  421. goods_num: ite.count,
  422. goods_price: ite.price / 100,
  423. goods_image: ite.picUrl,
  424. goods_sku_text: ite.properties.reduce((it0, it1) => it0 + it1.valueName + ' ', '')
  425. }
  426. })
  427. state.orderInfo = res.data;
  428. console.log(state.orderInfo, '修改后数据')
  429. } else {
  430. sheep.$router.back();
  431. }
  432. }
  433. onLoad(async (options) => {
  434. let id = 0;
  435. if (options.orderSN) {
  436. id = options.orderSN;
  437. }
  438. if (options.id) {
  439. id = options.id;
  440. }
  441. state.comeinType = options.comein_type;
  442. if (state.comeinType === 'wechat') {
  443. state.merchantTradeNo = options.merchant_trade_no;
  444. }
  445. getOrderDetail(id);
  446. });
  447. </script>
  448. <style lang="scss" scoped>
  449. .score-img {
  450. width: 36rpx;
  451. height: 36rpx;
  452. margin: 0 4rpx;
  453. }
  454. .apply-btn {
  455. width: 140rpx;
  456. height: 50rpx;
  457. border-radius: 25rpx;
  458. font-size: 24rpx;
  459. border: 2rpx solid #dcdcdc;
  460. line-height: normal;
  461. margin-left: 16rpx;
  462. }
  463. .state-box {
  464. color: rgba(#fff, 0.9);
  465. width: 100%;
  466. background: v-bind(headerBg) no-repeat,
  467. linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  468. background-size: 750rpx 100%;
  469. box-sizing: border-box;
  470. .state-img {
  471. width: 60rpx;
  472. height: 60rpx;
  473. margin-right: 20rpx;
  474. }
  475. }
  476. .order-address-box {
  477. background-color: #fff;
  478. border-radius: 10rpx;
  479. margin: -50rpx 20rpx 16rpx 20rpx;
  480. padding: 44rpx 34rpx 42rpx 20rpx;
  481. font-size: 30rpx;
  482. box-sizing: border-box;
  483. font-weight: 500;
  484. color: rgba(51, 51, 51, 1);
  485. .address-username {
  486. margin-right: 20rpx;
  487. }
  488. .address-detail {
  489. font-size: 26rpx;
  490. font-weight: 500;
  491. color: rgba(153, 153, 153, 1);
  492. margin-top: 20rpx;
  493. }
  494. }
  495. .detail-goods {
  496. border-radius: 10rpx;
  497. margin: 0 20rpx 20rpx 20rpx;
  498. .order-list {
  499. margin-bottom: 20rpx;
  500. background-color: #fff;
  501. .order-card {
  502. padding: 20rpx 0;
  503. .order-sku {
  504. font-size: 24rpx;
  505. font-weight: 400;
  506. color: rgba(153, 153, 153, 1);
  507. width: 450rpx;
  508. margin-bottom: 20rpx;
  509. .order-num {
  510. margin-right: 10rpx;
  511. }
  512. }
  513. .tag-btn {
  514. margin-left: 16rpx;
  515. font-size: 24rpx;
  516. height: 36rpx;
  517. color: var(--ui-BG-Main);
  518. border: 2rpx solid var(--ui-BG-Main);
  519. border-radius: 14rpx;
  520. padding: 0 4rpx;
  521. }
  522. }
  523. }
  524. }
  525. // 订单信息。
  526. .notice-box {
  527. background: #fff;
  528. border-radius: 10rpx;
  529. margin: 0 20rpx 20rpx 20rpx;
  530. .notice-box__head {
  531. font-size: 30rpx;
  532. font-weight: 500;
  533. color: rgba(51, 51, 51, 1);
  534. line-height: 80rpx;
  535. border-bottom: 1rpx solid #dfdfdf;
  536. padding: 0 25rpx;
  537. }
  538. .notice-box__content {
  539. padding: 20rpx;
  540. .self-pickup-box {
  541. width: 100%;
  542. .self-pickup--img {
  543. width: 200rpx;
  544. height: 200rpx;
  545. margin: 40rpx 0;
  546. }
  547. }
  548. }
  549. .notice-item,
  550. .notice-item--center {
  551. display: flex;
  552. align-items: center;
  553. line-height: normal;
  554. margin-bottom: 24rpx;
  555. .title {
  556. font-size: 28rpx;
  557. color: #999;
  558. }
  559. .detail {
  560. font-size: 28rpx;
  561. color: #333;
  562. flex: 1;
  563. }
  564. }
  565. }
  566. .copy-btn {
  567. width: 100rpx;
  568. line-height: 50rpx;
  569. border-radius: 25rpx;
  570. padding: 0;
  571. background: rgba(238, 238, 238, 1);
  572. font-size: 22rpx;
  573. font-weight: 400;
  574. color: rgba(51, 51, 51, 1);
  575. }
  576. // 订单价格信息
  577. .order-price-box {
  578. background-color: #fff;
  579. border-radius: 10rpx;
  580. padding: 20rpx;
  581. margin: 0 20rpx 20rpx 20rpx;
  582. .notice-item {
  583. line-height: 70rpx;
  584. .title {
  585. font-size: 28rpx;
  586. color: #999;
  587. }
  588. .detail {
  589. font-size: 28rpx;
  590. color: #333;
  591. font-family: OPPOSANS;
  592. }
  593. }
  594. .all-rpice-item {
  595. justify-content: flex-end;
  596. align-items: center;
  597. .title {
  598. font-size: 26rpx;
  599. font-weight: 500;
  600. color: #333333;
  601. line-height: normal;
  602. }
  603. .all-price {
  604. font-size: 26rpx;
  605. font-family: OPPOSANS;
  606. line-height: normal;
  607. color: $red;
  608. }
  609. }
  610. }
  611. // 底部
  612. .footer-box {
  613. height: 100rpx;
  614. width: 100%;
  615. box-sizing: border-box;
  616. border-radius: 10rpx;
  617. padding-right: 20rpx;
  618. .cancel-btn {
  619. width: 160rpx;
  620. height: 60rpx;
  621. background: #eeeeee;
  622. border-radius: 30rpx;
  623. margin-right: 20rpx;
  624. font-size: 26rpx;
  625. font-weight: 400;
  626. color: #333333;
  627. }
  628. .pay-btn {
  629. width: 160rpx;
  630. height: 60rpx;
  631. font-size: 26rpx;
  632. border-radius: 30rpx;
  633. font-weight: 500;
  634. color: #fff;
  635. }
  636. }
  637. </style>