爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

750 lines
20 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="order-manage-container">
  3. <!-- 顶部导航栏 -->
  4. <view
  5. class="nav-bar"
  6. :style="{
  7. paddingTop: statusBarHeight + 'px',
  8. height: (statusBarHeight + navBarContentHeight) + 'px'
  9. }"
  10. >
  11. <uni-icons type="left" @tap="goBack" size="24" color="#222" />
  12. <text class="nav-title">{{ historyOrderMode ? '历史订单' : '订单管理' }}</text>
  13. </view>
  14. <!-- Tab栏 -->
  15. <scroll-view
  16. v-if="!historyOrderMode"
  17. class="order-tabs-scroll"
  18. scroll-x
  19. :style="{
  20. top: navBarRealHeight + 'px',
  21. height: tabBarHeight + 'px',
  22. position: 'fixed',
  23. left: 0,
  24. width: '100%',
  25. zIndex: 99
  26. }"
  27. >
  28. <view
  29. class="order-tabs"
  30. :style="{width: (tabs.length * 20) + '%'}"
  31. >
  32. <view
  33. v-for="(tab, idx) in tabs"
  34. :key="tab.value"
  35. :class="['tab-item', {active: currentTab === idx}]"
  36. @tap="onTabChange(idx)"
  37. >
  38. <view class="tab-label-wrap">
  39. {{ tab.label }}
  40. <view v-if="tab.count > 0" class="tab-badge">{{ tab.count }}</view>
  41. </view>
  42. </view>
  43. </view>
  44. </scroll-view>
  45. <!-- 搜索与筛选 -->
  46. <view
  47. v-if="!historyOrderMode"
  48. class="search-bar"
  49. :style="{
  50. position: 'fixed',
  51. zIndex: 10,
  52. top: (navBarRealHeight + tabBarHeight) + 'px',
  53. left: 0,
  54. width: '100vw',
  55. height: '40px'
  56. }"
  57. >
  58. <view class="search-bar-inner">
  59. <template v-if="!searchMode">
  60. <uni-icons class="search-icon" type="search" size="22" color="#999" @tap="onSearchIconClick" />
  61. <uni-icons class="scan-icon" type="scan" size="22" color="#999" @tap="scanCode" />
  62. </template>
  63. <template v-else>
  64. <view class="search-input-wrap">
  65. <uni-icons type="search" size="22" color="#999" />
  66. <input
  67. ref="searchInput"
  68. class="search-input"
  69. v-model="searchText"
  70. placeholder="请输入要查询的内容"
  71. placeholder-style="color:#ccc"
  72. />
  73. <uni-icons v-if="searchText" type="close" size="22" color="#ccc" @tap="onClearSearch" />
  74. </view>
  75. <text class="search-cancel" @tap="onCancelSearch">取消</text>
  76. </template>
  77. </view>
  78. </view>
  79. <!-- 订单卡片列表 -->
  80. <view class="order-list"
  81. :style="{paddingTop: (navBarRealHeight + (historyOrderMode ? 0 : (tabBarHeight + 16 + 40))) + 'px'}"
  82. >
  83. <view class="order-card" v-for="order in filteredOrders" :key="order.id" @tap="goToOrderDetail(order)">
  84. <view class="order-card-header">
  85. <text class="order-id">{{ order.orderNo }}</text>
  86. <view v-if="order.statusText === '不包邮'" class="order-status-tag red">{{ order.statusText }}</view>
  87. </view>
  88. <view class="order-info-wrapper">
  89. <view class="order-info">
  90. <view>
  91. <text class="info-label">用户名</text>
  92. <text class="info-value">{{ order.userName }}</text>
  93. </view>
  94. <view>
  95. <text class="info-label">电话</text>
  96. <text class="info-value">{{ order.phone }}</text>
  97. </view>
  98. <view v-if="order.appointTime">
  99. <text class="info-label">预约时间</text>
  100. <text class="info-value">{{ order.appointTime }}</text>
  101. </view>
  102. <view v-if="order.cancelTime">
  103. <text class="info-label">取消时间</text>
  104. <text class="info-value">{{ order.cancelTime }}</text>
  105. </view>
  106. <view v-if="order.qualityTime">
  107. <text class="info-label">质检时间</text>
  108. <text class="info-value">{{ order.qualityTime }}</text>
  109. </view>
  110. </view>
  111. <view class="order-status-label-bar order-info-status" :class="order.statusClass">{{ order.statusLabel }}</view>
  112. </view>
  113. <view class="order-card-footer" v-if="order.actions && order.actions.length && !historyOrderMode">
  114. <view class="order-actions-bar">
  115. <view class="action-btn-bar" v-for="action in order.actions" :key="action.text" @tap="action.text === '审批' ? goToOrderDetail(order) : null">
  116. <uni-icons :type="action.icon" size="28" color="#666" />
  117. <text>{{ action.text }}</text>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <!-- 加载状态 -->
  123. <view v-if="isLoading && orderList.length === 0" class="loading-container">
  124. <uni-icons type="spinner-cycle" size="24" color="#999" class="loading-icon" />
  125. <text class="loading-text">加载中...</text>
  126. </view>
  127. <!-- 加载更多状态 -->
  128. <view v-if="loadingMore" class="load-more-container">
  129. <uni-icons type="spinner-cycle" size="20" color="#999" class="loading-icon" />
  130. <text class="load-more-text">加载更多...</text>
  131. </view>
  132. <!-- 到底提示 -->
  133. <view v-if="!hasMore && orderList.length > 0" class="no-more-container">
  134. <text class="no-more-text">已加载全部订单</text>
  135. </view>
  136. <!-- 空状态 -->
  137. <view v-if="!isLoading && orderList.length === 0" class="empty-container">
  138. <text class="empty-text">暂无订单数据</text>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import pullRefreshMixin from '../mixins/pullRefreshMixin.js'
  145. export default {
  146. mixins: [pullRefreshMixin],
  147. data() {
  148. return {
  149. statusBarHeight: 0,
  150. navBarContentHeight: 44,
  151. tabBarHeight: 48,
  152. navBarHeight: 44,
  153. navBarRealHeight: 44,
  154. tabs: [
  155. { label: '全部', value: -1, count: 0 },
  156. { label: '已预约', value: 0, count: 0 },
  157. { label: '待质检', value: 1, count: 0 },
  158. { label: '已结款', value: 2, count: 0 },
  159. { label: '已驳回', value: 3, count: 0 }
  160. ],
  161. currentTab: 0,
  162. orderList: [],
  163. searchMode: false,
  164. searchText: '',
  165. historyOrderMode: false,
  166. pageNo: 1,
  167. pageSize: 10,
  168. hasMore: true,
  169. isLoading: false,
  170. loadingMore: false,
  171. userId: '',
  172. reachBottomTimer: null
  173. }
  174. },
  175. onLoad(options) {
  176. const sys = uni.getSystemInfoSync();
  177. this.statusBarHeight = sys.statusBarHeight;
  178. this.$nextTick(() => {
  179. uni.createSelectorQuery().select('.nav-bar').boundingClientRect(rect => {
  180. if (rect) {
  181. this.navBarRealHeight = rect.height;
  182. }
  183. }).exec();
  184. });
  185. if (options && options.historyOrder) {
  186. this.historyOrderMode = true;
  187. }
  188. if (options && options.userId) {
  189. this.userId = options.userId;
  190. }
  191. this.fetchOrderList()
  192. this.fetchOrderStatusStatistics()
  193. },
  194. computed: {
  195. filteredOrders() {
  196. if (this.searchText) {
  197. const text = this.searchText.toLowerCase();
  198. return this.orderList.filter(order =>
  199. (order.orderNo && order.orderNo.toLowerCase().includes(text)) ||
  200. (order.userName && order.userName.toLowerCase().includes(text)) ||
  201. (order.phone && order.phone.toLowerCase().includes(text))
  202. );
  203. }
  204. // 现在通过接口参数获取对应Tab的数据,不需要客户端过滤
  205. return this.orderList;
  206. }
  207. },
  208. methods: {
  209. goBack() {
  210. uni.navigateBack()
  211. },
  212. onTabChange(idx) {
  213. this.currentTab = idx
  214. this.pageNo = 1
  215. this.hasMore = true
  216. this.orderList = []
  217. this.isLoading = false
  218. this.loadingMore = false
  219. this.fetchOrderList()
  220. },
  221. onSearchIconClick() {
  222. this.searchMode = true;
  223. this.$nextTick(() => {
  224. this.$refs.searchInput && this.$refs.searchInput.focus();
  225. });
  226. },
  227. onClearSearch() {
  228. this.searchText = '';
  229. },
  230. onCancelSearch() {
  231. this.searchText = '';
  232. this.searchMode = false;
  233. },
  234. goToOrderDetail(order) {
  235. uni.navigateTo({
  236. url: '/pages/manager/order-detail?id=' + order.id
  237. })
  238. },
  239. refreshData() {
  240. // TODO: 实现订单列表刷新逻辑,如重新请求接口
  241. },
  242. async onRefresh() {
  243. await this.refreshData && this.refreshData()
  244. },
  245. fetchOrderList(isLoadMore) {
  246. if (this.isLoading) return
  247. if (isLoadMore && !this.hasMore) return
  248. console.log(isLoadMore,'isLoadMore')
  249. if (isLoadMore) {
  250. this.loadingMore = true
  251. } else {
  252. this.isLoading = true
  253. }
  254. // 根据当前Tab获取对应的status参数
  255. const tabValue = this.tabs[this.currentTab].value
  256. let statusParam = 0 // 默认值
  257. if (tabValue === -1) {
  258. // 全部:status = 0
  259. statusParam = 0
  260. } else if (tabValue === 0) {
  261. // 已预约:status = 1
  262. statusParam = 1
  263. } else if (tabValue === 1) {
  264. // 待质检:status = 2
  265. statusParam = 2
  266. } else if (tabValue === 2) {
  267. // 已结款:status = 3
  268. statusParam = 3
  269. } else if (tabValue === 3) {
  270. // 已驳回:status = 4
  271. statusParam = 4
  272. }
  273. const params = {
  274. pageNo: isLoadMore ? this.pageNo + 1 : 1,
  275. pageSize: this.pageSize,
  276. status: statusParam
  277. }
  278. console.log(params,'params')
  279. if (this.userId) {
  280. params.userId = this.userId;
  281. }
  282. this.$api && this.$api('getOrderList', params, res => {
  283. if (res && res.code === 200 && res.result && res.result.records) {
  284. console.log(res.result,'res.result.records')
  285. const newOrders = res.result.records.map(order => {
  286. const statusInfo = this.getOrderStatusInfo(order.status, order.state)
  287. return {
  288. id: order.id,
  289. orderNo: order.ordeNo,
  290. userName: order.name,
  291. phone: order.phone,
  292. appointTime: order.goTime,
  293. cancelTime: order.state === 3 ? order.updateTime : '',
  294. qualityTime: order.status === 2 && order.state === 1 ? order.updateTime : '',
  295. statusText: order.isBy === 'Y' ? statusInfo.label : '不包邮',
  296. statusClass: statusInfo.class,
  297. statusLabel: statusInfo.label,
  298. actions: this.getOrderActions(order.status, order.state),
  299. status: this.getOrderStatus(order.status, order.state)
  300. }
  301. })
  302. if (isLoadMore) {
  303. // 数据去重处理
  304. const existingIds = new Set(this.orderList.map(order => order.id))
  305. const uniqueNewOrders = newOrders.filter(order => !existingIds.has(order.id))
  306. this.orderList = [...this.orderList, ...uniqueNewOrders]
  307. this.pageNo = params.pageNo +1
  308. } else {
  309. this.orderList = newOrders
  310. this.pageNo = 1
  311. }
  312. // 判断是否还有更多数据
  313. this.hasMore = newOrders.length === this.pageSize
  314. } else {
  315. this.hasMore = false
  316. }
  317. this.isLoading = false
  318. this.loadingMore = false
  319. }, err => {
  320. console.error('获取订单列表失败:', err)
  321. this.isLoading = false
  322. this.loadingMore = false
  323. this.hasMore = false
  324. uni.showToast({
  325. title: '加载失败,请重试',
  326. icon: 'none'
  327. })
  328. })
  329. },
  330. getOrderStatusInfo(status, state) {
  331. // if (state === 3) {
  332. // return { label: '已取消', class: 'gray' }
  333. // }
  334. if ((status === 1||status === 0) && state != 3 && state != 4) {
  335. return { label: '已预约', class: 'green' }
  336. } else if (state === 1) {
  337. return { label: '待质检', class: 'orange' }
  338. } else if (status === 3) {
  339. return { label: '已结款', class: 'blue' }
  340. } else if (state === 4) {
  341. return { label: '已驳回', class: 'red' }
  342. }
  343. return { label: '未知状态', class: 'gray' }
  344. },
  345. getOrderStatus(status, state) {
  346. // // 已取消状态
  347. // if (state === 3) return 4
  348. // 已预约状态 - 快递上门
  349. if (status === 1 ) return 1
  350. // 待质检状态 - 已取件
  351. if (state === 1) return 2
  352. // 已结款状态 - 现金打款
  353. if (status === 3 ) return 3
  354. // 已驳回状态 - 快递上门终止
  355. if (state ===4) return 4
  356. return -1
  357. },
  358. getOrderActions(status, state) {
  359. const actions = []
  360. // 只有待质检状态显示操作按钮
  361. if (status === 2 && state === 1) {
  362. actions.push({ icon: 'undo', text: '驳回' })
  363. actions.push({ icon: 'person', text: '审批' })
  364. }
  365. return actions
  366. },
  367. onLoadMore() {
  368. if (this.hasMore && !this.isLoading && !this.loadingMore) {
  369. this.fetchOrderList(true)
  370. }
  371. },
  372. scanCode() {
  373. uni.scanCode({
  374. scanType: ['qrCode'],
  375. success: (res) => {
  376. console.log('扫码结果:', res);
  377. // 这里可以根据扫码结果进行相应处理
  378. // 比如跳转到订单详情页
  379. if(res.result) {
  380. uni.navigateTo({
  381. url: '/pages/manager/order-detail?id=' + res.result
  382. })
  383. }
  384. },
  385. fail: (err) => {
  386. console.error('扫码失败:', err);
  387. uni.showToast({
  388. title: '扫码失败',
  389. icon: 'none'
  390. })
  391. }
  392. })
  393. },
  394. fetchOrderStatusStatistics() {
  395. const token = uni.getStorageSync('token') || '';
  396. this.$api && this.$api('orderStatusStatistics', { token }, res => {
  397. if (res.code === 200 && res.result) {
  398. const stat = res.result;
  399. this.tabs[1].count = stat.appointed || 0;
  400. this.tabs[2].count = stat.waitingInspection || 0;
  401. this.tabs[3].count = stat.completed || 0;
  402. this.tabs[4].count = stat.rejected || 0;
  403. this.tabs[0].count = (stat.appointed || 0) + (stat.waitingInspection || 0) + (stat.completed || 0) + (stat.rejected || 0);
  404. }
  405. });
  406. },
  407. },
  408. onPullDownRefresh() {
  409. this.pageNo = 1;
  410. this.hasMore = true;
  411. this.orderList = [];
  412. this.isLoading = false;
  413. this.loadingMore = false;
  414. this.fetchOrderList();
  415. uni.stopPullDownRefresh();
  416. },
  417. onReachBottom() {
  418. // 防抖处理,避免频繁触发
  419. if (this.reachBottomTimer) {
  420. clearTimeout(this.reachBottomTimer)
  421. }
  422. this.reachBottomTimer = setTimeout(() => {
  423. this.onLoadMore()
  424. }, 100)
  425. }
  426. }
  427. </script>
  428. <style lang="scss" scoped>
  429. .order-manage-container {
  430. background: #f8f8f8;
  431. min-height: 100vh;
  432. padding-bottom: 24px;
  433. }
  434. .nav-bar {
  435. display: flex;
  436. align-items: center;
  437. justify-content: space-between;
  438. position: fixed;
  439. top: 0;
  440. left: 0;
  441. right: 0;
  442. z-index: 100;
  443. background: #fff;
  444. padding: 0 32rpx;
  445. box-sizing: border-box;
  446. .nav-title {
  447. flex: 1;
  448. text-align: center;
  449. font-size: 36rpx;
  450. font-weight: bold;
  451. color: #222;
  452. }
  453. .nav-icons {
  454. display: flex;
  455. align-items: center;
  456. gap: 32rpx;
  457. }
  458. }
  459. .order-tabs-scroll {
  460. position: fixed;
  461. left: 0;
  462. width: 100%;
  463. z-index: 99;
  464. background: #fff;
  465. border-bottom: 1px solid #f0f0f0;
  466. height: 96rpx;
  467. overflow-x: auto;
  468. white-space: nowrap;
  469. -webkit-overflow-scrolling: touch;
  470. &::-webkit-scrollbar {
  471. display: none;
  472. }
  473. }
  474. .order-tabs {
  475. display: flex;
  476. width: 100%;
  477. }
  478. .tab-item {
  479. flex: 1 0 0%;
  480. text-align: center;
  481. font-size: 34rpx;
  482. color: #bfbfbf;
  483. height: 96rpx;
  484. line-height: 96rpx;
  485. position: relative;
  486. font-weight: 500;
  487. transition: color 0.2s;
  488. letter-spacing: 0.5px;
  489. }
  490. .tab-item.active {
  491. color: #ffb400;
  492. font-weight: bold;
  493. }
  494. .tab-item.active::after {
  495. content: '';
  496. display: block;
  497. margin: 0 auto;
  498. margin-top: 2px;
  499. width: 22px;
  500. height: 3px;
  501. border-radius: 2px;
  502. background: #ffb400;
  503. }
  504. .search-bar {
  505. width: 100vw;
  506. height: 40px;
  507. position: fixed;
  508. z-index: 10;
  509. left: 0;
  510. top: 0;
  511. display: flex;
  512. align-items: center;
  513. }
  514. .search-bar-inner {
  515. margin: 0 16px;
  516. background: #fff;
  517. border-radius: 20px;
  518. height: 40px;
  519. flex: 1;
  520. display: flex;
  521. align-items: center;
  522. box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  523. padding: 0 12px;
  524. justify-content: space-around;
  525. .search-icon {
  526. margin-right: 8px;
  527. }
  528. .scan-icon {
  529. margin-left: 8px;
  530. }
  531. }
  532. .search-input-wrap {
  533. display: flex;
  534. align-items: center;
  535. flex: 1;
  536. background: #f5f5f5;
  537. border-radius: 20px;
  538. height: 32px;
  539. margin: 0 0;
  540. padding: 0 8px;
  541. .search-input {
  542. flex: 1;
  543. border: none;
  544. outline: none;
  545. background: transparent;
  546. font-size: 15px;
  547. color: #222;
  548. margin-left: 8px;
  549. }
  550. }
  551. .search-cancel {
  552. margin-left: 8px;
  553. color: #999;
  554. font-size: 15px;
  555. line-height: 40px;
  556. }
  557. .order-list {
  558. margin: 0;
  559. padding-top: calc(var(--status-bar-height, 0px) + 44px + 44px + 16px);
  560. }
  561. .order-card {
  562. background: #fff;
  563. border-radius: 20px;
  564. margin: 0 16px 16px 16px;
  565. padding: 20px;
  566. box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  567. }
  568. .order-card-header {
  569. display: flex;
  570. justify-content: space-between;
  571. align-items: flex-start;
  572. margin-bottom: 12px;
  573. .order-id {
  574. font-size: 16px;
  575. font-weight: bold;
  576. color: #222;
  577. }
  578. .order-status-tag {
  579. font-size: 14px;
  580. border-radius: 12px;
  581. padding: 2px 12px;
  582. &.green { background: #e6f9e6; color: #1ecb1e; }
  583. &.red { background: #ffeaea; color: #ff4d4f; }
  584. &.orange { background: #fff7e6; color: #ffb400; }
  585. &.blue { background: #e6f0ff; color: #409eff; }
  586. &.gray { background: #f5f5f5; color: #999; }
  587. }
  588. }
  589. .order-info-wrapper {
  590. position: relative;
  591. .order-info-status {
  592. position: absolute;
  593. right: 0;
  594. bottom: 0;
  595. font-size: 14px;
  596. border-radius: 12px;
  597. padding: 2px 12px;
  598. &.green { background: #e6f9e6; color: #1ecb1e; }
  599. &.red { background: #ffeaea; color: #ff4d4f; }
  600. &.orange { background: #fff7e6; color: #ffb400; }
  601. &.blue { background: #e6f0ff; color: #409eff; }
  602. &.gray { background: #f5f5f5; color: #999; }
  603. }
  604. }
  605. .order-info {
  606. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  607. font-weight: 400;
  608. font-size: 14px;
  609. line-height: 1.4;
  610. letter-spacing: 0;
  611. vertical-align: middle;
  612. color: #666;
  613. margin-bottom: 12px;
  614. view {
  615. margin-bottom: 4px;
  616. display: flex;
  617. align-items: center;
  618. }
  619. .info-label {
  620. color: #999;
  621. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  622. font-weight: 400;
  623. font-size: 14px;
  624. line-height: 1.4;
  625. margin-right: 4px;
  626. }
  627. .info-value {
  628. color: #222;
  629. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  630. font-weight: 400;
  631. font-size: 14px;
  632. line-height: 1.4;
  633. }
  634. }
  635. .order-card-footer {
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. margin: 0 -20px -20px -20px;
  640. padding: 0 20px;
  641. border-bottom-left-radius: 20px;
  642. border-bottom-right-radius: 20px;
  643. background: #fafbfc;
  644. min-height: 60px;
  645. position: relative;
  646. .order-actions-bar {
  647. display: flex;
  648. flex: 1;
  649. justify-content: center;
  650. align-items: center;
  651. gap: 48px;
  652. .action-btn-bar {
  653. display: flex;
  654. flex-direction: column;
  655. align-items: center;
  656. font-size: 14px;
  657. color: #666;
  658. margin-top: 8px;
  659. margin-bottom: 8px;
  660. uni-icons {
  661. margin-bottom: 2px;
  662. }
  663. }
  664. }
  665. }
  666. /* 加载状态样式 */
  667. .loading-container, .load-more-container, .no-more-container, .empty-container {
  668. display: flex;
  669. flex-direction: column;
  670. align-items: center;
  671. justify-content: center;
  672. padding: 40rpx 0;
  673. color: #999;
  674. }
  675. .loading-icon {
  676. animation: spin 1s linear infinite;
  677. margin-bottom: 16rpx;
  678. }
  679. @keyframes spin {
  680. 0% { transform: rotate(0deg); }
  681. 100% { transform: rotate(360deg); }
  682. }
  683. .loading-text, .load-more-text {
  684. font-size: 28rpx;
  685. color: #999;
  686. }
  687. .no-more-text {
  688. font-size: 26rpx;
  689. color: #ccc;
  690. }
  691. .empty-container {
  692. padding: 120rpx 0;
  693. }
  694. .empty-text {
  695. font-size: 30rpx;
  696. color: #ccc;
  697. }
  698. .tab-label-wrap {
  699. position: relative;
  700. display: inline-block;
  701. }
  702. .tab-badge {
  703. position: absolute;
  704. top: 5px;
  705. right: -14px;
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. background: #ff4d4f;
  710. color: #fff;
  711. font-size: 12px;
  712. border-radius: 50%;
  713. min-width: 18px;
  714. height: 18px;
  715. padding: 0 5px;
  716. font-weight: bold;
  717. box-sizing: border-box;
  718. z-index: 1;
  719. }
  720. </style>