Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
郝肖肖
8 years ago
Commit
1794f3d81890a08a29da489297285d7a6a4ec50f
1 parent
c9186d18
选择地址 返回
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
template/m.yohobuy.com/actions/cart/index/select-address.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
template/m.yohobuy.com/actions/cart/index/select-address.phtml
View file @
1794f3d
...
...
@@ -2,7 +2,7 @@
<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=
"
/cart/index/orderEnsure
"
>
<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>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
1794f3d
...
...
@@ -568,10 +568,15 @@ class IndexController extends AbstractAction
$uid
=
$this
->
getUid
(
true
);
$address
=
UserModel
::
getAddressData
(
$uid
);
$moreUrl
=
$this
->
server
(
'HTTP_REFERER'
,
'/cart/index/orderEnsure'
);
//取跳过来的url
$moreUrl
=
strrpos
(
$moreUrl
,
$this
->
server
(
'REQUEST_URI'
,
''
))
!==
false
||
strrpos
(
$moreUrl
,
'/home/addressAct'
)
!==
false
?
'/cart/index/orderEnsure'
:
$moreUrl
;
$this
->
_view
->
display
(
'select-address'
,
array
(
'selectAddressPage'
=>
true
,
'pageFooter'
=>
true
,
'address'
=>
$address
'address'
=>
$address
,
'moreUrl'
=>
$moreUrl
));
}
...
...
Please
register
or
login
to post a comment