Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
7 years ago
Commit
6f1fd390df8a96d3d923809d47c1fc6abc5d0b0a
1 parent
1f6b15ff
address-modified
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
2 deletions
apps/cart/controllers/buy-now-controller.js
apps/cart/views/action/buynow/select-address.hbs
public/js/home/address-act.page.js
apps/cart/controllers/buy-now-controller.js
View file @
6f1fd39
...
...
@@ -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
);
...
...
apps/cart/views/action/buynow/select-address.hbs
0 → 100644
View file @
6f1fd39
<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
}}
"
>

</span>
<span
class=
"del"
data-id=
"
{{
address_id
}}
"
>

</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
...
...
public/js/home/address-act.page.js
View file @
6f1fd39
...
...
@@ -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'
;
...
...
Please
register
or
login
to post a comment