部分样式更新

This commit is contained in:
白菜
2026-01-09 19:10:32 +08:00
parent 5e4636fd7d
commit b558282529
5 changed files with 236 additions and 131 deletions

View File

@ -4,7 +4,7 @@
<uni-row>
<uni-col :span="12">
<button type="default" class="btns" :class="{'active-btn' : active === 'undone'}"
@click="changeTab('undone')">处理</button>
@click="changeTab('undone')">处理</button>
</uni-col>
<uni-col :span="12">
<button type="default" class="btns" :class="{'active-btn' : active === 'done'}"
@ -15,13 +15,25 @@
<view v-if="list.length===0" class="no-data">暂无数据</view>
<view class="content scroll-y" v-else>
<view class="item-list" v-for="item in list" :key="item.ticketNo+'ticket'" @click="toDetail(item.id)">
<view class="item-title" :class="item.status === 3 ? 'done' : 'undone'">工单号{{item.ticketNo}}</view>
<view class="item-title" :class="item.status === 3 ? 'done' : item.status === 2 ? 'doing' : 'undone'">
工单号{{item.ticketNo}}
<view class="item-status">{{ticketStatusOptions[item.status]}}</view>
</view>
<view class="item-content">
<view class="item-info">工单标题:{{item.title}}</view>
<view class="item-info">问题描述:{{item.content}}</view>
<view class="item-info">工单状态:{{ticketStatusOptions[item.status]}}</view>
<view class="item-info">预期完成时间:{{item.expectedCompleteTime || '-'}}</view>
<view class="item-info">处理人:{{item.workName || '-'}}</view>
<view class="item-info">工单标题:
<text class="info-value">{{item.title}}</text>
</view>
<view class="item-info">问题描述:
<text class="info-value">{{item.content}}</text>
</view>
<view class="item-info">预期完成时间:
<text class="info-value">{{item.expectedCompleteTime || '-'}}</text>
</view>
<view class="item-info">处理人:
<text class="info-value">
{{item.workName || '-'}}
</text>
</view>
</view>
</view>
</view>
@ -46,7 +58,7 @@
total: 0,
list: [],
pageNum: 1,
pageSize: 10
pageSize: 20
}
},
methods: {
@ -104,7 +116,7 @@
position: relative;
.no-data {
padding-top: 70px;
padding-top: 180rpx;
}
}
@ -119,60 +131,92 @@
left: 0;
width: 100%;
z-index: 2;
padding: 40rpx 30rpx;
padding-bottom: 60rpx;
background: linear-gradient(to bottom, #9fc1f3, #f7fbff 80%, rgba(255, 255, 255, 0) 100%);
.btns {
border-radius: 0;
border: none;
border-bottom: 1px solid #eee;
width: 100%;
text-align: center;
font-size: 16px;
line-height: 50px;
background-color: #fff;
border-radius: 40rpx;
width: 90%;
font-size: 26rpx;
line-height: 64rpx;
color: #19242d;
background: linear-gradient(to bottom, #d9e7fc, #f7fbff);
&.active-btn {
background-color: #3a98ff;
background: linear-gradient(to bottom, #4c7af3, #4b7bf4);
color: #fff;
}
}
}
.scroll-y {
// height: calc(100vh - var(--window-bottom) - var(--window-top));
z-index: 1;
}
.content {
background-color: #ffffff;
padding: 70px 20px 60px 20px;
padding: 170rpx 40rpx 120rpx 40rpx;
}
// 工单列表
.item-list {
border-radius: 7px;
box-shadow: 0 0 10px rgba(0, 0, 0, .1), 0 0 0 rgba(0, 0, 0, .5);
font-size: 14px;
line-height: 24px;
margin-bottom: 20px;
color: #4b4951;
border-radius: 14rpx;
box-shadow: 0 0 20rpx rgba(0, 0, 0, .1), 0 0 0 rgba(0, 0, 0, .5);
font-size: 26rpx;
line-height: 40rpx;
margin-bottom: 30rpx;
border: 1px solid #eee;
// 标题
.item-title {
border-radius: 7px 7px 0 0;
font-size: 16px;
border-radius: 14rpx 14rpx 0 0;
border-bottom: 1px solid #eee;
padding: 10px 15px;
background-color: #FC6B69;
color: #fff;
padding: 20rpx 30rpx;
font-weight: 700;
position: relative;
.item-status {
position: absolute;
right: 0;
top: 0;
padding: 2rpx 20rpx;
color: #ffffff;
font-size: 22rpx;
}
&.done {
background-color: #05AEA3;
.item-status {
background-color: #30be95;
}
}
&.doing {
.item-status {
background-color: #3c68e7;
}
}
&.undone {
.item-status {
background-color: #ed7876;
}
}
}
// 内容
.item-content {
padding: 15px 15px;
padding: 20rpx 30rpx;
font-size: 24rpx;
.item-info {
margin-bottom: 20px;
margin-bottom: 20rpx;
.info-value {
padding-left: 10rpx;
}
}
}