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
6c25ac3516dff23c25b98e871cff017c139f4ea2
1 parent
c44a41a0
注释商品详情页面 咨询的查看更多绑定的JS,code review by @liangzhiferngn
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
library/Api/Yohobuy.php
static/js/product/detail/comments-consults.js
library/Api/Yohobuy.php
View file @
6c25ac3
...
...
@@ -22,7 +22,7 @@ class Yohobuy
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_URL = 'http://apih5.yoho.cn/';
// const API_URL2 = 'http://apih5.yoho.cn/';
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
...
...
@@ -45,7 +45,7 @@ class Yohobuy
/* PC重构地址 */
// const API_URL = 'http://test.open.yohobuy.com/';
// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
...
...
@@ -72,9 +72,9 @@ class Yohobuy
}
// 苹果IPAD
elseif
(
strstr
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'iPad'
))
{
return
'ipad'
;
}
}
elseif
(
stristr
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'android'
))
{
return
'android'
;
}
...
...
@@ -179,7 +179,7 @@ class Yohobuy
if
(
!
$returnJson
&&
!
empty
(
$result
))
{
$result
=
json_decode
(
$result
,
true
);
}
curl_close
(
$ch
);
$data
=
array
();
...
...
static/js/product/detail/comments-consults.js
View file @
6c25ac3
...
...
@@ -9,12 +9,12 @@ var $ = require('jquery'),
var
commentsNum
,
consultsNum
;
var
consultFooterEle
=
$
(
'.consult-content-footer'
)[
0
],
consultFooterHammer
=
consultFooterEle
&&
new
Hammer
(
consultFooterEle
),
navtabEle
=
document
.
getElementById
(
'nav-tab'
),
var
navtabEle
=
document
.
getElementById
(
'nav-tab'
),
navtabHammer
=
navtabEle
&&
new
Hammer
(
navtabEle
),
// consultFooterEle = $('.consult-content-footer')[0],
// consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),
gotoConsultEle
=
document
.
getElementById
(
'goto-consult'
),
gotoConsultHammer
=
gotoConsultEle
&&
new
Hammer
(
gotoConsultEle
),
...
...
@@ -70,11 +70,11 @@ if (navtabHammer) {
});
}
if
(
consultFooterHammer
)
{
consultFooterHammer
.
on
(
'tap'
,
function
()
{
location
.
href
=
$
(
consultFooterEle
).
data
(
'href'
);
});
}
// if (consultFooterHammer) {
// consultFooterHammer.on('tap', function() {
// location.href = $(consultFooterEle).data('href');
// });
// }
if
(
gotoConsultHammer
)
{
gotoConsultHammer
.
on
(
'tap'
,
function
()
{
...
...
Please
register
or
login
to post a comment