仅内网可见-管理员端 调试

This commit is contained in:
670788339
2025-07-21 20:10:25 +08:00
parent b627398b7d
commit 2baa5c61a4

View File

@@ -22,7 +22,7 @@
<div class="course-playbox" ref="coursePlayerBox" id="id_course_player_box">
<div class="course-player" ref="coursePlayer" id="id_course_player">
<div>
<div v-if="Internet == 1">
<div v-if="renderCourse">
<div v-if="resType == null || resType == 0">
<!--先显示视频图片-->
<course-image v-if="courseInfo.id != ''" :course="courseInfo"></course-image>
@@ -454,6 +454,7 @@
getType: getType,
ctabName: 'catalog',
resType: null,
renderCourse: true,
activeNames: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
scoreInfo: {
dlgShow: false,
@@ -482,6 +483,7 @@
}
},
mounted() {
this.getInternet();
// 增加的用户受众id
let localKey = "user_" + this.userInfo.sysId + "_gids";
let hasIds = sessionStorage.getItem(localKey);
@@ -1325,11 +1327,12 @@
}).then(rs => {
if (rs.status == 200) {
if (rs.result.isPermission){
// if (true){
this.getInternet()
// this.getInternet()
this.renderCourse = true
console.log('需要内网环境')
}else{
this.Internet=1;
this.renderCourse = false
}
if(rs.result.contents.length==0){
$this.$message.error('课程内容已删除或课程已不再使用');