b339acb1 by lttnew

级位审核

1 parent d923ac96
...@@ -11,24 +11,27 @@ ...@@ -11,24 +11,27 @@
11 <view class="indexboxre"> 11 <view class="indexboxre">
12 <view class="userlist"> 12 <view class="userlist">
13 <view class="item" v-for="(n,index) in list" :key="index"> 13 <view class="item" v-for="(n,index) in list" :key="index">
14 <view> 14 <view class="item-content">
15 <view class="name-row">
15 <view class="name">{{n.perName}}</view> 16 <view class="name">{{n.perName}}</view>
17 <view class="expired-tag" v-if="n.canChoose != 1">
18 <text class="expired-text">已过期</text>
19 </view>
20 </view>
16 <view class="date">会员号:{{n.perCode||'-'}}</view> 21 <view class="date">会员号:{{n.perCode||'-'}}</view>
17 <view class="date">有效日期:{{n.roleInfo && n.roleInfo.validTime ? n.roleInfo.validTime : '-'}}</view> 22 <view class="date">有效日期:{{ formatDate(n.roleInfo && n.roleInfo.validTime ? n.roleInfo.validTime : '-') }}</view>
18 <view class="date">注册地:{{n.memName||'-'}}</view> 23 <view class="date">注册地:{{n.memName||'-'}}</view>
19 <view class="date" :class="{'text-danger': n.canChoose != 1}">
20 状态:{{ n.canChoose == 1 ? '正常' : '资质已过期' }}
21 </view>
22 </view> 24 </view>
23 <view class="status"> 25 <view class="status">
24 <text v-if="isChosen(n)" class="text-gray">已选</text> 26 <text v-if="isChosen(n)" class="text-gray">已选</text>
25 <text v-else class="text-primary" @click="handleChoose(n)">选择</text> 27 <!-- <text v-else-if="n.canChoose != 1" class="text-gray">不可选</text> -->
28 <text v-if="n.canChoose == 1" class="text-primary" @click="handleChoose(n)">选择</text>
26 </view> 29 </view>
27 </view> 30 </view>
28 </view> 31 </view>
29 <view class="nodata" v-if="list.length==0 && !loading"> 32 <view class="empty" v-if="list.length==0 && !loading">
30 <image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> 33 <image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
31 <text>暂无考官数据</text> 34 <text class="empty-text">暂无考官数据</text>
32 </view> 35 </view>
33 </view> 36 </view>
34 37
...@@ -132,6 +135,16 @@ ...@@ -132,6 +135,16 @@
132 return chosen.some(c => c.perId == n.perId) 135 return chosen.some(c => c.perId == n.perId)
133 } 136 }
134 137
138 // 格式化日期,去掉时间部分
139 function formatDate(dateStr) {
140 if (!dateStr || dateStr === '-') return '-'
141 // 如果是完整日期时间格式,截取日期部分
142 if (dateStr.length > 10) {
143 return dateStr.substring(0, 10)
144 }
145 return dateStr
146 }
147
135 function handleChoose(row) { 148 function handleChoose(row) {
136 if (row.canChoose != 1) { 149 if (row.canChoose != 1) {
137 uni.showToast({ 150 uni.showToast({
...@@ -252,10 +265,33 @@ ...@@ -252,10 +265,33 @@
252 background: #fff; 265 background: #fff;
253 border-radius: 10rpx; 266 border-radius: 10rpx;
254 267
268 .item-content {
269 flex: 1;
270 }
271
272 .name-row {
273 display: flex;
274 align-items: center;
275 margin-bottom: 10rpx;
276 justify-content: space-between;
277 }
278
255 .name { 279 .name {
256 font-size: 32rpx; 280 font-size: 32rpx;
257 font-weight: bold; 281 font-weight: bold;
258 margin-bottom: 10rpx; 282 }
283
284 .expired-tag {
285 // margin-left: 15rpx;
286 // padding: 0 12rpx;
287 // background: #fff0f0;
288 // border: 1px solid #ffcccc;
289 // border-radius: 6rpx;
290 }
291
292 .expired-text {
293 font-size: 22rpx;
294 color: #dd524d;
259 } 295 }
260 296
261 .date { 297 .date {
......
...@@ -680,7 +680,16 @@ ...@@ -680,7 +680,16 @@
680 "enablePullDownRefresh": false 680 "enablePullDownRefresh": false
681 } 681 }
682 682
683 }, { 683 },
684 {
685 "path": "chooseStudent",
686 "style": {
687 "navigationBarTitleText": "添加考生",
688 "enablePullDownRefresh": false
689 }
690
691 },
692 {
684 "path": "addApply", 693 "path": "addApply",
685 "style": { 694 "style": {
686 "navigationBarTitleText": "编辑级位考试", 695 "navigationBarTitleText": "编辑级位考试",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!