Commit 58f734f3 by 陈超

T

parent dec6d531
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<div class="home_list_part layout_h_b"> <div class="home_list_part layout_h_b">
<div v-for="(item, index) in vips" :key="index" class="layout_h_v_c"> <div v-for="(item, index) in vips" :key="index" 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 = 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>
<div class="vip_buy_type layout_h_c"> <div class="vip_buy_type layout_h_c" :style="item.color">
<span class="text_12_400 self_center" :style="item.color">{{item.title}}</span> <span class="text_12_400 self_center color_white" >{{item.title}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -154,11 +154,11 @@ ...@@ -154,11 +154,11 @@
this.vips = {:json_encode($user_vip)}; this.vips = {:json_encode($user_vip)};
this.vips.forEach( r => { this.vips.forEach( r => {
if(r.title == "乡试") { if(r.title == "乡试") {
r.color = { color: "#65C000" } r.color = { background: "#65C000" }
} else if(r.title == "会试") { } else if(r.title == "会试") {
r.color = { color: "#32C5FF" } r.color = { background: "#32C5FF" }
} else if(r.title == "殿试") { } else if(r.title == "殿试") {
r.color = { color: "#F5A623" } r.color = { background: "#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