statistics.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <template>
  2. <view class="container">
  3. <!-- 日期范围和筛选 -->
  4. <view class="date-filter-bar mb16">
  5. <view class="date-range" @click="showDatePicker = true">
  6. <image class="w32 h32" src="@/static/image/icon_time.png" mode=""></image>
  7. <text class="date-text">{{ dateRangeText }}</text>
  8. <text class="arrow-down">▼</text>
  9. </view>
  10. <view class="filter-btn" @click="showFilter = true">
  11. <image class="w32 h32" src="@/static/image/icon_select.png" mode=""></image>
  12. <text>筛选</text>
  13. </view>
  14. </view>
  15. <!-- 内容区域 -->
  16. <scroll-view class="content" scroll-y>
  17. <!-- 数据汇总 -->
  18. <view class="summary-section x-bc">
  19. <view class="summary-header">
  20. <view class="summary-indicator"></view>
  21. <text class="summary-title">数据汇总</text>
  22. </view>
  23. <view class="summary-stats">
  24. <view class="stat-item">
  25. <text class="stat-label">任务数</text>
  26. <text class="stat-value">{{ summaryData.taskCount }}</text>
  27. </view>
  28. <view class="stat-item">
  29. <text class="stat-label">总积分</text>
  30. <text class="stat-value">{{ summaryData.totalPoints }}</text>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 数据表格 -->
  35. <view class="table-section">
  36. <view class="table-header">
  37. <view class="table-col" style="width: 20%;">任务类型</view>
  38. <view class="table-col" style="width: 15%;">积分</view>
  39. <view class="table-col" style="width: 20%;">申请人员</view>
  40. <view class="table-col" style="width: 20%;">任务状态</view>
  41. <view class="table-col" style="width: 25%;">接收时间</view>
  42. </view>
  43. <view class="table-body">
  44. <view class="table-row" v-for="(item, index) in tableData" :key="index">
  45. <view class="table-col" style="width: 20%;">{{ item.taskType }}</view>
  46. <view class="table-col" style="width: 15%;">{{ item.points }}</view>
  47. <view class="table-col" style="width: 20%;">{{ item.applicant }}</view>
  48. <view class="table-col" style="width: 20%;">
  49. <text class="status-tag" :class="item.status">{{ item.statusText }}</text>
  50. </view>
  51. <view class="table-col" style="width: 25%;">{{ item.receiveTime }}</view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 底部提示 -->
  56. <view class="no-more">没有更多了~</view>
  57. </scroll-view>
  58. <!-- 日期选择弹窗 -->
  59. <view class="date-picker-popup" v-if="showDatePicker" @click="showDatePicker = false">
  60. <view class="date-picker-content" @click.stop>
  61. <view class="picker-header">
  62. <view class="picker-cancel" @click="showDatePicker = false">取消</view>
  63. <view class="picker-title">选择日期范围</view>
  64. <view class="picker-confirm" @click="confirmDateRange">确定</view>
  65. </view>
  66. <view class="picker-body">
  67. <view class="date-item">
  68. <text class="date-label">开始日期</text>
  69. <picker mode="date" :value="tempDateRange.startDate" @change="onStartDateChange">
  70. <view class="date-value">{{ tempDateRange.startDate || '请选择' }}</view>
  71. </picker>
  72. </view>
  73. <view class="date-item">
  74. <text class="date-label">结束日期</text>
  75. <picker mode="date" :value="tempDateRange.endDate" @change="onEndDateChange">
  76. <view class="date-value">{{ tempDateRange.endDate || '请选择' }}</view>
  77. </picker>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 筛选弹窗 -->
  83. <view class="filter-popup" v-if="showFilter" @click="closeFilter">
  84. <view class="filter-content" @click.stop>
  85. <view class="filter-header">
  86. <view class="filter-title">筛选</view>
  87. <view class="filter-close-btn" @click="closeFilter">
  88. <image class="w44 h44" src="@/static/image/icon_cross.png" mode=""></image>
  89. </view>
  90. </view>
  91. <!-- 任务类型筛选 -->
  92. <view class="filter-group">
  93. <view class="group-label">任务类型</view>
  94. <view class="filter-tags">
  95. <view
  96. class="filter-tag"
  97. :class="{ active: tempSelectedTaskType === item.value }"
  98. v-for="(item, index) in taskTypeOptions"
  99. :key="index"
  100. @click="selectTaskType(item.value)">
  101. {{ item.label }}
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 任务状态筛选 -->
  106. <view class="filter-group">
  107. <view class="group-label">任务状态</view>
  108. <view class="filter-tags">
  109. <view
  110. class="filter-tag"
  111. :class="{ active: tempSelectedTaskStatus === item.value }"
  112. v-for="(item, index) in taskStatusOptions"
  113. :key="index"
  114. @click="selectTaskStatus(item.value)">
  115. {{ item.label }}
  116. </view>
  117. </view>
  118. </view>
  119. <!-- 操作按钮 -->
  120. <view class="filter-actions">
  121. <view class="reset-btn" @click="resetFilters">重置</view>
  122. <view class="confirm-btn" @click="confirmFilters">确定</view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. import {
  130. getStatisticsData,
  131. getStatisticsSummary,
  132. getTaskTypeStatistics,
  133. getTaskStatusStatistics
  134. } from '@/api/statistics'
  135. export default {
  136. data() {
  137. return {
  138. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  139. showDatePicker: false,
  140. showFilter: false,
  141. dateRange: {
  142. startDate: '2025-12-01',
  143. endDate: '2025-12-25'
  144. },
  145. tempDateRange: {
  146. startDate: '2025-12-01',
  147. endDate: '2025-12-25'
  148. },
  149. selectedTaskType: 'academicLecture', // 默认选中学术讲座
  150. selectedTaskStatus: '',
  151. taskTypeOptions: [
  152. { label: '医生坐诊', value: 'doctorConsultation' },
  153. { label: '科普讲座', value: 'popularScienceLecture' },
  154. { label: '学术讲座', value: 'academicLecture' },
  155. { label: '科普文章', value: 'popularScienceArticle' },
  156. { label: '科普短视频', value: 'popularScienceShortVideo' },
  157. { label: '科普长视频', value: 'popularScienceLongVideo' },
  158. { label: '空中课堂', value: 'airClassroom' },
  159. { label: '用药调研', value: 'medicationSurvey' },
  160. { label: '问卷调研', value: 'questionnaireSurvey' },
  161. { label: '社群咨询', value: 'communityConsultation' },
  162. { label: '健康问答', value: 'healthQA' }
  163. ],
  164. taskStatusOptions: [
  165. { label: '未完成', value: 'uncompleted' },
  166. { label: '待审核', value: 'pendingReview' },
  167. { label: '已驳回', value: 'rejected' },
  168. { label: '已完成', value: 'completed' },
  169. { label: '已完结', value: 'finished' }
  170. ],
  171. tempSelectedTaskType: 'academicLecture',
  172. tempSelectedTaskStatus: '',
  173. summaryData: {
  174. taskCount: 6,
  175. totalPoints: 300
  176. },
  177. tableData: [
  178. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  179. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  180. { taskType: '用药调研', points: '100', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  181. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  182. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  183. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  184. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  185. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  186. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  187. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' }
  188. ]
  189. }
  190. },
  191. computed: {
  192. dateRangeText() {
  193. return `${this.dateRange.startDate} 至 ${this.dateRange.endDate}`
  194. }
  195. },
  196. watch: {
  197. showFilter(newVal) {
  198. if (newVal) {
  199. // 打开弹窗时,同步临时选择值
  200. this.tempSelectedTaskType = this.selectedTaskType
  201. this.tempSelectedTaskStatus = this.selectedTaskStatus
  202. }
  203. }
  204. },
  205. onLoad() {
  206. this.tempSelectedTaskType = this.selectedTaskType
  207. this.tempSelectedTaskStatus = this.selectedTaskStatus
  208. //this.loadData()
  209. },
  210. onReachBottom() {
  211. this.loadMore()
  212. },
  213. methods: {
  214. goBack() {
  215. uni.navigateBack()
  216. },
  217. onStartDateChange(e) {
  218. this.tempDateRange.startDate = e.detail.value
  219. },
  220. onEndDateChange(e) {
  221. this.tempDateRange.endDate = e.detail.value
  222. },
  223. confirmDateRange() {
  224. if (!this.tempDateRange.startDate || !this.tempDateRange.endDate) {
  225. uni.showToast({ icon: 'none', title: '请选择完整的日期范围' })
  226. return
  227. }
  228. if (new Date(this.tempDateRange.startDate) > new Date(this.tempDateRange.endDate)) {
  229. uni.showToast({ icon: 'none', title: '开始日期不能大于结束日期' })
  230. return
  231. }
  232. this.dateRange = { ...this.tempDateRange }
  233. this.showDatePicker = false
  234. this.loadData()
  235. },
  236. closeFilter() {
  237. // 关闭弹窗时,恢复临时选择值为当前选择值
  238. this.tempSelectedTaskType = this.selectedTaskType
  239. this.tempSelectedTaskStatus = this.selectedTaskStatus
  240. this.showFilter = false
  241. },
  242. selectTaskType(value) {
  243. // 如果点击的是已选中的,则取消选择
  244. if (this.tempSelectedTaskType === value) {
  245. this.tempSelectedTaskType = ''
  246. } else {
  247. this.tempSelectedTaskType = value
  248. }
  249. },
  250. selectTaskStatus(value) {
  251. // 如果点击的是已选中的,则取消选择
  252. if (this.tempSelectedTaskStatus === value) {
  253. this.tempSelectedTaskStatus = ''
  254. } else {
  255. this.tempSelectedTaskStatus = value
  256. }
  257. },
  258. resetFilters() {
  259. this.tempSelectedTaskType = ''
  260. this.tempSelectedTaskStatus = ''
  261. },
  262. confirmFilters() {
  263. this.selectedTaskType = this.tempSelectedTaskType
  264. this.selectedTaskStatus = this.tempSelectedTaskStatus
  265. this.showFilter = false
  266. this.loadData()
  267. },
  268. async loadData() {
  269. try {
  270. uni.showLoading({ title: '加载中...' })
  271. // 并行加载统计数据、汇总数据、类型统计和状态统计
  272. const [dataRes, summaryRes, typeRes, statusRes] = await Promise.all([
  273. getStatisticsData({
  274. startDate: this.dateRange.startDate,
  275. endDate: this.dateRange.endDate,
  276. taskType: this.selectedTaskType,
  277. taskStatus: this.selectedTaskStatus
  278. }),
  279. getStatisticsSummary({
  280. startDate: this.dateRange.startDate,
  281. endDate: this.dateRange.endDate
  282. }).catch(() => ({ code: 0 })),
  283. getTaskTypeStatistics({
  284. startDate: this.dateRange.startDate,
  285. endDate: this.dateRange.endDate
  286. }).catch(() => ({ code: 0 })),
  287. getTaskStatusStatistics({
  288. startDate: this.dateRange.startDate,
  289. endDate: this.dateRange.endDate
  290. }).catch(() => ({ code: 0 }))
  291. ])
  292. uni.hideLoading()
  293. if (dataRes.code === 200 && dataRes.data) {
  294. this.tableData = dataRes.data.list || []
  295. } else {
  296. this.tableData = []
  297. }
  298. // 更新汇总数据
  299. if (summaryRes.code === 200 && summaryRes.data) {
  300. this.summaryData = {
  301. taskCount: summaryRes.data.taskCount || 0,
  302. totalPoints: summaryRes.data.totalPoints || 0
  303. }
  304. }
  305. // 如果有类型统计和状态统计,可以用于图表展示
  306. if (typeRes.code === 200 && typeRes.data) {
  307. console.log('任务类型统计', typeRes.data)
  308. }
  309. if (statusRes.code === 200 && statusRes.data) {
  310. console.log('任务状态统计', statusRes.data)
  311. }
  312. } catch (e) {
  313. uni.hideLoading()
  314. console.error('加载数据失败', e)
  315. this.tableData = this.getDefaultData()
  316. }
  317. },
  318. async loadMore() {
  319. // 加载更多数据
  320. },
  321. getDefaultData() {
  322. // 默认数据,根据图片中的示例
  323. return [
  324. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  325. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  326. { taskType: '用药调研', points: '100', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  327. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  328. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  329. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  330. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  331. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  332. { taskType: '用药调研', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' },
  333. { taskType: '科普短视频', points: '20', applicant: '王*明', status: 'uncompleted', statusText: '未完成', receiveTime: '2025-09-25' }
  334. ]
  335. }
  336. }
  337. }
  338. </script>
  339. <style lang="scss" scoped>
  340. .container {
  341. min-height: 100vh;
  342. display: flex;
  343. flex-direction: column;
  344. }
  345. .status-bar {
  346. width: 100%;
  347. background: #fff;
  348. }
  349. .header {
  350. position: relative;
  351. height: 88rpx;
  352. display: flex;
  353. align-items: center;
  354. justify-content: center;
  355. background: #fff;
  356. border-bottom: 1rpx solid #f0f0f0;
  357. .back-btn {
  358. position: absolute;
  359. left: 24rpx;
  360. width: 40rpx;
  361. height: 40rpx;
  362. image {
  363. width: 100%;
  364. height: 100%;
  365. }
  366. }
  367. .title {
  368. font-size: 36rpx;
  369. font-weight: bold;
  370. color: #333;
  371. }
  372. .header-right {
  373. position: absolute;
  374. right: 24rpx;
  375. display: flex;
  376. align-items: center;
  377. gap: 16rpx;
  378. .more-icon {
  379. font-size: 32rpx;
  380. color: #333;
  381. }
  382. }
  383. }
  384. .date-filter-bar {
  385. display: flex;
  386. align-items: center;
  387. justify-content: space-between;
  388. padding: 24rpx;
  389. background: #fff;
  390. // border-bottom: 1rpx solid #f0f0f0;
  391. .date-range {
  392. display: flex;
  393. align-items: center;
  394. gap: 8rpx;
  395. .clock-icon {
  396. font-size: 28rpx;
  397. }
  398. .date-text {
  399. font-family: PingFang SC, PingFang SC;
  400. font-weight: 500;
  401. font-size: 28rpx;
  402. color: #333333;
  403. }
  404. .arrow-down {
  405. font-size: 20rpx;
  406. color: #333333;
  407. }
  408. }
  409. .filter-btn {
  410. display: flex;
  411. align-items: center;
  412. gap: 8rpx;
  413. font-size: 28rpx;
  414. color: #333;
  415. .filter-icon {
  416. font-size: 24rpx;
  417. }
  418. }
  419. }
  420. .content {
  421. flex: 1;
  422. background: #fff;
  423. }
  424. .summary-section {
  425. background: #fff;
  426. padding:32rpx 24rpx;
  427. // margin-bottom: 32rpx;
  428. .summary-header {
  429. display: flex;
  430. align-items: center;
  431. // margin-bottom: 24rpx;
  432. .summary-indicator {
  433. width: 6rpx;
  434. height: 32rpx;
  435. background: #388BFF;
  436. border-radius: 3rpx;
  437. margin-right: 16rpx;
  438. }
  439. .summary-title {
  440. font-size: 32rpx;
  441. font-weight: bold;
  442. color: #333;
  443. }
  444. }
  445. .summary-stats {
  446. display: flex;
  447. gap: 48rpx;
  448. .stat-item {
  449. display: flex;
  450. flex-direction: row;
  451. align-items: center;
  452. gap: 16rpx;
  453. .stat-label {
  454. font-size: 24rpx;
  455. color: #999;
  456. }
  457. .stat-value {
  458. font-size: 36rpx;
  459. font-weight: bold;
  460. color: #388BFF;
  461. }
  462. }
  463. }
  464. }
  465. .table-section {
  466. background: #fff;
  467. padding: 0 24rpx;
  468. .table-header {
  469. display: flex;
  470. background: #E3EFFF;
  471. padding: 24rpx 16rpx;
  472. .table-col {
  473. font-family: PingFang SC, PingFang SC;
  474. font-weight: 500;
  475. font-size: 26rpx;
  476. color: #333333;
  477. line-height: 40rpx;
  478. text-align: left;
  479. }
  480. }
  481. .table-body {
  482. .table-row {
  483. display: flex;
  484. padding: 24rpx 16rpx;
  485. &:nth-child(2n) {
  486. background: #F7F8FA;
  487. border-radius: 8rpx 8rpx 8rpx 8rpx;
  488. }
  489. .table-col {
  490. font-size: 26rpx;
  491. color: #333;
  492. display: flex;
  493. align-items: center;
  494. text-align: left;
  495. font-family: PingFang SC, PingFang SC;
  496. font-weight: 400;
  497. font-size: 26rpx;
  498. line-height: 40rpx;
  499. // .status-tag {
  500. // padding: 4rpx 12rpx;
  501. // border-radius: 4rpx;
  502. // font-size: 24rpx;
  503. // &.uncompleted {
  504. // background: #FFF3E0;
  505. // color: #FF9800;
  506. // }
  507. // &.completed {
  508. // background: #E8F5E9;
  509. // color: #4CAF50;
  510. // }
  511. // }
  512. }
  513. }
  514. }
  515. }
  516. .no-more {
  517. text-align: center;
  518. padding: 48rpx 0;
  519. font-size: 24rpx;
  520. color: #999;
  521. }
  522. .date-picker-popup {
  523. position: fixed;
  524. top: 0;
  525. left: 0;
  526. right: 0;
  527. bottom: 0;
  528. background: rgba(0, 0, 0, 0.5);
  529. z-index: 999;
  530. display: flex;
  531. align-items: flex-end;
  532. }
  533. .date-picker-content {
  534. width: 100%;
  535. background: #fff;
  536. border-radius: 24rpx 24rpx 0 0;
  537. .picker-header {
  538. display: flex;
  539. align-items: center;
  540. justify-content: space-between;
  541. padding: 24rpx;
  542. border-bottom: 1rpx solid #f0f0f0;
  543. .picker-cancel {
  544. font-size: 30rpx;
  545. color: #666;
  546. }
  547. .picker-title {
  548. font-size: 32rpx;
  549. font-weight: bold;
  550. color: #333;
  551. }
  552. .picker-confirm {
  553. font-size: 30rpx;
  554. color: #388BFF;
  555. }
  556. }
  557. .picker-body {
  558. padding: 24rpx;
  559. .date-item {
  560. display: flex;
  561. align-items: center;
  562. justify-content: space-between;
  563. padding: 24rpx 0;
  564. border-bottom: 1rpx solid #f0f0f0;
  565. &:last-child {
  566. border-bottom: none;
  567. }
  568. .date-label {
  569. font-size: 30rpx;
  570. color: #333;
  571. }
  572. .date-value {
  573. font-size: 30rpx;
  574. color: #388BFF;
  575. }
  576. }
  577. }
  578. }
  579. .filter-popup {
  580. position: fixed;
  581. top: 0;
  582. left: 0;
  583. right: 0;
  584. bottom: 0;
  585. background: rgba(0, 0, 0, 0.5);
  586. z-index: 999;
  587. display: flex;
  588. align-items: flex-end;
  589. }
  590. .filter-content {
  591. width: 100%;
  592. background: #fff;
  593. border-radius: 24rpx 24rpx 0 0;
  594. padding: 24rpx 32rpx;
  595. max-height: 80vh;
  596. overflow-y: auto;
  597. .filter-header {
  598. display: flex;
  599. align-items: center;
  600. justify-content: center;
  601. // padding: 32rpx 24rpx;
  602. position: relative;
  603. height: 80rpx;
  604. .filter-title {
  605. font-family: PingFang SC, PingFang SC;
  606. font-weight: 500;
  607. font-size: 32rpx;
  608. color: #333333;
  609. }
  610. .filter-close-btn {
  611. position: absolute;
  612. right:0;
  613. top: 50%;
  614. transform: translateY(-50%);
  615. font-size: 48rpx;
  616. color: #999;
  617. width: 48rpx;
  618. height: 48rpx;
  619. display: flex;
  620. align-items: center;
  621. justify-content: center;
  622. line-height: 1;
  623. }
  624. }
  625. .filter-group {
  626. margin-bottom: 40rpx;
  627. &:last-of-type {
  628. margin-bottom: 0;
  629. }
  630. .group-label {
  631. font-family: PingFang SC, PingFang SC;
  632. font-weight: 500;
  633. font-size: 28rpx;
  634. color: #333333;
  635. margin-bottom: 24rpx;
  636. }
  637. .filter-tags {
  638. display: flex;
  639. flex-wrap: wrap;
  640. gap: 24rpx;
  641. .filter-tag {
  642. width: calc((100% - 48rpx) / 3);
  643. padding: 12rpx 24rpx;
  644. background: #F7F8FA;
  645. border-radius: 70rpx 70rpx 70rpx 70rpx;
  646. font-family: PingFang SC, PingFang SC;
  647. font-weight: 400;
  648. font-size: 28rpx;
  649. color: #666;
  650. border: 1rpx solid transparent;
  651. text-align: center;
  652. box-sizing: border-box;
  653. &.active {
  654. background: rgba(56,139,255,0.15);
  655. color: #388BFF;
  656. border-color: #388BFF;
  657. }
  658. }
  659. }
  660. }
  661. .filter-actions {
  662. display: flex;
  663. gap: 24rpx;
  664. margin-top: 40rpx;
  665. padding-top: 24rpx;
  666. .reset-btn,
  667. .confirm-btn {
  668. flex: 1;
  669. height: 80rpx;
  670. line-height: 80rpx;
  671. text-align: center;
  672. border-radius: 8rpx;
  673. font-family: PingFang SC, PingFang SC;
  674. font-weight: 400;
  675. font-size: 28rpx;
  676. }
  677. .reset-btn {
  678. background: #fff;
  679. color: #388BFF;
  680. border-radius: 200rpx 200rpx 200rpx 200rpx;
  681. border: 2rpx solid #388BFF;
  682. }
  683. .confirm-btn {
  684. background: #388BFF;
  685. color: #fff;
  686. border-radius: 200rpx 200rpx 200rpx 200rpx;
  687. border: 2rpx solid #388BFF;
  688. }
  689. }
  690. }
  691. </style>