guojing 5 vuotta sitten
vanhempi
commit
ed609c1f61

+ 1 - 0
whepi-ui/templates/home/home.ftl

@@ -60,5 +60,6 @@
         qiuzhu_init();
         help();
         family_init();
+        submit_back();
     })(jQuery);
 </script>

+ 5 - 3
whepi-ui/templates/home/qiuzhu.ftl

@@ -197,12 +197,14 @@
                                     <div class="weui-textarea-counter"><span>0</span>/200</div>
                                 </div>
                             </div>
-                            <div class="weui-btn-area">
-                                <a class="weui-btn weui-btn_primary" href="javascript:">发起求助</a>
+                            <div class="weui-cell">
+                                <a class="weui-btn weui-btn_primary" href="javascript:" id="back">发起求助</a>
+                            </div>
+                            <div class="weui-cell ">
+                                <br>
                             </div>
                         </div>
                     </div>
-
                 </div>
                 <div id="familyDisplay" style="display: none">
                      <#include "/home/help.ftl" />

+ 9 - 0
whepi-ui/templates/home/qiuzhu.js

@@ -34,3 +34,12 @@ function family_init() {
 
   })*/
 }
+
+function submit_back() {
+  $('#back').on('click', function () {
+    if ($('#notPlay')[0].style.display = 'none') {
+      $('#notPlay')[0].style.display = '';
+      $('#play').toggle();
+    }
+  })
+}

+ 1 - 1
whepi-web/src/main/java/com/bofeng/wx/controller/HomeController.java

@@ -29,7 +29,7 @@ public class HomeController {
 
     @GetMapping("/home/home.html")
     public ModelAndView home(ModelMap model) {
-        UserOpen userOpen = homeService.getUserOpen();
+        //UserOpen userOpen = homeService.getUserOpen();
         model.put("user", new JsonWapper("{\"www\": \"er\"}"));
         return new ModelAndView("/home/home.ftl", model);
     }

+ 1 - 1
whepi-web/src/main/resources/application.yml

@@ -43,7 +43,7 @@ endpoints:
 #  whitelabel.enabled: false
 
 spring:
-  profiles.active: dev
+  profiles.active: guojing
 
   application:
     name: whepi-web