瀏覽代碼

修改拖出来之后产生的bug---

Longlin 5 年之前
父節點
當前提交
bc7b2dd132

+ 1 - 1
whepi-ui/templates/groupBuying/groupBuyingXx.ftl

@@ -154,7 +154,7 @@
     });
 
     function goback() {
-        window.location.href = "/yeweihui/home.html?show=tuangou&userId=" + userId;
+        window.location.href = "/yeweihui/tuangouHome.html?show=tuangou&userId=" + userId;
     }
 
     function finish() {

+ 2 - 2
whepi-ui/templates/yeweihui/tgPublish.ftl

@@ -44,7 +44,7 @@
     $("#tg_input_deliver_time").datetimePicker();
 
     function goback() {
-        window.location.href = "/yeweihui/home.html?show=tuangou&userId=" + userId;
+        window.location.href = "/yeweihui/tuangouHome.html?show=tuangou&userId=" + userId;
     }
 
     $("#tg_publish").on('click', function () {
@@ -197,7 +197,7 @@
             success: function (data) {
                 // console.log(data);
                 if (data.success) {
-                    window.location.href = "/yeweihui/home.html?show=tuangou&userId=" + userId;
+                    window.location.href = "/yeweihui/tuangouHome.html?show=tuangou&userId=" + userId;
                 }
                 else  {
                     $.alert(data.data);

+ 9 - 0
whepi-web/src/main/java/com/bofeng/wx/controller/YeWeiHuiController.java

@@ -69,6 +69,15 @@ public class YeWeiHuiController {
     return new ModelAndView("/yeweihui/home.ftl", model);
   }
 
+  @GetMapping("/yeweihui/tuangouHome.html")
+  public ModelAndView yeweihuiTuangouHome(ModelMap model, @RequestParam(value = "userId") Long userId, @RequestParam(value = "show", required = false, defaultValue = "-") String show) {
+
+    model.put("user_id", "\"" + userId + "\"");
+    model.put("show", "\"" + show + "\"");
+
+    return new ModelAndView("/yeweihui/tuangouHome.ftl", model);
+  }
+
   @GetMapping("/yeweihui/qiuzhuDetail.html")
   public ModelAndView qiuzhudetail(@Pd(name = "taskId") Long taskId, @Pd(name = "userId") Long userId, ModelMap model) throws JsonProcessingException {