approvalCenter.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  1. <template>
  2. <view class="container">
  3. <!-- 搜索+筛选栏 -->
  4. <view class="top-box">
  5. <view class="input-item">
  6. <image class="icon search-icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/search.png" mode="widthFix"></image>
  7. <input v-model="searchKeywords" @input="handleSearchInput" placeholder="请输入发起人姓名、手机号" placeholder-class="placeholder" />
  8. </view>
  9. </view>
  10. <!-- 顶部选项卡 -->
  11. <view class="top-tabs">
  12. <view class="top-tab-item" :class="{ active: currentTopTab === index }" @click="switchTopTab(index)"
  13. v-for="(item, index) in topTabs" :key="index">
  14. {{ item.label }}·{{ item.badge }}
  15. </view>
  16. </view>
  17. <!-- 核心修改:新增子标签容器,作为popup-box的定位参考 -->
  18. <view class="sub-tabs-wrapper">
  19. <!-- 动态子标签 -->
  20. <view class="sub-tabs">
  21. <view class="sub-tab-item" :class="{ active: currentSubTab === item.value }" @click="popShow = !popShow"
  22. v-for="(item, index) in currentSubTabsList" :key="index">
  23. <text>{{ item.label }}</text>
  24. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_expand.png" mode="widthFix"></image>
  25. </view>
  26. </view>
  27. <!-- 使用tab-popup组件 -->
  28. <tab-popup v-model:show="popShow" :items="tabsList" :selected-item="selectedTabItem" @select="selectTabItem" />
  29. </view>
  30. <!-- 列表内容 -->
  31. <scroll-view class="content" scroll-y>
  32. <view class="task-card" v-for="(item, index) in currentList" :key="index" @click="goDetails(item)">
  33. <!-- 任务/审核标题+状态 -->
  34. <view class="card-top">
  35. <text class="card-task-title">{{ item.auditName || '未设置' }}</text>
  36. <view class="status-tag" :class="item.statusClass">{{ item.statusText }}</view>
  37. </view>
  38. <view class="card-content">
  39. <!-- 时间信息 -->
  40. <view class="time-info">
  41. <view class="time-item">
  42. <text class="title">任务名称:</text>
  43. <text>{{ item.auditName || '未设置' }}</text>
  44. </view>
  45. <view class="time-item">
  46. <text class="title">任务类型:</text>
  47. <text>{{ getBusinessTypeLabel(item.businessType) }}</text>
  48. </view>
  49. </view>
  50. <!-- 操作按钮 -->
  51. <view class="operate-btn-group">
  52. <view class="share-btn" @click="handleShare(item)">
  53. <image class="share-icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_user.png" mode="widthFix"></image>
  54. <text>{{ item.initiatorName || '未命名' }}</text>
  55. </view>
  56. <view class="date">
  57. {{ formatTime(item.createTime) }}
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </scroll-view>
  63. <!-- 筛选弹窗 -->
  64. <view class="filter-popup" v-if="showFilter" @click="closeFilter">
  65. <view class="filter-content" @click.stop>
  66. <view class="filter-header">
  67. <view class="filter-title">筛选</view>
  68. <image class="filter-close-btn" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_close.png" @click="closeFilter"
  69. mode="widthFix"></image>
  70. </view>
  71. <view class="filter-form">
  72. <!-- 任务申请时间 -->
  73. <view class="filter-section">
  74. <view class="section-label">任务申请时间</view>
  75. <view class="time-range">
  76. <input class="time-input" placeholder="开始时间" v-model="filters.applyTimeStart" />
  77. <view class="time-separator">-</view>
  78. <input class="time-input" placeholder="结束时间" v-model="filters.applyTimeEnd" />
  79. </view>
  80. </view>
  81. <!-- 任务完成时间:改为判断index:1对应已办 -->
  82. <view class="filter-section" v-if="currentTopTab === 1">
  83. <view class="section-label">任务完成时间</view>
  84. <view class="time-range">
  85. <input class="time-input" placeholder="开始时间" v-model="filters.finishTimeStart" />
  86. <view class="time-separator">-</view>
  87. <input class="time-input" placeholder="结束时间" v-model="filters.finishTimeEnd" />
  88. </view>
  89. </view>
  90. <!-- 完成审核时间:改为判断index:1对应已办 -->
  91. <view class="filter-section" v-if="currentTopTab === 1">
  92. <view class="section-label">完成审核时间</view>
  93. <view class="time-range">
  94. <input class="time-input" placeholder="开始时间" v-model="filters.auditTimeStart" />
  95. <view class="time-separator">-</view>
  96. <input class="time-input" placeholder="结束时间" v-model="filters.auditTimeEnd" />
  97. </view>
  98. </view>
  99. <!-- 任务归属 -->
  100. <view class="filter-section">
  101. <view class="section-label">任务归属</view>
  102. <view class="btn-group">
  103. <view class="filter-btn" :class="{ active: filters.taskBelong === 'my' }"
  104. @click="filters.taskBelong = 'my'">我的任务</view>
  105. <view class="filter-btn" :class="{ active: filters.taskBelong === 'dept' }"
  106. @click="filters.taskBelong = 'dept'">部门任务</view>
  107. </view>
  108. </view>
  109. <!-- 完结状态:改为判断index:1对应已办 -->
  110. <view class="filter-section" v-if="currentTopTab === 1">
  111. <view class="section-label">完结状态</view>
  112. <view class="btn-group">
  113. <view class="filter-btn" :class="{ active: filters.finishStatus === 'unfinished' }"
  114. @click="filters.finishStatus = 'unfinished'">未完结</view>
  115. <view class="filter-btn" :class="{ active: filters.finishStatus === 'finished' }"
  116. @click="filters.finishStatus = 'finished'">已完结</view>
  117. </view>
  118. </view>
  119. <!-- 归属类型 -->
  120. <view class="filter-section">
  121. <view class="section-label">归属类型</view>
  122. <view class="btn-group">
  123. <view class="filter-btn" :class="{ active: filters.belongType === 'inner' }"
  124. @click="filters.belongType = 'inner'">院内</view>
  125. <view class="filter-btn" :class="{ active: filters.belongType === 'outer' }"
  126. @click="filters.belongType = 'outer'">院外</view>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="filter-actions">
  131. <view class="reset-btn" @click="resetFilters">重置</view>
  132. <view class="confirm-btn" @click="confirmFilters">确定</view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. import utils from '@/utils/common.js'
  140. import TabPopup from '@/components/tab-popup.vue'
  141. import { getPendingAuditList, searchCompanyUser } from '@/api/audit.js'
  142. export default {
  143. components: {
  144. TabPopup
  145. },
  146. data() {
  147. return {
  148. processTemplate: null,
  149. popShow: false,
  150. showFilter: false,
  151. selectedTabItem: '',
  152. searchKeywords: '',
  153. searchTimer: null,
  154. filters: {
  155. applyTimeStart: '',
  156. applyTimeEnd: '',
  157. finishTimeStart: '',
  158. finishTimeEnd: '',
  159. auditTimeStart: '',
  160. auditTimeEnd: '',
  161. taskBelong: 'my',
  162. finishStatus: '',
  163. belongType: ''
  164. },
  165. // 顶部选项卡数组
  166. topTabs: [{
  167. label: '待办',
  168. value: 'todo',
  169. badge: 0
  170. },
  171. {
  172. label: '已办',
  173. value: 'done',
  174. badge: 0
  175. },
  176. {
  177. label: '我发起的',
  178. value: 'myInitiate',
  179. badge: 0
  180. }
  181. ],
  182. currentTopTab: 0,
  183. currentSubTab: 'all',
  184. // 子标签数组
  185. taskSubTabs: [{
  186. label: '全部审批',
  187. value: 'all'
  188. },
  189. {
  190. label: '最新发起',
  191. value: 'unfinished'
  192. }
  193. ],
  194. tabsList: ['全部审批', '任务创建'],
  195. tabsList2: ['最新发起', '最早发起'],
  196. // auditSubTabs: [{
  197. // label: '全部',
  198. // value: 'all'
  199. // },
  200. // {
  201. // label: '驳回',
  202. // value: 'rejected'
  203. // }
  204. // ],
  205. // 加载状态
  206. loading: {
  207. todo: false,
  208. done: false,
  209. myInitiate: false
  210. },
  211. // 列表数据
  212. todoList: [], // 待办列表(index=0)
  213. doneList: [], // 已办列表(index=1)
  214. myInitiateList: [] // 我发起的列表(index=2)
  215. }
  216. },
  217. computed: {
  218. currentSubTabsList() {
  219. return this.taskSubTabs;
  220. // if (this.currentTopTab === 0) return this.taskSubTabs;
  221. // if (this.currentTopTab === 1) return this.auditSubTabs;
  222. // if (this.currentTopTab === 2) return this.myInitiateList;
  223. },
  224. currentList() {
  225. if (this.currentTopTab === 0) return this.todoList;
  226. if (this.currentTopTab === 1) return this.doneList;
  227. if (this.currentTopTab === 2) return this.myInitiateList;
  228. }
  229. },
  230. onLoad() {
  231. // 页面加载时的初始化操作
  232. this.loadData();
  233. utils.getDicts("FLOW_TEMPLATE").then(res => {
  234. this.processTemplate = res;
  235. console.log("流程模板", this.processTemplate)
  236. });
  237. },
  238. methods: {
  239. selectTabItem(item) {
  240. this.selectedTabItem = item;
  241. this.popShow = false;
  242. },
  243. goDetails(item) {
  244. console.log("跳转参数",item)
  245. uni.navigateTo({
  246. url: `/pages_task/approvalTaskDetail?taskId=${item.id}&businessType=${item.businessType}`
  247. })
  248. },
  249. switchTopTab(index) {
  250. this.currentTopTab = index;
  251. this.currentSubTab = 'all';
  252. this.popShow = false;
  253. // 切换标签时重新加载数据
  254. this.loadData();
  255. },
  256. closeFilter() {
  257. this.showFilter = false
  258. },
  259. resetFilters() {
  260. this.filters = {
  261. applyTimeStart: '',
  262. applyTimeEnd: '',
  263. finishTimeStart: '',
  264. finishTimeEnd: '',
  265. auditTimeStart: '',
  266. auditTimeEnd: '',
  267. taskBelong: 'my',
  268. finishStatus: '',
  269. belongType: ''
  270. }
  271. },
  272. confirmFilters() {
  273. this.showFilter = false
  274. console.log('筛选条件:', this.filters)
  275. // 筛选后重新加载数据
  276. this.loadData()
  277. },
  278. handleShare(item) {
  279. uni.showToast({
  280. title: '分享功能待实现',
  281. icon: 'none'
  282. })
  283. },
  284. handleSearchInput() {
  285. // 防抖处理,避免频繁请求
  286. if (this.searchTimer) {
  287. clearTimeout(this.searchTimer)
  288. }
  289. this.searchTimer = setTimeout(async () => {
  290. if (this.searchKeywords.trim()) {
  291. try {
  292. // 调用搜索发起人接口
  293. const res = await searchCompanyUser({
  294. keywords: this.searchKeywords.trim(),
  295. pageNum: 1,
  296. pageSize: 10
  297. })
  298. if (res.code === 200 && res.rows) {
  299. // 根据当前标签页更新对应列表
  300. if (this.currentTopTab === 0) {
  301. this.todoList = res.rows.map(item => ({
  302. auditName: item.auditName || '未知审核',
  303. statusText: '待审核',
  304. statusClass: 'status-createPending',
  305. id: item.id,
  306. status: item.status,
  307. auditType: item.auditType,
  308. businessId: item.businessId,
  309. businessType: item.businessType,
  310. createTime: item.createTime,
  311. initiatorName: item.initiatorName
  312. }))
  313. } else if (this.currentTopTab === 1) {
  314. this.doneList = res.rows.map(item => ({
  315. auditName: item.auditName || '未知审核',
  316. statusText: item.status === 1 ? '已通过' : '已驳回',
  317. statusClass: item.status === 1 ? 'status-finish' : 'status-rejected',
  318. id: item.id,
  319. status: item.status,
  320. auditType: item.auditType,
  321. businessId: item.businessId,
  322. businessType: item.businessType,
  323. createTime: item.createTime,
  324. initiatorName: item.initiatorName
  325. }))
  326. } else if (this.currentTopTab === 2) {
  327. this.myInitiateList = res.rows.map(item => ({
  328. auditName: item.auditName || '未知审核',
  329. statusText: '待审核',
  330. statusClass: 'status-createPending',
  331. id: item.id,
  332. status: item.status,
  333. auditType: item.auditType,
  334. businessId: item.businessId,
  335. businessType: item.businessType,
  336. createTime: item.createTime,
  337. initiatorName: item.initiatorName
  338. }))
  339. }
  340. } else {
  341. // 搜索结果为空,清空对应列表
  342. if (this.currentTopTab === 0) {
  343. this.todoList = []
  344. } else if (this.currentTopTab === 1) {
  345. this.doneList = []
  346. } else if (this.currentTopTab === 2) {
  347. this.myInitiateList = []
  348. }
  349. }
  350. } catch (e) {
  351. console.error('搜索失败', e)
  352. uni.showToast({
  353. title: '搜索失败',
  354. icon: 'none'
  355. })
  356. }
  357. } else {
  358. // 搜索框为空,重新加载默认数据
  359. this.loadData()
  360. }
  361. }, 300)
  362. },
  363. // 加载审批数据
  364. async loadData() {
  365. try {
  366. // 无论当前标签是什么,都调用getPendingAuditList请求
  367. const userInfoStr = uni.getStorageSync('userInfo')
  368. const userInfo = userInfoStr ? (typeof userInfoStr === 'string' ? JSON.parse(userInfoStr) : userInfoStr) : {}
  369. const params = {
  370. initiatorName: userInfo.nickName || '',
  371. initiatorPhone: userInfo.phone || '',
  372. // initiatorId: 0,
  373. status: userInfo.status|| '',
  374. // tempCode: userInfo.productCode || '',
  375. sort: 0,
  376. userId:userInfo.userId|| '',
  377. companyId: userInfo.companyId || 0
  378. }
  379. const res = await getPendingAuditList(params)
  380. if (res.code === 200) {
  381. // 处理返回的数据
  382. const responseData = res.rows|| [];
  383. // 根据status分类数据
  384. const todoData = responseData.filter(item => item.status === 1);
  385. const doneData = responseData.filter(item => item.status === 2);
  386. const myInitiateData = responseData.filter(item => item.status === 3);
  387. // 更新对应列表
  388. if (this.currentTopTab === 0) {
  389. // 待办列表
  390. this.loading.todo = true
  391. this.todoList = todoData.map(item => ({
  392. auditName: item.auditName || '未知审核',
  393. statusText: '待审核',
  394. statusClass: 'status-createPending',
  395. id: item.id,
  396. status: item.status,
  397. auditType: item.auditType,
  398. businessId: item.businessId,
  399. businessType: item.businessType,
  400. createTime: item.createTime,
  401. initiatorName:item.initiatorName
  402. }))
  403. this.loading.todo = false
  404. } else if (this.currentTopTab === 1) {
  405. // 已办列表
  406. this.loading.done = true
  407. this.doneList = doneData.map(item => ({
  408. auditName: item.auditName || '未知审核',
  409. statusText: item.status === 1 ? '已通过' : '已驳回',
  410. statusClass: item.status === 1 ? 'status-finish' : 'status-rejected',
  411. id: item.id,
  412. status: item.status,
  413. auditType: item.auditType,
  414. businessId: item.businessId,
  415. businessType: item.businessType,
  416. createTime: item.createTime,
  417. initiatorName:item.initiatorName
  418. }))
  419. this.loading.done = false
  420. } else if (this.currentTopTab === 2) {
  421. // 我发起的列表
  422. this.loading.myInitiate = true
  423. this.myInitiateList = myInitiateData.map(item => ({
  424. auditName: item.auditName || '未知审核',
  425. statusText: '待审核',
  426. statusClass: 'status-createPending',
  427. id: item.id,
  428. status: item.status,
  429. auditType: item.auditType,
  430. businessId: item.businessId,
  431. businessType: item.businessType,
  432. createTime: item.createTime,
  433. initiatorName:item.initiatorName
  434. }))
  435. this.loading.myInitiate = false
  436. }
  437. // 更新badge数量
  438. this.topTabs[0].badge = todoData.length
  439. this.topTabs[1].badge = doneData.length
  440. this.topTabs[2].badge = myInitiateData.length
  441. } else {
  442. uni.showToast({
  443. title: '获取审核列表失败',
  444. icon: 'none'
  445. })
  446. }
  447. } catch (e) {
  448. console.error('加载数据失败', e)
  449. uni.showToast({
  450. title: '加载数据失败',
  451. icon: 'none'
  452. })
  453. // 重置加载状态
  454. this.loading.todo = false
  455. this.loading.done = false
  456. this.loading.myInitiate = false
  457. }
  458. },
  459. // 格式化时间
  460. formatTime(timeStr) {
  461. if (!timeStr) return ''
  462. const date = new Date(timeStr)
  463. const year = date.getFullYear()
  464. const month = String(date.getMonth() + 1).padStart(2, '0')
  465. const day = String(date.getDate()).padStart(2, '0')
  466. const hours = String(date.getHours()).padStart(2, '0')
  467. const minutes = String(date.getMinutes()).padStart(2, '0')
  468. return `${year}-${month}-${day} ${hours}:${minutes}`
  469. },
  470. getBusinessTypeLabel(businessType) {
  471. if (!businessType || !this.processTemplate) {
  472. return '未设置'
  473. }
  474. const dictItem = this.processTemplate.find(item => item.dictValue === businessType)
  475. return dictItem ? dictItem.dictLabel : businessType
  476. }
  477. }
  478. }
  479. </script>
  480. <style lang="scss" scoped>
  481. .container {
  482. min-height: 100vh;
  483. background: #F7F8FA;
  484. position: relative;
  485. // 搜索栏
  486. .top-box {
  487. padding: 20rpx 32rpx;
  488. display: flex;
  489. align-items: center;
  490. background: #fff;
  491. position: relative;
  492. z-index: 101;
  493. .input-item {
  494. display: flex;
  495. align-items: center;
  496. flex: 1;
  497. height: 72rpx;
  498. background: #F7F8FA;
  499. border-radius: 38rpx;
  500. .search-icon {
  501. width: 26rpx;
  502. height: 26rpx;
  503. margin: 0 10rpx 0 28rpx;
  504. }
  505. input {
  506. flex: 1;
  507. font-size: 28rpx;
  508. color: #333;
  509. }
  510. }
  511. }
  512. // 顶部选项卡
  513. .top-tabs {
  514. display: flex;
  515. background: #fff;
  516. position: relative;
  517. z-index: 101;
  518. .top-tab-item {
  519. flex: 1;
  520. text-align: center;
  521. padding: 24rpx 0;
  522. font-size: 28rpx;
  523. color: #999;
  524. transition: all 0.2s;
  525. &.active {
  526. color: #333;
  527. font-weight: 500;
  528. position: relative;
  529. &::after {
  530. content: '';
  531. position: absolute;
  532. bottom: 0;
  533. left: 50%;
  534. transform: translateX(-50%);
  535. border-radius: 3rpx;
  536. width: 80rpx;
  537. height: 6rpx;
  538. background: #388BFF;
  539. }
  540. }
  541. }
  542. }
  543. // 核心修改:子标签容器(定位参考)
  544. .sub-tabs-wrapper {
  545. position: relative; // 作为popup-box的定位参考
  546. z-index: 101; // 确保在遮罩层之上
  547. // 子标签栏
  548. .sub-tabs {
  549. display: flex;
  550. justify-content: space-between;
  551. background: #fff;
  552. padding: 16rpx 32rpx;
  553. gap: 24rpx;
  554. .sub-tab-item {
  555. flex: 1;
  556. height: 64rpx;
  557. display: flex;
  558. border-radius: 70rpx;
  559. border: 2rpx solid #F2F2F2;
  560. justify-content: center;
  561. align-items: center;
  562. font-size: 28rpx;
  563. color: #666;
  564. transition: all 0.2s;
  565. .icon {
  566. width: 28rpx;
  567. height: 28rpx;
  568. margin-left: 12rpx;
  569. }
  570. }
  571. }
  572. }
  573. // 列表区域
  574. .content {
  575. padding: 24rpx;
  576. box-sizing: border-box;
  577. min-height: calc(100vh - 300rpx);
  578. position: relative;
  579. z-index: 98; // 低于遮罩层
  580. .task-card {
  581. background: #fff;
  582. border-radius: 24rpx;
  583. margin-bottom: 20rpx;
  584. border: 2rpx solid #E9F2FF;
  585. position: relative;
  586. padding-bottom: 24rpx;
  587. .card-top {
  588. display: flex;
  589. justify-content: space-between;
  590. align-items: center;
  591. background: linear-gradient(90deg, #E8F1FF 0%, #FFFFFF 100%);
  592. border-radius: 24rpx 24rpx 0 0;
  593. padding: 26rpx 24rpx;
  594. margin-bottom: 16rpx;
  595. .card-task-title {
  596. font-size: 32rpx;
  597. font-weight: 600;
  598. color: #333;
  599. }
  600. .status-tag {
  601. padding: 8rpx 16rpx;
  602. border-radius: 20rpx;
  603. font-size: 24rpx;
  604. &.status-wait {
  605. background: #E3F2FD;
  606. color: #2196F3;
  607. }
  608. &.status-finish {
  609. background: #E6FAEF;
  610. color: #07C160;
  611. }
  612. &.status-rejected {
  613. background: #FFF4F5;
  614. color: #CF3546;
  615. }
  616. &.status-createPending {
  617. background: #FFF8E6;
  618. color: #FF9500;
  619. }
  620. }
  621. }
  622. .card-content {
  623. padding: 0 24rpx;
  624. .time-info {
  625. font-size: 28rpx;
  626. color: #666;
  627. display: flex;
  628. flex-direction: column;
  629. gap: 8rpx;
  630. margin-bottom: 24rpx;
  631. .time-item {
  632. display: flex;
  633. font-size: 28rpx;
  634. color: #333;
  635. .title {
  636. color: #666;
  637. }
  638. }
  639. }
  640. .operate-btn-group {
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. .share-btn {
  645. display: flex;
  646. align-items: center;
  647. font-size: 28rpx;
  648. color: #666;
  649. .share-icon {
  650. width: 36rpx;
  651. height: 36rpx;
  652. margin-right: 8rpx;
  653. }
  654. }
  655. .date {
  656. font-size: 24rpx;
  657. color: #999;
  658. }
  659. }
  660. }
  661. }
  662. }
  663. // 筛选弹窗
  664. .filter-popup {
  665. position: fixed;
  666. top: 0;
  667. left: 0;
  668. right: 0;
  669. bottom: 0;
  670. background: rgba(0, 0, 0, 0.5);
  671. z-index: 999;
  672. display: flex;
  673. align-items: flex-end;
  674. .filter-content {
  675. width: 100%;
  676. background: #fff;
  677. border-radius: 24rpx 24rpx 0 0;
  678. padding: 32rpx;
  679. .filter-header {
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. margin-bottom: 32rpx;
  684. position: relative;
  685. .filter-title {
  686. font-size: 32rpx;
  687. font-weight: bold;
  688. color: #333;
  689. }
  690. .filter-close-btn {
  691. position: absolute;
  692. right: 0;
  693. width: 44rpx;
  694. height: 44rpx;
  695. }
  696. }
  697. .filter-form {
  698. padding: 0 0 24rpx 0;
  699. .filter-section {
  700. margin-bottom: 32rpx;
  701. .section-label {
  702. font-weight: 500;
  703. font-size: 28rpx;
  704. color: #333;
  705. margin-bottom: 24rpx;
  706. }
  707. .time-range {
  708. display: flex;
  709. align-items: center;
  710. gap: 16rpx;
  711. .time-input {
  712. flex: 1;
  713. height: 72rpx;
  714. text-align: center;
  715. background: #F7F8FA;
  716. border-radius: 8rpx;
  717. padding: 0 16rpx;
  718. font-size: 26rpx;
  719. color: #333;
  720. }
  721. .time-separator {
  722. font-size: 24rpx;
  723. color: #999;
  724. }
  725. }
  726. .btn-group {
  727. display: flex;
  728. gap: 16rpx;
  729. .filter-btn {
  730. width: 214rpx;
  731. height: 72rpx;
  732. background: #F7F8FA;
  733. border-radius: 70rpx;
  734. line-height: 72rpx;
  735. text-align: center;
  736. font-size: 28rpx;
  737. transition: all 0.2s;
  738. color: #333;
  739. &.active {
  740. background: rgba(56, 139, 255, 0.15);
  741. color: #388BFF;
  742. }
  743. }
  744. }
  745. }
  746. }
  747. .filter-actions {
  748. display: flex;
  749. gap: 24rpx;
  750. margin-top: 40rpx;
  751. .reset-btn,
  752. .confirm-btn {
  753. flex: 1;
  754. height: 80rpx;
  755. line-height: 80rpx;
  756. text-align: center;
  757. border-radius: 200rpx;
  758. font-size: 28rpx;
  759. transition: all 0.2s;
  760. }
  761. .reset-btn {
  762. background: #fff;
  763. color: #388BFF;
  764. border: 2rpx solid #388BFF;
  765. &:active {
  766. background: #EBF3FF;
  767. }
  768. }
  769. .confirm-btn {
  770. background: #388BFF;
  771. color: #fff;
  772. &:active {
  773. background: #2A78E5;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }
  780. </style>