Commit 88204685 authored by 肖健's avatar 肖健

跳转选中tabbar

parent 36db1918
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<personal v-if="tab=='personal'"></personal> <personal v-if="tab=='personal'"></personal>
<u-gap bgColor="transparent" height="055"></u-gap> <u-gap bgColor="transparent" height="055"></u-gap>
<view class="tabbar"> <view class="tabbar">
<v-tabbar :list="tabbar" style="position:fixed;bottom:0;width:100%;left:0;right:0;" @tabChange="tabChange"></v-tabbar> <v-tabbar ref="myTab" :list="tabbar" style="position:fixed;bottom:0;width:100%;left:0;right:0;" @tabChange="tabChange"></v-tabbar>
</view> </view>
</view> </view>
</template> </template>
...@@ -126,8 +126,9 @@ export default { ...@@ -126,8 +126,9 @@ export default {
console.log("---------------------------") console.log("---------------------------")
this.$nextTick(() => { this.$nextTick(() => {
this.tabChange(parseInt(option.index)) let i = parseInt(option.index);
this.$forceUpdate() this.tabChange(i)
this.$refs.myTab.current = i;
}); });
} }
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
}, },
getMoveCode() { getMoveCode() {
let opts = { let opts = {
url: '/app/free/code', url: '/app/index/free/code',
method: 'get' method: 'get'
}; };
this.http.httpRequest(opts, {}).then(res => { this.http.httpRequest(opts, {}).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment