[improvement] SubmitBar: update amount font size (#841)

This commit is contained in:
neverland 2018-11-01 11:50:18 +08:00 committed by GitHub
parent c4fdf175ba
commit 814ec07820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -32,8 +32,13 @@
} }
&__price { &__price {
padding-right: 12px;
color: @red; color: @red;
font-size: 18px;
padding-right: 12px;
}
&__currency {
font-size: 14px;
} }
&__button { &__button {

View File

@ -8,7 +8,7 @@ VantComponent({
], ],
props: { props: {
tip: [String, Boolean], tip: null,
type: Number, type: Number,
price: null, price: null,
label: String, label: String,

View File

@ -10,7 +10,9 @@
<view class="van-submit-bar__text"> <view class="van-submit-bar__text">
<block wx:if="{{ hasPrice }}"> <block wx:if="{{ hasPrice }}">
<text>{{ label || '合计:' }}</text> <text>{{ label || '合计:' }}</text>
<text class="van-submit-bar__price price-class">{{ currency }} {{ priceStr }}</text> <text class="van-submit-bar__price price-class">
<text class="van-submit-bar__currency">{{ currency }}</text> {{ priceStr }}
</text>
</block> </block>
</view> </view>
<van-button <van-button