|
@@ -227,6 +227,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.checkShowToast()
|
|
checkAppUpdate()
|
|
checkAppUpdate()
|
|
this._CACHE_KEY = 'home-page'
|
|
this._CACHE_KEY = 'home-page'
|
|
this.doRecovery()
|
|
this.doRecovery()
|
|
@@ -275,6 +276,42 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ checkShowToast () {
|
|
|
|
+ const needToast = this.$route.query.toast
|
|
|
|
+ switch (needToast) {
|
|
|
|
+ case 'l': {
|
|
|
|
+ const tip = sessionStorage.getItem('show-home-tip') || ''
|
|
|
|
+ if (tip) {
|
|
|
|
+ sessionStorage.removeItem('show-home-tip')
|
|
|
|
+ this.$toast(tip)
|
|
|
|
+ }
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ case 'r': {
|
|
|
|
+ this.$toast('您已注册剑鱼标讯,不再赠送七天超级订阅。')
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ case 'c': {
|
|
|
|
+ this.$toast('您已是剑鱼标讯注册用户,不符合领取条件,如有疑问请咨询客服 400-108-6670')
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ default: {
|
|
|
|
+ if (needToast) {
|
|
|
|
+ this.$toast(needToast)
|
|
|
|
+ }
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (needToast) {
|
|
|
|
+ const query = { ... this.$route.query }
|
|
|
|
+ delete query.toast
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ query: query
|
|
|
|
+ })
|
|
|
|
+ }, 500)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onInitNextDialog() {
|
|
onInitNextDialog() {
|
|
console.log('==========')
|
|
console.log('==========')
|
|
this.dialog.checkUserShow = true
|
|
this.dialog.checkUserShow = true
|