| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077 |
- <template>
- <view class="container">
- <!-- 搜索+筛选栏 -->
- <view class="top-box">
- <view class="input-item">
- <image class="icon search-icon" src="@/static/image/search.png" mode="widthFix"></image>
- <input placeholder="请输入客户姓名/机构名称" placeholder-class="placeholder" />
- </view>
- <view class="filter-item" @click="showFilter = true">
- <image class="filter-icon" src="@/static/image/icon_select.png" mode="widthFix"></image>
- <text>筛选</text>
- </view>
- </view>
- <!-- 顶部选项卡:任务列表/审核列表 -->
- <view class="top-tabs">
- <view class="top-tab-item" :class="{ active: currentTopTab === 'task' }" @click="switchTopTab('task')">
- 任务列表
- </view>
- <view class="top-tab-item" :class="{ active: currentTopTab === 'audit' }" @click="switchTopTab('audit')">
- 审核列表
- </view>
- </view>
- <!-- 动态子标签 -->
- <view class="sub-tabs">
- <view class="sub-tab-item" :class="{ active: currentSubTab === item.value }"
- @click="currentSubTab = item.value" v-for="(item, index) in currentSubTabsList" :key="index">
- {{ item.label }}
- </view>
- </view>
- <!-- 列表内容 -->
- <scroll-view class="content" scroll-y>
- <view class="task-card" v-for="(item, index) in currentList" :key="index" @click="goDetails(item)">
- <!-- 任务/审核标题+状态 -->
- <view class="card-top">
- <text class="card-task-title">{{ item.taskTitle }}</text>
- <view class="status-tag" :class="item.statusClass">{{ item.statusText }}</view>
- </view>
- <view class="card-content">
- <!-- 讲者信息 -->
- <view class="speaker-info">
- <text class="speaker-name">{{ item.doctorName||'未命名' }}</text>
- <view class="level-tag" v-if="item.level">{{ item.level }}</view>
- </view>
- <!-- 医院+科室 -->
- <view class="org-info">
- <image class="org-icon" src="@/static/image/icon_hospital.png" mode="widthFix"></image>
- <text>{{ item.hospital ||'-' }}</text>
- <view class="line"></view>
- <text>{{ item.department||'-' }}</text>
- </view>
- <!-- 标签组 -->
- <view class="card-tags">
- <view class="tag-left-group">
- <view class="tag-item video-tag" v-if="item.videoType">
- <image class="video-tag-icon" src="@/static/image/icon_longvideo.png" mode="widthFix">
- </image>
- <text>{{ item.videoType ||'-'}}</text>
- </view>
- <view class="tag-item category-tag" v-if="item.category">
- {{ item.category }}
- </view>
- </view>
- <view class="tag-right-group">
- <view class="tag-item points-tag">{{ item.points||'0' }}积分</view>
- <view class="tag-item count-tag">{{ item.count ||'0' }}个</view>
- <view class="tag-item count-tag">院内</view>
- </view>
- </view>
- <!-- 时间信息 -->
- <view class="time-info">
- <view class="time-item">
- <text>申请时间:</text>
- <text>{{ item.applyTime ||'-'}}</text>
- </view>
- <view class="time-item" v-if="currentTopTab === 'task'">
- <text>完成时间:</text>
- <text>{{ item.updateTime || '-' }}</text>
- </view>
- <view class="time-item" v-if="currentTopTab === 'task'">
- <text>完成审核:</text>
- <text>{{ item.auditStatus || '-' }}</text>
- </view>
- </view>
- <!-- 操作按钮 -->
- <view class="operate-btn-group" v-if="currentTopTab === 'task'">
- <view class="share-btn" @click="handleShare(item)">
- <image class="share-icon" src="/static/image/icon_share.png" mode="widthFix"></image>
- <text>分享</text>
- </view>
- <view class="btn-group">
- <view class="btn" v-if="item.showDelete" @click.stop="handleTaskDelete(item, index)">删除</view>
- <view class="btn" @click.stop="handleCopy(item)">复制创建</view>
- </view>
- </view>
- <view class="operate-btn-group flex-end" v-else>
- <view class="btn-group">
- <view class="btn" v-if="item.showDelete" @click.stop="handleAuditDelete(item, index)">删除</view>
- <view class="btn" v-if="item.showEdit" @click.stop="handleEdit(item)">编辑</view>
- </view>
- </view>
- <!-- 状态印章 -->
- <image class="status-seal" :src="item.sealImg" mode="widthFix" v-if="currentTopTab === 'task'">
- </image>
- </view>
- </view>
- </scroll-view>
- <view class="side">
- <view class="side-item" >
- <image class="icon" @click="goCreate" src="/static/image/btn_add.png"></image>
- </view>
- <view class="side-item" >
- <image class="icon" @click="goData" src="/static/image/btn_data.png"></image>
- </view>
- </view>
- <!-- 筛选弹窗 -->
- <view class="filter-popup" v-if="showFilter" @click="closeFilter">
- <view class="filter-content" @click.stop>
- <view class="filter-header">
- <view class="filter-title">筛选</view>
- <image class="filter-close-btn" src="@/static/image/icon_close.png" @click="closeFilter"
- mode="widthFix"></image>
- </view>
- <view class="filter-form">
- <!-- 任务申请时间 -->
- <view class="filter-section">
- <view class="section-label">任务申请时间</view>
- <view class="time-range">
- <view class="time-input" @click="openDatePicker('applyTimeStart')">{{ filters.applyTimeStart || '开始时间' }}</view>
- <view class="time-separator">-</view>
- <view class="time-input" @click="openDatePicker('applyTimeEnd')">{{ filters.applyTimeEnd || '结束时间' }}</view>
- </view>
- </view>
- <!-- 任务完成时间 -->
- <view class="filter-section" v-if="currentTopTab === 'audit'">
- <view class="section-label">任务完成时间</view>
- <view class="time-range">
- <view class="time-input" @click="openDatePicker('finishTimeStart')">{{ filters.finishTimeStart || '开始时间' }}</view>
- <view class="time-separator">-</view>
- <view class="time-input" @click="openDatePicker('finishTimeEnd')">{{ filters.finishTimeEnd || '结束时间' }}</view>
- </view>
- </view>
- <!-- 完成审核时间 -->
- <view class="filter-section" v-if="currentTopTab === 'audit'">
- <view class="section-label">完成审核时间</view>
- <view class="time-range">
- <view class="time-input" @click="openDatePicker('auditTimeStart')">{{ filters.auditTimeStart || '开始时间' }}</view>
- <view class="time-separator">-</view>
- <view class="time-input" @click="openDatePicker('auditTimeEnd')">{{ filters.auditTimeEnd || '结束时间' }}</view>
- </view>
- </view>
- <!-- 任务归属 -->
- <view class="filter-section">
- <view class="section-label">任务归属</view>
- <view class="btn-group">
- <view class="filter-btn" :class="{ active: filters.taskBelong === 'my' }"
- @click="filters.taskBelong = 'my'">我的任务</view>
- <view class="filter-btn" :class="{ active: filters.taskBelong === 'dept' }"
- @click="filters.taskBelong = 'dept'">部门任务</view>
- </view>
- </view>
- <!-- 完结状态 -->
- <view class="filter-section" v-if="currentTopTab === 'audit'">
- <view class="section-label">完结状态</view>
- <view class="btn-group">
- <view class="filter-btn" :class="{ active: filters.finishStatus === 'unfinished' }"
- @click="filters.finishStatus = 'unfinished'">未完结</view>
- <view class="filter-btn" :class="{ active: filters.finishStatus === 'finished' }"
- @click="filters.finishStatus = 'finished'">已完结</view>
- </view>
- </view>
- <!-- 归属类型 -->
- <view class="filter-section">
- <view class="section-label">归属类型</view>
- <view class="btn-group">
- <view class="filter-btn" :class="{ active: filters.belongType === 'inner' }"
- @click="filters.belongType = 'inner'">院内</view>
- <view class="filter-btn" :class="{ active: filters.belongType === 'outer' }"
- @click="filters.belongType = 'outer'">院外</view>
- </view>
- </view>
- </view>
- <view class="filter-actions">
- <view class="reset-btn" @click="resetFilters">重置</view>
- <view class="confirm-btn" @click="confirmFilters">确定</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { list, deleted, company } from '@/api/task.js';
- export default {
- data() {
- return {
- showFilter: false,
- filters: {
- applyTimeStart: '',
- applyTimeEnd: '',
- finishTimeStart: '',
- finishTimeEnd: '',
- auditTimeStart: '',
- auditTimeEnd: '',
- taskBelong: 'my',
- finishStatus: '',
- belongType: ''
- },
- currentTopTab: 'task',
- currentSubTab: 'all',
- taskSubTabs: [{
- label: '全部任务',
- value: 'all'
- },
- {
- label: '未完成',
- value: 'unfinished'
- },
- {
- label: '已完成',
- value: 'finished'
- }
- ],
- auditSubTabs: [{
- label: '全部',
- value: 'all'
- },
- {
- label: '创建待审批',
- value: 'createPending'
- },
- {
- label: '完成待审批',
- value: 'finishPending'
- },
- {
- label: '驳回',
- value: 'rejected'
- }
- ],
- taskList: [{
- taskTitle: '王小明医生的学术讲座',
- statusText: '待完成',
- statusClass: 'status-wait',
- speaker: '王小明',
- level: '一级',
- hospital: '湖南省人民医院',
- department: '口腔科',
- videoType: '长视频',
- category: '学术',
- points: 10,
- count: 1,
- applyTime: '2025-9-20 13:55',
- finishTime: '-',
- auditStatus: '-',
- showDelete: true,
- sealImg: '/static/image/img_unfinish.png'
- }],
- auditList: [{
- taskTitle: '王小明医生的学术讲座',
- statusText: '创建驳回',
- statusClass: 'status-rejected',
- speaker: '王小明',
- level: '一级',
- hospital: '湖南省人民医院',
- department: '口腔科',
- videoType: '长视频',
- category: '学术',
- points: 10,
- count: 1,
- applyTime: '2025-9-20 13:55',
- showDelete: true,
- showEdit: true
- }],
- userInfo: {
- companyId: ''
- }
- }
- },
- computed: {
- currentSubTabsList() {
- return this.currentTopTab === 'task' ? this.taskSubTabs : this.auditSubTabs;
- },
- currentList() {
- return this.currentTopTab === 'task' ? this.taskList : this.auditList;
- }
- },
- mounted() {
- this.loadData();
- },
- methods: {
- loadData() {
- // 加载任务列表数据
- this.getTaskList();
- // 加载公司项目设置
- this.getCompanySettings();
- },
- getTaskList() {
- // 构建请求参数
- const params = {
- ...this.filters,
- type: this.currentTopTab,
- status: this.currentSubTab
- };
-
- uni.showLoading({
- title: '加载中...'
- });
-
- list(params).then(res => {
- uni.hideLoading();
- if (res.code === 200 && res.rows) {
- // 处理任务列表数据
- if (this.currentTopTab === 'task') {
- this.taskList = res.rows.map(item => ({
- id: item.id,
- taskTitle: item.taskName,
- statusText: this.getStatusText(item.taskStatus),
- statusClass: this.getStatusClass(item.taskStatus),
- speaker: item.doctorName,
- level: '', // 接口返回数据中没有level字段
- hospital: item.deptName, // 使用deptName作为hospital
- department: item.deptName, // 使用deptName作为department
- videoType: item.taskTypeName, // 使用taskTypeName作为videoType
- category: item.taskTypeName, // 使用taskTypeName作为category
- points: item.taskIntegral,
- count: item.taskCount,
- applyTime: item.createTime,
- finishTime: item.finishAuditTime || '-',
- auditStatus: this.getAuditStatusText(item.finishAuditStatus),
- showDelete: true,
- sealImg: item.taskStatus === 1 ? '/static/image/img_finish.png' : '/static/image/img_unfinish.png'
- }));
- } else {
- this.auditList = res.rows.map(item => ({
- id: item.id,
- taskTitle: item.taskName,
- statusText: this.getAuditStatusText(item.createAuditStatus),
- statusClass: this.getAuditStatusClass(item.createAuditStatus),
- speaker: item.doctorName,
- level: '', // 接口返回数据中没有level字段
- hospital: item.deptName, // 使用deptName作为hospital
- department: item.deptName, // 使用deptName作为department
- videoType: item.taskTypeName, // 使用taskTypeName作为videoType
- category: item.taskTypeName, // 使用taskTypeName作为category
- points: item.taskIntegral,
- count: item.taskCount,
- applyTime: item.createTime,
- showDelete: true,
- showEdit: item.createAuditStatus === 2 || item.finishAuditStatus === 2 // 2表示驳回
- }));
- }
- } else {
- uni.showToast({
- title: '获取数据失败',
- icon: 'none'
- });
- }
- }).catch(err => {
- uni.hideLoading();
- uni.showToast({
- title: '网络错误',
- icon: 'none'
- });
- });
- },
- getCompanySettings() {
- // 获取公司项目设置
- if (this.userInfo.companyId) {
- company(this.userInfo.companyId).then(res => {
- if (res.code === 200) {
- console.log('公司项目设置:', res.data);
- // 处理公司项目设置数据
- }
- }).catch(err => {
- console.error('获取公司项目设置失败:', err);
- });
- }
- },
- getStatusText(status) {
- // 根据状态获取状态文本
- const statusMap = {
- 0: '未完成',
- 1: '已完成'
- };
- return statusMap[status] || '未知状态';
- },
- getStatusClass(status) {
- // 根据状态获取状态样式类
- const statusMap = {
- 0: 'status-wait',
- 1: 'status-finish'
- };
- return statusMap[status] || 'status-wait';
- },
- getAuditStatusText(status) {
- // 根据审核状态获取状态文本
- const statusMap = {
- 0: '待审核',
- 1: '已通过',
- 2: '已驳回'
- };
- return statusMap[status] || '-';
- },
- getAuditStatusClass(status) {
- // 根据审核状态获取状态样式类
- const statusMap = {
- 0: 'status-wait',
- 1: 'status-finish',
- 2: 'status-rejected'
- };
- return statusMap[status] || 'status-wait';
- },
- goCreate(){
- console.log('创建任务');
- uni.navigateTo({
- url: '/pages_task/createTask'
- })
- },
- goData(){
- console.log("跳转到数据页");
- uni.navigateTo({
- url: '/pages_task/statistics'
- })
- },
- goDetails(item) {
- console.log("跳转到任务详情页",item);
- // 直接跳转到任务详情页,传递id作为taskId参数
- uni.navigateTo({
- url: `/pages_task/taskDetail?taskId=${item.id}`
- });
- },
- switchTopTab(type) {
- this.currentTopTab = type;
- this.currentSubTab = 'all';
- this.loadData();
- },
- closeFilter() {
- this.showFilter = false
- },
- resetFilters() {
- this.filters = {
- applyTimeStart: '',
- applyTimeEnd: '',
- finishTimeStart: '',
- finishTimeEnd: '',
- auditTimeStart: '',
- auditTimeEnd: '',
- taskBelong: 'my',
- finishStatus: '',
- belongType: ''
- }
- },
- confirmFilters() {
- this.showFilter = false
- // 根据筛选条件重新加载数据
- this.loadData();
- },
- // 打开日期选择器
- openDatePicker(field) {
- const currentValue = this.filters[field];
- const defaultDate = currentValue ? new Date(currentValue) : new Date();
-
- uni.datePicker({
- type: 'date',
- start: '2020-01-01',
- end: new Date().toISOString().split('T')[0],
- current: currentValue || new Date().toISOString().split('T')[0],
- success: (res) => {
- this.filters[field] = res.value;
- }
- });
- },
- handleShare(item) {
- uni.showToast({
- title: '分享功能待实现',
- icon: 'none'
- })
- },
- handleTaskDelete(item, index) {
- uni.showModal({
- title: '提示',
- content: '确定要删除这条任务吗?',
- cancelText: '取消',
- confirmText: '删除',
- confirmColor: '#FF0000',
- success: (res) => {
- if (res.confirm) {
- uni.showLoading({
- title: '删除中...'
- });
-
- deleted(item.id).then(res => {
- uni.hideLoading();
- if (res.code === 200) {
- this.taskList.splice(index, 1);
- uni.showToast({
- title: '任务已删除',
- icon: 'success',
- duration: 1500
- });
- } else {
- uni.showToast({
- title: '删除失败',
- icon: 'none'
- });
- }
- }).catch(err => {
- uni.hideLoading();
- uni.showToast({
- title: '网络错误',
- icon: 'none'
- });
- });
- }
- }
- });
- },
- handleCopy(item) {
- uni.navigateTo({
- url: `/pages_task/createTask?id=${item.id}©=true`
- })
- },
- handleAuditDelete(item, index) {
- uni.showModal({
- title: '提示',
- content: '确定要删除这条审核项吗?',
- cancelText: '取消',
- confirmText: '删除',
- confirmColor: '#FF0000',
- success: (res) => {
- if (res.confirm) {
- uni.showLoading({
- title: '删除中...'
- });
-
- deleted(item.id).then(res => {
- uni.hideLoading();
- if (res.code === 200) {
- this.auditList.splice(index, 1);
- uni.showToast({
- title: '审核项已删除',
- icon: 'success',
- duration: 1500
- });
- } else {
- uni.showToast({
- title: '删除失败',
- icon: 'none'
- });
- }
- }).catch(err => {
- uni.hideLoading();
- uni.showToast({
- title: '网络错误',
- icon: 'none'
- });
- });
- }
- }
- });
- },
- handleEdit(item) {
- uni.navigateTo({
- url: `/pages_task/createTask?id=${item.id}&edit=true`
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- min-height: 100vh;
- background: #f5f5f5;
- .top-box {
- padding: 20rpx 32rpx;
- display: flex;
- align-items: center;
- background: #fff;
- .input-item {
- display: flex;
- align-items: center;
- flex: 1;
- height: 72rpx;
- background: #F7F8FA;
- border-radius: 38rpx;
- .search-icon {
- width: 26rpx;
- height: 26rpx;
- margin: 0 10rpx 0 28rpx;
- }
- input {
- flex: 1;
- font-size: 28rpx;
- color: #333;
- }
- }
- .filter-item {
- margin-left: 24rpx;
- display: flex;
- align-items: center;
- font-size: 28rpx;
- color: #999;
- .filter-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 10rpx;
- }
- }
- }
- .top-tabs {
- display: flex;
- background: #fff;
- .top-tab-item {
- flex: 1;
- text-align: center;
- padding: 24rpx 0;
- font-size: 28rpx;
- color: #999;
- transition: all 0.2s;
- &.active {
- color: #333;
- font-weight: 500;
- position: relative;
- &::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- border-radius: 3rpx;
- width: 80rpx;
- height: 6rpx;
- background: #388BFF;
- }
- }
- }
- }
- .sub-tabs {
- display: flex;
- justify-content: space-between;
- background: #fff;
- padding: 16rpx 32rpx;
- gap: 24rpx;
- .sub-tab-item {
- padding: 12rpx 24rpx;
- border-radius: 30rpx;
- font-size: 28rpx;
- color: #666;
- transition: all 0.2s;
- &.active {
- background: #EBF3FF;
- color: #388BFF;
- }
- }
- }
- .content {
- padding: 24rpx;
- box-sizing: border-box;
- min-height: calc(100vh - 300rpx);
- .task-card {
- background: #fff;
- border-radius: 24rpx;
- margin-bottom: 20rpx;
- border: 2rpx solid #E9F2FF;
- position: relative;
- padding-bottom: 24rpx;
- .card-top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- background: linear-gradient(90deg, #E8F1FF 0%, #FFFFFF 100%);
- border-radius: 24rpx 24rpx 0 0;
- padding: 26rpx 24rpx;
- margin-bottom: 16rpx;
- .card-task-title {
- font-size: 32rpx;
- font-weight: 600;
- color: #333;
- }
- .status-tag {
- padding: 8rpx 16rpx;
- border-radius: 20rpx;
- font-size: 24rpx;
- &.status-wait {
- background: #E3F2FD;
- color: #2196F3;
- }
- &.status-finish {
- background: #E6FAEF;
- color: #07C160;
- }
- &.status-rejected {
- background: #FFF4F5;
- color: #CF3546;
- }
- &.status-createPending {
- background: #FFF8E6;
- color: #FF9500;
- }
- }
- }
- .card-content {
- padding: 0 24rpx;
- .speaker-info {
- display: flex;
- align-items: center;
- margin-bottom: 16rpx;
- .speaker-name {
- font-weight: 600;
- font-size: 32rpx;
- color: #333;
- }
- .level-tag {
- margin-left: 16rpx;
- padding: 2rpx 12rpx;
- font-size: 22rpx;
- color: #C89743;
- background: #FFF6E5;
- border-radius: 8rpx;
- }
- }
- .org-info {
- display: flex;
- align-items: center;
- margin-bottom: 16rpx;
- font-size: 28rpx;
- color: #666;
- .org-icon {
- width: 32rpx;
- height: 32rpx;
- margin-right: 16rpx;
- }
- .line {
- width: 2rpx;
- height: 28rpx;
- background: #EAEBEE;
- margin: 0 24rpx;
- }
- }
- .card-tags {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 12rpx;
- margin-bottom: 16rpx;
- .tag-left-group {
- display: flex;
- gap: 0;
- .video-tag {
- background: linear-gradient(90deg, #FFE9C7 0%, #F3D091 100%);
- border-radius: 8rpx 0 0 8rpx;
- color: #5D410F;
- display: flex;
- align-items: center;
- padding: 8rpx;
- font-size: 24rpx;
- .video-tag-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 10rpx;
- }
- }
- .category-tag {
- border-radius: 0 8rpx 8rpx 0;
- border: 2rpx solid #F3D191;
- background: #FFFAF4;
- color: #5D410F;
- padding: 8rpx;
- font-size: 24rpx;
- }
- }
- .tag-right-group {
- display: flex;
- gap: 12rpx;
- .points-tag {
- border: 1rpx solid #388BFF;
- color: #388BFF;
- background: transparent;
- border-radius: 8rpx;
- padding: 8rpx;
- font-size: 24rpx;
- }
- .count-tag {
- border: 2rpx solid #E8E8E8;
- border-radius: 8rpx;
- padding: 8rpx;
- font-size: 24rpx;
- color: #666;
- }
- }
- }
- .time-info {
- font-size: 28rpx;
- color: #666;
- display: flex;
- flex-direction: column;
- gap: 8rpx;
- margin-bottom: 24rpx;
- .time-item {
- display: flex;
- &:first-child {
- color: #333;
- }
- }
- }
- .operate-btn-group {
- display: flex;
- align-items: center;
- justify-content: space-between;
- &.flex-end {
- justify-content: flex-end;
- }
- .share-btn {
- display: flex;
- align-items: center;
- font-size: 28rpx;
- color: #666;
- .share-icon {
- width: 36rpx;
- height: 36rpx;
- margin-right: 8rpx;
- }
- }
- .btn-group {
- display: flex;
- align-items: center;
- .btn {
- padding: 12rpx 32rpx;
- font-size: 28rpx;
- color: #388BFF;
- border: 2rpx solid #388BFF;
- margin-left: 16rpx;
- border-radius: 34rpx;
- transition: all 0.2s;
- &:active {
- background: #EBF3FF;
- }
- }
- }
- }
- .status-seal {
- position: absolute;
- right: 24rpx;
- bottom: 156rpx;
- width: 152rpx;
- height: 142rpx;
- opacity: 0.8;
- }
- }
- }
- }
- .side {
- position: fixed;
- top: 60%;
- right: 36rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- z-index: 9;
- .side-item {
- width: 96rpx;
- height: 96rpx;
- margin-bottom: 28rpx;
- .icon {
- width: 100%;
- height: 100%;
- }
- &:active {
- opacity: 0.6;
- }
- }
- }
- .filter-popup {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- z-index: 999;
- display: flex;
- align-items: flex-end;
- .filter-content {
- width: 100%;
- background: #fff;
- border-radius: 24rpx 24rpx 0 0;
- padding: 32rpx;
- .filter-header {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-bottom: 32rpx;
- position: relative;
- .filter-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- }
- .filter-close-btn {
- position: absolute;
- right: 0;
- width: 44rpx;
- height: 44rpx;
- }
- }
- .filter-form {
- padding: 0 0 24rpx 0;
- .filter-section {
- margin-bottom: 32rpx;
- .section-label {
- font-weight: 500;
- font-size: 28rpx;
- color: #333;
- margin-bottom: 24rpx;
- }
- .time-range {
- display: flex;
- align-items: center;
- gap: 16rpx;
- .time-input {
- flex: 1;
- height: 72rpx;
- text-align: center;
- background: #F7F8FA;
- border-radius: 8rpx;
- padding: 0 16rpx;
- font-size: 26rpx;
- color: #333;
- }
- .time-separator {
- font-size: 24rpx;
- color: #999;
- }
- }
- .btn-group {
- display: flex;
- gap: 16rpx;
- .filter-btn {
- width: 214rpx;
- height: 72rpx;
- background: #F7F8FA;
- border-radius: 70rpx 70rpx 70rpx 70rpx;
- line-height: 72rpx;
- text-align: center;
- font-size: 28rpx;
- transition: all 0.2s;
- color: #333333;
- &.active {
- background: rgba(56, 139, 255, 0.15);
- color: #388BFF;
- }
- }
- }
- }
- }
- .filter-actions {
- display: flex;
- gap: 24rpx;
- margin-top: 40rpx;
- .reset-btn,
- .confirm-btn {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- border-radius: 200rpx;
- font-size: 28rpx;
- transition: all 0.2s;
- }
- .reset-btn {
- background: #fff;
- color: #388BFF;
- border: 2rpx solid #388BFF;
- &:active {
- background: #EBF3FF;
- }
- }
- .confirm-btn {
- background: #388BFF;
- color: #fff;
- &:active {
- background: #2A78E5;
- }
- }
- }
- }
- }
- }
- </style>
|