完善功能

This commit is contained in:
liuyuan
2025-07-01 16:38:30 +08:00
parent 6dd6e9d213
commit 6b63bdc466
32 changed files with 2617 additions and 188 deletions

View File

@@ -47,6 +47,13 @@
</view>
<view class="certificate-list" v-else>暂无</view>
</view>
<view class="taihu_common">
<text>名医精彩</text>
<view class="certificate-list" v-if="courseList.length>0">
<view v-for="(item, index) in courseList" :key='index' style=" text-decoration: underline;" @click="goToDetail(item)">{{item.title}}</view>
</view>
<view class="certificate-list" v-else>暂无</view>
</view>
</view>
</view>
</template>
@@ -60,6 +67,7 @@ export default {
taihuTalent: {},
label: [], //标签
certificates: [], //证书
courseList: [], //名医精彩数据
status: false,
showAll: false, //是否显示全部
defaultShowCount: 6 //默认显示条数
@@ -104,6 +112,10 @@ export default {
this.taihuTalent = res.taihuTalent;
this.label = res.label;
this.certificates = res.certificates;
if(res.courseList&&res.courseList.length>0){
this.courseList = res.courseList;
}
}
});
},
@@ -115,12 +127,18 @@ export default {
goToUrl(urlArr){
if(urlArr&&urlArr.length>0){
uni.navigateTo({
url: '/pages/talents/certificateUrl?data='+JSON.stringify(urlArr),
url: '/pages/talents/certificateUrl?data='+JSON.stringify(urlArr)
});
}else{
this.$commonJS.showToast("暂无证书图片");
}
},
//跳转到课程详情
goToDetail(item){
uni.navigateTo({
url: '/pages/curriculum/index?navTitle='+item.title+'&title='+item.title+'&id='+item.id
});
},
},
}
</script>
@@ -142,8 +160,9 @@ export default {
}
.infor_image{
display: block;
width: 180rpx;
width: 200rpx;
height: 220rpx;
background-color: #f3f3f3;
}
.infor_right{
width: calc(100% - 220rpx);