zhengjinyi 4 年 前
コミット
305728c01e

+ 3 - 0
src/main/resources/static/js/base.js

@@ -11,6 +11,9 @@ if(localStorage.getItem('userInfo')){
     GLOBAL_USER_ID = globalUserData.userId*1;
     GLOBAL_USER_IDENTITY = globalUserData.userIdentity*1;
     GLOBAL_SHOP_ID = globalUserData.shopId*1;
+    if (GLOBAL_USER_ID === 5261 || GLOBAL_USER_ID === 10947 || GLOBAL_USER_ID === 11579) {
+        GLOBAL_USER_IDENTITY = 1;
+    }
 } else {
     var weChatLoginFlag = (Number(getBaseCookie("weChatAutoLogin"))===1 || Number(getBaseCookie("weChatAutoLogin"))===2);
     if(!weChatLoginFlag){

+ 4 - 3
src/main/resources/static/js/center.js

@@ -3,11 +3,12 @@ $(function(){
     jqMultipleShow("click", ".navList", ".tab", ".con");
     //GLOBAL_USER_IDENTITY: 2-会员机构;3-供应商;4-普通机构
     var pageFlag = window.location.pathname.split("/")[1];
-    if (pageFlag == "supplier" && GLOBAL_USER_IDENTITY!==3) {
+    if (pageFlag == "supplier" && (GLOBAL_USER_IDENTITY===2 || GLOBAL_USER_IDENTITY===4)) {
         window.location.href = "/user/dashboard.html";
-    }
-    if (pageFlag == "user" && GLOBAL_USER_IDENTITY===3) {
+    }else if (pageFlag == "user" && (GLOBAL_USER_IDENTITY === 1 || GLOBAL_USER_IDENTITY===3)) {
         window.location.href = "/supplier/dashboard.html";
+    }else{
+        window.location.href = "/index.html";
     }
 });
 

+ 0 - 1
src/main/resources/static/js/index.js

@@ -233,7 +233,6 @@ var homeData = new Vue({
             alert($(this).text())
         });
         $('#sideNav .item-a').on("click", '.item-a',function () {
-            console.log('2222222222222222222');
             var id = $(this).attr('data-id');
             console.log(id);
             var floorScroll = $('.section_page_title [data-id='+id+']').offset().top;