This commit is contained in:
shijingjing
2023-03-31 18:11:20 +08:00
parent 0e92e929a9
commit 805adb7639

View File

@@ -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>