index.vue 21 KB

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