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