Menu.js
2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Menu.js 微信菜单模型
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*
* 删除的一条
{
"type": "view",
"name": "订单查询",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Dbtn_ordersearch&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}
*/
module.exports = {
connection: "localDiskDb",
autoCreatedAt: false,
autoUpdatedAt: false,
data: {
"button": [{
"name": "农丰网",
"sub_button": [{
"type": "view",
"name": "采购商品",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Dbtn_category&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}]
}, {
"name": "商机信息",
"sub_button": [{
"type": "view",
"name": "查看商机",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Dsupply_list&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}, {
"type": "view",
"name": "发布商机",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Drelease_supply&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}]
}, {
"name": "我的农丰",
"sub_button": [{
"type": "view",
"name": "我的采购",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Dbtn_my_purchase&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
},
{
"type": "view",
"name": "我的销售",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + sails.config.custom.appid + "&redirect_uri=http%3A%2F%2Fwx.nong12.com%2Fapi%2Fauth%3Fevent_key%3Dbtn_my_sale&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}
]
}]
}
};