detail.vue 18 KB

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