Menu.js 6.05 KB
 /*
             * 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']
 };