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
周少峰
9 years ago
Commit
a4d906748fd36ce2a05c40fa9299115d4534e5d3
2 parents
e390a751
d83de817
Merge branch 'release/4.5' of
http://git.yoho.cn/fe/yohobuywap
into release/4.5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
static/js/me/order-detail.js
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
static/js/me/order-detail.js
View file @
a4d9067
...
...
@@ -36,26 +36,27 @@ function downCount(options) {
_minute
=
_second
*
60
,
_hour
=
_minute
*
60
,
_day
=
_hour
*
24
,
days
,
hours
,
minutes
,
seconds
;
// calculate dates
days
=
Math
.
floor
(
difference
/
_day
),
hours
=
Math
.
floor
((
difference
%
_day
)
/
_hour
),
minutes
=
Math
.
floor
((
difference
%
_hour
)
/
_minute
),
seconds
=
Math
.
floor
((
difference
%
_minute
)
/
_second
);
// fix dates so that it will show two digets
days
=
(
String
(
days
).
length
>=
2
)
?
days
:
'0'
+
days
;
hours
=
(
String
(
hours
).
length
>=
2
)
?
hours
:
'0'
+
hours
;
minutes
=
(
String
(
minutes
).
length
>=
2
)
?
minutes
:
'0'
+
minutes
;
seconds
=
(
String
(
seconds
).
length
>=
2
)
?
seconds
:
'0'
+
seconds
;
// set to DOM
$countdownContainer
.
removeClass
(
'hide'
);
$countDownHours
.
text
(
'剩余'
+
hours
+
':'
+
minutes
+
':'
+
seconds
);
if
(
hours
===
0
)
{
$countDownHours
.
text
(
'剩余'
+
minutes
+
':'
+
seconds
);
}
else
{
$countDownHours
.
text
(
'剩余'
+
hours
+
':'
+
minutes
+
':'
+
seconds
);
}
difference
-=
1000
;
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
View file @
a4d9067
...
...
@@ -131,7 +131,7 @@ class IndexController extends AbstractAction
$channel
=
$this
->
get
(
'yh_channel'
);
// 标识是不是APP客户端
$isApp
=
is_numeric
(
$channel
);
$isApp
=
$this
->
isApp
(
);
// APP访问时通过频道参数判断性别
if
(
$isApp
)
{
switch
(
intval
(
$channel
))
{
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
a4d9067
...
...
@@ -31,12 +31,12 @@ class InfoController extends AbstractAction
$data
[
'guang'
][
'id'
]
=
$id
;
// 标识是不是APP访问的
$isApp
=
null
!==
$this
->
get
(
'app_version'
,
null
);
$isApp
=
$this
->
isApp
(
);
// 标识是否是微信访问
$isWeixin
=
stripos
(
$this
->
server
(
'HTTP_USER_AGENT'
,
''
),
'MicroMessenger'
)
!==
false
;
// WAP上设置头部导航
if
(
!
$isApp
&&
!
$isWeixin
)
{
if
(
!
$isApp
||
!
$isWeixin
)
{
$this
->
setNavHeader
(
'逛'
,
true
,
SITE_MAIN
);
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
a4d9067
...
...
@@ -84,7 +84,7 @@ class PlusstarController extends AbstractAction
$channel
=
$this
->
get
(
'yh_channel'
);
// 标识是不是APP客户端
$isApp
=
is_numeric
(
$channel
);
$isApp
=
$this
->
isApp
(
);
// 标识是否是微信访问
$isWeixin
=
stripos
(
$this
->
server
(
'HTTP_USER_AGENT'
,
''
),
'MicroMessenger'
)
!==
false
;
// APP访问时通过频道参数判断性别
...
...
Please
register
or
login
to post a comment