Commit 3e2abe75cff9b513d6d21228de526eea5dc3e2af
1 parent
44c26815
小数点的问题
Showing
1 changed file
with
2 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.wxml
@@ -244,7 +244,7 @@ | @@ -244,7 +244,7 @@ | ||
244 | </view> | 244 | </view> |
245 | </block> | 245 | </block> |
246 | <block wx:else> | 246 | <block wx:else> |
247 | - <text class="rel yuan">¥</text>{{ filters.toFix(data.shop_price,2)}} | 247 | + <text class="rel yuan">¥</text>{{filters.toFix(data.shop_price,2)}} |
248 | <view class='yj'><text>原价:¥{{data.market_price}}</text></view> | 248 | <view class='yj'><text>原价:¥{{data.market_price}}</text></view> |
249 | </block> | 249 | </block> |
250 | </view> | 250 | </view> |
@@ -286,7 +286,7 @@ | @@ -286,7 +286,7 @@ | ||
286 | <view class="fs24 white view card-name ellipsis-1">{{g_filters.get_card_price(data,card_list,1)}}</view> | 286 | <view class="fs24 white view card-name ellipsis-1">{{g_filters.get_card_price(data,card_list,1)}}</view> |
287 | </view> | 287 | </view> |
288 | <view class="card-effect"> | 288 | <view class="card-effect"> |
289 | - <view class="fs24 xc-black3">成为{{g_filters.get_card_price(data,card_list,1)}}立<text class="co-red">省{{data.market_price-g_filters.get_card_price(data,card_list,0)}}</text>元</view> | 289 | + <view class="fs24 xc-black3">成为{{g_filters.get_card_price(data,card_list,1)}}立<text class="co-red">省{{filters.toFix(data.market_price-g_filters.get_card_price(data,card_list,0),2)}}</text>元</view> |
290 | <view class="fs22 xc-ash"> 开通会员 尽享更多优惠 </view> | 290 | <view class="fs22 xc-ash"> 开通会员 尽享更多优惠 </view> |
291 | </view> | 291 | </view> |
292 | </view> | 292 | </view> |