Authored by yyq

fix

@@ -7,15 +7,11 @@ Component({ @@ -7,15 +7,11 @@ Component({
7 } 7 }
8 }, 8 },
9 data: { 9 data: {
10 - address: {  
11 - consignee: '',  
12 - mobile: '',  
13 - areaText: ''  
14 - } 10 + address: {}
15 }, 11 },
16 methods: { 12 methods: {
17 _addressChange(address) { 13 _addressChange(address) {
18 - if (address) { 14 + if (address && address.area && address.address) {
19 const length = 45; 15 const length = 45;
20 let areaText = `${address.area} ${address.address}`; 16 let areaText = `${address.area} ${address.address}`;
21 17
@@ -24,6 +20,8 @@ Component({ @@ -24,6 +20,8 @@ Component({
24 } 20 }
25 21
26 address.areaText = areaText; 22 address.areaText = areaText;
  23 + address.consignee = address.consignee || '';
  24 + address.mobile = address.mobile || '';
27 } 25 }
28 26
29 this.setData({address}); 27 this.setData({address});