优化代码报错

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">
<!-- type :1 兑换码 2:立减金,channel:1支付宝2微信 -->
<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'"
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"></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')"
:class="item.stock&&(item.stock<0||item.available!=1)&&(item.available!=2?'changegray':'')"></img>
</div>
<div class="item-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>
<p class="price">
原价¥180.60
@ -100,8 +100,8 @@
</div>
</div>
<div class="exchangeBtn"
:class="gstatus!=1?describe.type&&describe.type!=2&&describe.content?'bottomBtn noexchangeBtn':'noexchangeBtn':describe.type&&describe.type!=2&&describe.content?'bottomBtn':''"
:style="{'background': bgcolor,'color':ftcolor}" @click="exchangeBtn()">
: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()">
立即兑换
</div>
</div>
@ -115,7 +115,7 @@
<li v-for="(item,i) in swiperDataList" :key="i" @click="exchangeBtn(item)">
<div class="box">
<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=""
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">
</div>
@ -159,7 +159,7 @@
alt="">
</span>
<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="" />
</div>
<div class="detail-text">