From 0bf284eb992d64c5eff33d30e08856ec1328b50b Mon Sep 17 00:00:00 2001 From: zhaochengke Date: Fri, 14 Apr 2023 13:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=A5=E8=80=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chungengFarmerSSOLogin.vue | 3 ++- src/views/chungengUserSSOLogin.vue | 2 +- src/views/sunVillage_info/index_code.vue | 3 +++ src/views/sunVillage_info/index_code_rights.vue | 1 - 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/chungengFarmerSSOLogin.vue b/src/views/chungengFarmerSSOLogin.vue index 871a898a..7e44a9cd 100644 --- a/src/views/chungengFarmerSSOLogin.vue +++ b/src/views/chungengFarmerSSOLogin.vue @@ -27,7 +27,7 @@ export default { let idcard = 'e49446695d1e82935bbc0cc7e440a8f739f2c015dc029dccb15380b896e7f71b'; // idcard = '8feee543fdf8c9cdca7928c9b501908b0b353515cbd0da854519651dafea96c8'; // name = '6e067f6d57682232cc32096e86487c5e'; - let ts = '525e902f509a7147ad92e602139bd267'; + let ts = '1234567890123'; return name + '#' + idcard + '#' + ts; } else @@ -49,6 +49,7 @@ export default { }); return false; } + Cookies.set('bookId', '', { expires: 1 }); this.$store.dispatch("ChungengFarmerLogin", {code}) .then((data) => { Cookies.set('deptId', data.deptId, { expires: 30 }); diff --git a/src/views/chungengUserSSOLogin.vue b/src/views/chungengUserSSOLogin.vue index 7c1bd545..352acc77 100644 --- a/src/views/chungengUserSSOLogin.vue +++ b/src/views/chungengUserSSOLogin.vue @@ -24,7 +24,7 @@ export default { return this.$route.query.s; let phone = '704d238d95b61f8304ce9e9c2d70e0bf'; //phone = '525e902f509a7147ad92e602139bd267' - let ts = '525e902f509a7147ad92e602139bd267'; + let ts = '1234567890123'; return phone + '#' + ts; } else diff --git a/src/views/sunVillage_info/index_code.vue b/src/views/sunVillage_info/index_code.vue index 852e00a5..bb1d2835 100644 --- a/src/views/sunVillage_info/index_code.vue +++ b/src/views/sunVillage_info/index_code.vue @@ -100,6 +100,8 @@ }, created() { + if(this.$route.query.bookId) + { bookInfo(this.$route.query.bookId).then((res) => { if (res.code == 200) { Cookies.set("bookName", res.data.bookName, { @@ -115,6 +117,7 @@ Cookies.set("bookId", this.$route.query.bookId, { expires: 30, }); + } Cookies.set("deptId", this.$route.query.deptId, { expires: 30, }); diff --git a/src/views/sunVillage_info/index_code_rights.vue b/src/views/sunVillage_info/index_code_rights.vue index 68e58a15..c7c27828 100644 --- a/src/views/sunVillage_info/index_code_rights.vue +++ b/src/views/sunVillage_info/index_code_rights.vue @@ -75,7 +75,6 @@ created() { this.deptId = Cookies.get('deptId') this.bookId = Cookies.get('bookId') - console.log(this.bookId); if(this.bookId) { bookInfo(this.bookId).then((res) => {