7/8变灰色

This commit is contained in:
red-deng-deng 2021-11-30 08:23:37 +08:00
parent 192a235641
commit 468fe8af96
1 changed files with 6 additions and 5 deletions

View File

@ -15,6 +15,7 @@
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage.css?v=1"> <link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage.css?v=1">
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css"> <link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api.js?v=1"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api.js?v=1"></script>
<!-- <link rel="stylesheet" href="./homepage.css"> -->
</head> </head>
<style scoped> <style scoped>
* { * {
@ -85,9 +86,9 @@
</span> </span>
</div> </div>
<div class="imgbox"> <div class="imgbox">
<img class="le-img" :src="item.show_url" :class="item.stock&&item.stock<0?'changegray':''"></img> <img class="le-img" :src="item.show_url" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''"></img>
</div> </div>
<div class="item-name" v-html="item.product_name" :class="item.stock&&item.stock<0?'changegray':''"> <div class="item-name" v-html="item.product_name" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">
</div> </div>
</div> </div>
</div> </div>
@ -110,8 +111,8 @@
<ul class="listcommity" v-if="goodsNum"> <ul class="listcommity" v-if="goodsNum">
<li v-for="(item,i) in swiperDataList" :key="i"> <li v-for="(item,i) in swiperDataList" :key="i">
<div> <div>
<img :src="item.show_url" alt="" :class="item.stock&&item.stock<0?'changegray':''"> <img :src="item.show_url" alt="" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">
<font :class="item.stock&&item.stock<0?'changegray':''">{{item.product_name}}</font> <font :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">{{item.product_name}}</font>
</div> </div>
<span v-if="item.available==1" :style="{'background':bgcolor?bgcolor:'#F98F5B'}" <span v-if="item.available==1" :style="{'background':bgcolor?bgcolor:'#F98F5B'}"
@click="exchangeBtn(item)" >兑换</span> @click="exchangeBtn(item)" >兑换</span>
@ -131,7 +132,7 @@
</div> </div>
<ul class="listcommity" v-if="goodsNum"> <ul class="listcommity" v-if="goodsNum">
<li :class="item.stock&&item.stock<0||item.available!=1?'changegray':''" v-for="(item,i) in swiperDataList" :key="i" <li :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''" v-for="(item,i) in swiperDataList" :key="i"
@click="exchangeBtn(item)"> @click="exchangeBtn(item)">
<div> <div>
<span class="goodsIcon"> <span class="goodsIcon">