Commit 97070218 by 李伟康

commit

1 parent fc151cb6
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
:key="index" :key="index"
class="item" 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"> <template v-if="tabIndex == 0 && tabList.length > 1">
{{i.couponTypeName}} {{i.couponTypeName}}
</template> </template>
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
<div class="title">{{i.couponName}}</div> <div class="title">{{i.couponName}}</div>
<div class="num">剩余:{{i.remainAmount || i.residueAmount || 0}}张</div> <div class="num">剩余:{{i.remainAmount || i.residueAmount || 0}}张</div>
<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)" @click="showShareModel(i)"
>发送</div> >发送</div>
</div> </div>
<div class="bottom"> <div class="bottom">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0 && tabList.length > 1">
<div>永久有效</div> <div>永久有效</div>
<div class="right">适用于新车购买用户</div> <div class="right">适用于新车购买用户</div>
</template> </template>
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
data() { data() {
return { return {
tabList, tabList,
updata:new Date().getTime() updata: new Date().getTime()
} }
}, },
mounted() {}, mounted() {},
...@@ -99,10 +99,10 @@ export default { ...@@ -99,10 +99,10 @@ export default {
this.tabList = ['商城优惠券'] this.tabList = ['商城优惠券']
this.getList_1(pageNum) this.getList_1(pageNum)
return return
}else{ } else {
this.tabList = tabList this.tabList = tabList
} }
this.flag = true this.flag = true
this.list = list.concat(res.list) this.list = list.concat(res.list)
this.total = res.total 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!