Ad展示优化

This commit is contained in:
季圣华
2021-06-19 21:58:04 +08:00
parent b3510488ca
commit bc3c0a4460

View File

@@ -26,7 +26,7 @@
<!-- update-end author:sunjianlei date:20200219 for: 菜单搜索改为动态组件,在手机端呈现出弹出框 -->
<!-- update-end author:sunjianlei date:20191220 for: 解决全局样式冲突的问题 -->
<!-- update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航 -->
<span class="action">
<span class="action" v-if="showAd">
<a class="cloud_title" target="_blank" href="https://cloud.tencent.com/act/cps/redirect?redirect=1074&cps_key=4fb6482d716575dcb7b8fe600d93766a&from=console">
<a-icon type="cloud" theme="filled" style="font-weight: bold;font-size: 16px; line-height: 16px;" /><span> 腾讯云促销</span>
</a>
@@ -71,7 +71,7 @@
import DepartSelect from './DepartSelect'
import { mapActions, mapGetters,mapState } from 'vuex'
import { mixinDevice } from '@/utils/mixin.js'
import { getFileAccessHttpUrl } from "@/api/manage"
import { getFileAccessHttpUrl,getAction } from "@/api/manage"
export default {
name: "UserMenu",
@@ -82,6 +82,7 @@
searchMenuOptions:[],
searchMenuComp: 'span',
searchMenuVisible: false,
showAd: false
// update-begin author:sunjianlei date:20200219 for: 头部菜单搜索规范命名 --------------
}
},
@@ -103,6 +104,7 @@
let lists = []
this.searchMenus(lists,this.permissionMenuList)
this.searchMenuOptions=[...lists]
this.isShowAd()
},
computed: {
...mapState({
@@ -188,9 +190,16 @@
this.$router.push({ path: route.path })
}
this.searchMenuVisible = false
}
},
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
/*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/
isShowAd() {
getAction('/platformConfig/isShowAd', {}).then((res) => {
if (res && res.code === 200) {
this.showAd = res.data
}
})
}
}
}
</script>