弹窗设置

This commit is contained in:
daihh
2022-12-23 17:38:51 +08:00
parent 6cb983f80e
commit f591b151fa
2 changed files with 18 additions and 72 deletions

View File

@@ -124,7 +124,7 @@
</div>
</div>
</div>
<popup v-if="popupConfig.id" :config="popupConfig"></popup>
<popup></popup>
</div>
</template>
<script>
@@ -181,26 +181,8 @@ export default {
this.sex = this.userInfo.sex;
this.$store.dispatch('refrashMsg');
this.loadBoeData();
this.loadPopupConfig();
},
methods: {
loadPopupConfig(){
this.popupConfig={
id:'123',//数据id
closeable:false,//不可以关闭
width:'472px',//宽度
height:'500px',
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:'https://boehrsurvey.wjx.cn/vm/O5XcWrk.aspx',//点击后打开的地址,最好是使用相对地址
h5Url:'',
btnText:'立即参与',//
btnColor:'#008BFF',
author:'BOEU学习平台产品团队',
type:0,//0表不控制
}
},
setCurIdentity(iden){
this.$store.dispatch('SetCurIdentity',iden);
},