Authored by Rock Zhang

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

... ... @@ -6,7 +6,7 @@
<span class="tel">{{mobile}}</span>
<p class="address-info">{{area}} {{address}}</p>
<div class="action iconfont">
<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>
<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>
<span class="del" data-id="{{address_id}}">&#xe621;</span>
</div>
</div>
... ...
... ... @@ -331,8 +331,8 @@ class UserModel
$address = UserData::addressData($uid);
// 处理地址数据
if (isset($address['returnObj']) && !empty($address['returnObj'])) {
$result = $address['returnObj'];
if (!isset($address['code'])) {
$result = $address;
}
return $result;
... ...