Commit 247a298c by 陈超

T

parent 3d31f731
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
</div> </div>
<span class="all_category_title text_16_600 color_333333">状态</span> <span class="all_category_title text_16_600 color_333333">状态</span>
<div class="drop_down_grid"> <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> </div>
<span class="all_category_title text_16_600 color_333333">价格区间</span> <span class="all_category_title text_16_600 color_333333">价格区间</span>
</div> </div>
...@@ -237,7 +239,8 @@ ...@@ -237,7 +239,8 @@
el: '#app', el: '#app',
data: function() { data: function() {
return { return {
cate: "" cate: "",
buy: "",
} }
}, },
computed: { computed: {
...@@ -246,6 +249,12 @@ ...@@ -246,6 +249,12 @@
return function(c) { return function(c) {
return c == cate return c == cate
} }
},
selectedBuy: function() {
let buy = this.buy
return function(c) {
return c == buy
}
} }
}, },
created: function(){ created: function(){
...@@ -253,6 +262,14 @@ ...@@ -253,6 +262,14 @@
}, },
methods: { 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