优化代码报错

This commit is contained in:
wangsongsole 2022-09-23 17:46:58 +08:00
parent c86e093b26
commit c06a284a82
1 changed files with 7 additions and 7 deletions

View File

@ -80,12 +80,12 @@
<div class="imgbox"> <div class="imgbox">
<!-- type :1 兑换码 2:立减金,channel:1支付宝2微信 --> <!-- type :1 兑换码 2:立减金,channel:1支付宝2微信 -->
<img class="le-img" <img class="le-img"
:src="item.type==1?item.entity.show_url:item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png'" :src="item.type==1?item.entity.show_url:(item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png')"
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"></img> :class="item.stock&&(item.stock<0||item.available!=1)&&(item.available!=2?'changegray':'')"></img>
</div> </div>
<div class="item-name" <div class="item-name"
v-html="item.type==1?item.entity.product_name:item.entity.batch_goods_name" v-html="item.type==1?item.entity.product_name:item.entity.batch_goods_name"
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"> :class="item.stock&&(item.stock<0||item.available!=1)&&(item.available!=2?'changegray':'')">
</div> </div>
<p class="price"> <p class="price">
原价¥180.60 原价¥180.60
@ -100,8 +100,8 @@
</div> </div>
</div> </div>
<div class="exchangeBtn" <div class="exchangeBtn"
:class="gstatus!=1?describe.type&&describe.type!=2&&describe.content?'bottomBtn noexchangeBtn':'noexchangeBtn':describe.type&&describe.type!=2&&describe.content?'bottomBtn':''" :class="(gstatus!=1?describe.type:false)&&describe.type!=2&&(describe.content?'bottomBtn noexchangeBtn':'noexchangeBtn':describe.type)&&describe.type!=2&&(describe.content?'bottomBtn':'')"
:style="{'background': bgcolor,'color':ftcolor}" @click="exchangeBtn()"> :style="{background: bgcolor,color:ftcolor}" @click="exchangeBtn()">
立即兑换 立即兑换
</div> </div>
</div> </div>
@ -115,7 +115,7 @@
<li v-for="(item,i) in swiperDataList" :key="i" @click="exchangeBtn(item)"> <li v-for="(item,i) in swiperDataList" :key="i" @click="exchangeBtn(item)">
<div class="box"> <div class="box">
<div class="imgBG"> <div class="imgBG">
<img :src="item.type==1?item.entity.show_url:item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png'" <img :src="item.type==1?item.entity.show_url:(item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png')"
alt="" alt=""
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"> :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">
</div> </div>
@ -159,7 +159,7 @@
alt=""> alt="">
</span> </span>
<img class="img" <img class="img"
:src="item.type==1?item.entity.show_url:item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png'" :src="item.type==1?item.entity.show_url:(item.entity.channel==1?'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'http://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png')"
alt="" /> alt="" />
</div> </div>
<div class="detail-text"> <div class="detail-text">