Commit 695eb27a by 陈超

T

parent 07ee99fa
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</van-search> </van-search>
<div v-if="!showHistory" class="tab_container"> <div v-if="!showHistory" class="tab_container">
<div @click="onTab" v-for="(opt, idx) in options" :key="idx" :class="idx == tab ? 'tab_item_selected' : 'tab_item_normal'"> <div @click="onTab(idx)" v-for="(opt, idx) in options" :key="idx" :class="idx == tab ? 'tab_item_selected' : 'tab_item_normal'">
<span>{{opt.title}}</span> <span>{{opt.title}}</span>
</div> </div>
</div> </div>
...@@ -238,6 +238,9 @@ ...@@ -238,6 +238,9 @@
}, },
onSearch: function() { onSearch: function() {
this.showHistory = false this.showHistory = false
},
onTab: function(idx) {
this.tab = idx
} }
} }
}) })
......
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