mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Card: price zero (#411)
This commit is contained in:
parent
91eef9a596
commit
ffdb5c19c6
@ -16,7 +16,6 @@
|
|||||||
num="2"
|
num="2"
|
||||||
price="2.00"
|
price="2.00"
|
||||||
thumb="{{ imageURL }}"
|
thumb="{{ imageURL }}"
|
||||||
use-footer-slot="{{ true }}"
|
|
||||||
>
|
>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<van-button size="mini" custom-class="button">按钮</van-button>
|
<van-button size="mini" custom-class="button">按钮</van-button>
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
num="2"
|
num="2"
|
||||||
price="2.00"
|
price="2.00"
|
||||||
thumb="{{ imageURL }}"
|
thumb="{{ imageURL }}"
|
||||||
use-footer-slot="{{ true }}"
|
|
||||||
>
|
>
|
||||||
<view slot="footer">
|
<view slot="footer">
|
||||||
<van-button size="mini">按钮</van-button>
|
<van-button size="mini">按钮</van-button>
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
<slot wx:else name="thumb" />
|
<slot wx:else name="thumb" />
|
||||||
</view>
|
</view>
|
||||||
<view class="van-card__content">
|
<view class="van-card__content">
|
||||||
<view wx:if="{{ title || price }}" class="van-card__row">
|
<view wx:if="{{ title || price || price === 0 }}" class="van-card__row">
|
||||||
<view wx:if="{{ title }}" class="van-card__title title-class">{{ title }}</view>
|
<view wx:if="{{ title }}" class="van-card__title title-class">{{ title }}</view>
|
||||||
<view wx:if="{{ price }}" class="van-card__price price-class">{{ currency }} {{ price }}</view>
|
<view wx:if="{{ price || price === 0 }}" class="van-card__price price-class">{{ currency }} {{ price }}</view>
|
||||||
</view>
|
</view>
|
||||||
<slot wx:else name="title" />
|
<slot wx:else name="title" />
|
||||||
<view wx:if="{{ desc || num }}" class="van-card__row">
|
<view wx:if="{{ desc || num }}" class="van-card__row">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user