Commit 11559acf25bc2352b9f2c64ceef20b402ee28ac6
1 parent
ae6d27a7
updatemenu
Showing
2 changed files
with
4 additions
and
4 deletions
api/controllers/ApiController.js
@@ -11,8 +11,8 @@ var custom = sails.config.custom; | @@ -11,8 +11,8 @@ var custom = sails.config.custom; | ||
11 | 11 | ||
12 | // 跳转map | 12 | // 跳转map |
13 | var btnMaps = { | 13 | var btnMaps = { |
14 | - "btn_purchase":"http://m.nong12.com/user/my_purchase.do", | ||
15 | - "btn_sale":"http://m.nong12.com/user/my_sale.do" | 14 | + "btn_my_purchase":"http://m.nong12.com/user/my_purchase.do", |
15 | + "btn_my_sale":"http://m.nong12.com/user/my_sale.do" | ||
16 | }; | 16 | }; |
17 | 17 | ||
18 | module.exports = { | 18 | module.exports = { |
@@ -158,7 +158,7 @@ module.exports = { | @@ -158,7 +158,7 @@ module.exports = { | ||
158 | if(btnMaps[EventKey]){ | 158 | if(btnMaps[EventKey]){ |
159 | target_url = encodeURIComponent(btnMaps[EventKey] + '?open_id=' + OpenID); | 159 | target_url = encodeURIComponent(btnMaps[EventKey] + '?open_id=' + OpenID); |
160 | } | 160 | } |
161 | - | 161 | + |
162 | console.log(err,EventKey,target_url); | 162 | console.log(err,EventKey,target_url); |
163 | // 跳转绑定 | 163 | // 跳转绑定 |
164 | if (err.name == "no_bind") { | 164 | if (err.name == "no_bind") { |
api/models/Menu.js
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | "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" | 35 | "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" |
36 | }] | 36 | }] |
37 | }, { | 37 | }, { |
38 | - "name": "我", | 38 | + "name": "我的农丰", |
39 | "sub_button": [{ | 39 | "sub_button": [{ |
40 | "type": "view", | 40 | "type": "view", |
41 | "name": "我的采购", | 41 | "name": "我的采购", |