Explorar el Código

去掉四舍五入

张文飞 hace 3 años
padre
commit
213a873cfd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>