From bc3c0a446067377c9aac9322f903f3e8c32f1e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sat, 19 Jun 2021 21:58:04 +0800 Subject: [PATCH] =?UTF-8?q?Ad=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/components/tools/UserMenu.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/components/tools/UserMenu.vue b/jshERP-web/src/components/tools/UserMenu.vue index 4eecb9ae..fd180c40 100644 --- a/jshERP-web/src/components/tools/UserMenu.vue +++ b/jshERP-web/src/components/tools/UserMenu.vue @@ -26,7 +26,7 @@ - + 腾讯云促销 @@ -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 + } + }) + } } }