Explorar el Código

公里数小数位处理

vaecebyZ hace 10 meses
padre
commit
113c6f599d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      my/order/trip/detail.vue

+ 1 - 1
my/order/trip/detail.vue

@@ -62,7 +62,7 @@
 			</template>
 
 			<view class="title" style="	margin-top: 28rpx;">
-				全程{{ distance / 1000 }}公里,{{ isNaN(minutes) ? 0 : minutes }}分钟
+				全程{{ (distance / 1000).toFixed(1) }}公里,{{ isNaN(minutes) ? 0 : minutes }}分钟
 			</view>
 		</view>