Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
f63b242c6bf09a5e301806fcca3cdf2925074b98
1 parent
aaa4f8f6
地址选择触发方式优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
static/js/cart/select-address.js
template/m.yohobuy.com/actions/cart/index/select-address.phtml
static/js/cart/select-address.js
View file @
f63b242
...
...
@@ -25,6 +25,8 @@ $('.address-item').on('touchend', function() {
orderInfo
(
'addressId'
,
addressId
);
orderInfo
(
'address'
,
address
);
window
.
location
.
href
=
$this
.
data
(
'href'
);
}).
on
(
'touchstart'
,
'.edit'
,
function
()
{
window
.
location
.
href
=
$
(
this
).
data
(
'href'
);
return
false
;
...
...
template/m.yohobuy.com/actions/cart/index/select-address.phtml
View file @
f63b242
...
...
@@ -2,7 +2,7 @@
<div
class=
"my-address-page select-address-page yoho-page"
>
<div
class=
"page-wrap clearfix"
>
{
{#
address
}
}
<
a
class=
"address-item"
data-address-id=
"{{address_id}}"
data-is-support=
"{{is_support}}"
href=
"/cart/index/orderEnsure"
>
<
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>
...
...
@@ -10,7 +10,7 @@
<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>
</
a
>
</
div
>
{
{/
address
}
}
<a
class=
"add-address"
data-href=
"/home/addressAct?refer=shopping"
>
...
...
Please
register
or
login
to post a comment