Commit 37d1461f by 王志慧

commit

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