shish 3 лет назад
Родитель
Сommit
95d889feb9
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      mallApp/src/pages/billing/affirmGhs.vue

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

@@ -62,7 +62,7 @@
 							<view><text>{{userInfo.showAddress}}</text></view>
 						</view>
 						<view v-else>
-							<view><text style="color:#CCCCCC;">请完善地址</text></view>
+							<view><text style="color:#CCCCCC;">请填写地址</text></view>
 						</view>
 					</tui-list-cell>
 
@@ -274,9 +274,11 @@ export default {
 				return { productId: ele.id, num:num,ptItemId:ele.itemId,property:1,unitType:unitType,property:1};
 			});
 			let params = { product: JSON.stringify(product),...this.form }
-			if(this.$util.isEmpty(this.userInfo.lat) || this.$util.isEmpty(this.userInfo.long)){
-				this.$msg('请完善地址')
-				return false
+			if(this.form.sendType == 2){
+				if(this.$util.isEmpty(this.userInfo.lat) || this.$util.isEmpty(this.userInfo.long)){
+					this.$msg('请填写地址')
+					return false
+				}
 			}
 			uni.showLoading({mask:true})
 			buyItem(params).then(res => {