Commit 37d1461f by 王志慧

commit

1 parent 1f843e3e
......@@ -187,8 +187,6 @@ export default {
},
handleSubmit() {
if (this.throttleSubmit) return
console.log(this.throttleSubmit)
console.log('submit')
const { contactAddress, contactName, contactPhone, provinceId, provinceName, cityId, cityName, areaId, areaName } = this.addressInfo
const params = {
contactAddress,
......@@ -202,6 +200,10 @@ export default {
areaName,
shoppingCarList: this.selectList
}
if (provinceName == '' && cityName == '' && areaName == '') {
this.$message.error('请输入详细的收货地址')
return
}
this.throttleSubmit = true
this.$apis.purchaseShopping.purchaseOrderAdd(params).then(result => {
this.drawer = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!