parent
87ebe454c5
commit
ff0e308493
3 changed files with 85 additions and 5 deletions
@ -0,0 +1,24 @@ |
||||
<view> |
||||
<block wx:for="{{coupons}}" wx:for-item="coupon" wx:key="id"> |
||||
<view class="coupon-container"> |
||||
<view class="left-image" wx:if="{{coupon.overdue}}" bindtap=""> |
||||
<image src="../../images/coupon-gray.png" mode="aspectFit"></image> |
||||
</view> |
||||
<view class="left-image" wx:else> |
||||
<image src="{{coupon['left-image']}}" mode="aspectFit"></image> |
||||
</view> |
||||
<view class="mall_coupon_ab"> |
||||
<view class="value"><text>¥{{coupon['coupon-value']}}</text></view> |
||||
<view class="mall_coupon_more"> |
||||
<view><text>{{coupon['sub-title']}}</text></view> |
||||
<view class="grey"><text>{{coupon.title}}</text></view> |
||||
<view class="grey"><text>{{coupon['product-category-title']}}</text></view> |
||||
<view class="grey"><text>• 有效期至: {{coupon['end-time']}}</text></view> |
||||
</view> |
||||
<view class="" wx:if="{{coupon.overdue}}" bindtap=""> |
||||
<image src="../../images/out.png" mode="aspectFit"></image> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</block> |
||||
</view> |
@ -0,0 +1,46 @@ |
||||
.coupon-container { |
||||
display: flex; |
||||
flex-direction: column; |
||||
height: 225rpx; |
||||
margin-left: 20rpx; |
||||
margin-right: 20rpx; |
||||
} |
||||
|
||||
.left-image image { |
||||
width: 100%; |
||||
height: 225rpx; |
||||
} |
||||
|
||||
.mall_coupon_ab { |
||||
height: 225rpx; |
||||
display: flex; |
||||
flex-direction: row; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
text-align: center; |
||||
position: relative; |
||||
top: -118rpx; |
||||
} |
||||
|
||||
.mall_coupon_ab .value { |
||||
width: 35%; |
||||
font-size: 56rpx; |
||||
color: #fff; |
||||
} |
||||
|
||||
.mall_coupon_more { |
||||
display: flex; |
||||
flex-direction: column; |
||||
align-items: flex-end; |
||||
margin-right: 30rpx; |
||||
font-size: 35rpx; |
||||
line-height: 47rpx; |
||||
} |
||||
|
||||
.mall_coupon_more .grey { |
||||
color: #999; |
||||
} |
||||
|
||||
page { |
||||
background-color: #f4f4f4; |
||||
} |
Loading…
Reference in new issue