Authored by 郭成尧

address-modified

... ... @@ -292,13 +292,15 @@ class BuyNowController {
backUrl: moreUrl
});
res.render('select-address', {
res.render('buynow/select-address', {
module: 'cart',
page: 'buynow-select-address',
pageHeader: headerData,
pageFooter: true,
moreUrl,
address,
product_sku: product_sku,
buy_number: buy_number,
localCss: true
});
})().catch(next);
... ...
<div class="my-address-page select-address-page yoho-page">
<div class="page-wrap clearfix">
{{# address}}
<div class="address-item" data-address-id="{{address_id}}" data-is-support="{{is_support}}" data-href="{{../moreUrl}}">
<span class="name">{{consignee}}</span>
<span class="tel">{{mobile}}</span>
<p class="address-info">{{area}} {{address}}</p>
<div class="action iconfont">
<span class="edit" data-href="/home/addressAct?id={{address_id}}&refer=buynow&product_sku={{product_sku}}&buy_number={{buy_number}}">&#xe61e;</span>
<span class="del" data-id="{{address_id}}">&#xe621;</span>
</div>
</div>
{{/ address}}
<a class="add-address" data-href="/home/addressAct?refer=buynow&product_sku={{product_sku}}&buy_number={{buy_number}}">
添加新地址
</a>
<div class="confim-mask hide">
<div class="confim-box">
<div class="content">
您确定要删除地址?
</div>
<div class="action">
<span class="cancel">
取消
</span>
<span class="confim">
确认
</span>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -129,7 +129,11 @@ $addressForm.on('submit', function() {
isSubmiting = false;
loading.hideLoadingMask();
} else if (window.queryString) {
if (window.queryString.refer === 'shopping') {
if (window.queryString.refer === 'buynow') {
window.location.href = '/cart/index/buynow/selectAddress?product_sku=' +
window.queryString.product_sku + '&buy_number=' +
window.queryString.buy_number;
} else if (window.queryString.refer === 'shopping') {
window.location.href = '/cart/index/new/selectAddress';
} else if (window.queryString.refer === 'modify') {
window.location.href = '/home/addressModify';
... ...