ソースを参照

微服务联调,修改注册登录, 机构资料修改

zhengjinyi 4 年 前
コミット
22c4b0d3a6

+ 19 - 1
src/main/resources/static/js/account/login.js

@@ -114,7 +114,25 @@ var loginPage = new Vue({
                             location.href="/index.html";
                         }
                     }else if(response.code == -4){
-                        window.location.href = '/bind.html';
+                        _self.userData = {
+                            account: response.data.account,
+                            email: response.data.email,
+                            phone: response.data.bindMobile,
+                            name: response.data.name,
+                            userName: response.data.userName,
+                            userId: response.data.userId,
+                            spId: response.data.serviceProviderId,
+                            clubId: response.data.clubId,
+                            shopId: response.data.shopId,
+                            userIdentity: response.data.userIdentity,
+                            permission: response.data.userPermission,
+                            token: response.data.token,
+                            unionId:response.data.unionId
+                        };
+                        _self.setStorages( _self.userData);
+                        setTimeout(function(){
+                            window.location.href = '/bind.html';
+                        },1000);
                     }else if(response.code == '-3'){//审核未通过
                         _self.text ='您的供应商账号审核未通过,原因:图片模糊,营业执照错误,审核人员在后台填写的内容';
                         _self.stautsfalse = true;

+ 1 - 1
src/main/resources/templates/components/header.html

@@ -35,7 +35,7 @@
                 </li>
                 <li v-if="loginStatus" id="mGlobalMenu" @click="hideGlobalMenu()">
                     <a class="cTab" href="javascript:void(0);" v-if="userIdentity == 3" v-text="userData.name"></a>
-                    <a class="cTab" href="javascript:void(0);" v-else v-text="userData.userName"></a>
+                    <a class="cTab" href="javascript:void(0);" v-else v-text="userData.name"></a>
                     <div class="cShow" v-if="userIdentity == 4 || userIdentity == 2">
                         <a href="/user/dashboard.html">我的采美</a>
                         <a href="/user/setting/information.html">机构资料</a>