Authored by Rock Zhang

完善地址有关接口,修改地址列表模版中的aera_code字段

@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <span class="tel">{{mobile}}</span> 6 <span class="tel">{{mobile}}</span>
7 <p class="address-info">{{area}} {{address}}</p> 7 <p class="address-info">{{area}} {{address}}</p>
8 <div class="action iconfont"> 8 <div class="action iconfont">
9 - <span class="edit" data-id="{{address_id}}" data-consignee="{{consignee}}" data-mobile="{{mobile}}" data-area-code="{{areaCode}}" data-area="{{area}}" data-address="{{address}}">&#xe61e;</span> 9 + <span class="edit" data-id="{{address_id}}" data-consignee="{{consignee}}" data-mobile="{{mobile}}" data-area-code="{{area_code}}" data-area="{{area}}" data-address="{{address}}">&#xe61e;</span>
10 <span class="del" data-id="{{address_id}}">&#xe621;</span> 10 <span class="del" data-id="{{address_id}}">&#xe621;</span>
11 </div> 11 </div>
12 </div> 12 </div>
@@ -331,8 +331,8 @@ class UserModel @@ -331,8 +331,8 @@ class UserModel
331 $address = UserData::addressData($uid); 331 $address = UserData::addressData($uid);
332 332
333 // 处理地址数据 333 // 处理地址数据
334 - if (isset($address['returnObj']) && !empty($address['returnObj'])) {  
335 - $result = $address['returnObj']; 334 + if (!isset($address['code'])) {
  335 + $result = $address;
336 } 336 }
337 337
338 return $result; 338 return $result;