Signed-off-by: yinxr 调整微信功能列表页接口的位置
This commit is contained in:
parent
e40eb6b763
commit
e80dcbf285
|
@ -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)
|
||||
})
|
||||
</script>
|
|
@ -23,7 +23,7 @@
|
|||
menu.menuTitle }}</el-button>
|
||||
<div class="sub-menu-list" v-show="menu.addSubMenuShow">
|
||||
<!-- 子菜单 -->
|
||||
<el-button v-for="(sub,index) of menu.subMenuList" :key="index" v-text="sub.menuTitle" class="sub-menu-item"></el-button>
|
||||
<el-button v-for="(sub,index) of currentSubMenuList" :key="index" v-text="sub.menuTitle" class="sub-menu-item"></el-button>
|
||||
<!-- 添加子菜单的加号按钮 -->
|
||||
<el-button icon="el-icon-plus" class="ms-create-btn" @click="addSubMenu"></el-button>
|
||||
</div>
|
||||
|
@ -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)
|
||||
})
|
||||
},
|
||||
// 关闭所有的子菜单弹出层
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<!-- <#include "/include/head-file.ftl"/> -->
|
||||
<!--#include virtual="../include/head-file.ftl" -->
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--#include virtual="menu.ftl" -->
|
||||
<!--#include virtual="metarial/index.ftl" -->
|
||||
<!--#include virtual="metarial/form.ftl" -->
|
||||
|
@ -17,16 +19,6 @@
|
|||
<!--#include virtual="menu/new-pic-form.ftl" -->
|
||||
<!--#include virtual="menu/material-bank-form.ftl" -->
|
||||
<!--#include virtual="message/index.ftl" -->
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script>
|
||||
// 测试使用 ==> 微信其他接口走之前需要先走这几个接口
|
||||
(function(){
|
||||
ms.http.get(ms.manager + "/mweixin/11/function.do")
|
||||
.then((res)=>{
|
||||
console.log('res',true);
|
||||
}, (err) => {
|
||||
console.log(err)
|
||||
})
|
||||
})()
|
||||
</script>
|
Loading…
Reference in New Issue