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
liangxs
9 years ago
Commit
9fb5b6211131ae93ddb7d55f05e65884e8a1de3b
1 parent
b7da7f1a
订单详情地址修改文件新建及路由
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
0 deletions
static/js/me/address-modify.js
template/m.yohobuy.com/actions/index/home/address_modify.phtml
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
static/js/me/address-modify.js
0 → 100644
View file @
9fb5b62
/**
* Created by Administrator on 2016/5/10.
*/
console
.
log
(
'ss'
);
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/home/address_modify.phtml
0 → 100644
View file @
9fb5b62
{
{>
layout/header
}
}
<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"
>
<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=shopping"
>
61
e;</span>
<span
class=
"del"
data-id=
"{{address_id}}"
>
621
;</span>
</div>
</div>
{
{/
address
}
}
<a
class=
"add-address"
data-href=
"/home/addressAct?refer=shopping"
>
添加新地址
</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>
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
9fb5b62
...
...
@@ -395,3 +395,9 @@
seajs.use('js/product/shop');
</script>
{{/if}}
{{!-- 订单详情地址修改页 --}}
{{#if addressModifyPage}}
<script>
seajs.use('js/me/address-modify');
</script>
{{/if}}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
9fb5b62
...
...
@@ -443,6 +443,30 @@ class HomeController extends AbstractAction
}
/**
* 地址修改
*/
public
function
addressModifyAction
()
{
// 审判跳转登录页
$this
->
auditJumpLogin
();
// 设置网站标题
$this
->
setTitle
(
'地址管理'
);
$this
->
setNavHeader
(
'地址管理'
,
Helpers
::
url
(
'/home'
),
false
);
$uid
=
$this
->
_uid
;
$address
=
UserModel
::
getAddressData
(
$uid
);
$this
->
_view
->
display
(
'address_modify'
,
array
(
'addressModifyPage'
=>
true
,
'pageFooter'
=>
true
,
'address'
=>
$address
,
'changeable'
=>
true
,
'showAddBtn'
=>
(
count
(
$address
)
<=
5
),
));
}
/**
*
* 地址编辑或添加页面
*/
...
...
@@ -1041,6 +1065,8 @@ class HomeController extends AbstractAction
'orderCount'
=>
isset
(
$orderDetail
[
'orderCount'
])
?
intval
(
$orderDetail
[
'orderCount'
])
:
0
,
'isOldUser'
=>
(
isset
(
$_COOKIE
[
'_isOldUser'
])
&&
$_COOKIE
[
'_isOldUser'
]
==
'4'
)
?
'true'
:
'false'
,
'uid'
=>
$this
->
_uid
,
'changeable'
=>
true
));
}
...
...
Please
register
or
login
to post a comment