Commit 37d1461f by 王志慧

commit

1 parent 1f843e3e
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<li class="item" v-for="(item, index) in addressInfoList" :key="index"> <li class="item" v-for="(item, index) in addressInfoList" :key="index">
<span class="label">{{ item.label }}</span> <span class="label">{{ item.label }}</span>
<span class="conten" v-if="item.name == 'contactAddress'">{{ $$(addressInfo, 'provinceName') }}{{ $$(addressInfo, 'cityName') }}{{ $$(addressInfo, 'areaName') }}{{ $$(addressInfo, 'contactAddress') }}</span> <span class="conten" v-if="item.name == 'contactAddress'">{{ $$(addressInfo, 'provinceName') }}{{ $$(addressInfo, 'cityName') }}{{ $$(addressInfo, 'areaName') }}{{ $$(addressInfo, 'contactAddress') }}</span>
<span class="conten" v-else>{{ $$(addressInfo, [item.name]) }}</span> <span class="conten" v-else>{{ $$(addressInfo, [item.name]) }}</span>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -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!