Commit e1b6e32c9b44880ef2632b16d00a9ce73804a3bb

Authored by unknown
1 parent 7eecdb51

menu

api/models/Menu.js
1 /* 1 /*
2 - * Menu.js 微信菜单模型  
3 - *  
4 - * @description :: TODO: You might write a short summary of how this model works and what it represents here.  
5 - * @docs :: http://sailsjs.org/#!documentation/models  
6 - *  
7 - * 删除的一条  
8 - {  
9 - "type": "view",  
10 - "name": "订单查询",  
11 - "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"  
12 - }  
13 -  
14 - 过年活动调整,活动结束已改回来  
15 - data: {  
16 - "button": [{  
17 - "name": "年货大集",  
18 - "sub_button": [{  
19 - "type": "view",  
20 - "name": "哈市年货主场",  
21 - "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"  
22 - }, {  
23 - "type": "view",  
24 - "name": "哈市水果专场",  
25 - "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"  
26 - }, {  
27 - "type": "view",  
28 - "name": "哈市年货礼包",  
29 - "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"  
30 - }, {  
31 - "type": "view",  
32 - "name": "全国配送年货 ",  
33 - "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"  
34 - }, {  
35 - "type": "view",  
36 - "name": "农丰网首页",  
37 - "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"  
38 - }]  
39 - }, {  
40 - "name": "我的农丰",  
41 - "sub_button": [{  
42 - "name": "个人中心",  
43 - "type": "view",  
44 - "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"  
45 - }, {  
46 - "name": "联系客服",  
47 - "type": "click",  
48 - "key": "btn_custom_service"  
49 - }]  
50 - }]  
51 - },  
52 -*/ 2 + * Menu.js 微信菜单模型
  3 + *
  4 + * @description :: TODO: You might write a short summary of how this model works and what it represents here.
  5 + * @docs :: http://sailsjs.org/#!documentation/models
  6 + *
  7 + * 删除的一条
  8 + {
  9 + "type": "view",
  10 + "name": "订单查询",
  11 + "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"
  12 + }
  13 +
  14 +
  15 + 过年活动调整,活动结束改回来
  16 + data: {
  17 + "button": [{
  18 + "name": "农丰网",
  19 + "sub_button": [{
  20 + "type": "view",
  21 + "name": "采购商品",
  22 + "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"
  23 + }]
  24 + }, {
  25 + "name": "商机信息",
  26 + "sub_button": [{
  27 + "type": "view",
  28 + "name": "查看商机",
  29 + "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"
  30 + }, {
  31 + "type": "view",
  32 + "name": "发布商机",
  33 + "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"
  34 + }]
  35 + }, {
  36 + "name": "我的农丰",
  37 + "sub_button": [{
  38 + "type": "view",
  39 + "name": "我的采购",
  40 + "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"
  41 + }, {
  42 + "type": "view",
  43 + "name": "我的销售",
  44 + "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"
  45 + }]
  46 + }]
  47 + },
  48 +
  49 +
  50 + */
53 module.exports = { 51 module.exports = {
54 connection: "localDiskDb", 52 connection: "localDiskDb",
55 autoCreatedAt: false, 53 autoCreatedAt: false,
@@ -59,30 +57,23 @@ @@ -59,30 +57,23 @@
59 "name": "农丰网", 57 "name": "农丰网",
60 "sub_button": [{ 58 "sub_button": [{
61 "type": "view", 59 "type": "view",
62 - "name": "采购商品",  
63 - "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"  
64 - }]  
65 - }, {  
66 - "name": "商机信息",  
67 - "sub_button": [{  
68 - "type": "view",  
69 - "name": "查看商机",  
70 - "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" 60 + "name": "农丰网首页",
  61 + "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"
71 }, { 62 }, {
72 "type": "view", 63 "type": "view",
73 - "name": "发布商机",  
74 - "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" 64 + "name": "APP下载",
  65 + "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_app_down&response_type=code&scope=snsapi_base&state=1#wechat_redirect"
75 }] 66 }]
76 }, { 67 }, {
77 "name": "我的农丰", 68 "name": "我的农丰",
78 "sub_button": [{ 69 "sub_button": [{
  70 + "name": "个人中心",
79 "type": "view", 71 "type": "view",
80 - "name": "我的采购",  
81 - "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" 72 + "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"
82 }, { 73 }, {
83 - "type": "view",  
84 - "name": "我的销售",  
85 - "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" 74 + "name": "联系客服",
  75 + "type": "click",
  76 + "key": "btn_custom_service"
86 }] 77 }]
87 }] 78 }]
88 }, 79 },
@@ -93,7 +84,8 @@ @@ -93,7 +84,8 @@
93 "btn_qgps": "http://m.act.nong12.com/RkVTt5.html", 84 "btn_qgps": "http://m.act.nong12.com/RkVTt5.html",
94 "btn_hssgzc": "http://m.act.nong12.com/ZfvUELe.html", 85 "btn_hssgzc": "http://m.act.nong12.com/ZfvUELe.html",
95 "btn_home": "http://m.nong12.com", 86 "btn_home": "http://m.nong12.com",
96 - "btn_hsnhlb": "http://m.act.nong12.com/MTXayfAkr.html" 87 + "btn_hsnhlb": "http://m.act.nong12.com/MTXayfAkr.html",
  88 + "btn_app_down": "http://www.nong12.com/app.html"
97 }, 89 },
98 - allowNoBind: ['btn_category', 'supply_list', 'btn_hssgzc', 'btn_home', 'btn_hsnhlb','btn_hsps','btn_qgps'] 90 + allowNoBind: ['btn_category', 'supply_list', 'btn_hssgzc', 'btn_home', 'btn_hsnhlb', 'btn_hsps', 'btn_qgps','btn_app_down']
99 }; 91 };
100 \ No newline at end of file 92 \ No newline at end of file
config/custom.js
@@ -14,8 +14,7 @@ module.exports.custom = { @@ -14,8 +14,7 @@ module.exports.custom = {
14 14
15 "menu_create_api": "https://api.weixin.qq.com/cgi-bin/menu/create", 15 "menu_create_api": "https://api.weixin.qq.com/cgi-bin/menu/create",
16 16
17 - "defaultrepy": "您好,感谢您关注农丰网,在购买年货中,您遇到任何问题,欢迎致电: 0451 - 86622777,谢谢您的选购!",  
18 -  
19 - "defaultSubscribeRepy": "感谢您关注农丰网官方微信。农丰网是专业的农产品批发采购平台,绑定农丰网账号,微信也能做生意,"  
20 - // "defaultSubscribeRepy": "感谢您关注农丰网微信。农丰网在春节期间特别推出年货大集活动,全国各地的亲们都可以方便地买到产地直供的东北特产,哈尔滨的亲们还能买到各种绝对超值的水果、粮油、海鲜、山货和干果。年货大集所售商品均为批发市场商户的进货价,而且全部包邮。详情请点击底部菜单“年货大集”,哈尔滨同城配送请选择“<a href=\"http://m.act.nong12.com/hn0BJvV.html\">哈市年货主场</a>”或“<a href=\"http://m.act.nong12.com/ZfvUELe.html\">哈市水果专场</a>”、“<a href=\"http://m.act.nong12.com/MTXayfAkr.html\">哈市年货礼包</a>”。 购买中有任何问题欢迎致电: 0451 - 86622777 " 17 + "defaultrepy": "您好,感谢您关注农丰网,本次年货大集活动已于2月3日24点结束,近两日订单我们正在全力配送,请您耐心等待,您遇到任何问题,欢迎致电: 0451 - 86622777 猴年到,鸿运照,烦恼的事儿往边儿靠:)",
  18 +
  19 + "defaultSubscribeRepy": "感谢您关注农丰网微信。农丰网春节前推出的年货大集活动已于2月3日24点结束,再次感谢您的关注!2016年农丰网还将推出更多精彩活动,敬请期待!如有问题欢迎致电: 0451 - 86622777 祝愿您: 猴年行好运, 万事遂心愿! "
21 }; 20 };
22 \ No newline at end of file 21 \ No newline at end of file