Commit 88204685 authored by 肖健's avatar 肖健

跳转选中tabbar

parent 36db1918
......@@ -6,7 +6,7 @@
<personal v-if="tab=='personal'"></personal>
<u-gap bgColor="transparent" height="055"></u-gap>
<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>
</template>
......@@ -126,8 +126,9 @@ export default {
console.log("---------------------------")
this.$nextTick(() => {
this.tabChange(parseInt(option.index))
this.$forceUpdate()
let i = parseInt(option.index);
this.tabChange(i)
this.$refs.myTab.current = i;
});
}
......
......@@ -171,7 +171,7 @@ export default {
},
getMoveCode() {
let opts = {
url: '/app/free/code',
url: '/app/index/free/code',
method: 'get'
};
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