|
|
@ -23,7 +23,9 @@ |
|
|
<a style="display:block" :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId"> |
|
|
<a style="display:block" :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId"> |
|
|
<div class="item f-flex"> |
|
|
<div class="item f-flex"> |
|
|
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId" class="list-img-box"> |
|
|
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId" class="list-img-box"> |
|
|
<img :src=" imghost + goods.bannerImgs" class="thumb" /> |
|
|
|
|
|
|
|
|
<img v-if="goods.goodsTitleImg!=''" :src=" imghost + goods.goodsTitleImg" class="thumb"/> |
|
|
|
|
|
<img v-else-if="goods.showImg!=''" :src=" imghost + goods.showImg" class="thumb"/> |
|
|
|
|
|
<img v-else :src=" imghost + goods.bannerImgs" class="thumb"/> |
|
|
</a> |
|
|
</a> |
|
|
<div class="info f-flex"> |
|
|
<div class="info f-flex"> |
|
|
<div class="info-box"> |
|
|
<div class="info-box"> |
|
|
@ -215,12 +217,12 @@ export default { |
|
|
this.listHeight.push(height); |
|
|
this.listHeight.push(height); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/*selectMenu(index, event) { |
|
|
|
|
|
if(event && !event._constructed) { |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
let foodList = this.$refs.foodWrapper.getElementsByClassName("food-list-hook"); |
|
|
|
|
|
let el = foodList[index]; |
|
|
|
|
|
|
|
|
/*selectMenu(index, event) { |
|
|
|
|
|
if(event && !event._constructed) { |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
let foodList = this.$refs.foodWrapper.getElementsByClassName("food-list-hook"); |
|
|
|
|
|
let el = foodList[index]; |
|
|
this.foodsScroll.scrollToElement(el,300) |
|
|
this.foodsScroll.scrollToElement(el,300) |
|
|
},*/ |
|
|
},*/ |
|
|
selectMenu(index, event) { |
|
|
selectMenu(index, event) { |
|
|
@ -491,4 +493,4 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
|
|
|
|
|
|
</style> |