|
@@ -62,7 +62,7 @@
|
|
|
</template>
|
|
|
|
|
|
<view class="title" style=" margin-top: 28rpx;">
|
|
|
- 全程{{ (distance / 1000).toFixed(1) }}公里,{{ isNaN(minutes) ? 0 : minutes }}分钟
|
|
|
+ 全程{{ (distance / 1000).toFixed(1) }}公里,{{ isNaN(minutes) ? 1 : minutes }}分钟
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -203,7 +203,7 @@ export default {
|
|
|
const startTime = new Date(this.info.goodsList[0].extend.startTime).getTime()
|
|
|
const time = driverEndTime - startTime
|
|
|
// 转换为分钟数
|
|
|
- this.minutes = (time / 1000 / 60).toFixed(0)
|
|
|
+ this.minutes = Math.ceil((time / 1000 / 60))
|
|
|
|
|
|
})
|
|
|
},
|