Merge branch 'feature/task1.0.0-0507-zz' into feature/task1.0.0

merge-requests/68/head
张征 3 years ago
commit c867fb7246

@ -240,6 +240,9 @@ export default {
vm.$set(vm.selectData.area, "value", editItem.area); vm.$set(vm.selectData.area, "value", editItem.area);
vm.$set(vm.selectData.city, "value", editItem.city); vm.$set(vm.selectData.city, "value", editItem.city);
vm.$set(vm.selectData.province, "value", editItem.province); vm.$set(vm.selectData.province, "value", editItem.province);
vm.$set(vm.selectData.area, "code", editItem.areaCode);
vm.$set(vm.selectData.city, "code", editItem.cityCode);
vm.$set(vm.selectData.province, "code", editItem.provinceCode);
vm.$set(vm, "detailAddress", editItem.detailAddress); vm.$set(vm, "detailAddress", editItem.detailAddress);
vm.$set(vm, "defaultAddress", editItem.isDefault); vm.$set(vm, "defaultAddress", editItem.isDefault);
vm.$set(vm, "addressUser", editItem.name); vm.$set(vm, "addressUser", editItem.name);
@ -257,6 +260,8 @@ export default {
}, },
async onAddAddress() { async onAddAddress() {
let vm = this; let vm = this;
let curItem = vm.addressList.find((item) => item.id == vm.curAddressListItem.id);
console.log(vm.selectData)
if (!vm.selectData?.area?.code) { if (!vm.selectData?.area?.code) {
vm.$message.error("请选择所在区域~"); vm.$message.error("请选择所在区域~");
return; return;
@ -269,7 +274,7 @@ export default {
vm.$message.error("请输入收货人~"); vm.$message.error("请输入收货人~");
return; return;
} }
if (!IsPhone(vm.addressPhone)) { if (!IsPhone(vm.addressPhone)&&vm.addressPhone!=curItem.phone) {
vm.$message.error("请输入收货人手机号码~"); vm.$message.error("请输入收货人手机号码~");
return; return;
} }

@ -190,7 +190,7 @@ export default {
vm.$set(vm.params, "order", "starting_price:asc"); vm.$set(vm.params, "order", "starting_price:asc");
break; break;
case 3: case 3:
vm.$set(vm.params, "order", "create_time"); vm.$set(vm.params, "order", "create_time:desc");
break; break;
} }
if (vm.levelType == 1) { if (vm.levelType == 1) {

Loading…
Cancel
Save