Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
guodong
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
598f1fba
authored
Mar 24, 2021
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
cfbba3c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
8 deletions
share.html
share.html
View file @
598f1fba
...
...
@@ -14,7 +14,7 @@
<title
class=
"title"
>
果冻直播
</title>
<script
src=
"lib/fsize.js"
></script>
<link
rel=
"stylesheet"
href=
"css/base.css"
>
<
link
rel=
"stylesheet"
href=
"css/layer.css"
>
<
!-- <link rel="stylesheet" href="css/layer.css"> --
>
<link
rel=
"stylesheet"
href=
"css/phone.css"
>
<style>
...
...
@@ -43,8 +43,8 @@
}
</style>
</head>
<body
style=
"background: #
FEF09D;
"
>
<div
class=
"
banner2"
>
<body
style=
"background: #
fff
"
>
<div
style=
"display: none;"
class=
"banner
banner2"
>
<!-- <a href="login.html"><span class="Recharge">充值<span style="font-weight: 700;font-family:'黑体'">>></span></span></a> -->
<div
id=
"downloadButton"
class=
"btn"
></div>
</div>
...
...
@@ -55,6 +55,21 @@
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script>
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
sessionStorage
.
type
=
data
.
type
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
var
data
=
OpenInstall
.
parseUrlParams
();
//openinstall.js中提供的工具函数,解析url中的所有查询参数
new
OpenInstall
({
appKey
:
"r06f9c"
,
...
...
@@ -64,12 +79,20 @@
/*在app已安装的情况尝试拉起app*/
m
.
schemeWakeup
();
/*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/
button
.
onclick
=
function
()
{
m
.
wakeupOrInstall
();
return
false
;
if
(
sessionStorage
.
type
==
2
){
setTimeout
(
function
(){
m
.
wakeupOrInstall
();
return
false
;
},
600
)
}
else
{
$
(
".banner"
).
show
()
$
(
"body"
).
css
(
"background"
,
"#FEF09D"
)
button
.
onclick
=
function
()
{
m
.
wakeupOrInstall
();
return
false
;
}
}
}
},
data
);
...
...
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