This commit is contained in:
liuyuan
2025-05-23 17:23:44 +08:00
parent 060344610a
commit 56ee2fee9e
16 changed files with 257 additions and 118 deletions

View File

@@ -33,7 +33,7 @@
<view class="taihu_common">
<text>太湖证书</text>
<view class="certificate-list" v-if="certificates.length>0">
<view class="list_block" v-for="(item,index) in displayedCertificates" :key="index" @click="showImg(item.certificateUrl)">
<view class="list_block" v-for="(item,index) in displayedCertificates" :key="index" @click="goToUrl(item.userCertificates)">
{{item.title}}
</view>
@@ -58,7 +58,7 @@ export default {
certificates: [], //证书
status: false,
showAll: false, //是否显示全部
defaultShowCount: 5 //默认显示条数
defaultShowCount: 6 //默认显示条数
}
},
computed: {
@@ -108,18 +108,15 @@ export default {
this.showAll = !this.showAll
},
//展示图片
showImg(data){
let url = '';
if(data){
url = data.split(',')[0];
uni.previewImage({
urls: [url],
current: 0
goToUrl(urlArr){
if(urlArr&&urlArr.length>0){
uni.navigateTo({
url: '/pages/talents/certificateUrl?data='+JSON.stringify(urlArr),
});
}else{
this.$commonJS.showToast("暂无证书图片");
}
}
},
},
}
</script>