Commit 247a298c by 陈超

T

parent 3d31f731
......@@ -34,7 +34,9 @@
</div>
<span class="all_category_title text_16_600 color_333333">状态</span>
<div class="drop_down_grid">
<div class="van-ellipsis" :class="selectedBuy('') ? 'drop_down_option_selected' : 'drop_down_option'">全部</div>
<div class="van-ellipsis" :class="selectedBuy('1') ? 'drop_down_option_selected' : 'drop_down_option'">已购买</div>
<div class="van-ellipsis" :class="selectedBuy('2') ? 'drop_down_option_selected' : 'drop_down_option'">未购买</div>
</div>
<span class="all_category_title text_16_600 color_333333">价格区间</span>
</div>
......@@ -237,7 +239,8 @@
el: '#app',
data: function() {
return {
cate: ""
cate: "",
buy: "",
}
},
computed: {
......@@ -246,6 +249,12 @@
return function(c) {
return c == cate
}
},
selectedBuy: function() {
let buy = this.buy
return function(c) {
return c == buy
}
}
},
created: function(){
......@@ -253,6 +262,14 @@
},
methods: {
onCategory: function(id) {
},
onBuy: function(type) {
},
}
})
......
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