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) => {