mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
弹出窗口测试
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<div class="dlg-title" v-html="config.title"></div>
|
<div class="dlg-title" v-html="config.title"></div>
|
||||||
<div class="dlg-content" v-html="config.content"></div>
|
<div class="dlg-content" v-html="config.content"></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="config.btnText"><a :href="config.pcUrl" :style="{'background-color':config.btnColor}" class="dlg-button">{{config.btnText}}</a> </div>
|
<div v-if="config.btnText"><a :href="config.pcUrl" target="_blank" :style="{'background-color':config.btnColor}" class="dlg-button">{{config.btnText}}</a> </div>
|
||||||
<div v-if="config.author" style="text-align: right;padding-top: 20px;"><span>{{config.author}}</span> </div>
|
<div v-if="config.author" style="text-align: right;padding-top: 20px;"><span>{{config.author}}</span> </div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let hasFlag = sessionStorage.getItem(this.sessionKey);
|
let hasFlag = sessionStorage.getItem(this.sessionKey);
|
||||||
|
let $this=this;
|
||||||
if(!hasFlag){
|
if(!hasFlag){
|
||||||
let now=new Date();
|
let now=new Date();
|
||||||
let min=new Date(2022,10,9,0,0,0);
|
let min=new Date(2022,10,9,0,0,0);
|
||||||
@@ -56,6 +57,9 @@
|
|||||||
//console.log('open')
|
//console.log('open')
|
||||||
this.showGonggao=true;
|
this.showGonggao=true;
|
||||||
sessionStorage.setItem(this.sessionKey,1);
|
sessionStorage.setItem(this.sessionKey,1);
|
||||||
|
setTimeout(function(){
|
||||||
|
$this.showGonggao=false;
|
||||||
|
},3000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ export default {
|
|||||||
title:'用户体验调研',//标题
|
title:'用户体验调研',//标题
|
||||||
content:'<div style="font-size:20px;font-weight: 600;padding-bottom:10px">亲爱的校友:</div><div> 诚邀您对11月4日上线的学习平台V2.0的使用体验进行测评,我们将以您的意见反馈为输入,不断的优化和改进。</div>',//文字内容
|
content:'<div style="font-size:20px;font-weight: 600;padding-bottom:10px">亲爱的校友:</div><div> 诚邀您对11月4日上线的学习平台V2.0的使用体验进行测评,我们将以您的意见反馈为输入,不断的优化和改进。</div>',//文字内容
|
||||||
bgImage:'dlg_bg_pen',//背景图
|
bgImage:'dlg_bg_pen',//背景图
|
||||||
pcUrl:'/pc/user/research',//点击后打开的地址,最好是使用相对地址
|
pcUrl:'https://boehrsurvey.wjx.cn/vm/O5XcWrk.aspx',//点击后打开的地址,最好是使用相对地址
|
||||||
h5Url:'',
|
h5Url:'',
|
||||||
btnText:'立即参与',//
|
btnText:'立即参与',//
|
||||||
btnColor:'#008BFF',
|
btnColor:'#008BFF',
|
||||||
|
|||||||
Reference in New Issue
Block a user