Skip to content

Commit 412539d

Browse files
authored
fix(price): taro h5 style problem (#1944)
1 parent ac6d9ba commit 412539d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/packages/__VUE/price/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
> view {
77
text-decoration: line-through;
88
}
9+
.nut-price--symbol,
10+
.nut-price--son {
11+
text-decoration: line-through;
12+
}
913
}
1014
&--symbol {
1115
display: inline-block;

src/packages/__VUE/price/index.taro.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
decode="true"
88
v-html="showSymbol"
99
></view>
10-
<view :class="`nut-price--${size}`">{{ formatThousands(price) }}</view>
11-
<view :class="`nut-price--decimal-${size}`" v-if="decimalDigits != 0">.</view>
12-
<view :class="`nut-price--decimal-${size}`">{{ formatDecimal(price) }}</view>
10+
<view :class="`nut-price--${size} nut-price--son`">{{ formatThousands(price) }}</view>
11+
<view :class="`nut-price--decimal-${size} nut-price--son`" v-if="decimalDigits != 0">.</view>
12+
<view :class="`nut-price--decimal-${size} nut-price--son`">{{ formatDecimal(price) }}</view>
1313
<view
1414
v-if="needSymbol && position == 'after'"
1515
class="nut-price--symbol"

0 commit comments

Comments
 (0)