Browse Source

去掉四舍五入

张文飞 3 years ago
parent
commit
213a873cfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/homePage/homePage.vue

+ 1 - 1
pages/homePage/homePage.vue

@@ -127,7 +127,7 @@
 					<text class="city_num_desc" :style="{color:contentColor}">推广任务</text>
 				</view>
 				<view class="content_tuiguang_money"> 
-					<view class="money_num" :style="{color:color2}"> ¥<countTo :startVal='0' :decimals='2' :endVal='Number(userInfo.surplusTaskAmount)' :duration='1000'></countTo></view>
+					<view class="money_num" :style="{color:color2}"> ¥<countTo :startVal='0' :decimals='2' :endVal='Number(Number(userInfo.surplusTaskAmount).toFixed(2))' :duration='1000'></countTo></view>
 					<text class="money_num_des" :style="{color:contentColor}">剩余任务金额</text>
 				</view>
 			</view>