浏览代码

admin 2月15号

guojing 5 年之前
父节点
当前提交
d14c59fba4
共有 3 个文件被更改,包括 17 次插入17 次删除
  1. 1 1
      whepi-ui/templates/home/buyClient.ftl
  2. 15 15
      whepi-ui/templates/home/home.ftl
  3. 1 1
      whepi-web/src/main/resources/application.yml

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

@@ -98,7 +98,7 @@
     <#--返回-->
     function buyBack() {
         // window.history.back();
-        window.location.href = "/user/homeIndex.html?userId=" + $('#buyuserId').val() + "&userType=" + 1 + "&show=tuangou"+"&type="+2;
+        window.location.href = "/user/homeIndex.html?userId=" + $('#buyuserId').val() + "&userType=" + 1 + "&show=tuangou";
     }
 
     /*撤销*/

+ 15 - 15
whepi-ui/templates/home/home.ftl

@@ -8,8 +8,8 @@
             <#include "/home/ribao.ftl" /></div>
         <div id="tab2" class="weui-tab__bd-item">
             <#include "/home/qiuzhu.ftl" /></div>
-       <#-- <div id="tab3" class="weui-tab__bd-item">
-    <#include "/home/buy.ftl" /></div>-->
+        <div id="tab3" class="weui-tab__bd-item">
+    <#include "/home/buy.ftl" /></div>
     <#--<div id="tab4" class="weui-tab__bd-item">-->
     <#--<h1>页面四</h1> </div>-->
     </div>
@@ -22,10 +22,10 @@
             <div class="weui-tabbar__icon"><img src="/static/images/wx/customer_service.png" alt=""></div>
             <p class="weui-tabbar__label">家庭求助</p>
         </a>
-      <#--  <a id="jt3" href="#tab3" class="weui-tabbar__item" onclick="buyGroup()">
+        <a id="jt3" href="#tab3" class="weui-tabbar__item" onclick="buyGroup()">
             <div class="weui-tabbar__icon"><img src="/static/images/wx/upload.png" alt=""></div>
             <p class="weui-tabbar__label">商品团购</p>
-        </a>-->
+        </a>
     <#--<a href="#tab4" class="weui-tabbar__item">-->
     <#--<div class="weui-tabbar__icon"> <img src="./images/icon_nav_cell.png" alt=""> </div>-->
     <#--<p class="weui-tabbar__label">我</p>-->
@@ -84,20 +84,20 @@
         });
 
 
-        <#--function selectTab() {-->
-            <#--$("#tab1").removeClass('weui-tab__bd-item--active');-->
-            <#--$("#jt1").removeClass('weui-bar__item--on');-->
-            <#--$("#tab3").addClass('weui-tab__bd-item--active');-->
-            <#--$("#jt3").addClass('weui-bar__item--on');-->
-            <#--buyGroup();-->
-        <#--}-->
+        function selectTab() {
+            $("#tab1").removeClass('weui-tab__bd-item--active');
+            $("#jt1").removeClass('weui-bar__item--on');
+            $("#tab3").addClass('weui-tab__bd-item--active');
+            $("#jt3").addClass('weui-bar__item--on');
+            buyGroup();
+        }
 
-        <#--var show = ${show!'"-"'};-->
+        var show = ${show!'"-"'};
 
-        <#--if (show == 'tuangou') {-->
-            <#--selectTab();-->
+        if (show == 'tuangou') {
+            selectTab();
 
-        <#--}-->
+        }
     })(jQuery);
 
 

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

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