Commit 185945fb by 陈超

T

parent dbac775e
...@@ -13,14 +13,12 @@ ...@@ -13,14 +13,12 @@
</div> </div>
</div> </div>
<div class="home_list_part layout_h_b"> <div class="home_list_part layout_h_b">
<volist name="user_vip" id="vo"> <div v-for="(item, index) in vips" :key="index" class="layout_h_v_c">
<div class="layout_h_v_c"> <van-icon @click="type = item.id" :name="type == item.id ? '__THEME__/img/picker_y@3x.png' : '__THEME__/img/picker_n@3x.png'" style="margin-right: 0.4375rem;" size="18" ></van-icon>
<van-icon @click="type = {$vo.id}" :name="type == {$vo.id} ? '__THEME__/img/picker_y@3x.png' : '__THEME__/img/picker_n@3x.png'" style="margin-right: 0.4375rem;" size="18" ></van-icon> <div class="vip_buy_type layout_h_c" :style="item.color">
<div class="vip_buy_type layout_h_c"> <span class="text_12_400 color_white self_center">{{item.title}}</span>
<span class="text_12_400 color_white self_center">{$vo.title}</span>
</div> </div>
</div> </div>
</volist>
</div> </div>
</div> </div>
</div> </div>
...@@ -154,7 +152,15 @@ ...@@ -154,7 +152,15 @@
}, },
created:function(){ created:function(){
this.vips = {:json_encode($user_vip)}; this.vips = {:json_encode($user_vip)};
console.log(this.vips) this.vips.forEach( r => {
if(r.title == "乡试") {
r.color = { color: "#65C000" }
} else if(r.title == "会试") {
r.color = { color: "#32C5FF" }
} else if(r.title == "殿试") {
r.color = { color: "#F5A623" }
}
})
} }
}) })
......
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