mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
23 lines
914 B
Plaintext
23 lines
914 B
Plaintext
<view class="custom-class van-card">
|
|
<view class="van-card__thumb">
|
|
<image wx:if="{{ thumb }}" src="{{ thumb }}" class="van-card__img thumb-class" />
|
|
<slot wx:else name="thumb" />
|
|
</view>
|
|
<view class="van-card__content">
|
|
<view wx:if="{{ title || price }}" class="van-card__row">
|
|
<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>
|
|
<slot wx:else name="title" />
|
|
<view wx:if="{{ desc || num }}" class="van-card__row">
|
|
<view wx:if="{{ desc }}" class="van-card__desc desc-class">{{ desc }}</view>
|
|
<view wx:if="{{ num }}" class="van-card__num num-class">x {{ num }}</view>
|
|
</view>
|
|
<slot wx:else name="desc" />
|
|
<slot name="tags" />
|
|
</view>
|
|
<view class="van-card__footer">
|
|
<slot name="footer" />
|
|
</view>
|
|
</view>
|