|
@@ -114,77 +114,77 @@ public class WxController {
|
|
|
|
|
|
//推介客户
|
|
|
val btn1 = new WxMenuButton();
|
|
|
- btn1.setName("推介客户");
|
|
|
+ btn1.setName("进入");
|
|
|
btn1.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
btn1.setUrl(
|
|
|
wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/market.html",
|
|
|
+ "home.html",
|
|
|
WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
);
|
|
|
|
|
|
- val btn2 = new WxMenuButton();
|
|
|
- btn2.setName("佣金");
|
|
|
-
|
|
|
- val btn21 = new WxMenuButton();
|
|
|
- btn21.setName("我的佣金");
|
|
|
- btn21.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
- btn21.setUrl(
|
|
|
- wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/commission.html",
|
|
|
- WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
- );
|
|
|
-
|
|
|
- val btn22 = new WxMenuButton();
|
|
|
- btn22.setName("历史订单");
|
|
|
- btn22.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
- btn22.setUrl(
|
|
|
- wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/history.html",
|
|
|
- WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
- );
|
|
|
-
|
|
|
- btn2.getSubButtons().add(btn21);
|
|
|
- btn2.getSubButtons().add(btn22);
|
|
|
-
|
|
|
-
|
|
|
- //我的
|
|
|
- val btn3 = new WxMenuButton();
|
|
|
- btn3.setName("我的");
|
|
|
-
|
|
|
- val btn31 = new WxMenuButton();
|
|
|
- btn31.setName("我的账号");
|
|
|
- btn31.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
- btn31.setUrl(
|
|
|
- wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/account.html",
|
|
|
- WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
- );
|
|
|
-
|
|
|
- val btn32 = new WxMenuButton();
|
|
|
- btn32.setName("二级分销");
|
|
|
- btn32.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
- btn32.setUrl(
|
|
|
- wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/sub.html",
|
|
|
- WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
- );
|
|
|
-
|
|
|
- val btn33 = new WxMenuButton();
|
|
|
- btn33.setName("我的二维码");
|
|
|
- btn33.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
- btn33.setUrl(
|
|
|
- wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
- "/cust/user_place_list.html",
|
|
|
- WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
- );
|
|
|
-
|
|
|
- btn3.getSubButtons().add(btn31);
|
|
|
- btn3.getSubButtons().add(btn32);
|
|
|
- btn3.getSubButtons().add(btn33);
|
|
|
+// val btn2 = new WxMenuButton();
|
|
|
+// btn2.setName("业委会");
|
|
|
+//
|
|
|
+// val btn21 = new WxMenuButton();
|
|
|
+// btn21.setName("每日上报");
|
|
|
+// btn21.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
+// btn21.setUrl(
|
|
|
+// wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
+// "/cust/commission.html",
|
|
|
+// WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
+// );
|
|
|
+//
|
|
|
+// val btn22 = new WxMenuButton();
|
|
|
+// btn22.setName("求助");
|
|
|
+// btn22.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
+// btn22.setUrl(
|
|
|
+// wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
+// "/cust/history.html",
|
|
|
+// WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
+// );
|
|
|
+//
|
|
|
+// btn2.getSubButtons().add(btn21);
|
|
|
+// btn2.getSubButtons().add(btn22);
|
|
|
+//
|
|
|
+//
|
|
|
+// //我的
|
|
|
+// val btn3 = new WxMenuButton();
|
|
|
+// btn3.setName("我的家");
|
|
|
+//
|
|
|
+// val btn31 = new WxMenuButton();
|
|
|
+// btn31.setName("健康日报");
|
|
|
+// btn31.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
+// btn31.setUrl(
|
|
|
+// wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
+// "/cust/account.html",
|
|
|
+// WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
+// );
|
|
|
+//
|
|
|
+// val btn32 = new WxMenuButton();
|
|
|
+// btn32.setName("家庭求助");
|
|
|
+// btn32.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
+// btn32.setUrl(
|
|
|
+// wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
+// "/cust/sub.html",
|
|
|
+// WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
+// );
|
|
|
+//
|
|
|
+// val btn33 = new WxMenuButton();
|
|
|
+// btn33.setName("我的二维码");
|
|
|
+// btn33.setType(WxConsts.MenuButtonType.VIEW);
|
|
|
+// btn33.setUrl(
|
|
|
+// wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
|
|
|
+// "/cust/user_place_list.html",
|
|
|
+// WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
|
|
|
+// );
|
|
|
+//
|
|
|
+// btn3.getSubButtons().add(btn31);
|
|
|
+// btn3.getSubButtons().add(btn32);
|
|
|
+// btn3.getSubButtons().add(btn33);
|
|
|
|
|
|
menu.getButtons().add(btn1);
|
|
|
- menu.getButtons().add(btn2);
|
|
|
- menu.getButtons().add(btn3);
|
|
|
+// menu.getButtons().add(btn2);
|
|
|
+// menu.getButtons().add(btn3);
|
|
|
wxService.getMenuService().menuCreate(menu);
|
|
|
return ModelOps.newSuccess();
|
|
|
}
|