修改原价小数点 — reviewed by hy
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -120,7 +120,7 @@ export default class PBProductListView extends Component { | @@ -120,7 +120,7 @@ export default class PBProductListView extends Component { | ||
120 | <Text | 120 | <Text |
121 | style={styles.seckillPrice}>{rowData.formatSecKillPrice}</Text> | 121 | style={styles.seckillPrice}>{rowData.formatSecKillPrice}</Text> |
122 | <Text style={styles.originPrice}> | 122 | <Text style={styles.originPrice}> |
123 | - {'¥' + parseFloat(rowData.marketPrice + '').toFixed(2)}</Text> | 123 | + {'¥' + rowData.marketPrice}</Text> |
124 | </View> | 124 | </View> |
125 | <View style={{justifyContent: 'center', alignItems: 'flex-end'}}> | 125 | <View style={{justifyContent: 'center', alignItems: 'flex-end'}}> |
126 | {tipState == '已抢光' ? | 126 | {tipState == '已抢光' ? |
@@ -74,7 +74,7 @@ export default class ProductListView extends Component { | @@ -74,7 +74,7 @@ export default class ProductListView extends Component { | ||
74 | <Text | 74 | <Text |
75 | style={styles.seckillPrice}>{rowData.formatSecKillPrice}</Text> | 75 | style={styles.seckillPrice}>{rowData.formatSecKillPrice}</Text> |
76 | <Text style={styles.originPrice}> | 76 | <Text style={styles.originPrice}> |
77 | - {'¥' + parseFloat(rowData.marketPrice + '').toFixed(2)}</Text> | 77 | + {'¥' + rowData.marketPrice}</Text> |
78 | </View> | 78 | </View> |
79 | <View style={{justifyContent: 'center', alignItems: 'flex-end'}}> | 79 | <View style={{justifyContent: 'center', alignItems: 'flex-end'}}> |
80 | {tipState == '已抢光' && url && url.length ? | 80 | {tipState == '已抢光' && url && url.length ? |
-
Please register or login to post a comment