shish 1 ngày trước cách đây
mục cha
commit
0576358b02
1 tập tin đã thay đổi với 12 bổ sung1 xóa
  1. 12 1
      hdApp/src/admin/billing/affirmSh.vue

+ 12 - 1
hdApp/src/admin/billing/affirmSh.vue

@@ -974,7 +974,18 @@ export default {
 				}
 				const method = this.currentShMethod
 				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
 				}