-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathentry.vue
38 lines (37 loc) · 1.06 KB
/
entry.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div style="">
此页面不是真正的首页
此页面加载时用户看到的是启动图,不会看到本页面的内容
可以在此页面写一些跳转逻辑
例如根据登录状态跳转到登录页还是首页
</div>
</template>
<script>
export default{
props: {},
data () {
return {}
},
methods: {
onLoad(){
//首页的地址
let url = '/index'
this.goToMain(url)
},
goToMain(url){
let navigator = weex.requireModule('navigator')
// this.log(weex.config.env.platform)
if (weex.config.env.platform != 'iOS') {
//注意android不要用presentFull
navigator.pushFull({url: url, animated: false})
} else {
navigator.presentFull({url: url, animated: false})
}
}
},
created () {
}
}
</script>
<style scoped>
</style>