zhengjinyi 2 роки тому
батько
коміт
8fa8dc8e52

+ 12 - 1
src/main/resources/static/js/help/clubinfo.js

@@ -17,7 +17,7 @@ var InformationPage = new Vue({
         linkParams:{
             path:'pages/seller/club/club-info',
             query:'',
-            env:'release'//正式"release",体验"trial",开发"develop"
+            env:'develop'//正式"release",体验"trial",开发"develop"
         }
     },
     filters: {
@@ -148,6 +148,15 @@ var InformationPage = new Vue({
         hidePopup:function(){// 隐藏弹窗
             var _self = this;
             _self.isShowPopup = false;
+        },
+        setEvens:function () { //设置环境
+            var siteEnv = $("#siteEnv").val();
+            var map = {
+                0: 'develop',
+                1: 'trial',
+                2: 'release',
+            }
+            return map[siteEnv];
         }
     },
     created: function () {
@@ -157,6 +166,8 @@ var InformationPage = new Vue({
         var _this = this;
         _this.clubId = _this.salesParams.clubId = getUrlParam("clubId");
         _this.linkParams.query = `clubId=${_this.clubId}`;
+        _this.linkParams.env = _this.setEvens();
+        console.log('env',_this.linkParams.env);
         _this.userClubRecordLinkage();
     }
 

+ 1 - 0
src/main/resources/templates/help/clubinfo.html

@@ -11,6 +11,7 @@
 <!-- 引用头部 -->
 <div class="club-info-logo">
   <input type="hidden" th:value="${coreServer}" id="coreServer">
+  <input type="hidden" th:value="${siteEnv}" id="siteEnv">
   <a href="/" class="logo">
     <img src="/img/base/logo_m.png" alt="采美 生美/医美采购服务平台"/>
   </a>