|
@@ -974,7 +974,18 @@ export default {
|
|
|
}
|
|
}
|
|
|
const method = this.currentShMethod
|
|
const method = this.currentShMethod
|
|
|
if (method && Number(method.unMeet) === 2 && this.checkShMethodBelowMinimum(method)) {
|
|
if (method && Number(method.unMeet) === 2 && this.checkShMethodBelowMinimum(method)) {
|
|
|
- this.$msg("未达到最低消费,不能下单")
|
|
|
|
|
|
|
+ // 不满最低消费且不可下单时,提示具体需要的最低金额与数量
|
|
|
|
|
+ const minAmount = Number(method.minAmount) || 0
|
|
|
|
|
+ const minNum = Number(method.minNum) || 0
|
|
|
|
|
+ const tips = []
|
|
|
|
|
+ if (minAmount > 0) {
|
|
|
|
|
+ tips.push(`满${minAmount}元`)
|
|
|
|
|
+ }
|
|
|
|
|
+ if (minNum > 0) {
|
|
|
|
|
+ tips.push(`满${minNum}扎`)
|
|
|
|
|
+ }
|
|
|
|
|
+ const tipStr = tips.length > 0 ? `需${tips.join("且")}才能下单` : "未达到最低消费,不能下单"
|
|
|
|
|
+ this.$msg(tipStr)
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
|