s
This commit is contained in:
parent
0accd0d725
commit
3cf407e0d9
1
App.vue
1
App.vue
@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
|
uni.hideTabBar();
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<u-tabbar
|
<u-tabbar
|
||||||
:value="value4"
|
:value="value4"
|
||||||
@change="change5"
|
@change="change"
|
||||||
:fixed="true"
|
:fixed="true"
|
||||||
:border="false"
|
:border="false"
|
||||||
:placeholder="false"
|
:placeholder="false"
|
||||||
@ -53,13 +53,19 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
change5(name){
|
change(name){
|
||||||
this.value4 = name
|
if (name===0){
|
||||||
}
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
}else if (name===1){
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/my/my'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
this.value4 = name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/my/my",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<my-tabbar></my-tabbar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
Reference in New Issue
Block a user