Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
e80dcbf2
Commit
e80dcbf2
authored
Feb 12, 2019
by
yinxr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: yinxr 调整微信功能列表页接口的位置
parent
e40eb6b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
37 deletions
+42
-37
head-file.ftl
src/main/webapp/WEB-INF/manager/include/head-file.ftl
+13
-4
index.ftl
src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl
+6
-2
weixin.ftl
src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl
+23
-31
No files found.
src/main/webapp/WEB-INF/manager/include/head-file.ftl
View file @
e80dcbf2
...
@@ -43,12 +43,20 @@
...
@@ -43,12 +43,20 @@
ms.manager = "${managerPath}";
ms.manager = "${managerPath}";
ms.web = ms.base;
ms.web = ms.base;
// ms.base = "http://192.168.0.54:8
5
";
// ms.base = "http://192.168.0.54:8
2
";
// ms.manager = "http://192.168.0.54:8
5
/apis/ms";
// ms.manager = "http://192.168.0.54:8
2
/apis/ms";
// ms.web = "http://192.168.0.54:8
5
/apis";
// ms.web = "http://192.168.0.54:8
2
/apis";
//图片懒加载
//图片懒加载
Vue.use(VueLazyload, {
Vue.use(VueLazyload, {
error: ms.base + '/images/ic_image_deault.png',
error: ms.base + '/images/ic_image_deault.png',
loading: 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>
</script>
\ No newline at end of file
src/main/webapp/WEB-INF/manager/mweixin/menu/index.ftl
View file @
e80dcbf2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
menu.menuTitle }}</el-button>
menu.menuTitle }}</el-button>
<div class="sub-menu-list" v-show="menu.addSubMenuShow">
<div class="sub-menu-list" v-show="menu.addSubMenuShow">
<!-- 子菜单 -->
<!-- 子菜单 -->
<el-button v-for="(sub,index) of
menu.s
ubMenuList" :key="index" v-text="sub.menuTitle" class="sub-menu-item"></el-button>
<el-button v-for="(sub,index) of
currentS
ubMenuList" :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>
<el-button icon="el-icon-plus" class="ms-create-btn" @click="addSubMenu"></el-button>
</div>
</div>
...
@@ -106,6 +106,7 @@
...
@@ -106,6 +106,7 @@
activeName: "picture", //导航切换 当前激活面板
activeName: "picture", //导航切换 当前激活面板
mainMenuList: [],
mainMenuList: [],
subMenuList: [],//所有的子菜单
subMenuList: [],//所有的子菜单
currentSubMenuList:[],//打开当前父菜单的子菜单列表
},
},
methods: {
methods: {
menuList: function () {
menuList: function () {
...
@@ -156,9 +157,12 @@
...
@@ -156,9 +157,12 @@
openSubMenu(index,menu){
openSubMenu(index,menu){
this.closeAllSubMenu(index);
this.closeAllSubMenu(index);
this.$set(menu,'subMenuList',[])
this.$set(menu,'subMenuList',[])
console.log('menu',menu);
var that = this;
var that = this;
that.currentSubMenuList = [];
console.log('that.subMenuList',that.subMenuList);
that.subMenuList.forEach(function(item,index){
that.subMenuList.forEach(function(item,index){
item.menuMenuId == menu
Id && that.s
ubMenuList.push(item)
item.menuMenuId == menu
.menuId && that.currentS
ubMenuList.push(item)
})
})
},
},
// 关闭所有的子菜单弹出层
// 关闭所有的子菜单弹出层
...
...
src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl
View file @
e80dcbf2
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<head>
<title></title>
<meta
charset=
"UTF-8"
>
<!-- <#include "/include/head-file.ftl"/> -->
<title></title>
<!--#include virtual="../include/head-file.ftl" -->
<!-- <#include "/include/head-file.ftl"/> -->
</head>
<!--#include virtual="../include/head-file.ftl" -->
<body>
</head>
<!--#include virtual="menu.ftl" -->
<!--#include virtual="metarial/index.ftl" -->
<body>
<!--#include virtual="metarial/form.ftl" -->
<!--#include virtual="menu.ftl" -->
<!--#include virtual="picture/index.ftl" -->
<!--#include virtual="metarial/index.ftl" -->
<!--#include virtual="keyword/index.ftl" -->
<!--#include virtual="metarial/form.ftl" -->
<!--#include virtual="keyword/form.ftl" -->
<!--#include virtual="picture/index.ftl" -->
<!--#include virtual="menu/index.ftl" -->
<!--#include virtual="keyword/index.ftl" -->
<!--#include virtual="menu/new-pic-form.ftl" -->
<!--#include virtual="keyword/form.ftl" -->
<!--#include virtual="menu/material-bank-form.ftl" -->
<!--#include virtual="menu/index.ftl" -->
<!--#include virtual="message/index.ftl" -->
<!--#include virtual="menu/new-pic-form.ftl" -->
</body>
<!--#include virtual="menu/material-bank-form.ftl" -->
</html>
<!--#include virtual="message/index.ftl" -->
<script>
</body>
// 测试使用 ==> 微信其他接口走之前需要先走这几个接口
(
function
(){
</html>
ms
.
http
.
get
(
ms
.
manager
+
"/mweixin/11/function.do"
)
\ No newline at end of file
.
then
((
res
)
=>
{
console
.
log
(
'res'
,
true
);
},
(
err
)
=>
{
console
.
log
(
err
)
})
})()
</script>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment