37 lines
499 B
Vue
37 lines
499 B
Vue
<template>
|
|
<view class="start-page">
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
toLogin() {
|
|
if (!uni.getStorageSync("token"))
|
|
return ""
|
|
|
|
uni.switchTab({
|
|
url: "/pages/index/index",
|
|
animationDuration: 1000
|
|
})
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.toLogin()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.start-page {
|
|
height: 100vh;
|
|
background: url("../../static/bg.png") no-repeat;
|
|
background-size: cover;
|
|
}
|
|
</style> |