[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -8,10 +8,19 @@
|
||||
<div :class="b('body')">
|
||||
<h2>{{ data.name }}</h2>
|
||||
<p>{{ validPeriod }}</p>
|
||||
<checkbox v-if="chosen" :class="b('corner')" :value="true" />
|
||||
<checkbox
|
||||
v-if="chosen"
|
||||
:class="b('corner')"
|
||||
value
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<p v-if="disabled && data.reason" :class="b('reason')">{{ data.reason }}</p>
|
||||
<p
|
||||
v-if="disabled && data.reason"
|
||||
:class="b('reason')"
|
||||
>
|
||||
{{ data.reason }}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
@click="showList = true"
|
||||
/>
|
||||
|
||||
<van-popup v-model="showList" position="bottom">
|
||||
<van-popup
|
||||
v-model="showList"
|
||||
position="bottom"
|
||||
>
|
||||
<van-coupon-list
|
||||
:coupons="coupons"
|
||||
:chosen-coupon="chosenCoupon"
|
||||
|
||||
@@ -20,9 +20,16 @@
|
||||
@click="onClickExchangeButton"
|
||||
/>
|
||||
</field>
|
||||
<tabs v-model="tab" :class="b('tab')" :line-width="120">
|
||||
<tabs
|
||||
v-model="tab"
|
||||
:class="b('tab')"
|
||||
:line-width="120"
|
||||
>
|
||||
<tab :title="title">
|
||||
<div :class="b('list')" :style="listStyle">
|
||||
<div
|
||||
:class="b('list')"
|
||||
:style="listStyle"
|
||||
>
|
||||
<coupon-item
|
||||
ref="card"
|
||||
v-for="(item, index) in coupons"
|
||||
@@ -31,21 +38,30 @@
|
||||
:chosen="index === chosenCoupon"
|
||||
@click.native="$emit('change', index)"
|
||||
/>
|
||||
<div v-if="!coupons.length" :class="b('empty')">
|
||||
<div
|
||||
v-if="!coupons.length"
|
||||
:class="b('empty')"
|
||||
>
|
||||
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png" >
|
||||
<p>{{ $t('empty') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</tab>
|
||||
<tab :title="disabledTitle">
|
||||
<div :class="b('list')" :style="listStyle">
|
||||
<div
|
||||
:class="b('list')"
|
||||
:style="listStyle"
|
||||
>
|
||||
<coupon-item
|
||||
disabled
|
||||
v-for="item in disabledCoupons"
|
||||
:key="item.id || item.name"
|
||||
:data="item"
|
||||
/>
|
||||
<div v-if="!disabledCoupons.length" :class="b('empty')">
|
||||
<div
|
||||
v-if="!disabledCoupons.length"
|
||||
:class="b('empty')"
|
||||
>
|
||||
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png" >
|
||||
<p>{{ $t('empty') }}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user