|
|
@@ -87,13 +87,14 @@
|
|
|
},
|
|
|
mounted() {
|
|
|
let info = localStorage.getItem('USOFTMALLWECHATINFO')
|
|
|
- let _url = this.$route.query.url ? this.$route.query.url.split('?') : []
|
|
|
- if (_url[0]) {
|
|
|
- localStorage.setItem('RETURNURL', _url[0] || '')
|
|
|
+ let _url = this.$route.query.url
|
|
|
+ // let _enuu = this.$route.query.enuu
|
|
|
+ if (this.$route.query.url) {
|
|
|
+ localStorage.setItem('RETURNURL', _url || '')
|
|
|
}
|
|
|
- if (_url[1]) {
|
|
|
- this.enuu = _url[1].split('=')[1]
|
|
|
- localStorage.setItem('Userenuu', _url[1] || '')
|
|
|
+ if (this.$route.query.enuu) {
|
|
|
+ this.enuu = this.$route.query.enuu
|
|
|
+ localStorage.setItem('Userenuu', this.enuu || '')
|
|
|
}
|
|
|
let ua = this.$store.state.option.userAgent.toLowerCase()
|
|
|
if (ua.match(/micromessenger/i) && ua.match(/micromessenger/i)[0] === 'micromessenger' && !this.$route.query.code && !info) {
|
|
|
@@ -152,7 +153,7 @@
|
|
|
})
|
|
|
if (_url !== '') {
|
|
|
localStorage.removeItem('RETURNURL')
|
|
|
- this.$router.replace('/' + _url)
|
|
|
+ this.$router.replace(_url)
|
|
|
} else if (this.$route.query.url && this.$route.query.url !== '') {
|
|
|
this.$router.replace(this.$route.query.url)
|
|
|
} else {
|