Browse Source

兼容多种列表图情况

feature/feature-compatible
nesxy 6 years ago
parent
commit
b81237a2ab
1 changed files with 5 additions and 2 deletions
  1. 7
      src/view/home.vue

7
src/view/home.vue

@ -68,11 +68,14 @@
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo">
<div class="left">
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo">
<img :src=" imghost + item1.goodsTitleImg" />
<img v-if="item1.goodsTitleImg" :src=" imghost + item1.goodsTitleImg" />
<img v-else-if="item1.showImg" :src=" imghost + item1.showImg" />
<img v-else :src=" imghost + item1.bannerImgs" />
</a>
</div>
<div class="right">
<h3>{{item1.goodsTitle}}</h3>
<h3 v-if="item1.goodsTitle" >{{item1.goodsTitle}}</h3>
<h3>{{item1.name}}</h3>
<div class="text">{{item1.shortDesc}}</div>
<div class="card-name">
<i :style="{marginRight:(i+1)==item1.labelList.length?'0':'0.1rem'}" v-if="label.labelText" v-for="(label,i) in item1.labelList">{{label.labelText}}</i>

Loading…
Cancel
Save