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
xuqi
9 years ago
Commit
30258a48a31fb2deb569898dcfc17f621bc14445
1 parent
1dc61267
api domain
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 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 @
30258a4
...
...
@@ -360,5 +360,6 @@
</div>
</script>
</div>
<input
id=
"api-domain"
type=
"hidden"
value=
"{{apiDomain}}"
>
{
{/headerdata
}
}
...
...
web-static/js/header.js
View file @
30258a4
...
...
@@ -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