Commit 37d1461f by 王志慧

commit

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