Authored by 毕凯

修改地址优化

... ... @@ -89,14 +89,13 @@ $addressForm.on('submit', function() {
if (res.code !== 200) {
tip.show(res.message || '网络出了点问题~');
isSubmiting = false;
loading.hideLoadingMask();
} else {
window.location.href = '/home/address';
}
}).fail(function() {
tip.show('网络出了点问题~');
isSubmiting = false;
}).always(function() {
loading.hideLoadingMask();
});
return false;
});
... ...
... ... @@ -2,7 +2,7 @@
<div class="my-address-page yoho-page">
<div class="my-edit-address-page page-wrap">
<form class="edit-address">
<input type="hidden" name="id" value="{{address.id}}">
<input type="hidden" name="id" value="{{address.address_id}}">
<label class="username">
收件人姓名
<input type="text" name="consignee" maxlength="20" value="{{address.consignee}}">
... ...
<div class="my-edit-address-page page-wrap hide">
{{# address}}
<form class="edit-address">
<input type="hidden" name="id" value="">
<label class="username">
收件人姓名
<input type="text" name="consignee" maxlength="20" value="{{consignee}}">
</label>
<label class="mobile">
手机号码
<input type="text" name="mobile" value="{{mobile}}">
</label>
<label class="area">
省市区
<input type="hidden" name="area_code" value="{{area_code}}">
<input type="text" name="area" value="{{area}}" readonly>
<span class="iconfont">&#xe604;</span>
</label>
<label class="address">
详细地址
<textarea name="address" maxlength="100">{{address}}</textarea>
</label>
</form>
{{/ address}}
<div class="submit">
确认
</div>
</div>
\ No newline at end of file