Menu.js
6.05 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* 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"
}
过年活动调整,活动结束改回来
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"
}]
}]
},
*/
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_hsps&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_hssgzc&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_hsnhlb&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_qgps&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_home&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}]
}, {
"name": "我的农丰",
"sub_button": [{
"name": "个人中心",
"type": "view",
"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_usercenter&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
}, {
"name": "联系客服",
"type": "click",
"key": "btn_custom_service"
}]
}]
},
btnMaps: {
"btn_my_purchase": "http://m.nong12.com/user/my_purchase.do",
"btn_my_sale": "http://m.nong12.com/user/my_sale.do",
"btn_hsps": "http://m.act.nong12.com/hn0BJvV.html",
"btn_qgps": "http://m.act.nong12.com/RkVTt5.html",
"btn_hssgzc": "http://m.act.nong12.com/ZfvUELe.html",
"btn_home": "http://m.nong12.com",
"btn_hsnhlb": "http://m.act.nong12.com/MTXayfAkr.html"
},
allowNoBind: ['btn_category', 'supply_list', 'btn_hssgzc', 'btn_home', 'btn_hsnhlb','btn_hsps','btn_qgps']
};