b339acb1 by lttnew

级位审核

1 parent d923ac96
......@@ -11,24 +11,27 @@
<view class="indexboxre">
<view class="userlist">
<view class="item" v-for="(n,index) in list" :key="index">
<view>
<view class="name">{{n.perName}}</view>
<view class="item-content">
<view class="name-row">
<view class="name">{{n.perName}}</view>
<view class="expired-tag" v-if="n.canChoose != 1">
<text class="expired-text">已过期</text>
</view>
</view>
<view class="date">会员号:{{n.perCode||'-'}}</view>
<view class="date">有效日期:{{n.roleInfo && n.roleInfo.validTime ? n.roleInfo.validTime : '-'}}</view>
<view class="date">有效日期:{{ formatDate(n.roleInfo && n.roleInfo.validTime ? n.roleInfo.validTime : '-') }}</view>
<view class="date">注册地:{{n.memName||'-'}}</view>
<view class="date" :class="{'text-danger': n.canChoose != 1}">
状态:{{ n.canChoose == 1 ? '正常' : '资质已过期' }}
</view>
</view>
<view class="status">
<text v-if="isChosen(n)" class="text-gray">已选</text>
<text v-else class="text-primary" @click="handleChoose(n)">选择</text>
<!-- <text v-else-if="n.canChoose != 1" class="text-gray">不可选</text> -->
<text v-if="n.canChoose == 1" class="text-primary" @click="handleChoose(n)">选择</text>
</view>
</view>
</view>
<view class="nodata" v-if="list.length==0 && !loading">
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无考官数据</text>
<view class="empty" v-if="list.length==0 && !loading">
<image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text class="empty-text">暂无考官数据</text>
</view>
</view>
......@@ -132,6 +135,16 @@
return chosen.some(c => c.perId == n.perId)
}
// 格式化日期,去掉时间部分
function formatDate(dateStr) {
if (!dateStr || dateStr === '-') return '-'
// 如果是完整日期时间格式,截取日期部分
if (dateStr.length > 10) {
return dateStr.substring(0, 10)
}
return dateStr
}
function handleChoose(row) {
if (row.canChoose != 1) {
uni.showToast({
......@@ -252,10 +265,33 @@
background: #fff;
border-radius: 10rpx;
.item-content {
flex: 1;
}
.name-row {
display: flex;
align-items: center;
margin-bottom: 10rpx;
justify-content: space-between;
}
.name {
font-size: 32rpx;
font-weight: bold;
margin-bottom: 10rpx;
}
.expired-tag {
// margin-left: 15rpx;
// padding: 0 12rpx;
// background: #fff0f0;
// border: 1px solid #ffcccc;
// border-radius: 6rpx;
}
.expired-text {
font-size: 22rpx;
color: #dd524d;
}
.date {
......
......@@ -680,7 +680,16 @@
"enablePullDownRefresh": false
}
}, {
},
{
"path": "chooseStudent",
"style": {
"navigationBarTitleText": "添加考生",
"enablePullDownRefresh": false
}
},
{
"path": "addApply",
"style": {
"navigationBarTitleText": "编辑级位考试",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!