index.vue 21 KB

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