mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 08:46:45 +08:00
学平险海报分享功能防止token失效,post改为get--3
This commit is contained in:
@@ -34,17 +34,17 @@ export default {
|
|||||||
})
|
})
|
||||||
console.log(this.$route.query);
|
console.log(this.$route.query);
|
||||||
// debugger
|
// debugger
|
||||||
if (this.$route.query.token) {
|
if (this.$route.query.tooken) {
|
||||||
// this.herfUrl = this.$route.query.redirectUrl
|
// this.herfUrl = this.$route.query.redirectUrl
|
||||||
this.$CacheUtils.setLocItem('token',this.$route.query.token);
|
// this.$CacheUtils.setLocItem('token',this.$route.query.token);
|
||||||
this.initThisPage()
|
this.initThisPage()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 初始化页面
|
// 初始化页面
|
||||||
async initThisPage() {
|
async initThisPage() {
|
||||||
let res = await this.saveShareRecord('1',this.$route.query.token)
|
let res = await this.saveShareRecord('1',this.$route.query.tooken)
|
||||||
await this.sharePosterLoading('1',this.$route.query.token)
|
await this.sharePosterLoading('1',this.$route.query.tooken)
|
||||||
// console.log(111+newRes)
|
// console.log(111+newRes)
|
||||||
// if (this.herfUrl) {
|
// if (this.herfUrl) {
|
||||||
// window.location.href = this.herfUrl
|
// window.location.href = this.herfUrl
|
||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
// redisKey: key,
|
// redisKey: key,
|
||||||
// }
|
// }
|
||||||
console.log(this.$route.query.tooken,'dfdfasd')
|
console.log(this.$route.query.tooken,'dfdfasd')
|
||||||
sharePosterLoading({tooken:'32926a9d9fa84de9bb0cac67ade27ec2'}).then((res) => {
|
sharePosterLoading({tooken:this.$route.query.tooken}).then((res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.result==0){
|
if(res.result==0){
|
||||||
window.location.href = res.content
|
window.location.href = res.content
|
||||||
|
|||||||
Reference in New Issue
Block a user