detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. <template>
  2. <view v-if="!isLoading" class="container" :style="appThemeStyle">
  3. <view class="header">
  4. <!-- 订单状态 -->
  5. <view class="order-status">
  6. <view class="status-icon">
  7. <!-- 进行中的订单 -->
  8. <block v-if="order.order_status == OrderStatusEnum.NORMAL.value">
  9. <!-- 待支付 -->
  10. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  11. <image class="image" src="/static/order/status/wait_pay.png" mode="aspectFit"></image>
  12. </block>
  13. <!-- 待发货 -->
  14. <block v-else-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
  15. <image class="image" src="/static/order/status/wait_deliver.png" mode="aspectFit"></image>
  16. </block>
  17. <!-- 待收货 -->
  18. <block v-else-if="order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
  19. <image class="image" src="/static/order/status/wait_receipt.png" mode="aspectFit"></image>
  20. </block>
  21. </block>
  22. <!-- 已完成 -->
  23. <block v-if="order.order_status == OrderStatusEnum.COMPLETED.value">
  24. <image class="image" src="/static/order/status/received.png" mode="aspectFit"></image>
  25. </block>
  26. <!-- 已取消/待取消 -->
  27. <block v-if="order.order_status == OrderStatusEnum.CANCELLED.value || order.order_status == OrderStatusEnum.APPLY_CANCEL.value">
  28. <image class="image" src="/static/order/status/close.png" mode="aspectFit"></image>
  29. </block>
  30. </view>
  31. <view class="status-text">
  32. <text>{{ order.state_text }}</text>
  33. </view>
  34. </view>
  35. <!-- 下一步操作 -->
  36. <view class="next-action" v-if="order.order_status == OrderStatusEnum.NORMAL.value">
  37. <view v-if="order.pay_status == PayStatusEnum.PENDING.value" class="action-btn" @click="onPay(order.order_id)">
  38. 去支付</view>
  39. <view
  40. v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value"
  41. class="action-btn" @click="onReceipt(order.order_id)">确认收货</view>
  42. </view>
  43. </view>
  44. <view class="card-area">
  45. <!-- 实物订单 -->
  46. <block v-if="order.order_type == OrderTypeEnum.PHYSICAL.value">
  47. <!-- 快递配送:配送地址 -->
  48. <view v-if="order.delivery_type == DeliveryTypeEnum.EXPRESS.value" class="delivery-address i-card">
  49. <view class="link-man">
  50. <text class="name">{{ order.address.name }}</text>
  51. <text class="phone">{{ order.address.phone }}</text>
  52. </view>
  53. <view class="address">
  54. <text class="region" v-for="(region, idx) in order.address.region" :key="idx">{{ region }}</text>
  55. <text class="detail">{{ order.address.detail }}</text>
  56. </view>
  57. </view>
  58. </block>
  59. <!-- 物流信息 -->
  60. <view v-if="order.delivery_type == DeliveryTypeEnum.EXPRESS.value
  61. && order.delivery_status == DeliveryStatusEnum.DELIVERED.value
  62. && order.delivery
  63. && order.delivery.length" class="express i-card" @click="handleTargetExpress()">
  64. <view v-if="order.delivery.length > 1" class="main">
  65. <view class="info-item">
  66. <view class="item-content">
  67. <text>订单已拆分多个包裹发货</text>
  68. </view>
  69. </view>
  70. <view class="info-item">
  71. <view class="item-content">
  72. <text>已发货{{ order.delivery.length }}个包裹</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view v-else class="main">
  77. <view class="info-item">
  78. <view class="item-lable">物流公司</view>
  79. <view class="item-content">
  80. <text
  81. v-if="order.delivery[0].delivery_method != DeliveryMethodEnum.UNWANTED.value">{{ order.delivery[0].express ? order.delivery[0].express.express_name : '--' }}</text>
  82. <text v-else>无需物流</text>
  83. </view>
  84. </view>
  85. <view class="info-item">
  86. <view class="item-lable">物流单号</view>
  87. <view class="item-content">
  88. <text>{{ order.delivery[0].express_no ? order.delivery[0].express_no : '--' }}</text>
  89. <view v-if="order.delivery[0].express_no" class="act-copy" @click.stop="handleCopy(order.delivery[0].express_no)">
  90. <text>复制</text>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="right-arrow">
  96. <text class="iconfont icon-arrow-right"></text>
  97. </view>
  98. </view>
  99. <!-- 商品列表 -->
  100. <view class="goods-list i-card">
  101. <view class="goods-item" v-for="(goods, idx) in order.goods" :key="idx">
  102. <view class="goods-main" @click="handleTargetGoods(goods.goods_id)">
  103. <!-- 商品图片 -->
  104. <view class="goods-image">
  105. <image class="image" :src="goods.goods_image" mode="scaleToFill"></image>
  106. </view>
  107. <!-- 商品信息 -->
  108. <view class="goods-content">
  109. <view class="goods-title"><text class="twoline-hide">{{ goods.goods_name }}</text></view>
  110. <view class="goods-props clearfix">
  111. <view class="goods-props-item" v-for="(props, idx) in goods.goods_props" :key="idx">
  112. <text>{{ props.value.name }}</text>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 交易信息 -->
  117. <view class="goods-trade">
  118. <view class="goods-price">
  119. <text class="unit">¥</text>
  120. <text class="value">{{ goods.is_user_grade ? goods.grade_goods_price : goods.goods_price }}</text>
  121. </view>
  122. <view class="goods-num">
  123. <text>×{{ goods.total_num }}</text>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 商品售后 -->
  128. <view class="goods-refund">
  129. <text v-if="goods.refund" class="stata-text">已申请售后</text>
  130. <view v-else-if="order.isAllowRefund" class="action-btn" @click.stop="handleApplyRefund(goods.order_goods_id)">申请售后</view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 订单信息 -->
  135. <view class="order-info i-card">
  136. <view class="info-item">
  137. <view class="item-lable">订单编号</view>
  138. <view class="item-content">
  139. <text>{{ order.order_no }}</text>
  140. <view class="act-copy" @click="handleCopy(order.order_no)">
  141. <text>复制</text>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="info-item">
  146. <view class="item-lable">下单时间</view>
  147. <view class="item-content">
  148. <text>{{ order.create_time }}</text>
  149. </view>
  150. </view>
  151. <view class="info-item">
  152. <view class="item-lable">买家留言</view>
  153. <view class="item-content">
  154. <text>{{ order.buyer_remark ? order.buyer_remark : '--' }}</text>
  155. </view>
  156. </view>
  157. </view>
  158. <!-- 结算信息 -->
  159. <view class="trade-info i-card">
  160. <view class="info-item">
  161. <view class="item-lable">订单金额</view>
  162. <view class="item-content">
  163. <text>¥{{ order.total_price }}</text>
  164. </view>
  165. </view>
  166. <view v-if="order.coupon_money > 0" class="info-item">
  167. <view class="item-lable">优惠券抵扣</view>
  168. <view class="item-content">
  169. <text>-¥{{ order.coupon_money }}</text>
  170. </view>
  171. </view>
  172. <view v-if="order.points_money > 0" class="info-item">
  173. <view class="item-lable">{{ setting.points_name }}抵扣</view>
  174. <view class="item-content">
  175. <text>-¥{{ order.points_money }}</text>
  176. </view>
  177. </view>
  178. <view class="info-item">
  179. <view class="item-lable">运费</view>
  180. <view class="item-content">
  181. <text>+¥{{ order.express_price }}</text>
  182. </view>
  183. </view>
  184. <view v-if="order.update_price.value != '0.00'" class="info-item">
  185. <view class="item-lable">后台改价</view>
  186. <view class="item-content">
  187. <text>{{ order.update_price.symbol }}</text>
  188. <text>¥{{ order.update_price.value }}</text>
  189. </view>
  190. </view>
  191. <view class="divider"></view>
  192. <view class="trade-total">
  193. <text class="lable">实付款</text>
  194. <view class="goods-price">
  195. <text class="unit">¥</text>
  196. <text class="value">{{ order.pay_price }}</text>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. <!-- 底部操作按钮 -->
  202. <view v-if="order.order_status != OrderStatusEnum.CANCELLED.value" class="footer-fixed">
  203. <view class="btn-wrapper">
  204. <!-- 未支付取消订单 -->
  205. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  206. <view class="btn-item" @click="onCancel(order.order_id)">取消</view>
  207. </block>
  208. <!-- 已支付进行中的订单 -->
  209. <block v-if="order.order_status != OrderStatusEnum.APPLY_CANCEL.value">
  210. <block v-if="order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
  211. <view class="btn-item" @click="onCancel(order.order_id)">申请取消</view>
  212. </block>
  213. </block>
  214. <!-- 已申请取消 -->
  215. <view v-else class="f-28 col-8">取消申请中</view>
  216. <!-- 未支付的订单 -->
  217. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  218. <view class="btn-item active" @click="onPay(order.order_id)">去支付</view>
  219. </block>
  220. <!-- 确认收货 -->
  221. <block
  222. v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
  223. <view class="btn-item active" @click="onReceipt(order.order_id)">确认收货</view>
  224. </block>
  225. <!-- 订单评价 -->
  226. <block v-if="order.order_status == OrderStatusEnum.COMPLETED.value && order.is_comment == 0">
  227. <view class="btn-item" @click="handleTargetComment(order.order_id)">评价</view>
  228. </block>
  229. </view>
  230. </view>
  231. </view>
  232. </template>
  233. <script>
  234. import {
  235. OrderTypeEnum,
  236. DeliveryStatusEnum,
  237. DeliveryTypeEnum,
  238. OrderStatusEnum,
  239. PayStatusEnum,
  240. ReceiptStatusEnum
  241. } from '@/common/enum/order'
  242. import { DeliveryMethodEnum } from '@/common/enum/order/delivery'
  243. import * as OrderApi from '@/api/order'
  244. export default {
  245. data() {
  246. return {
  247. // 枚举类
  248. OrderTypeEnum,
  249. DeliveryStatusEnum,
  250. DeliveryTypeEnum,
  251. OrderStatusEnum,
  252. PayStatusEnum,
  253. ReceiptStatusEnum,
  254. DeliveryMethodEnum,
  255. // 当前订单ID
  256. orderId: null,
  257. // 加载中
  258. isLoading: true,
  259. // 当前订单详情
  260. order: {},
  261. // 当前设置
  262. setting: {},
  263. // 控制onShow事件是否刷新订单信息
  264. canReset: false,
  265. }
  266. },
  267. /**
  268. * 生命周期函数--监听页面加载
  269. */
  270. onLoad({ orderId }) {
  271. // 当前订单ID
  272. this.orderId = orderId
  273. // 获取当前订单信息
  274. this.getOrderDetail()
  275. // 注册全局事件订阅: 是否刷新当前订单数据
  276. uni.$on('syncRefresh', (val, isCur) => {
  277. if (!isCur) {
  278. this.canReset = val
  279. }
  280. })
  281. },
  282. /**
  283. * 生命周期函数--监听页面显示
  284. */
  285. onShow() {
  286. this.canReset && this.getOrderDetail()
  287. this.canReset = false
  288. },
  289. methods: {
  290. // 获取当前订单信息
  291. getOrderDetail(canReset = false) {
  292. const app = this
  293. app.isLoading = true
  294. OrderApi.detail(app.orderId)
  295. .then(result => {
  296. app.order = result.data.order
  297. app.setting = result.data.setting
  298. app.isLoading = false
  299. })
  300. // 相应全局事件订阅: 刷新上级页面数据
  301. canReset && uni.$emit('syncRefresh', true, true)
  302. },
  303. // 复制指定内容
  304. handleCopy(value) {
  305. const app = this
  306. uni.setClipboardData({
  307. data: value,
  308. success: () => app.$toast('复制成功'),
  309. fail: ({ errMsg }) => app.$toast('复制失败 ' + errMsg)
  310. })
  311. },
  312. // 跳转到物流跟踪页面
  313. handleTargetExpress() {
  314. this.$navTo('pages/order/express/index', { orderId: this.orderId })
  315. },
  316. // 跳转到商品详情页面
  317. handleTargetGoods(goodsId) {
  318. this.$navTo('pages/goods/detail', { goodsId })
  319. },
  320. // 跳转到申请售后页面
  321. handleApplyRefund(orderGoodsId) {
  322. this.$navTo('pages/refund/apply', { orderGoodsId })
  323. },
  324. // 取消订单
  325. onCancel(orderId) {
  326. const app = this
  327. uni.showModal({
  328. title: '友情提示',
  329. content: '确认要取消该订单吗?',
  330. success(o) {
  331. if (o.confirm) {
  332. OrderApi.cancel(orderId)
  333. .then(result => {
  334. // 显示成功信息
  335. app.$toast(result.message)
  336. setTimeout(() => {
  337. // 刷新当前订单数据
  338. app.getOrderDetail(true)
  339. }, 1500)
  340. })
  341. }
  342. }
  343. });
  344. },
  345. // 确认收货
  346. onReceipt(orderId) {
  347. const app = this
  348. uni.showModal({
  349. title: '友情提示',
  350. content: '确认收到商品了吗?',
  351. success(o) {
  352. if (o.confirm) {
  353. OrderApi.receipt(orderId)
  354. .then(result => {
  355. // 显示成功信息
  356. app.$success(result.message)
  357. setTimeout(() => {
  358. // 刷新当前订单数据
  359. app.getOrderDetail(true)
  360. }, 1500)
  361. })
  362. }
  363. }
  364. });
  365. },
  366. // 点击去支付
  367. onPay(orderId) {
  368. this.$navTo('pages/checkout/cashier/index', { orderId })
  369. },
  370. // 跳转到订单评价页
  371. handleTargetComment(orderId) {
  372. this.$navTo('pages/order/comment/index', { orderId })
  373. },
  374. },
  375. }
  376. </script>
  377. <style>
  378. page {
  379. background: #f4f4f4;
  380. }
  381. </style>
  382. <style lang="scss" scoped>
  383. .container {
  384. // 设置ios刘海屏底部横线安全区域
  385. padding-bottom: calc(constant(safe-area-inset-bottom) + 106rpx + 6rpx);
  386. padding-bottom: calc(env(safe-area-inset-bottom) + 106rpx + 6rpx);
  387. }
  388. // 页面顶部
  389. .header {
  390. display: flex;
  391. justify-content: space-between;
  392. background-color: #e8c269;
  393. height: 280rpx;
  394. padding: 56rpx 30rpx 0 30rpx;
  395. .order-status {
  396. display: flex;
  397. align-items: center;
  398. height: 128rpx;
  399. .status-icon {
  400. width: 128rpx;
  401. height: 128rpx;
  402. .image {
  403. display: block;
  404. width: 100%;
  405. height: 100%;
  406. }
  407. }
  408. .status-text {
  409. padding-left: 20rpx;
  410. color: #fff;
  411. font-size: 38rpx;
  412. font-weight: bold;
  413. }
  414. }
  415. .next-action {
  416. display: flex;
  417. align-items: center;
  418. height: 128rpx;
  419. .action-btn {
  420. min-width: 152rpx;
  421. height: 56rpx;
  422. padding: 0 30rpx;
  423. background-color: #fff;
  424. border-radius: 28rpx;
  425. border-color: rgb(102, 102, 102);
  426. cursor: pointer;
  427. user-select: none;
  428. color: #c7a157;
  429. display: flex;
  430. justify-content: center;
  431. align-items: center;
  432. }
  433. }
  434. }
  435. // 卡片区域
  436. .card-area {
  437. margin-top: -50rpx;
  438. }
  439. // 通栏卡片
  440. .i-card {
  441. background: #fff;
  442. padding: 24rpx 24rpx;
  443. width: 94%;
  444. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  445. margin: 0 auto 20rpx auto;
  446. border-radius: 20rpx;
  447. }
  448. // 收货地址
  449. .delivery-address {
  450. .link-man {
  451. line-height: 46rpx;
  452. color: #333;
  453. .name {
  454. margin-right: 10rpx;
  455. }
  456. }
  457. .address {
  458. margin-top: 12rpx;
  459. color: #999;
  460. font-size: 24rpx;
  461. .detail {
  462. margin-left: 6rpx;
  463. }
  464. }
  465. }
  466. // 物流公司
  467. .express {
  468. display: flex;
  469. align-items: center;
  470. .main {
  471. flex: 1;
  472. }
  473. .info-item {
  474. display: flex;
  475. margin-bottom: 20rpx;
  476. &:last-child {
  477. margin-bottom: 0;
  478. }
  479. .item-lable {
  480. display: flex;
  481. align-items: center;
  482. font-size: 24rpx;
  483. color: #999;
  484. margin-right: 30rpx;
  485. }
  486. .item-content {
  487. flex: 1;
  488. display: flex;
  489. align-items: center;
  490. font-size: 26rpx;
  491. color: #333;
  492. .act-copy {
  493. margin-left: 20rpx;
  494. padding: 2rpx 20rpx;
  495. font-size: 22rpx;
  496. color: #666;
  497. border: 1rpx solid #c1c1c1;
  498. border-radius: 16rpx;
  499. }
  500. }
  501. }
  502. // 右侧箭头
  503. .right-arrow {
  504. margin-left: 16rpx;
  505. font-size: 26rpx;
  506. }
  507. }
  508. // 商品列表
  509. .goods-list {
  510. // 商品项
  511. .goods-item {
  512. margin-bottom: 40rpx;
  513. &:last-child {
  514. margin-bottom: 0;
  515. }
  516. // 商品信息
  517. .goods-main {
  518. display: flex;
  519. }
  520. // 商品图片
  521. .goods-image {
  522. width: 180rpx;
  523. height: 180rpx;
  524. .image {
  525. display: block;
  526. width: 100%;
  527. height: 100%;
  528. border-radius: 8rpx;
  529. }
  530. }
  531. // 商品内容
  532. .goods-content {
  533. flex: 1;
  534. padding-left: 16rpx;
  535. padding-top: 16rpx;
  536. .goods-title {
  537. font-size: 26rpx;
  538. max-height: 76rpx;
  539. }
  540. .goods-props {
  541. margin-top: 14rpx;
  542. color: #ababab;
  543. font-size: 24rpx;
  544. overflow: hidden;
  545. .goods-props-item {
  546. padding: 4rpx 16rpx;
  547. border-radius: 12rpx;
  548. background-color: #fcfcfc;
  549. }
  550. }
  551. }
  552. // 交易信息
  553. .goods-trade {
  554. padding-top: 16rpx;
  555. width: 150rpx;
  556. text-align: right;
  557. color: $uni-text-color-grey;
  558. font-size: 26rpx;
  559. .goods-price {
  560. vertical-align: bottom;
  561. margin-bottom: 16rpx;
  562. .unit {
  563. margin-right: -2rpx;
  564. font-size: 24rpx;
  565. }
  566. }
  567. }
  568. // 商品售后
  569. .goods-refund {
  570. display: flex;
  571. justify-content: flex-end;
  572. .stata-text {
  573. font-size: 24rpx;
  574. color: #999;
  575. }
  576. .action-btn {
  577. border-radius: 28rpx;
  578. padding: 8rpx 26rpx;
  579. font-size: 24rpx;
  580. color: #383838;
  581. border: 1rpx solid #a8a8a8;
  582. }
  583. }
  584. }
  585. }
  586. // 订单信息
  587. .order-info {
  588. .info-item {
  589. display: flex;
  590. margin-bottom: 24rpx;
  591. &:last-child {
  592. margin-bottom: 0;
  593. }
  594. .item-lable {
  595. display: flex;
  596. align-items: center;
  597. font-size: 24rpx;
  598. color: #999;
  599. margin-right: 30rpx;
  600. }
  601. .item-content {
  602. flex: 1;
  603. display: flex;
  604. align-items: center;
  605. font-size: 26rpx;
  606. color: #333;
  607. .act-copy {
  608. margin-left: 20rpx;
  609. padding: 2rpx 20rpx;
  610. font-size: 22rpx;
  611. color: #666;
  612. border: 1rpx solid #c1c1c1;
  613. border-radius: 16rpx;
  614. }
  615. }
  616. }
  617. }
  618. // 交易信息
  619. .trade-info {
  620. .info-item {
  621. display: flex;
  622. margin-bottom: 24rpx;
  623. .item-lable {
  624. font-size: 24rpx;
  625. color: #999;
  626. margin-right: 24rpx;
  627. }
  628. .item-content {
  629. flex: 1;
  630. font-size: 26rpx;
  631. color: #333;
  632. text-align: right;
  633. }
  634. }
  635. .divider {
  636. height: 1rpx;
  637. background: #f1f1f1;
  638. margin-bottom: 24rpx;
  639. }
  640. .trade-total {
  641. display: flex;
  642. justify-content: flex-end;
  643. .goods-price {
  644. margin-left: 12rpx;
  645. vertical-align: bottom;
  646. color: $main-bg;
  647. .unit {
  648. margin-right: -2rpx;
  649. font-size: 24rpx;
  650. }
  651. }
  652. }
  653. }
  654. // 底部操作栏
  655. .footer-fixed {
  656. position: fixed;
  657. bottom: var(--window-bottom);
  658. left: 0;
  659. right: 0;
  660. z-index: 11;
  661. box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
  662. background: #fff;
  663. // 设置ios刘海屏底部横线安全区域
  664. padding-bottom: constant(safe-area-inset-bottom);
  665. padding-bottom: env(safe-area-inset-bottom);
  666. .btn-wrapper {
  667. height: 106rpx;
  668. display: flex;
  669. align-items: center;
  670. justify-content: flex-end;
  671. padding: 0 30rpx;
  672. }
  673. .btn-item {
  674. min-width: 180rpx;
  675. border-radius: 30rpx;
  676. padding: 12rpx 26rpx;
  677. font-size: 28rpx;
  678. color: #383838;
  679. text-align: center;
  680. border: 1rpx solid #a8a8a8;
  681. margin-left: 24rpx;
  682. &.active {
  683. border: none;
  684. background: linear-gradient(to right, $main-bg, $main-bg2);
  685. color: $main-text;
  686. }
  687. }
  688. }
  689. </style>