detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. <!-- 订单详情 -->
  2. <template>
  3. <s-layout :title="t('order.order_details')" class="index-wrap" navbar="inner">
  4. <!-- 订单状态 TODO -->
  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 === 10 || // 待发货
  15. state.orderInfo.status_code == 'nocomment'
  16. " class="state-img" :src="sheep.$url.static('/static/images/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/images/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/images/order_close.png')">
  25. </image>
  26. <image v-if="state.orderInfo.status_code == 'noget'" class="state-img"
  27. :src="sheep.$url.static('/static/images/order_express.png')">
  28. </image>
  29. <view class="ss-font-30">{{ formatOrderStatus(state.orderInfo) }}</view>
  30. </view>
  31. <view class="ss-font-26 ss-m-x-20 ss-m-b-70">{{ formatOrderStatusDescription(state.orderInfo) }}</view>
  32. </view>
  33. <!-- 收货地址 -->
  34. <view class="order-address-box" v-if="state.orderInfo.receiverAreaId > 0">
  35. <view class="ss-flex ss-col-center">
  36. <text class="address-username">
  37. {{ state.orderInfo.receiverName }}
  38. </text>
  39. <text class="address-phone">{{ state.orderInfo.receiverMobile }}</text>
  40. </view>
  41. <view class="address-detail">
  42. {{ state.orderInfo.receiverAreaName }} {{ state.orderInfo.receiverDetailAddress }}
  43. </view>
  44. </view>
  45. <view class="detail-goods" :style="[{ marginTop: state.orderInfo.receiverAreaId > 0 ? '0' : '-40rpx' }]">
  46. <!-- 订单信息 TODO 非繁人: -->
  47. <view class="order-list" v-for="item in state.orderInfo.items" :key="item.goods_id">
  48. <view class="order-card">
  49. <s-goods-item @tap="onGoodsDetail(item.spuId)" :img="item.picUrl" :title="item.spuName"
  50. :skuText="item.properties.map((property) => property.valueName).join(' ')"
  51. :price="item.spuPayType === 2 ? item.highPrecisionPrice : item.price" :num="item.count"
  52. :areaId="state.integralType">
  53. <!-- <template #tool>
  54. <view class="ss-flex">
  55. <button class="ss-reset-button apply-btn"
  56. v-if="[30].includes(state.orderInfo.status) && item.afterSaleStatus === 0"
  57. @tap.stop="
  58. sheep.$router.go('/pages/order/aftersale/apply', {
  59. orderId: state.orderInfo.id,
  60. itemId: item.id,
  61. integralType:state.integralType
  62. })
  63. ">
  64. {{ t('order.apply_for_service') }}
  65. </button>
  66. <button class="ss-reset-button apply-btn" v-if="item.afterSaleStatus === 10" @tap.stop="
  67. sheep.$router.go('/pages/order/aftersale/detail', {
  68. id: item.afterSaleId,
  69. })
  70. ">
  71. {{ t('order.refund_in_progress') }}
  72. </button>
  73. <button class="ss-reset-button apply-btn" v-if="item.afterSaleStatus === 20" @tap.stop="
  74. sheep.$router.go('/pages/order/aftersale/detail', {
  75. id: item.afterSaleId,
  76. })
  77. ">
  78. {{ t('order.refund_successful') }}
  79. </button>
  80. </view>
  81. </template>
  82. <template #priceSuffix>
  83. <button class="ss-reset-button tag-btn" v-if="item.status_text">
  84. {{ item.status_text }}
  85. </button>
  86. </template> -->
  87. </s-goods-item>
  88. </view>
  89. </view>
  90. </view>
  91. <!-- 订单信息 -->
  92. <view class="notice-box">
  93. <view class="notice-box__content">
  94. <view class="notice-item--center">
  95. <view class="ss-flex ss-flex-1">
  96. <text class="title"> {{ t('order.order_number') }}:</text>
  97. <text class="detail">{{ state.orderInfo.no }}</text>
  98. </view>
  99. <button class="ss-reset-button copy-btn" @tap="onCopy">{{ t('order.copy') }}</button>
  100. </view>
  101. <view class="notice-item">
  102. <text class="title">{{ t('order.customer_message') }}:</text>
  103. <text class="detail">
  104. {{ state.orderInfo.userRemark || t('common.none') }}
  105. </text>
  106. </view>
  107. <view class="notice-item">
  108. <text class="title">{{ t('order.order_time') }}:</text>
  109. <text class="detail">
  110. {{ sheep.$helper.timeFormat(state.orderInfo.createTime, 'yyyy-mm-dd hh:MM:ss') }}
  111. </text>
  112. </view>
  113. <view class="notice-item" v-if="state.orderInfo.payTime">
  114. <text class="title">{{ t('order.payment_time') }}:</text>
  115. <text class="detail">
  116. {{ sheep.$helper.timeFormat(state.orderInfo.payTime, 'yyyy-mm-dd hh:MM:ss') }}
  117. </text>
  118. </view>
  119. <!-- <view class="notice-item">
  120. <text class="title">{{ t('order.payment_method') }}:</text>
  121. <text class="detail">{{ state.orderInfo.payChannelName || '-' }}</text>
  122. </view> -->
  123. </view>
  124. </view>
  125. <!-- 价格信息 -->
  126. <view class="order-price-box">
  127. <view class="notice-item ss-flex ss-row-between">
  128. <text class="title">{{ t('order.total_amount') }}</text>
  129. <view class="ss-flex">
  130. <view class="points-red" v-if="state.integralType == 1"></view>
  131. <view class="points-green" v-if="state.integralType == 3"></view>
  132. <text class="detail">
  133. {{ fen2yuan(state.orderInfo.totalPrice) }}
  134. </text>
  135. </view>
  136. </view>
  137. <view class="notice-item ss-flex ss-row-between">
  138. <text class="title">{{ t('order.shipping_fee') }}</text>
  139. <text class="detail">{{ fen2yuan(state.orderInfo.deliveryPrice) }}</text>
  140. </view>
  141. <!-- <view class="notice-item ss-flex ss-row-between" v-if="state.orderInfo.payIntegral > 0">
  142. <text class="title">{{ t('order.use_commission') }}</text>
  143. <text class="detail">{{ points2point(state.orderInfo.payIntegral) }}</text>
  144. </view>
  145. <view class="notice-item ss-flex ss-row-between" v-if="state.orderInfo.payConsumptionPoints > 0">
  146. <text class="title">{{ t('order.use_points') }}</text>
  147. <text class="detail">{{ points2point(state.orderInfo.payConsumptionPoints) }}</text>
  148. </view> -->
  149. <view class="notice-item all-rpice-item ss-flex ss-m-t-20">
  150. <text class="title ss-m-r-10">{{ state.orderInfo.payStatus ? t('order.paid') : t('order.amount_due') }}</text>
  151. <view class="points-red" v-if="state.integralType == 1"></view>
  152. <view class="points-green" v-if="state.integralType == 3"></view>
  153. <text class="detail all-price">{{ fen2yuan(state.orderInfo.totalPrice) }}</text>
  154. </view>
  155. <view class="notice-item all-rpice-item ss-flex ss-m-t-20" v-if="state.orderInfo.refundPrice > 0">
  156. <text class="title">{{ t('order.refunded') }}</text>
  157. <view class="points-red" v-if="state.integralType == 1"></view>
  158. <view class="points-green" v-if="state.integralType == 3"></view>
  159. <text class="detail all-price">{{ fen2yuan(state.orderInfo.refundPrice) }}</text>
  160. </view>
  161. </view>
  162. <!-- 底部按钮 -->
  163. <!-- TODO: 查看物流、等待成团、评价完后返回页面没刷新页面 -->
  164. <su-fixed bottom placeholder bg="bg-white" v-if="state.orderInfo.buttons?.length">
  165. <view class="footer-box ss-flex ss-col-center ss-row-right">
  166. <!-- {{state.orderInfo.buttons}} -->
  167. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('cancel')"
  168. @tap="onCancel(state.orderInfo.id)">
  169. {{ t('order.cancel_order') }}
  170. </button>
  171. <button class="ss-reset-button pay-btn ui-BG-Main-Gradient"
  172. v-if="state.orderInfo.buttons?.includes('pay')" @tap="onPay(state.orderInfo.payOrderId)">
  173. {{ t('order.continue_payment') }}
  174. </button>
  175. <!-- TODO 非繁人:拼团接入 -->
  176. <!-- <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('combination')" @tap="
  177. sheep.$router.go('/pages/activity/groupon/detail', {
  178. id: state.orderInfo.ext.groupon_id,
  179. })
  180. ">
  181. 拼团详情
  182. </button> -->
  183. <!-- 商家发货&&用户不售后就能看到物流 -->
  184. <button class="ss-reset-button cancel-btn"
  185. v-if="state.orderInfo.buttons?.includes('express') && !state.orderInfo.items[0]?.refundStatus"
  186. @tap="onExpress(state.orderInfo.id)">
  187. {{ t('order.view_logistics') }}
  188. </button>
  189. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('confirm')"
  190. @tap="onConfirm(state.orderInfo.id)">
  191. {{ t('order.confirm_receipt') }}
  192. </button>
  193. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('comment')"
  194. @tap="onComment(state.orderInfo.id)">
  195. {{ t('order.review_order') }}
  196. </button>
  197. <!-- 售后用户退货 -->
  198. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('aftersaleCancel')"
  199. @tap="onApply(state.orderInfo.items[0].afterSaleId)">
  200. {{ t('order.cancel_request') }}
  201. </button>
  202. <button class="ss-reset-button cancel-btn" v-if="state.orderInfo.buttons?.includes('aftersaleDelivery')"
  203. @tap="sheep.$router.go('/pages/order/aftersale/return-delivery', { id: state.orderInfo.items[0].afterSaleId })">
  204. {{ t('order.fill_return') }}
  205. </button>
  206. </view>
  207. </su-fixed>
  208. </s-layout>
  209. </template>
  210. <script setup>
  211. import sheep from '@/sheep';
  212. import {
  213. onLoad
  214. } from '@dcloudio/uni-app';
  215. import {
  216. reactive,
  217. computed,
  218. watch
  219. } from 'vue';
  220. import {
  221. isEmpty
  222. } from 'lodash';
  223. import {
  224. fen2yuan,
  225. formatOrderStatus,
  226. formatOrderStatusDescription,
  227. handleOrderButtons,
  228. points2point
  229. } from '@/sheep/hooks/useGoods';
  230. import {
  231. showInputPayPassword,
  232. showWalletModal
  233. } from '@/sheep/hooks/useModal';
  234. import OrderApi from '@/sheep/api/trade/order';
  235. import AfterSaleApi from '@/sheep/api/trade/afterSale';
  236. import {
  237. showAuthModal
  238. } from '@/sheep/hooks/useModal';
  239. import { t } from '@/locale'
  240. const userInfo = sheep.$store('user').userInfo;
  241. const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
  242. const headerBg = sheep.$url.css('/static/images/order_bg.png');
  243. const state = reactive({
  244. orderInfo: {},
  245. merchantTradeNo: '', // 商户订单号
  246. comeinType: '', // 进入订单详情的来源类型
  247. integralType: 0
  248. });
  249. // 复制
  250. const onCopy = () => {
  251. sheep.$helper.copyText(state.orderInfo.no);
  252. };
  253. // 去支付
  254. function onPay(id) {
  255. const orderIds = [id]
  256. showInputPayPassword(async (password) => {
  257. const {
  258. data,
  259. code
  260. } = await OrderApi.payOrder({orderIds:orderIds,payPassword:password});
  261. if (code === 0) {
  262. showWalletModal()
  263. }
  264. },() => {
  265. sheep.$helper.toast("取消支付")
  266. })
  267. }
  268. // 查看商品
  269. function onGoodsDetail(id) {
  270. // console.log(id)
  271. sheep.$router.go('/pages/goods/index', {
  272. id,
  273. });
  274. }
  275. // 取消订单
  276. async function onCancel(orderId) {
  277. uni.showModal({
  278. title: t('setting.prompt'),
  279. content: t('order.confirm_cancel_order'),
  280. success: async function (res) {
  281. if (!res.confirm) {
  282. return;
  283. }
  284. const {
  285. code
  286. } = await OrderApi.cancelOrder(orderId);
  287. if (code === 0) {
  288. await getOrderDetail(orderId);
  289. }
  290. },
  291. });
  292. }
  293. // 查看物流
  294. async function onExpress(id) {
  295. sheep.$router.go('/pages/order/express/log', {
  296. id,
  297. });
  298. }
  299. // 确认收货 TODO 非繁人:待测试
  300. async function onConfirm(orderId, ignore = false) {
  301. // 需开启确认收货组件
  302. // todo: 非繁人:待接入微信
  303. // 1.怎么检测是否开启了发货组件功能?如果没有开启的话就不能在这里return出去
  304. // 2.如果开启了走mpConfirm方法,需要在App.vue的show方法中拿到确认收货结果
  305. let isOpenBusinessView = true;
  306. uni.showModal({
  307. title: t('setting.prompt'),
  308. content: t('order.confirm_receipt_question'),
  309. success: async function (res) {
  310. if (res.confirm) {
  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. code
  323. } = await OrderApi.receiveOrder(orderId);
  324. if (code === 0) {
  325. await getOrderDetail(orderId);
  326. }
  327. }
  328. },
  329. });
  330. }
  331. // #ifdef MP-WEIXIN
  332. // 小程序确认收货组件
  333. function mpConfirm(orderId) {
  334. if (!wx.openBusinessView) {
  335. sheep.$helper.toast(t('order.upgrade_wechat'));
  336. return;
  337. }
  338. wx.openBusinessView({
  339. businessType: 'weappOrderConfirm',
  340. extraData: {
  341. merchant_trade_no: state.orderInfo.wechat_extra_data.merchant_trade_no,
  342. transaction_id: state.orderInfo.wechat_extra_data.transaction_id,
  343. },
  344. success(response) {
  345. console.log('success:', response);
  346. if (response.errMsg === 'openBusinessView:ok') {
  347. if (response.extraData.status === 'success') {
  348. onConfirm(orderId, true);
  349. }
  350. }
  351. },
  352. fail(error) {
  353. console.log('error:', error);
  354. },
  355. complete(result) {
  356. console.log('result:', result);
  357. },
  358. });
  359. }
  360. // #endif
  361. // 评价
  362. function onComment(id) {
  363. sheep.$router.go('/pages/goods/comment/add', {
  364. id
  365. });
  366. }
  367. // 取消售后申请
  368. function onApply(id) {
  369. uni.showModal({
  370. title: t('setting.prompt'),
  371. content: t('order.confirm_cancel_request'),
  372. success: async function (res) {
  373. if (!res.confirm) {
  374. return;
  375. }
  376. const {
  377. code
  378. } = await AfterSaleApi.cancelAfterSale(id);
  379. if (code === 0) {
  380. await getOrderDetail(id);
  381. }
  382. },
  383. });
  384. }
  385. async function getOrderDetail(id) {
  386. // 对详情数据进行适配
  387. let res;
  388. if (state.comeinType === 'wechat') {
  389. // TODO 非繁人:微信场景下
  390. res = await OrderApi.getOrder(id, {
  391. merchant_trade_no: state.merchantTradeNo,
  392. });
  393. } else {
  394. res = await OrderApi.getOrder(id);
  395. }
  396. if (res.code === 0) {
  397. state.orderInfo = res.data;
  398. handleOrderButtons(state.orderInfo);
  399. } else {
  400. sheep.$router.back();
  401. }
  402. }
  403. const isLogin = computed(() => sheep.$store('user').isLogin);
  404. // 监听到在这个页面登陆,并刷新页面
  405. watch(
  406. () => isLogin.value,
  407. (newVal) => {
  408. if (newVal) {
  409. window.location.reload()
  410. }
  411. }, {
  412. deep: true, // 深度监听
  413. },
  414. );
  415. onLoad(async (options) => {
  416. //如果没登陆就进来则有可能是在微信消息推送进来的 提示登陆
  417. if (!isLogin.value) {
  418. showAuthModal();
  419. sheep.$helper.toast(t('order.not_logged_in', { user: options.username }), 3000);
  420. } else {
  421. // 如果
  422. if (options.username) {
  423. // 如果登陆了但不是该订单的账号,提示有问题
  424. console.log(JSON.parse(uni.getStorageSync("user-store")).userInfo.username)
  425. if (options.username != JSON.parse(uni.getStorageSync("user-store")).userInfo.username) {
  426. sheep.$helper.toast(t('order.account_switch_needed', { user1: JSON.parse(uni.getStorageSync("user-store")).userInfo.username, user2: options.username }), 3000);
  427. }
  428. }
  429. }
  430. let id = 0;
  431. if (options.id) {
  432. id = options.id;
  433. }
  434. state.integralType = options.integralType;
  435. // TODO 非繁人:下面两个变量,后续接入
  436. state.comeinType = options.comein_type;
  437. if (state.comeinType === 'wechat') {
  438. state.merchantTradeNo = options.merchant_trade_no;
  439. }
  440. await getOrderDetail(id);
  441. });
  442. </script>
  443. <style lang="scss" scoped>
  444. .score-img {
  445. width: 36rpx;
  446. height: 36rpx;
  447. margin: 0 4rpx;
  448. }
  449. .apply-btn {
  450. padding: 0 10rpx;
  451. // width: 140rpx;
  452. height: 50rpx;
  453. border-radius: 25rpx;
  454. font-size: 24rpx;
  455. border: 2rpx solid #dcdcdc;
  456. line-height: normal;
  457. margin-left: 16rpx;
  458. }
  459. .state-box {
  460. color: rgba(#fff, 0.9);
  461. width: 100%;
  462. background: v-bind(headerBg) no-repeat,
  463. linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  464. background-size: 750rpx 100%;
  465. box-sizing: border-box;
  466. .state-img {
  467. width: 60rpx;
  468. height: 60rpx;
  469. margin-right: 20rpx;
  470. }
  471. }
  472. .order-address-box {
  473. background-color: #fff;
  474. border-radius: 10rpx;
  475. margin: -50rpx 20rpx 16rpx 20rpx;
  476. padding: 44rpx 34rpx 42rpx 20rpx;
  477. font-size: 30rpx;
  478. box-sizing: border-box;
  479. font-weight: 500;
  480. color: rgba(51, 51, 51, 1);
  481. .address-username {
  482. margin-right: 20rpx;
  483. }
  484. .address-detail {
  485. font-size: 26rpx;
  486. font-weight: 500;
  487. color: rgba(153, 153, 153, 1);
  488. margin-top: 20rpx;
  489. }
  490. }
  491. .detail-goods {
  492. border-radius: 10rpx;
  493. margin: 0 20rpx 20rpx 20rpx;
  494. .order-list {
  495. margin-bottom: 20rpx;
  496. background-color: #fff;
  497. .order-card {
  498. padding: 20rpx 0;
  499. .order-sku {
  500. font-size: 24rpx;
  501. font-weight: 400;
  502. color: rgba(153, 153, 153, 1);
  503. width: 450rpx;
  504. margin-bottom: 20rpx;
  505. .order-num {
  506. margin-right: 10rpx;
  507. }
  508. }
  509. .tag-btn {
  510. margin-left: 16rpx;
  511. font-size: 24rpx;
  512. height: 36rpx;
  513. color: var(--ui-BG-Main);
  514. border: 2rpx solid var(--ui-BG-Main);
  515. border-radius: 14rpx;
  516. padding: 0 4rpx;
  517. }
  518. }
  519. }
  520. }
  521. // 订单信息。
  522. .notice-box {
  523. background: #fff;
  524. border-radius: 10rpx;
  525. margin: 0 20rpx 20rpx 20rpx;
  526. .notice-box__head {
  527. font-size: 30rpx;
  528. font-weight: 500;
  529. color: rgba(51, 51, 51, 1);
  530. line-height: 80rpx;
  531. border-bottom: 1rpx solid #dfdfdf;
  532. padding: 0 25rpx;
  533. }
  534. .notice-box__content {
  535. padding: 20rpx;
  536. .self-pickup-box {
  537. width: 100%;
  538. .self-pickup--img {
  539. width: 200rpx;
  540. height: 200rpx;
  541. margin: 40rpx 0;
  542. }
  543. }
  544. }
  545. .notice-item,
  546. .notice-item--center {
  547. display: flex;
  548. align-items: center;
  549. line-height: normal;
  550. margin-bottom: 24rpx;
  551. .title {
  552. font-size: 28rpx;
  553. color: #999;
  554. }
  555. .detail {
  556. font-size: 28rpx;
  557. color: #333;
  558. flex: 1;
  559. }
  560. }
  561. }
  562. .copy-btn {
  563. width: 100rpx;
  564. line-height: 50rpx;
  565. border-radius: 25rpx;
  566. padding: 0;
  567. background: rgba(238, 238, 238, 1);
  568. font-size: 22rpx;
  569. font-weight: 400;
  570. color: rgba(51, 51, 51, 1);
  571. }
  572. // 订单价格信息
  573. .order-price-box {
  574. background-color: #fff;
  575. border-radius: 10rpx;
  576. padding: 20rpx;
  577. margin: 0 20rpx 20rpx 20rpx;
  578. .notice-item {
  579. line-height: 70rpx;
  580. .title {
  581. font-size: 28rpx;
  582. color: #999;
  583. }
  584. .detail {
  585. font-size: 28rpx;
  586. color: #333;
  587. font-family: OPPOSANS;
  588. }
  589. }
  590. .all-rpice-item {
  591. justify-content: flex-end;
  592. align-items: center;
  593. .title {
  594. font-size: 26rpx;
  595. font-weight: 500;
  596. color: #333333;
  597. line-height: normal;
  598. }
  599. .all-price {
  600. font-size: 26rpx;
  601. font-family: OPPOSANS;
  602. line-height: normal;
  603. color: $red;
  604. }
  605. }
  606. }
  607. // 底部
  608. .footer-box {
  609. height: 100rpx;
  610. width: 100%;
  611. box-sizing: border-box;
  612. border-radius: 10rpx;
  613. padding-right: 20rpx;
  614. .cancel-btn {
  615. // width: 160rpx;
  616. padding: 0 10rpx;
  617. height: 60rpx;
  618. background: #eeeeee;
  619. border-radius: 30rpx;
  620. margin-right: 20rpx;
  621. font-size: 26rpx;
  622. font-weight: 400;
  623. color: #333333;
  624. }
  625. .pay-btn {
  626. width: 160rpx;
  627. height: 60rpx;
  628. font-size: 26rpx;
  629. border-radius: 30rpx;
  630. font-weight: 500;
  631. color: #fff;
  632. }
  633. }
  634. </style>