弹出窗口测试

This commit is contained in:
daihh
2022-11-23 18:08:10 +08:00
parent 404df64edf
commit 41ced31abf
2 changed files with 8 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
<div class="dlg-title" v-html="config.title"></div>
<div class="dlg-content" v-html="config.content"></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>
</el-dialog>
@@ -46,6 +46,7 @@
},
mounted() {
let hasFlag = sessionStorage.getItem(this.sessionKey);
let $this=this;
if(!hasFlag){
let now=new Date();
let min=new Date(2022,10,9,0,0,0);
@@ -56,6 +57,9 @@
//console.log('open')
this.showGonggao=true;
sessionStorage.setItem(this.sessionKey,1);
setTimeout(function(){
$this.showGonggao=false;
},3000);
}
}
}

View File

@@ -193,7 +193,7 @@ export default {
title:'用户体验调研',//标题
content:'<div style="font-size:20px;font-weight: 600;padding-bottom:10px">亲爱的校友:</div><div> 诚邀您对11月4日上线的学习平台V2.0的使用体验进行测评,我们将以您的意见反馈为输入,不断的优化和改进。</div>',//文字内容
bgImage:'dlg_bg_pen',//背景图
pcUrl:'/pc/user/research',//点击后打开的地址,最好是使用相对地址
pcUrl:'https://boehrsurvey.wjx.cn/vm/O5XcWrk.aspx',//点击后打开的地址,最好是使用相对地址
h5Url:'',
btnText:'立即参与',//
btnColor:'#008BFF',