Ver a proveniência

移动端:公开登录bug修复

rongxin_dev
张泽亮 há 1 mês
ascendente
cometimento
51b1dc1600
2 ficheiros alterados com 8 adições e 3 eliminações
  1. +2
    -2
      src/views/sunVillage_info/index.vue
  2. +6
    -1
      src/views/sunVillage_info/login_code.vue

+ 2
- 2
src/views/sunVillage_info/index.vue Ver ficheiro

@@ -112,7 +112,7 @@
}; };
}, },
created() { created() {
getConfigKey("system.app.yinnongExclusive").then(response => {
/*getConfigKey("system.app.yinnongExclusive").then(response => {
if(response.msg == "Y"){ if(response.msg == "Y"){
this.actions=[ this.actions=[
{ text: '个人信息', icon: 'manager-o' , index: 0 }, { text: '个人信息', icon: 'manager-o' , index: 0 },
@@ -121,7 +121,7 @@
{ text: '退出登录', icon: 'revoke' , index: 8 }, { text: '退出登录', icon: 'revoke' , index: 8 },
]; ];
} }
});
});*/
getInfo().then(response => { getInfo().then(response => {
this.bookName = response.user.bookName this.bookName = response.user.bookName
this.deptName = response.user.deptName this.deptName = response.user.deptName


+ 6
- 1
src/views/sunVillage_info/login_code.vue Ver ficheiro

@@ -99,7 +99,7 @@
created() { created() {
this.height = document.body.clientHeight this.height = document.body.clientHeight
this.getCookie(); this.getCookie();
this.formData.deptId = Cookies.get('deptId');
//this.formData.deptId = Cookies.get('deptId'); // 要关掉这个
this.allowIdentityVerified(); this.allowIdentityVerified();
}, },
methods: { methods: {
@@ -147,6 +147,11 @@
const farmerCode = res.rows[0].farmerCode; const farmerCode = res.rows[0].farmerCode;
Cookies.set("farmerCode",farmerCode, { expires: 30 }); Cookies.set("farmerCode",farmerCode, { expires: 30 });
Cookies.set("user", response.data, { expires: expires }); Cookies.set("user", response.data, { expires: expires });

// 可能不是从无权限公开页面跳入本页面的,可能直接封装的本页面作为入口,故重置以下
Cookies.set("bookId", res.rows[0].bookId, {expires: 30,});
Cookies.set("deptId", res.rows[0].deptId, {expires: 30,});

if (this.formData.identityCheck){ if (this.formData.identityCheck){
this.$router.push({ this.$router.push({
path: '/sunVillage_info/identity_check', path: '/sunVillage_info/identity_check',


Carregando…
Cancelar
Guardar