Commit 9b2dd6f8 by 陈超

T

parent 9dd6466c
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
<div class="layout_v"> <div class="layout_v">
<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">
<volist name="selCate" id="top">
<div :class="selectedCategory('{$top['id']}') ? 'drop_down_option_selected' : 'drop_down_option'">{$top.title}</div>
</volist>
</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">
...@@ -234,7 +236,15 @@ ...@@ -234,7 +236,15 @@
el: '#app', el: '#app',
data: function() { data: function() {
return { return {
cate: ""
}
},
computed: {
selectedCategory: function() {
let cate = this.cate
return function(c) {
return c == cate
}
} }
}, },
created: function(){ created: function(){
......
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