onshow
This commit is contained in:
@@ -371,19 +371,18 @@ export default {
|
|||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '任务详情'
|
title: '任务详情'
|
||||||
});
|
});
|
||||||
if (!this.token) {
|
|
||||||
this.$refs.login.show()
|
|
||||||
} else {
|
|
||||||
this.toAuth()
|
|
||||||
}
|
|
||||||
uni.$on('auth', () => {
|
|
||||||
this.toAuth()
|
|
||||||
})
|
|
||||||
this.qqmapsdk = new QQMapWX({
|
this.qqmapsdk = new QQMapWX({
|
||||||
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
|
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
|
||||||
})
|
})
|
||||||
this.$dict.load(['fdIntegralTaskType'])
|
this.$dict.load(['fdIntegralTaskType'])
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
if (!this.token) {
|
||||||
|
this.$refs.login.show()
|
||||||
|
} else {
|
||||||
|
this.toAuth()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user