From e80dcbf285ba530e668774f7b1b1484e5a6c87bc Mon Sep 17 00:00:00 2001 From: yinxr <2273460044@qq.com> Date: Tue, 12 Feb 2019 11:45:09 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20yinxr=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=8A=9F=E8=83=BD=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/manager/include/head-file.ftl | 16 ++++-- .../WEB-INF/manager/mweixin/menu/index.ftl | 8 ++- .../webapp/WEB-INF/manager/mweixin/weixin.ftl | 52 ++++++++----------- 3 files changed, 40 insertions(+), 36 deletions(-) diff --git a/src/main/webapp/WEB-INF/manager/include/head-file.ftl b/src/main/webapp/WEB-INF/manager/include/head-file.ftl index f6d6d64f..493ac74c 100644 --- a/src/main/webapp/WEB-INF/manager/include/head-file.ftl +++ b/src/main/webapp/WEB-INF/manager/include/head-file.ftl @@ -43,12 +43,20 @@ ms.manager = "${managerPath}"; ms.web = ms.base; - // ms.base = "http://192.168.0.54:85"; - // ms.manager = "http://192.168.0.54:85/apis/ms"; - // ms.web = "http://192.168.0.54:85/apis"; + // ms.base = "http://192.168.0.54:82"; + // ms.manager = "http://192.168.0.54:82/apis/ms"; + // ms.web = "http://192.168.0.54:82/apis"; //图片懒加载 Vue.use(VueLazyload, { error: ms.base + '/images/ic_image_deault.png', loading: ms.base + '/images/ic_image_deault.png', - }) + }) + + // 测试使用 ==> 微信其他接口走之前需要先走这个接口 + ms.http.get(ms.manager + "/mweixin/11/function.do") + .then((res) => { + console.log('微信登录接口', true); + }, (err) => { + console.log(err) + }) \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl b/src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl index b16b95eb..9d16c4e6 100644 --- a/src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl +++ b/src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl @@ -23,7 +23,7 @@ menu.menuTitle }} @@ -106,6 +106,7 @@ activeName: "picture", //导航切换 当前激活面板 mainMenuList: [], subMenuList: [],//所有的子菜单 + currentSubMenuList:[],//打开当前父菜单的子菜单列表 }, methods: { menuList: function () { @@ -156,9 +157,12 @@ openSubMenu(index,menu){ this.closeAllSubMenu(index); this.$set(menu,'subMenuList',[]) + console.log('menu',menu); var that = this; + that.currentSubMenuList = []; + console.log('that.subMenuList',that.subMenuList); that.subMenuList.forEach(function(item,index){ - item.menuMenuId == menuId && that.subMenuList.push(item) + item.menuMenuId == menu.menuId && that.currentSubMenuList.push(item) }) }, // 关闭所有的子菜单弹出层 diff --git a/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl b/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl index 09c4b5bd..5e352634 100644 --- a/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl +++ b/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl @@ -1,32 +1,24 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file