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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
b15864f6d24c55efd60a1b8380a8764c84ac138d
2 parents
ab2e7676
792eb85b
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
template/www.yohobuy.com/partials/layout/page-header.phtml
web-static/js/header.js
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
b15864f
...
...
@@ -273,7 +273,7 @@
\
{
\{/need_pay_gifts\
}
\}
</ul>
<ul
class=
"activity-list"
>
\
{
{#
equalone
has_promotion\
}
\}
\
{
{#
if
has_promotion\
}
\}
<li
class=
"activity-item"
>
<span
class=
"activity-name"
>活动</span>
<h
3
class=
"activity-content"
>
...
...
@@ -286,13 +286,13 @@
\
{
\{/equalone\
}
\}
</h
3
>
</li>
\
{
\{/equalone\
}
\}
\
{
\{#equalone
fit_free_shipping
\
}
\}
\
{
\{/if\
}
\}
\
{
\{#if
fit_free_shipping
\
}
\}
<li
class=
"activity-item"
>
<span
class=
"activity-name"
>免运费</span>
<h
3
class=
"activity-content"
>全场满
¥
499
免运费</h
3
>
</li>
\
{
\{/
equalone
\
}
\}
\
{
\{/
if
\
}
\}
</ul>
</div>
<div
class=
"gobuy-notempty-footer"
>
...
...
@@ -317,7 +317,7 @@
<span
class=
"has"
>\
{
\{vip.curYearCost\
}
\}</span>
<span
class=
"total"
>\
{
\{vip.nextVipInfo.needCost\
}
\}</span>
</div>
<p
class=
"\{\{#
equalzero it.vip.curYearCostPer\}\}integrate\{\{/equalzero
\}\}"
style=
"width: \{\{vip.curYearCostPer\}\}%;"
></p>
<p
class=
"\{\{#
unless vip.curYearCostPer\}\}integrate\{\{/unless
\}\}"
style=
"width: \{\{vip.curYearCostPer\}\}%;"
></p>
</div>
<span
class=
"cardcate float-left"
>\
{
\{vip.nextVipInfo.title\
}
\}</span>
</div>
...
...
@@ -360,5 +360,6 @@
</div>
</script>
</div>
<input
id=
"api-domain"
type=
"hidden"
value=
"{{apiDomain}}"
>
{
{/headerdata
}
}
...
...
web-static/js/header.js
View file @
b15864f
...
...
@@ -8,7 +8,7 @@ var handlebars = require('yoho.handlebars');
var
json2
=
require
(
'json2'
);
var
vipInfoCombine
=
null
;
//用户信息编译模板
var
loginInfoCombine
=
null
;
//登录信息编译模板
var
apiDomain
=
'http://test.open.yohobuy.com/'
;
//获取数据的地址http://api.open.yohobuy.com
var
apiDomain
=
$
(
'#api-domain'
).
val
();
//获取数据的地址
var
cartTpl
=
''
;
//购物车模板
/**
* 搜寻的时候过滤非法字符(+-/:等非法字符单独出现)
...
...
@@ -65,6 +65,8 @@ var bannerMap = {
};
var
cookieMap
=
{};
$
(
'#api-domain'
).
remove
();
//删除信息表单
function
getSource
(
column
,
postition
,
event
)
{
try
{
dataLayer
.
push
({
...
...
Please
register
or
login
to post a comment