index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. <template>
  2. <view class="container">
  3. <view class="top-box">
  4. <view class="input-item">
  5. <image class="icon" src="@/static/image/search.png" mode=""></image>
  6. <input class="" placeholder="请输入讲者姓名" placeholder-class="placeholder" v-model="searchName" />
  7. </view>
  8. <view class="filter-item" @click="showFilter = true">
  9. <image class="w32 h32 mr4" src="@/static/image/icon_select.png" mode=""></image>
  10. <text>筛选</text>
  11. </view>
  12. </view>
  13. <!-- {{utils.getDictLabelName("doctorPosition",item.doctorPosition)}} -->
  14. <!-- 筛选标签栏 -->
  15. <view class="tab">
  16. <view class="filter-bar">
  17. <view class="filter-tabs">
  18. <view class="tab-item" :class="{ active: currentTab === item.value }" v-for="(item, index) in tabs"
  19. :key="index" @click="switchTab(item.value)">
  20. {{ item.label }}
  21. </view>
  22. </view>
  23. <view class="filter-divider"></view>
  24. <view class="filter-btn" @click="showMemberPopup = true">
  25. <text>{{ selectedMemberOption || '全员' }}</text>
  26. <image class="w32 h32" src="@/static/image/icon_down.png" mode=""></image>
  27. </view>
  28. </view>
  29. <!-- 成员筛选弹窗 -->
  30. <view class="member-popup-overlay" v-if="showMemberPopup" @click="showMemberPopup = false"></view>
  31. <view class="member-popup" v-if="showMemberPopup">
  32. <view class="member-options">
  33. <view class="member-option" :class="{ active: selectedMember === 'all' }" @click="selectMember('all', '全员')">
  34. <text>全员</text>
  35. </view>
  36. <view class="member-option" :class="{ active: selectedMember === 'option1' }" @click="selectMember('option1', '选项1')">
  37. <text>选项1</text>
  38. </view>
  39. <view class="member-option" :class="{ active: selectedMember === 'option2' }" @click="selectMember('option2', '选项2')">
  40. <text>选项2</text>
  41. </view>
  42. <view class="member-option" :class="{ active: selectedMember === 'option3' }" @click="selectMember('option3', '选项3')">
  43. <text>选项3</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 任务列表 -->
  49. <scroll-view class="content" scroll-y>
  50. <view class="task-card" v-for="(item, index) in taskList" :key="index" @click="showDetail(item)">
  51. <view class="card-header">
  52. <view class="card-title">
  53. <text>{{ item.doctorName||'未命名' }}</text>
  54. <text class="title-little" v-if="item.account_type">{{item.account_type}}</text>
  55. <view class="lable" v-if="item.doctorLevel">{{item.doctorLevel}}</view>
  56. </view>
  57. <view class="status-tag"
  58. :class="item.status === 0 ? 'reviewing' : item.status === 1 ? 'approved' : item.status === 2 ? 'rejected' : 'manual'">
  59. {{ item.status === 0 ? '待审核' : item.status === 1 ? '已通过' : item.status === 2 ? '已驳回' : '转人工审核' }}
  60. </view>
  61. </view>
  62. <view class="row">
  63. <image class="icon" src="@/static/image/icon_hospital.png" mode=""></image>
  64. <text>{{ item.institution ||'-'}}</text>
  65. <view class="line"></view>
  66. <text>{{ item.department ||'-'}}</text>
  67. </view>
  68. <view class="row">
  69. <image class="icon" src="/static/image/icon_user.png" mode=""></image>
  70. <view class="txt-container">
  71. <text class="txt" :class="{ 'expanded': expandedItems[index] }">
  72. <text v-for="(value,idx) in (item.doctorProducts || [])" :key="idx">
  73. {{ value.companyUserName }}({{ value.productCode }})<span
  74. v-if="idx < (item.doctorProducts || []).length - 1">、</span>
  75. </text>
  76. </text>
  77. </view>
  78. <image v-if="item.doctorProducts && item.doctorProducts.length > 0" class="icon expand-icon"
  79. :class="{ 'expanded': expandedItems[index] }" @click.stop="expand(index)"
  80. src="/static/image/icon_expand.png" mode=""></image>
  81. </view>
  82. <view class="card-warning" v-if="item.warning">
  83. <text class="warning-icon">⚠</text>
  84. <text>{{ item.warning }}</text>
  85. </view>
  86. <view class="card-rejection" v-if="item.rejectReason">
  87. <image class="w28 h28 mr8" src="@/static/image/icon_wrong.png" mode=""></image>
  88. <text>驳回原因: {{ item.rejectReason }}</text>
  89. </view>
  90. <view class="card-tags">
  91. <view class="tag-item points-tag" v-if="item.productGroup" @click.stop="showCorrelation=true">
  92. <!-- 默认产品组:五级 -->
  93. {{ item.productGroup }}
  94. </view>
  95. </view>
  96. <view class="apply-button" v-if="item.isApply==0" @click.stop="applyLevel(item)">定级申请</view>
  97. </view>
  98. </scroll-view>
  99. <!-- 身份筛选 -->
  100. <view class="filter-popup" v-if="showFilter" @click="closeFilter">
  101. <view class="filter-content" @click.stop>
  102. <view class="filter-header">
  103. <view class="filter-title">筛选</view>
  104. <image class="filter-close-btn" src="@/static/image/icon_close.png" @click="closeFilter" mode="">
  105. </image>
  106. </view>
  107. <!-- 身份筛选 -->
  108. <view class="filter-group">
  109. <view class="group-label">账号身份</view>
  110. <view class="tabs-container">
  111. <view v-for="(tab, index) in identity" :key="index"
  112. :class="['tab-item', activeTab === tab.dictValue ? 'active' : '']"
  113. @click="switchFilterTab(tab.dictValue)">
  114. <text class="tab-text">{{ tab.dictLabel }}</text>
  115. <!-- <text v-if="tab.dictValue" class="tab-count">{{ tab.dictValue }}</text> -->
  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. <!-- 关联产品 -->
  127. <view class="filter-popup" v-if="showCorrelation" @click="showCorrelation = false">
  128. <view class="filter-content correlation-content" @click.stop>
  129. <view class="filter-header">
  130. <view class="filter-title">关联产品</view>
  131. <image class="filter-close-btn" src="@/static/image/icon_close.png" @click="showCorrelation = false"
  132. mode="">
  133. </image>
  134. </view>
  135. <!-- 注意:这里移出了 filter-header -->
  136. <view class="popup-content">
  137. <view class="head-item item">
  138. <view class="left">小蜜蜂</view>
  139. <view class="right">关联产品</view>
  140. </view>
  141. <view class="item" v-for="(row, index) in productData" :key="index">
  142. <view class="left">{{ row.assistant }}</view>
  143. <view class="right">
  144. <text v-for="(product, idx) in row.products" :key="idx" class="product-tag">
  145. {{ product }}<span v-if="idx < row.products.length - 1">、</span>
  146. </text>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <Server />
  153. </view>
  154. </template>
  155. <script>
  156. import utils from '@/utils/common.js'
  157. import Server from '@/components/Server.vue'
  158. import {
  159. speakerList
  160. } from '@/api/speaker'
  161. export default {
  162. components: {
  163. Server
  164. },
  165. data() {
  166. return {
  167. userInfo: JSON.parse(uni.getStorageSync('userInfo') || '{}'),
  168. productData: [{
  169. assistant: '王小明',
  170. products: ['302', '403', '202', '301']
  171. },
  172. {
  173. assistant: '李洋',
  174. products: ['301']
  175. }
  176. ],
  177. showCorrelation: false, //显示关联产品弹窗
  178. activeTab: '',
  179. // 状态标签
  180. identity: {},
  181. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  182. currentTab: '',
  183. showFilter: false,
  184. dateRange: {
  185. startDate: '',
  186. endDate: ''
  187. },
  188. tempDateRange: {
  189. startDate: '',
  190. endDate: ''
  191. },
  192. searchName: '',
  193. tabs: [{
  194. label: '全部',
  195. value: ''
  196. },
  197. {
  198. label: '待审核',
  199. value: '0'
  200. },
  201. {
  202. label: '已通过',
  203. value: '1'
  204. },
  205. {
  206. label: '已驳回',
  207. value: '2'
  208. }
  209. ],
  210. taskList: [],
  211. expandedItems: {},
  212. // 搜索防抖定时器
  213. searchTimer: null,
  214. // 成员筛选弹窗
  215. showMemberPopup: false,
  216. // 选中的成员选项
  217. selectedMember: 'all',
  218. // 选中的成员选项文本
  219. selectedMemberOption: '全员'
  220. }
  221. },
  222. watch: {
  223. showFilter(newVal) {
  224. if (newVal) {
  225. // 打开弹窗时,同步临时日期范围为当前日期范围
  226. this.tempDateRange = {
  227. startDate: this.dateRange.startDate,
  228. endDate: this.dateRange.endDate
  229. }
  230. }
  231. },
  232. // 监听搜索关键词变化,添加防抖处理
  233. searchName(newVal) {
  234. // 清除之前的定时器
  235. if (this.searchTimer) {
  236. clearTimeout(this.searchTimer)
  237. }
  238. // 设置新的定时器,300ms后执行搜索
  239. this.searchTimer = setTimeout(() => {
  240. this.loadData()
  241. }, 300)
  242. }
  243. },
  244. async onLoad() {
  245. this.loadData();
  246. try {
  247. this.identity = await utils.getDicts("doctor_account_identity_type");//学术头衔
  248. console.log("identity内容", this.identity)
  249. } catch (e) {
  250. console.log('获取字典数据失败:', e)
  251. this.identity = []
  252. }
  253. },
  254. onReachBottom() {
  255. this.loadMore()
  256. },
  257. methods: {
  258. expand(index) {
  259. this.$set(this.expandedItems, index, !this.expandedItems[index])
  260. },
  261. goBack() {
  262. uni.navigateBack()
  263. },
  264. switchTab(value) {
  265. this.currentTab = value
  266. this.loadData()
  267. },
  268. // 弹窗筛选栏切换
  269. switchFilterTab(value) {
  270. this.activeTab = value
  271. },
  272. closeFilter() {
  273. // 关闭弹窗时,恢复临时日期范围为当前日期范围
  274. this.tempDateRange = {
  275. startDate: this.dateRange.startDate,
  276. endDate: this.dateRange.endDate
  277. }
  278. this.showFilter = false
  279. },
  280. onStartDateChange(e) {
  281. this.tempDateRange.startDate = e.detail.value
  282. },
  283. onEndDateChange(e) {
  284. this.tempDateRange.endDate = e.detail.value
  285. },
  286. resetFilters() {
  287. this.activeTab = '';
  288. },
  289. confirmFilters() {
  290. // 验证日期范围
  291. if (this.tempDateRange.startDate && this.tempDateRange.endDate) {
  292. if (new Date(this.tempDateRange.startDate) > new Date(this.tempDateRange.endDate)) {
  293. uni.showToast({
  294. icon: 'none',
  295. title: '开始时间不能大于结束时间'
  296. })
  297. return
  298. }
  299. }
  300. this.dateRange = {
  301. startDate: this.tempDateRange.startDate,
  302. endDate: this.tempDateRange.endDate
  303. }
  304. this.showFilter = false
  305. this.loadData()
  306. },
  307. // 查看详情
  308. showDetail(item) {
  309. console.log("item内容", item)
  310. uni.navigateTo({
  311. url: `/pages_speaker/lecturerDetail?id=${item.id }`
  312. })
  313. },
  314. async loadData() {
  315. console.log("activeTab内容", this.currentTab)
  316. try {
  317. uni.showLoading({
  318. title: '加载中...'
  319. })
  320. this.userInfo = JSON.parse(uni.getStorageSync('userInfo') || '{}');
  321. console.log("userInfo内容", this.userInfo)
  322. const res = await speakerList({
  323. companyId: this.userInfo.companyId,
  324. page: 1,
  325. pageSize: 20,
  326. doctorName: this.searchName,
  327. status: this.currentTab
  328. })
  329. uni.hideLoading()
  330. if (res.code === 200 && res.rows) {
  331. // 直接使用接口返回的原始数据
  332. this.taskList = res.rows
  333. } else {
  334. this.taskList = this.getDefaultData()
  335. }
  336. } catch (e) {
  337. uni.hideLoading()
  338. console.error('加载数据失败', e)
  339. this.taskList = this.getDefaultData()
  340. }
  341. },
  342. async loadMore() {
  343. // 加载更多数据
  344. },
  345. // 定级申请
  346. applyLevel(item) {
  347. console.log('定级申请', item)
  348. uni.navigateTo({
  349. url: `/pages_speaker/gradeApplication?id=${item.id}&auditInstanceId=${item.auditInstanceId || item.id}&doctorId=${item.doctorId}`
  350. })
  351. },
  352. getDefaultData() {
  353. return []
  354. },
  355. // 选择成员选项
  356. selectMember(value, label) {
  357. this.selectedMember = value
  358. this.selectedMemberOption = label
  359. this.showMemberPopup = false
  360. // 这里可以添加根据选择的成员选项过滤数据的逻辑
  361. this.loadData()
  362. }
  363. }
  364. }
  365. </script>
  366. <style lang="stylus">
  367. .placeholder {
  368. color: #C8C9CC !important;
  369. font-size: 28rpx;
  370. color: #C8C9CC;
  371. }
  372. </style>
  373. <style lang="scss" scoped>
  374. .container {
  375. min-height: 100vh;
  376. background: #f5f5f5;
  377. display: flex;
  378. flex-direction: column;
  379. .top-box {
  380. position: relative;
  381. z-index: 99;
  382. padding: 16rpx 32rpx;
  383. display: flex;
  384. align-items: center;
  385. background: #ffffff;
  386. .input-item {
  387. display: flex;
  388. align-items: center;
  389. flex: 1;
  390. height: 72rpx;
  391. background: #F7F8FA;
  392. border-radius: 38rpx 38rpx 38rpx 38rpx;
  393. .icon {
  394. width: 26rpx;
  395. height: 26rpx;
  396. margin: 0 10rpx 0 28rpx;
  397. }
  398. }
  399. .filter-item {
  400. margin-left: 24rpx;
  401. display: flex;
  402. align-items: center;
  403. font-size: 28rpx;
  404. color: #999999;
  405. }
  406. }
  407. }
  408. .status-bar {
  409. width: 100%;
  410. background: #fff;
  411. }
  412. .header {
  413. position: relative;
  414. height: 88rpx;
  415. display: flex;
  416. align-items: center;
  417. justify-content: center;
  418. background: #fff;
  419. border-bottom: 1rpx solid #f0f0f0;
  420. .back-btn {
  421. position: absolute;
  422. left: 24rpx;
  423. width: 40rpx;
  424. height: 40rpx;
  425. image {
  426. width: 100%;
  427. height: 100%;
  428. }
  429. }
  430. .title {
  431. font-size: 36rpx;
  432. font-weight: bold;
  433. color: #333;
  434. }
  435. .header-right {
  436. position: absolute;
  437. right: 24rpx;
  438. display: flex;
  439. align-items: center;
  440. gap: 16rpx;
  441. .more-icon {
  442. font-size: 32rpx;
  443. color: #333;
  444. }
  445. }
  446. }
  447. .tab {
  448. position: relative;
  449. z-index: 99;
  450. .filter-bar {
  451. display: flex;
  452. align-items: center;
  453. background: #fff;
  454. padding: 0 40rpx;
  455. .filter-tabs {
  456. flex: 1;
  457. display: flex;
  458. align-items: center;
  459. gap: 64rpx;
  460. overflow-x: auto;
  461. .tab-item {
  462. padding: 24rpx 0;
  463. font-size: 28rpx;
  464. color: #999999;
  465. white-space: nowrap;
  466. position: relative;
  467. &.active {
  468. color: #333333;
  469. font-weight: 500;
  470. &::after {
  471. content: '';
  472. position: absolute;
  473. bottom: 0;
  474. left: 0;
  475. right: 0;
  476. height: 6rpx;
  477. background: #388BFF;
  478. border-radius: 3rpx 3rpx 3rpx 3rpx;
  479. }
  480. }
  481. }
  482. }
  483. .filter-divider {
  484. width: 1rpx;
  485. height: 40rpx;
  486. background: #e0e0e0;
  487. margin: 0 16rpx;
  488. }
  489. .filter-btn {
  490. display: flex;
  491. align-items: center;
  492. padding: 24rpx 0;
  493. font-size: 28rpx;
  494. color: #666666;
  495. .filter-icon {
  496. font-size: 32rpx;
  497. color: #333;
  498. }
  499. }
  500. }
  501. }
  502. .content {
  503. flex: 1;
  504. padding: 24rpx;
  505. box-sizing: border-box;
  506. }
  507. .task-card {
  508. background: #fff;
  509. border-radius: 16rpx;
  510. padding: 24rpx;
  511. margin-bottom: 24rpx;
  512. .card-header {
  513. display: flex;
  514. align-items: flex-start;
  515. justify-content: space-between;
  516. margin-bottom: 16rpx;
  517. .card-title {
  518. flex: 1;
  519. font-size: 32rpx;
  520. font-weight: 600;
  521. color: #333;
  522. display: flex;
  523. align-items: center;
  524. .title-little {
  525. font-size: 24rpx;
  526. color: #666666;
  527. margin-left: 36rpx;
  528. }
  529. .lable {
  530. margin-left: 16rpx;
  531. padding: 2rpx 12rpx;
  532. font-weight: 500;
  533. font-size: 22rpx;
  534. color: #C89743;
  535. background: #FFF6E5;
  536. border-radius: 8rpx 8rpx 8rpx 8rpx;
  537. }
  538. }
  539. .status-tag {
  540. padding: 8rpx 16rpx;
  541. border-radius: 20rpx;
  542. font-size: 24rpx;
  543. // &.pending {
  544. // background: #E3F2FD;
  545. // color: #2196F3;
  546. // }
  547. &.reviewing {
  548. background: #FFFBEA;
  549. color: #FAAB0C;
  550. }
  551. &.approved {
  552. background: #E6FAEF;
  553. color: #07C160;
  554. }
  555. &.rejected {
  556. background: #FFF4F5;
  557. color: #CF3546;
  558. }
  559. &.manual {
  560. background: #E3F2FD;
  561. color: #2196F3;
  562. }
  563. }
  564. }
  565. .card-tags {
  566. display: flex;
  567. align-items: center;
  568. flex-wrap: wrap;
  569. gap: 12rpx;
  570. margin-top: 20rpx;
  571. .tag-item {
  572. padding: 8rpx 16rpx;
  573. background: #FFFAF4;
  574. border-radius: 8rpx;
  575. font-size: 24rpx;
  576. color: #5D410F;
  577. display: flex;
  578. align-items: center;
  579. &.points-tag {
  580. color: #388BFF;
  581. background: transparent;
  582. border-radius: 8rpx 8rpx 8rpx 8rpx;
  583. border: 2rpx solid rgba(56, 139, 255, 0.4);
  584. }
  585. }
  586. }
  587. .row {
  588. display: flex;
  589. align-items: center;
  590. margin-bottom: 20rpx;
  591. font-size: 28rpx;
  592. color: #666666;
  593. .icon {
  594. width: 32rpx;
  595. height: 32rpx;
  596. margin-right: 16rpx;
  597. }
  598. .expand-icon {
  599. margin-left: 8rpx;
  600. transition: transform 0.3s;
  601. &.expanded {
  602. transform: rotate(180deg);
  603. }
  604. }
  605. .txt-container {
  606. flex: 1;
  607. overflow: hidden;
  608. }
  609. .txt {
  610. display: block;
  611. overflow: hidden;
  612. white-space: nowrap;
  613. text-overflow: ellipsis;
  614. &.expanded {
  615. white-space: normal;
  616. word-wrap: break-word;
  617. }
  618. }
  619. .line {
  620. width: 2rpx;
  621. height: 28rpx;
  622. background: #EAEBEE;
  623. border-radius: 0rpx 0rpx 0rpx 0rpx;
  624. margin: 0 24rpx;
  625. }
  626. }
  627. .apply-button {
  628. padding: 12rpx 40rpx;
  629. font-weight: 500;
  630. font-size: 28rpx;
  631. color: #FFFFFF;
  632. background: #388BFF;
  633. border-radius: 34rpx 34rpx 34rpx 34rpx;
  634. width: fit-content;
  635. margin-left: auto;
  636. }
  637. .card-warning {
  638. display: flex;
  639. align-items: center;
  640. gap: 8rpx;
  641. padding: 12rpx;
  642. background: #FFF3E0;
  643. border-radius: 8rpx;
  644. margin-bottom: 16rpx;
  645. font-size: 26rpx;
  646. color: #FF9800;
  647. .warning-icon {
  648. font-size: 28rpx;
  649. }
  650. }
  651. .card-rejection {
  652. display: flex;
  653. align-items: center;
  654. gap: 8rpx;
  655. padding: 10rpx 20rpx;
  656. background: #FFF4F5;
  657. border-radius: 8rpx;
  658. margin-bottom: 16rpx;
  659. font-size: 26rpx;
  660. color: #F44336;
  661. .rejection-icon {
  662. font-size: 28rpx;
  663. }
  664. }
  665. }
  666. .filter-popup {
  667. position: fixed;
  668. top: 0;
  669. left: 0;
  670. right: 0;
  671. bottom: 0;
  672. background: rgba(0, 0, 0, 0.5);
  673. z-index: 999;
  674. display: flex;
  675. align-items: flex-end;
  676. }
  677. .filter-content {
  678. width: 100%;
  679. background: #fff;
  680. border-radius: 24rpx 24rpx 0 0;
  681. padding: 32rpx;
  682. display: flex;
  683. flex-direction: column;
  684. max-height: 80vh;
  685. .popup-content {
  686. .item {
  687. height: 88rpx;
  688. display: flex;
  689. align-items: center;
  690. font-weight: 400;
  691. font-size: 28rpx;
  692. color: #333333;
  693. padding-left: 32rpx;
  694. }
  695. .head-item {
  696. font-weight: 600;
  697. color: #666666;
  698. }
  699. .left {
  700. width: 20%;
  701. }
  702. .right {
  703. flex: 1;
  704. }
  705. }
  706. /* 限制最大高度 */
  707. .filter-header {
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. margin-bottom: 32rpx;
  712. position: relative;
  713. flex-shrink: 0;
  714. /* 防止标题区域被压缩 */
  715. .filter-title {
  716. font-size: 32rpx;
  717. font-weight: bold;
  718. color: #333;
  719. text-align: center;
  720. }
  721. .filter-close-btn {
  722. position: absolute;
  723. right: 0;
  724. width: 44rpx;
  725. height: 44rpx;
  726. }
  727. }
  728. .filter-group {
  729. margin-bottom: 32rpx;
  730. .group-label {
  731. font-size: 28rpx;
  732. font-weight: bold;
  733. color: #333;
  734. margin-bottom: 20rpx;
  735. }
  736. .tabs-container {
  737. display: inline-flex;
  738. align-items: center;
  739. gap: 32rpx;
  740. flex-wrap: wrap;
  741. .tab-item {
  742. display: flex;
  743. align-items: center;
  744. gap: 8rpx;
  745. padding: 12rpx 0;
  746. position: relative;
  747. .tab-text {
  748. font-size: 28rpx;
  749. color: #666666;
  750. }
  751. .tab-count {
  752. font-size: 24rpx;
  753. color: #999999;
  754. background: #f5f6fa;
  755. padding: 2rpx 8rpx;
  756. border-radius: 12rpx;
  757. min-width: 32rpx;
  758. text-align: center;
  759. border: 2rpx solid transparent;
  760. }
  761. &.active {
  762. color: #333333;
  763. background: rgba(56, 139, 255, 0.15);
  764. border-radius: 70rpx 70rpx 70rpx 70rpx;
  765. border: 2rpx solid #388BFF;
  766. padding: 14rpx 32rpx;
  767. }
  768. }
  769. }
  770. }
  771. .filter-actions {
  772. display: flex;
  773. gap: 24rpx;
  774. margin-top: 40rpx;
  775. padding-top: 24rpx;
  776. flex-shrink: 0;
  777. .reset-btn,
  778. .confirm-btn {
  779. flex: 1;
  780. height: 80rpx;
  781. line-height: 80rpx;
  782. text-align: center;
  783. border-radius: 200rpx 200rpx 200rpx 200rpx;
  784. font-size: 28rpx;
  785. }
  786. .reset-btn {
  787. background: #fff;
  788. color: #388BFF;
  789. border: 2rpx solid #388BFF;
  790. }
  791. .confirm-btn {
  792. background: #388BFF;
  793. color: #fff;
  794. }
  795. }
  796. }
  797. /* 成员筛选弹窗样式 */
  798. .member-popup-overlay {
  799. position: fixed;
  800. top: 240rpx;
  801. left: 0;
  802. right: 0;
  803. bottom: 0;
  804. background: rgba(0, 0, 0, 0.5);
  805. z-index: 8;
  806. }
  807. .member-popup {
  808. position: fixed;
  809. top: 160rpx;
  810. left: 0;
  811. right: 0;
  812. background: #fff;
  813. border-radius: 0;
  814. padding: 32rpx;
  815. width: 100%;
  816. box-sizing: border-box;
  817. box-shadow: none;
  818. z-index: 9;
  819. }
  820. .member-options {
  821. display: flex;
  822. flex-wrap: wrap;
  823. gap: 24rpx;
  824. border-radius: 70rpx 70rpx 70rpx 70rpx;
  825. justify-content: flex-start;
  826. }
  827. .member-option {
  828. padding: 24rpx 14rpx;
  829. border-radius: 70rpx;
  830. font-size: 28rpx;
  831. color: #666666;
  832. background: #ffffff;
  833. border: 1rpx solid #e8e8e8;
  834. transition: all 0.2s ease;
  835. text-align: center;
  836. min-width: 214rpx;
  837. box-sizing: border-box;
  838. &.active {
  839. background: rgba(56,139,255,0.15);
  840. color: #ffffff;
  841. color: #388BFF;
  842. border: 1rpx solid #388BFF ;
  843. }
  844. }
  845. </style>