[improvement] update eslint config (#2288)

This commit is contained in:
neverland
2018-12-14 14:24:23 +08:00
committed by GitHub
parent d2751ffdfa
commit 16e4889a92
141 changed files with 6387 additions and 7536 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ export default {
this.showList = false;
this.chosenCoupon = index;
},
onExchange(code) {
onExchange() {
this.$toast(this.$t('exchange'));
this.exchangedCoupons.push({
...this.coupon,
+2 -2
View File
@@ -43,7 +43,7 @@
v-if="!coupons.length"
:class="b('empty')"
>
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png" >
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png">
<p>{{ $t('empty') }}</p>
</div>
</div>
@@ -64,7 +64,7 @@
v-if="!disabledCoupons.length"
:class="b('empty')"
>
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png" >
<img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png">
<p>{{ $t('empty') }}</p>
</div>
</div>
@@ -8,11 +8,9 @@ exports[`renders demo correctly 1`] = `
<div class="van-cell__title"><span>优惠券</span>
<!---->
</div>
<div class="van-cell__value"><span>2张可用</span></div>
<i class="van-icon van-icon-arrow van-cell__right-icon" style="color:undefined;font-size:undefined;">
<div class="van-cell__value"><span>2张可用</span></div> <i class="van-icon van-icon-arrow van-cell__right-icon" style="color:undefined;font-size:undefined;">
<!---->
<!---->
</i>
<!----></i>
</div>
<!---->
</div>
@@ -6,11 +6,9 @@ exports[`coupon cell 1`] = `
<div class="van-cell__title"><span>优惠券</span>
<!---->
</div>
<div class="van-cell__value"><span>使用优惠</span></div>
<i class="van-icon van-icon-arrow van-cell__right-icon">
<div class="van-cell__value"><span>使用优惠</span></div> <i class="van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
</i>
<!----></i>
</div>
`;
@@ -20,10 +18,8 @@ exports[`coupon cell 2`] = `
<div class="van-cell__title"><span>优惠券</span>
<!---->
</div>
<div class="van-cell__value"><span>-¥1.00</span></div>
<i class="van-icon van-icon-arrow van-cell__right-icon">
<div class="van-cell__value"><span>-¥1.00</span></div> <i class="van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
</i>
<!----></i>
</div>
`;