加弹窗

This commit is contained in:
daihh
2022-11-23 18:03:03 +08:00
parent 2d191d6908
commit 404df64edf
3 changed files with 131 additions and 5 deletions

View File

@@ -124,13 +124,13 @@
</div>
</div>
</div>
<gonggao></gonggao>
<popup v-if="popupConfig.id" :config="popupConfig"></popup>
</div>
</template>
<script>
import { mapGetters, mapActions } from 'vuex';
import apiMessage from '@/api/system/message.js';
import gonggao from '@/components/Gonggao.vue';
import popup from '@/components/AlertPopup.vue';
import apiBoeCourse from '@/api/boe/course.js';
import {userAvatarText} from "@/utils/tools.js";
export default {
@@ -153,7 +153,7 @@ export default {
}
},
components:{gonggao},
components:{popup},
computed: {
...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
@@ -169,7 +169,7 @@ export default {
},
data() {
return {
showGonggao:true,
popupConfig:{},
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
findType: '1',
keyword: '',
@@ -181,8 +181,26 @@ 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:'500px',//宽度
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:'/pc/user/research',//点击后打开的地址,最好是使用相对地址
h5Url:'',
btnText:'立即参与',//
btnColor:'#008BFF',
author:'BOEU学习平台产品团队',
type:0,//0表不控制
}
},
setCurIdentity(iden){
this.$store.dispatch('SetCurIdentity',iden);
},