|
@@ -104,7 +104,7 @@
|
|
|
<!-- 未达标提示 -->
|
|
<!-- 未达标提示 -->
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="showShMethodExtraFee">
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="showShMethodExtraFee">
|
|
|
<view>
|
|
<view>
|
|
|
- <text style="color: red;width:100%;">{{ shMethodUnMeetWarningText }}</text>
|
|
|
|
|
|
|
+ <text style="color: red;width:100%;font-weight: bold;font-size: 30upx;">{{ shMethodUnMeetWarningText }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
@@ -409,14 +409,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
const unMeet = Number(method.unMeet) || 0
|
|
const unMeet = Number(method.unMeet) || 0
|
|
|
const fee = Number(method.unMeetFee) || 0
|
|
const fee = Number(method.unMeetFee) || 0
|
|
|
- return (unMeet === 0 || unMeet === 2) && fee > 0
|
|
|
|
|
|
|
+ return (unMeet === 0 || unMeet === 1) && fee > 0
|
|
|
},
|
|
},
|
|
|
shMethodExtraFeeLabel() {
|
|
shMethodExtraFeeLabel() {
|
|
|
const method = this.currentShMethod
|
|
const method = this.currentShMethod
|
|
|
if (!method) {
|
|
if (!method) {
|
|
|
return "包装费"
|
|
return "包装费"
|
|
|
}
|
|
}
|
|
|
- return Number(method.unMeet) === 2 ? "包装费" : "运费"
|
|
|
|
|
|
|
+ return Number(method.unMeet) === 1 ? "包装费" : "运费"
|
|
|
},
|
|
},
|
|
|
shMethodExtraFeeAmount() {
|
|
shMethodExtraFeeAmount() {
|
|
|
if (!this.showShMethodExtraFee) {
|
|
if (!this.showShMethodExtraFee) {
|
|
@@ -664,7 +664,7 @@ export default {
|
|
|
if (method && this.checkShMethodBelowMinimum(method)) {
|
|
if (method && this.checkShMethodBelowMinimum(method)) {
|
|
|
const unMeet = Number(method.unMeet) || 0
|
|
const unMeet = Number(method.unMeet) || 0
|
|
|
const fee = parseFloat(Number(method.unMeetFee) || 0)
|
|
const fee = parseFloat(Number(method.unMeetFee) || 0)
|
|
|
- if ((unMeet === 0 || unMeet === 2) && fee > 0) {
|
|
|
|
|
|
|
+ if ((unMeet === 0 || unMeet === 1) && fee > 0) {
|
|
|
this.form.packCost = fee
|
|
this.form.packCost = fee
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -973,8 +973,19 @@ export default {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
const method = this.currentShMethod
|
|
const method = this.currentShMethod
|
|
|
- if (method && Number(method.unMeet) === 1 && this.checkShMethodBelowMinimum(method)) {
|
|
|
|
|
- this.$msg("未达到最低消费,不能下单")
|
|
|
|
|
|
|
+ if (method && Number(method.unMeet) === 2 && this.checkShMethodBelowMinimum(method)) {
|
|
|
|
|
+ // 不满最低消费且不可下单时,提示具体需要的最低金额与数量
|
|
|
|
|
+ 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
|
|
|
}
|
|
}
|
|
|
|
|
|