|
|
|
@ -270,15 +270,12 @@ export default {
|
|
|
|
|
this.dialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
onSelected(data) {
|
|
|
|
|
console.log(data);
|
|
|
|
|
this.selectData = data;
|
|
|
|
|
},
|
|
|
|
|
async onAddAddress() {
|
|
|
|
|
let vm = this;
|
|
|
|
|
let curItem = vm.addressList.find(
|
|
|
|
|
(item) => item.id == vm.curAddressListItem.id
|
|
|
|
|
);
|
|
|
|
|
console.log(vm.selectData);
|
|
|
|
|
let curItem = vm.addressList[vm.editIndex]
|
|
|
|
|
console.log(`vm.addressPhone != curItem.phone`,vm.addressPhone , curItem);
|
|
|
|
|
if (!vm.selectData?.area?.code) {
|
|
|
|
|
vm.$message.error("请选择所在区域~");
|
|
|
|
|
return;
|
|
|
|
|