[improvement] CouponList: optimize style of empty tip (#2878)

This commit is contained in:
neverland 2019-03-01 17:01:32 +08:00 committed by GitHub
parent 4ad382b33a
commit 271116af50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import Button from '../button';
import Coupon from '../coupon';
const [sfc, bem, t] = use('coupon-list');
const EMPTY_IMAGE = 'https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png';
const EMPTY_IMAGE = 'https://img.yzcdn.cn/vant/coupon-empty.png';
export default sfc({
model: {

View File

@ -29,7 +29,7 @@
}
&__empty {
padding-top: 100px;
padding-top: 60px;
text-align: center;
p {
@ -40,8 +40,8 @@
}
img {
width: 80px;
height: 84px;
width: 200px;
height: 200px;
}
}
}

View File

@ -161,14 +161,14 @@ exports[`render empty coupon list 1`] = `
<div class="van-tabs__content">
<div class="van-tab__pane" style="display: none;">
<div class="van-coupon-list__list" style="height: 628px;">
<div class="van-coupon-list__empty"><img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png">
<div class="van-coupon-list__empty"><img src="https://img.yzcdn.cn/vant/coupon-empty.png">
<p>暂无优惠券</p>
</div>
</div>
</div>
<div class="van-tab__pane" style="">
<div class="van-coupon-list__list" style="height: 628px;">
<div class="van-coupon-list__empty"><img src="https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png">
<div class="van-coupon-list__empty"><img src="https://img.yzcdn.cn/vant/coupon-empty.png">
<p>暂无优惠券</p>
</div>
</div>