软路由选择页面
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<p>颜色分类</p>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<img v-for="(item,index) in price_list" width="10%" v-on:click="select(index)" :src="item.src" class="show-img">
|
||||
<img v-for="(item,index) in price_list" width="10%" v-on:click="select(index)" :src="item.src" :id="'show'+index" class="show-img">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -255,6 +255,11 @@
|
||||
|
||||
var temp = [];
|
||||
|
||||
|
||||
$(".show-img").css("border","1px solid white");
|
||||
$("#show"+i).css("border","1px solid red");
|
||||
|
||||
|
||||
if (this.price_list.length<1){
|
||||
|
||||
$.ajax({
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<p>颜色分类</p>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<img v-for="(item,index) in price_list" width="10%" v-on:click="select(index)" :src="item.src" class="show-img">
|
||||
<img v-for="(item,index) in price_list" width="10%" v-on:click="select(index)" :src="item.src" :id="'show'+index" class="show-img">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -260,6 +260,9 @@
|
||||
|
||||
var temp = [];
|
||||
|
||||
$(".show-img").css("border","1px solid white");
|
||||
$("#show"+i).css("border","1px solid red");
|
||||
|
||||
if (this.price_list.length<1){
|
||||
|
||||
$.ajax({
|
||||
|
||||
Reference in New Issue
Block a user