Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
www.fudou6.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liaili
www.fudou6.com
Commits
0324c86c
Commit
0324c86c
authored
Aug 02, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update index mobile to /h5/
parent
f3330218
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
app.js
app.js
+1
-1
index.hbs
views/index.hbs
+24
-0
No files found.
app.js
View file @
0324c86c
...
...
@@ -61,7 +61,7 @@ app.use(function (err, req, res, next) {
res
.
status
(
err
.
status
||
500
);
res
.
render
(
'error'
,
{
message
:
err
.
message
,
error
:
{}
layout
:
false
});
});
...
...
views/index.hbs
View file @
0324c86c
<script>
(
function
(
ua
){
var
isAndroid
=
/
(?:
Android
)
/gi
.
test
(
ua
);
var
isIPhone
=
/
(?:
iPhone
)
/gi
.
test
(
ua
);
function
deserialize
(
str
=
location
.
search
)
{
var
query
=
{};
var
arr
=
(
str
+
''
).
replace
(
/^
\?
/g
,
''
).
split
(
'&'
);
if
(
arr
.
length
){
for
(
var
i
=
0
,
len
=
arr
.
length
;
i
<
len
;
i
++
){
var
item
=
arr
[
i
];
var
tmp
=
(
item
+
''
).
split
(
'='
);
if
(
tmp
.
length
)
{
query
[
decodeURIComponent
(
tmp
[
0
])]
=
decodeURIComponent
(
tmp
[
1
]);
}
}
}
return
query
;
}
var
viewPc
=
deserialize
().
vpc
;
if
(
!
viewPc
&&
(
isAndroid
||
isIPhone
)){
location
.
href
=
'/h5'
;
}
})(
navigator
.
userAgent
);
</script>
<div
class=
"banner"
>
<div
class=
"banner-box"
>
<h1>
海量资源 轻松抢单
</h1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment