盐都小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
672 B

1 year ago
<template>
1 year ago
<view class="content">
1 year ago
<web-view :src="src"></web-view>
1 year ago
</view>
1 year ago
</template>
<script>
1 year ago
export default {
data() {
return {
1 year ago
src: ''
1 year ago
}
},
1 year ago
onShow() {
// 必须登录
let userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {}
if(userInfo.token) {
this.src = 'https://yandumap.sz-trip.com?token=' + userInfo.token
}else {
uni.navigateTo({
url: '/pages/login/login'
})
}
1 year ago
},
methods: {
1 year ago
1 year ago
}
}
1 year ago
</script>
1 year ago
<style lang="scss" scoped>
.content {
width: 100vw;
height: 100vh;
1 year ago
padding-bottom: env(safe-area-inset-bottom)
1 year ago
}
1 year ago
</style>