Browse Source

未选中二级部门报错

caotao 5 years ago
parent
commit
301c02063a

BIN
whepi-ui/static/bandPhone.jpg


+ 2 - 1
whepi-ui/templates/home/homeHelp.ftl

@@ -3,7 +3,8 @@
 
 <div class="container" style="width: 100%">
     <div class="weui-panel weui-panel_access">
-        <img src="/static/homeHelp_1.jpg" style="width: 100%"/>
+<#--        <img src="/static/homeHelp_1.jpg" style="width: 100%"/>-->
+        <img src="/static/bandPhone.jpg" style="width: 100%"/>
     </div>
 </div>
 

+ 13 - 33
whepi-web/src/main/java/com/bofeng/wx/WxController.java

@@ -160,45 +160,25 @@ public class WxController {
 
 
         val btnDesc = new WxMenuButton();
-        btnDesc.setName("平台简介");
-        val btn31 = new WxMenuButton();
-        btn31.setName("家庭手册");
-        btn31.setType(WxConsts.MenuButtonType.VIEW);
-        btn31.setUrl(
+        btnDesc.setName("用户认证");
+        btnDesc.setType(WxConsts.MenuButtonType.VIEW);
+        btnDesc.setUrl(
                 wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
                                 "/home/homeHelp.html",
                         WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
         );
-        val btn32 = new WxMenuButton();
-        btn32.setName("管理员手册");
-        btn32.setType(WxConsts.MenuButtonType.VIEW);
-        btn32.setUrl(
-                wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
-                                "/home/adminHelp.html",
-                        WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
-        );
 
-        val btn33 = new WxMenuButton();
-        btn33.setName("出入管理");
-        btn33.setType(WxConsts.MenuButtonType.VIEW);
-        btn33.setUrl(
-                wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
-                                "/home/outHelp.html",
-                        WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
-        );
+//        val btn31 = new WxMenuButton();
+//        btn31.setName("用户认证");
+//        btn31.setType(WxConsts.MenuButtonType.VIEW);
+//        btn31.setUrl(
+//                wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
+//                                "/home/homeHelp.html",
+//                        WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
+//        );
+//
+//        btnDesc.getSubButtons().add(btn31);
 
-        val btn34 = new WxMenuButton();
-        btn34.setName("简介");
-        btn34.setType(WxConsts.MenuButtonType.VIEW);
-        btn34.setUrl(
-                wxService.oauth2buildAuthorizationUrl(weChatProperties.getDomain() +
-                                "/home/desc.html",
-                        WxConsts.OAuth2Scope.SNSAPI_USERINFO, null)
-        );
-        btnDesc.getSubButtons().add(btn31);
-        btnDesc.getSubButtons().add(btn32);
-        btnDesc.getSubButtons().add(btn33);
-        btnDesc.getSubButtons().add(btn34);
 //        btn3.getSubButtons().add(btnDesc);
 //        btn3.getSubButtons().add(btnHelp);