@@ -27,7 +27,7 @@ export default { | |||||
let idcard = 'e49446695d1e82935bbc0cc7e440a8f739f2c015dc029dccb15380b896e7f71b'; | let idcard = 'e49446695d1e82935bbc0cc7e440a8f739f2c015dc029dccb15380b896e7f71b'; | ||||
// idcard = '8feee543fdf8c9cdca7928c9b501908b0b353515cbd0da854519651dafea96c8'; | // idcard = '8feee543fdf8c9cdca7928c9b501908b0b353515cbd0da854519651dafea96c8'; | ||||
// name = '6e067f6d57682232cc32096e86487c5e'; | // name = '6e067f6d57682232cc32096e86487c5e'; | ||||
let ts = '525e902f509a7147ad92e602139bd267'; | |||||
let ts = '1234567890123'; | |||||
return name + '#' + idcard + '#' + ts; | return name + '#' + idcard + '#' + ts; | ||||
} | } | ||||
else | else | ||||
@@ -49,6 +49,7 @@ export default { | |||||
}); | }); | ||||
return false; | return false; | ||||
} | } | ||||
Cookies.set('bookId', '', { expires: 1 }); | |||||
this.$store.dispatch("ChungengFarmerLogin", {code}) | this.$store.dispatch("ChungengFarmerLogin", {code}) | ||||
.then((data) => { | .then((data) => { | ||||
Cookies.set('deptId', data.deptId, { expires: 30 }); | Cookies.set('deptId', data.deptId, { expires: 30 }); | ||||
@@ -24,7 +24,7 @@ export default { | |||||
return this.$route.query.s; | return this.$route.query.s; | ||||
let phone = '704d238d95b61f8304ce9e9c2d70e0bf'; | let phone = '704d238d95b61f8304ce9e9c2d70e0bf'; | ||||
//phone = '525e902f509a7147ad92e602139bd267' | //phone = '525e902f509a7147ad92e602139bd267' | ||||
let ts = '525e902f509a7147ad92e602139bd267'; | |||||
let ts = '1234567890123'; | |||||
return phone + '#' + ts; | return phone + '#' + ts; | ||||
} | } | ||||
else | else | ||||
@@ -100,6 +100,8 @@ | |||||
}, | }, | ||||
created() { | created() { | ||||
if(this.$route.query.bookId) | |||||
{ | |||||
bookInfo(this.$route.query.bookId).then((res) => { | bookInfo(this.$route.query.bookId).then((res) => { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
Cookies.set("bookName", res.data.bookName, { | Cookies.set("bookName", res.data.bookName, { | ||||
@@ -115,6 +117,7 @@ | |||||
Cookies.set("bookId", this.$route.query.bookId, { | Cookies.set("bookId", this.$route.query.bookId, { | ||||
expires: 30, | expires: 30, | ||||
}); | }); | ||||
} | |||||
Cookies.set("deptId", this.$route.query.deptId, { | Cookies.set("deptId", this.$route.query.deptId, { | ||||
expires: 30, | expires: 30, | ||||
}); | }); | ||||
@@ -75,7 +75,6 @@ | |||||
created() { | created() { | ||||
this.deptId = Cookies.get('deptId') | this.deptId = Cookies.get('deptId') | ||||
this.bookId = Cookies.get('bookId') | this.bookId = Cookies.get('bookId') | ||||
console.log(this.bookId); | |||||
if(this.bookId) | if(this.bookId) | ||||
{ | { | ||||
bookInfo(this.bookId).then((res) => { | bookInfo(this.bookId).then((res) => { | ||||