Przeglądaj źródła

openIntraCity 为2时,选择跑腿配送进行限制提交

shizhongqi 8 miesięcy temu
rodzic
commit
2afb77c182

+ 4 - 0
mallApp/src/pages/billing/affirmGhs.vue

@@ -560,6 +560,10 @@ export default {
 					this.$msg('没有获取到跑腿费')
 					return false
 				}
+				if(Number(this.form.openIntraCity) == 2){
+					this.$msg('跑腿不可用,请用其它方式')
+					return false
+				}
 			}
 			uni.showLoading({mask:true})
 			buyItem(params).then(res => {

+ 1 - 1
mallApp/src/pages/order/buy.vue

@@ -194,7 +194,7 @@ export default {
     createOrderFn() {
       let form = {}
       if (this.form.sendType == 2) {
-        if(this.form.hasMap == 0) {
+        if(this.form.hasMap == 0 || this.openIntraCity == 2) {
           this.$msg('跑腿不可用,请用其它方式')
           return
         }