mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改一个全局的变量控制
This commit is contained in:
@@ -305,7 +305,7 @@ export default {
|
||||
homeworkInfo: {},
|
||||
examInfo: {},
|
||||
assessInfo: {},
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
||||
btnLoading: false,
|
||||
curCFile:{},//课件内容
|
||||
coursewareInfo: {
|
||||
|
||||
@@ -343,7 +343,7 @@ export default {
|
||||
},
|
||||
contentDataShow:true,//预览页面和课程内容的切换
|
||||
isEdit: true,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
||||
contentData: {},
|
||||
curCFile:{},//课件内容
|
||||
getType: getType,
|
||||
|
||||
@@ -366,7 +366,7 @@
|
||||
data(){
|
||||
return {
|
||||
converStatus:4,
|
||||
fileBaseUrl:this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl:this.$xpage.constants.fileBaseUrl,
|
||||
curPdfPath:'',
|
||||
curCFile:{},//当前课件的内容
|
||||
comTypes:[
|
||||
|
||||
@@ -563,7 +563,7 @@
|
||||
courseFileShow:false,
|
||||
curContent:{id:'',contentType:0,contenRefId:''},
|
||||
curCFile:{},//当前课件的内容
|
||||
fileBaseUrl:this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl:this.$xpage.constants.fileBaseUrl,
|
||||
imageShowUrl: '',
|
||||
activeName: 'courseware',
|
||||
getType: getType,
|
||||
|
||||
@@ -156,28 +156,27 @@ export default {
|
||||
mounted() {
|
||||
this.interestShow = true;
|
||||
//控制弹出窗口的代码
|
||||
let now = new Date() //当前时间
|
||||
let end = new Date('2022/08/14 00:00:00') //对比时间
|
||||
if(now.getTime() < end.getTime()){
|
||||
let times = localStorage.getItem(this.signLocalTimesKey);
|
||||
let isNewLogin=localStorage.getItem(this.$Constants.newLoginKey);
|
||||
//let isNewLogin='1';
|
||||
if(isNewLogin && isNewLogin=='1'){
|
||||
if(!times){
|
||||
this.signInShow = true;//显示
|
||||
localStorage.setItem(this.signLocalTimesKey,1);
|
||||
}else{
|
||||
let intTimes=parseInt(times);
|
||||
if(intTimes<2){
|
||||
this.signInShow = true;//显示
|
||||
intTimes++;
|
||||
localStorage.setItem(this.signLocalTimesKey,intTimes);
|
||||
}
|
||||
}
|
||||
localStorage.setItem(this.$Constants.newLoginKey,0);
|
||||
}
|
||||
|
||||
}
|
||||
// let now = new Date() //当前时间
|
||||
// let end = new Date('2022/08/14 00:00:00') //对比时间
|
||||
// if(now.getTime() < end.getTime()){
|
||||
// let times = localStorage.getItem(this.signLocalTimesKey);
|
||||
// let isNewLogin=localStorage.getItem(this.$xpage.constants.newLoginKey);
|
||||
// //let isNewLogin='1';
|
||||
// if(isNewLogin && isNewLogin=='1'){
|
||||
// if(!times){
|
||||
// this.signInShow = true;//显示
|
||||
// localStorage.setItem(this.signLocalTimesKey,1);
|
||||
// }else{
|
||||
// let intTimes=parseInt(times);
|
||||
// if(intTimes<2){
|
||||
// this.signInShow = true;//显示
|
||||
// intTimes++;
|
||||
// localStorage.setItem(this.signLocalTimesKey,intTimes);
|
||||
// }
|
||||
// }
|
||||
// localStorage.setItem(this.$xpage.constants.newLoginKey,0);
|
||||
// }
|
||||
// }
|
||||
this.$store.dispatch('refrashMsg');
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
apiLogin.boeLogin(this.curToken).then(rs=>{
|
||||
if(rs.status==200){
|
||||
//setToken(rs.result.access_token);
|
||||
localStorage.setItem(this.$Constants.newLoginKey,1);
|
||||
localStorage.setItem(this.$xpage.constants.newLoginKey,1);
|
||||
if(this.toUrl){
|
||||
location.href=this.toUrl;
|
||||
}else{
|
||||
|
||||
@@ -293,7 +293,7 @@ export default {
|
||||
studyId: "",
|
||||
tags: [],
|
||||
numberToLetter: numberToLetter,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
||||
blobUrl:'',//播放的文件地址,新添加,采用blob方式
|
||||
getType: getType,
|
||||
courseType,
|
||||
|
||||
@@ -292,7 +292,7 @@ export default {
|
||||
totalContent: 0, //课程内容数量
|
||||
pageCount: 0,
|
||||
currentPage: 0,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
||||
contentList: [],
|
||||
sectionList: [],
|
||||
teachers: [],
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
totalContent: 0, //课程内容数量
|
||||
pageCount: 0,
|
||||
currentPage: 0,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
||||
contentList: [],
|
||||
sectionList: [],
|
||||
teachers: [],
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<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-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>
|
||||
<el-button @click="publish" class="el-buttons">
|
||||
|
||||
Reference in New Issue
Block a user