新生报到移动端V1.0
This commit is contained in:
37
pages/start-page/start-page.vue
Normal file
37
pages/start-page/start-page.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<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>
|
Reference in New Issue
Block a user