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
ccbikai
9 years ago
Commit
e5e0cce6a6f688f17d477641bc121f0467443a73
1 parent
195c5074
最多添加五个测试地址
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
static/js/me/address.js
template/m.yohobuy.com/actions/index/home/index.phtml
static/js/me/address.js
View file @
e5e0cce
...
...
@@ -19,6 +19,7 @@ var $action = $('.action'),
$confim
=
$
(
'.confim-mask'
),
$pageWrap
=
$
(
'.page-wrap'
),
$backBtn
=
$
(
'.nav-back'
),
$addressItem
=
$
(
'.address-item'
),
$navTitle
=
$
(
'.nav-title'
),
isSubmiting
,
deleteId
,
...
...
@@ -95,6 +96,10 @@ $confim.on('touchend', '.cancel', function() {
// 添加地址
$addAddress
.
on
(
'touchend'
,
function
()
{
if
(
$addressItem
.
length
>=
5
)
{
tip
.
show
(
'您最多添加5个收货地址'
);
return
false
;
}
editAddress
();
$navTitle
.
html
(
'添加新地址'
);
});
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
e5e0cce
...
...
@@ -59,26 +59,26 @@
<a
class=
"list-item"
href=
"/home/address"
>
<span
class=
"iconfont icon"
>
637
;</span>
地址管理
<span
class=
"iconfont num"
>
{
{
#if
address_num
}
}
{
{address_num
}
}
{
{/if
}
}

604
;</span>
<span
class=
"iconfont num"
>
{
{
address_num
}
}

604
;</span>
</a>
</div>
<div
class=
"group-list"
>
<a
class=
"list-item"
href=
"/home/coupons"
>
<span
class=
"iconfont icon"
>
63
a;</span>
优惠券
<span
class=
"iconfont num"
>
{
{
#if
coupon_num
}
}
{
{coupon_num
}
}
{
{/if
}
}

604
;</span>
<span
class=
"iconfont num"
>
{
{
coupon_num
}
}

604
;</span>
</a>
<a
class=
"list-item"
href=
"/home/currency"
>
<span
class=
"iconfont icon"
>
635
;</span>
YOHO
币
<span
class=
"iconfont num"
>
{
{
#if
yoho_coin_num
}
}
{
{yoho_coin_num
}
}
{
{/if
}
}

604
;</span>
<span
class=
"iconfont num"
>
{
{
yoho_coin_num
}
}

604
;</span>
</a>
</div>
<div
class=
"group-list"
>
<a
class=
"list-item"
href=
"/home/message"
>
<span
class=
"iconfont icon"
>
636
;</span>
消息
<span
class=
"iconfont num"
>
{
{
#if
inbox_total
}
}
{
{inbox_total
}
}
{
{/if
}
}

604
;</span>
<span
class=
"iconfont num"
>
{
{
inbox_total
}
}

604
;</span>
</a>
</div>
<div
class=
"group-list"
>
...
...
Please
register
or
login
to post a comment