修改一个全局的变量控制

This commit is contained in:
daihh
2022-10-14 20:52:42 +08:00
parent 4636daea4c
commit cf42dd8b1b
10 changed files with 30 additions and 31 deletions

View File

@@ -305,7 +305,7 @@ export default {
homeworkInfo: {}, homeworkInfo: {},
examInfo: {}, examInfo: {},
assessInfo: {}, assessInfo: {},
fileBaseUrl: this.$Constants.fileBaseUrl, fileBaseUrl: this.$xpage.constants.fileBaseUrl,
btnLoading: false, btnLoading: false,
curCFile:{},//课件内容 curCFile:{},//课件内容
coursewareInfo: { coursewareInfo: {

View File

@@ -343,7 +343,7 @@ export default {
}, },
contentDataShow:true,//预览页面和课程内容的切换 contentDataShow:true,//预览页面和课程内容的切换
isEdit: true, isEdit: true,
fileBaseUrl: this.$Constants.fileBaseUrl, fileBaseUrl: this.$xpage.constants.fileBaseUrl,
contentData: {}, contentData: {},
curCFile:{},//课件内容 curCFile:{},//课件内容
getType: getType, getType: getType,

View File

@@ -366,7 +366,7 @@
data(){ data(){
return { return {
converStatus:4, converStatus:4,
fileBaseUrl:this.$Constants.fileBaseUrl, fileBaseUrl:this.$xpage.constants.fileBaseUrl,
curPdfPath:'', curPdfPath:'',
curCFile:{},//当前课件的内容 curCFile:{},//当前课件的内容
comTypes:[ comTypes:[

View File

@@ -563,7 +563,7 @@
courseFileShow:false, courseFileShow:false,
curContent:{id:'',contentType:0,contenRefId:''}, curContent:{id:'',contentType:0,contenRefId:''},
curCFile:{},//当前课件的内容 curCFile:{},//当前课件的内容
fileBaseUrl:this.$Constants.fileBaseUrl, fileBaseUrl:this.$xpage.constants.fileBaseUrl,
imageShowUrl: '', imageShowUrl: '',
activeName: 'courseware', activeName: 'courseware',
getType: getType, getType: getType,

View File

@@ -156,28 +156,27 @@ export default {
mounted() { mounted() {
this.interestShow = true; this.interestShow = true;
//控制弹出窗口的代码 //控制弹出窗口的代码
let now = new Date() //当前时间 // let now = new Date() //当前时间
let end = new Date('2022/08/14 00:00:00') //对比时间 // let end = new Date('2022/08/14 00:00:00') //对比时间
if(now.getTime() < end.getTime()){ // if(now.getTime() < end.getTime()){
let times = localStorage.getItem(this.signLocalTimesKey); // let times = localStorage.getItem(this.signLocalTimesKey);
let isNewLogin=localStorage.getItem(this.$Constants.newLoginKey); // let isNewLogin=localStorage.getItem(this.$xpage.constants.newLoginKey);
//let isNewLogin='1'; // //let isNewLogin='1';
if(isNewLogin && isNewLogin=='1'){ // if(isNewLogin && isNewLogin=='1'){
if(!times){ // if(!times){
this.signInShow = true;//显示 // this.signInShow = true;//显示
localStorage.setItem(this.signLocalTimesKey,1); // localStorage.setItem(this.signLocalTimesKey,1);
}else{ // }else{
let intTimes=parseInt(times); // let intTimes=parseInt(times);
if(intTimes<2){ // if(intTimes<2){
this.signInShow = true;//显示 // this.signInShow = true;//显示
intTimes++; // intTimes++;
localStorage.setItem(this.signLocalTimesKey,intTimes); // localStorage.setItem(this.signLocalTimesKey,intTimes);
} // }
} // }
localStorage.setItem(this.$Constants.newLoginKey,0); // localStorage.setItem(this.$xpage.constants.newLoginKey,0);
} // }
// }
}
this.$store.dispatch('refrashMsg'); this.$store.dispatch('refrashMsg');
}, },
methods: { methods: {

View File

@@ -41,7 +41,7 @@
apiLogin.boeLogin(this.curToken).then(rs=>{ apiLogin.boeLogin(this.curToken).then(rs=>{
if(rs.status==200){ if(rs.status==200){
//setToken(rs.result.access_token); //setToken(rs.result.access_token);
localStorage.setItem(this.$Constants.newLoginKey,1); localStorage.setItem(this.$xpage.constants.newLoginKey,1);
if(this.toUrl){ if(this.toUrl){
location.href=this.toUrl; location.href=this.toUrl;
}else{ }else{

View File

@@ -293,7 +293,7 @@ export default {
studyId: "", studyId: "",
tags: [], tags: [],
numberToLetter: numberToLetter, numberToLetter: numberToLetter,
fileBaseUrl: this.$Constants.fileBaseUrl, fileBaseUrl: this.$xpage.constants.fileBaseUrl,
blobUrl:'',//播放的文件地址新添加采用blob方式 blobUrl:'',//播放的文件地址新添加采用blob方式
getType: getType, getType: getType,
courseType, courseType,

View File

@@ -292,7 +292,7 @@ export default {
totalContent: 0, //课程内容数量 totalContent: 0, //课程内容数量
pageCount: 0, pageCount: 0,
currentPage: 0, currentPage: 0,
fileBaseUrl: this.$Constants.fileBaseUrl, fileBaseUrl: this.$xpage.constants.fileBaseUrl,
contentList: [], contentList: [],
sectionList: [], sectionList: [],
teachers: [], teachers: [],

View File

@@ -302,7 +302,7 @@
totalContent: 0, //课程内容数量 totalContent: 0, //课程内容数量
pageCount: 0, pageCount: 0,
currentPage: 0, currentPage: 0,
fileBaseUrl: this.$Constants.fileBaseUrl, fileBaseUrl: this.$xpage.constants.fileBaseUrl,
contentList: [], contentList: [],
sectionList: [], sectionList: [],
teachers: [], teachers: [],

View File

@@ -36,7 +36,7 @@
<el-button>全部课程<i class="el-icon-arrow-down el-icon--right"></i></el-button> <el-button>全部课程<i class="el-icon-arrow-down el-icon--right"></i></el-button>
<el-dropdown-menu slot="dropdown" style="height: 150px;overflow-y: auto !important;"> <el-dropdown-menu slot="dropdown" style="height: 150px;overflow-y: auto !important;">
<el-dropdown-item command="">全部</el-dropdown-item> <el-dropdown-item command="">全部</el-dropdown-item>
<el-dropdown-item v-for="cou in couresna" :command="cou.courseId">{{cou.courseName}}</el-dropdown-item> <el-dropdown-item v-for="(cou,couidx) in couresna" :key="couidx" :command="cou.courseId">{{cou.courseName}}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button @click="publish" class="el-buttons"> <el-button @click="publish" class="el-buttons">