修复地图定位bug
This commit is contained in:
@@ -384,9 +384,12 @@
|
||||
|
||||
// 获取价格单位文本
|
||||
const getPriceUnit = () => {
|
||||
console.log(deviceInfo.value);
|
||||
// 按分钟计费
|
||||
if (deviceInfo.value && deviceInfo.value.feeType === 'minute') {
|
||||
return '分钟'
|
||||
}else if(deviceInfo.value && deviceFeeConfig.value.hourPrice == '0.5'){
|
||||
return '30分钟'
|
||||
}
|
||||
// 按小时计费(默认)
|
||||
return $t('time.hour')
|
||||
@@ -417,7 +420,7 @@
|
||||
|
||||
// 按小时计费
|
||||
const hourPrice = parseFloat(deviceFeeConfig.value.hourPrice || 1)
|
||||
const unitPrice = maxHourPrice * hourPrice
|
||||
const unitPrice = maxHourPrice
|
||||
return unitPrice.toFixed(2)
|
||||
}
|
||||
|
||||
@@ -439,11 +442,7 @@
|
||||
|
||||
// 按小时计费
|
||||
const unitMinutes = getBillingUnitMinutes()
|
||||
if (unitMinutes === 30) {
|
||||
return `${unitPrice}元/${unitMinutes}分钟,${maxHourPrice}元/小时`
|
||||
} else {
|
||||
return `${maxHourPrice}元/小时`
|
||||
}
|
||||
return deviceInfo.value.remark;
|
||||
}
|
||||
|
||||
// 生成详细说明文本
|
||||
@@ -454,11 +453,11 @@
|
||||
|
||||
// 按分钟计费
|
||||
if (deviceInfo.value && deviceInfo.value.feeType === 'minute') {
|
||||
return `前${freeMinutes}分钟内归还免费,不足${unitMinutes}分钟按${unitMinutes}分钟计费,封顶${depositAmount}元,持续计费至${depositAmount}元视为买断`
|
||||
return `不足${unitMinutes}分钟按${unitMinutes}分钟计费,封顶${depositAmount}元,持续计费至${depositAmount}元视为买断`
|
||||
}
|
||||
|
||||
// 按小时计费
|
||||
return `前${freeMinutes}分钟内归还免费,不足${unitMinutes}分钟按${unitMinutes}分钟计费,封顶${depositAmount}元,持续计费至${depositAmount}元视为买断`
|
||||
return `不足${unitMinutes}分钟按${unitMinutes}分钟计费,封顶${depositAmount}元,持续计费至${depositAmount}元视为买断`
|
||||
}
|
||||
|
||||
// 提交租借订单
|
||||
|
||||
Reference in New Issue
Block a user