|
@@ -67,14 +67,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 答题卡区域 -->
|
|
<!-- 答题卡区域 -->
|
|
|
<view class="test-info ddflex">
|
|
<view class="test-info ddflex">
|
|
|
|
|
+ <view class="note-title ddflex">
|
|
|
|
|
+ <image class="note-title-icon" src="/static/images/cjwt.png"</image>
|
|
|
|
|
+ <view>所有证书</view>
|
|
|
|
|
+ </view>
|
|
|
<view class="note-box" style="margin-top: 0;">
|
|
<view class="note-box" style="margin-top: 0;">
|
|
|
- <view class="note-title ddflex">
|
|
|
|
|
|
|
+ <!-- <view class="note-title ddflex">
|
|
|
<image class="note-title-icon" src="/static/images/cjwt.png"</image>
|
|
<image class="note-title-icon" src="/static/images/cjwt.png"</image>
|
|
|
<view>所有证书</view>
|
|
<view>所有证书</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<view>
|
|
<view>
|
|
|
<view class="note-item ddflex" v-for="item,index in infoList" :key="index" @click="changeItem(item)">
|
|
<view class="note-item ddflex" v-for="item,index in infoList" :key="index" @click="changeItem(item)">
|
|
|
- <view class="note-item-content">{{index+1}}. {{item.cateName}}</view>
|
|
|
|
|
|
|
+ <view :class="'note-item-content '+(item.selected?'note-item-selected':'')">{{index+1}}. {{item.cateName}} {{item.selected}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -156,9 +160,9 @@
|
|
|
<uni-popup ref="popup" background-color="#fff">
|
|
<uni-popup ref="popup" background-color="#fff">
|
|
|
<view class="popup-content popup-height">
|
|
<view class="popup-content popup-height">
|
|
|
<view class="m-title" style="margin-bottom: 10rpx;font-size: 30rpx;font-weight: bold">所有证书</view>
|
|
<view class="m-title" style="margin-bottom: 10rpx;font-size: 30rpx;font-weight: bold">所有证书</view>
|
|
|
- <view>
|
|
|
|
|
|
|
+ <view style="overflow-y: scroll;max-height: 85%">
|
|
|
<view class="m-note-item ddflex" v-for="item,index in infoList" :key="index" @click="changeItem(item)">
|
|
<view class="m-note-item ddflex" v-for="item,index in infoList" :key="index" @click="changeItem(item)">
|
|
|
- <view class="m-note-item-content">{{index+1}}. {{item.cateName}}</view>
|
|
|
|
|
|
|
+ <view class="m-note-item-content" :style="item.selected?'color:#007aff':''">{{index+1}}. {{item.cateName}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -242,7 +246,9 @@
|
|
|
},
|
|
},
|
|
|
getDetail(){
|
|
getDetail(){
|
|
|
req.getRequest('/api/v3/exam/user/manager/certificate',this.options,res=>{
|
|
req.getRequest('/api/v3/exam/user/manager/certificate',this.options,res=>{
|
|
|
|
|
+ res.map(item=>{item.selected = false})
|
|
|
this.infoList = res
|
|
this.infoList = res
|
|
|
|
|
+ res[0].selected = true
|
|
|
this.info = res[0]
|
|
this.info = res[0]
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -254,6 +260,10 @@
|
|
|
this.$refs.popup.close()
|
|
this.$refs.popup.close()
|
|
|
}
|
|
}
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
|
|
+ this.infoList.map(item=>{
|
|
|
|
|
+ item.selected = false
|
|
|
|
|
+ })
|
|
|
|
|
+ item.selected = true
|
|
|
this.info = item
|
|
this.info = item
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
},500)
|
|
},500)
|