Commit 97070218 by 李伟康

commit

1 parent fc151cb6
......@@ -20,7 +20,7 @@
:key="index"
class="item"
>
<div :class="['sprite-icon', 'text-center',tabIndex == 0?'icon-coupon':'icon-discount', {'clear-padding':i.discountType == 3}]">
<div :class="['sprite-icon', 'text-center',tabIndex == 0 && tabList.length > 1?'icon-coupon':'icon-discount', {'clear-padding':i.discountType == 3}]">
<template v-if="tabIndex == 0 && tabList.length > 1">
{{i.couponTypeName}}
</template>
......@@ -38,12 +38,12 @@
<div class="title">{{i.couponName}}</div>
<div class="num">剩余:{{i.remainAmount || i.residueAmount || 0}}张</div>
<div
:class="['btn', 'y-center', 'text-center', {'disabled-btn':tabIndex == 0?i.remainAmount<1:i.residueAmount<1}]"
:class="['btn', 'y-center', 'text-center', {'disabled-btn':tabIndex == 0 && tabList.length > 1?i.remainAmount<1:i.residueAmount<1}]"
@click="showShareModel(i)"
>发送</div>
</div>
<div class="bottom">
<template v-if="tabIndex == 0">
<template v-if="tabIndex == 0 && tabList.length > 1">
<div>永久有效</div>
<div class="right">适用于新车购买用户</div>
</template>
......@@ -83,7 +83,7 @@ export default {
data() {
return {
tabList,
updata:new Date().getTime()
updata: new Date().getTime()
}
},
mounted() {},
......@@ -99,10 +99,10 @@ export default {
this.tabList = ['商城优惠券']
this.getList_1(pageNum)
return
}else{
} else {
this.tabList = tabList
}
this.flag = true
this.flag = true
this.list = list.concat(res.list)
this.total = res.total
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!