InspectionCleaning/pages/index/index.vue

175 lines
3.8 KiB
Vue
Raw Normal View History

2025-04-07 09:30:11 +08:00
<template>
<view class="content">
<daySelect />
<view class="task-info">
<view class="title">今日任务</view>
<view class="task-list">
<view class="task-item">
<view class="name-state">
<view class="name">足球场休息室</view>
<u-tag text="已完成" type="success" border-color="transparent" />
</view>
2025-04-07 09:42:41 +08:00
2025-04-07 09:30:11 +08:00
<view class="time">
<u-tag text="9:00~12:00" type="info" border-color="transparent" />
</view>
</view>
</view>
</view>
<view class="area-schedule">
<view class="finish">
<view class="point"></view>
<view class="title">已保洁区域</view>
<view class="count-rate">26 <view class="total">/50</view> </view>
<u-line-progress
height="10"
class="schedule-line"
:show-percent="false"
active-color="#2979ff"
:percent="70"
></u-line-progress>
</view>
<view class="unfinish">
<view class="point"></view>
<view class="title">已保洁区域</view>
<view class="count-rate">26 <view class="total">/50</view> </view>
<u-line-progress
height="10"
class="schedule-line"
:show-percent="false"
active-color="#FC873D"
:percent="70"
></u-line-progress>
</view>
</view>
<view class="cleaning-plan">
<view class="title">今日保洁计划名称</view>
<view class="time">
<view class="top">00:00:00</view>
<view class="bottom">23:59:00</view>
</view>
</view>
</view>
</template>
<script>
import daySelect from "@/components/daySelect/index.vue";
export default {
components: {
daySelect,
},
};
</script>
<style lang="scss" scoped>
.content {
height: 100vh; // 确保容器有明确高度
overflow: hidden;
}
.task-info {
margin: 0 32rpx;
padding: 18rpx;
background: #f5f6fa;
border-radius: 24rpx;
.title {
font-weight: bold;
font-size: 34rpx;
color: #282828;
}
.task-list {
margin-top: 36rpx;
display: flex;
flex-direction: column;
.task-item {
padding: 44rpx 30rpx;
background: #ffffff;
border-radius: 16rpx;
.name-state {
display: flex;
justify-content: space-between;
.name {
position: relative;
}
.name::before {
content: "";
position: absolute;
top: 10%;
left: -6%;
display: inline-block;
width: 5rpx;
height: 30rpx;
background: #3d6af0;
}
}
.time {
margin-top: 20rpx;
}
}
}
}
.area-schedule {
margin: 0 32rpx;
margin-top: 26rpx;
display: flex;
justify-content: space-between;
> view {
padding: 22rpx;
width: 48%;
background: #f5f6fa;
border-radius: 10rpx;
.point {
width: 12rpx;
height: 12rpx;
background: #4473fe;
border-radius: 50%;
}
.title {
margin-top: 28rpx;
font-size: 32rpx;
color: #292929;
}
.count-rate {
margin-left: 12rpx;
margin-top: 40rpx;
display: flex;
font-size: 50rpx;
color: #4473fe;
.total {
font-size: 50rpx;
color: #dbdee9;
}
}
.schedule-line {
margin-top: 32rpx;
}
}
.unfinish .point {
background: #fc873d;
}
.unfinish .count-rate {
color: #fc873d;
}
}
.cleaning-plan {
margin: 0 32rpx;
margin-top: 36rpx;
padding: 42rpx 52rpx;
display: flex;
justify-content: space-between;
align-items: center;
background: url("@/static/images/plan-bg.png") no-repeat 100% 100%;
background-size: 100% 100%;
.title {
font-weight: 500;
font-size: 36rpx;
color: #334a65;
}
.time{
font-weight: 500;
font-size: 36rpx;
color: #334A65;
}
}
</style>