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
214b7a13
authored
Mar 09, 2021
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
ca2a0f8f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
239 additions
and
19 deletions
demo.html
gzh/css/index.css
gzh/css/index.less
gzh/demo.html
gzh/login.html
gzh/login2.html
demo.html
0 → 100644
View file @
214b7a13
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
charset=
"UTF-8"
>
<title>
果冻直播
</title>
<link
rel=
"stylesheet"
href=
"css/base.css"
>
<link
rel=
"stylesheet"
href=
"css/index.css?v=2020101003"
>
<link
rel=
"stylesheet"
href=
"layer-v3.1.0/layer.css"
>
<script>
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
'phone.html'
;
}
else
if
(
/android/
.
test
(
ua
))
{
window
.
location
.
href
=
'phone.html'
;
}
</script>
</head>
<body>
<div
style=
"width: 100%;overflow: hidden"
>
<div
class=
"bg"
>
<img
class=
"bg-icon"
src=
"images/bg.png"
alt=
""
>
<div
class=
"content"
>
<div
class=
"content-btn"
></div>
</div>
</div>
<div
class=
"content2"
></div>
<div
class=
"foot-box"
>
<p
style=
"padding-top: 20px;"
>
公司:@2020 武汉丫播互动科技有限公司
</p>
<a
href=
"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42010302002250"
>
<p><img
style=
"vertical-align: middle;margin-top: -5px;"
src=
"images/icon.png"
>
鄂公网安备 42010302002250号
</p>
</a>
<p>
地址:武汉市江汉区唐家墩路武汉菱角湖万达广场A栋A2单元21层
</p>
<a
href=
"http://gs.ccm.mct.gov.cn/lic/89f454fcbe214837ad1251d9f755dd38"
>
<p>
网文:鄂网文〔2020〕1278-033号
</p>
</a>
<p>
ICP:鄂B2-20200347
</p>
</div>
</div>
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script>
$
(
".content-btn"
).
on
(
"click"
,
function
()
{
window
.
location
.
href
=
'https://zhibocdn.ishuaji.cn/apk/down/guodong-1.0.0-gdgw.apk'
})
</script>
</html>
\ No newline at end of file
gzh/css/index.css
View file @
214b7a13
...
...
@@ -1145,3 +1145,11 @@
border-radius
:
1rem
;
color
:
#6C4014
;
}
.yanzheng-shadow
{
position
:
fixed
;
width
:
10rem
;
height
:
100vh
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
top
:
0
;
left
:
0
;
}
gzh/css/index.less
View file @
214b7a13
...
...
@@ -1171,4 +1171,12 @@
border-radius: 1rem;
color: #6C4014;
}
}
.yanzheng-shadow{
position: fixed;
width: 10rem;
height: 100vh;
background: rgba(0, 0, 0, 0.6);
top: 0;
left: 0;
}
\ No newline at end of file
gzh/demo.html
0 → 100644
View file @
214b7a13
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
Content=
"text/html; charset=utf-8;"
>
<title>
移动端触摸滑动
</title>
<meta
name=
"author"
content=
"rainna"
/>
<meta
name=
"keywords"
content=
"rainna's js lib"
/>
<meta
name=
"description"
content=
"移动端触摸滑动"
/>
<meta
name=
"viewport"
content=
"target-densitydpi=320,width=640,user-scalable=no"
>
<style>
*
{
margin
:
0
;
padding
:
0
;}
li
{
list-style
:
none
;}
.m-slider
{
width
:
600px
;
margin
:
50px
20px
;
overflow
:
hidden
;}
.m-slider
.cnt
{
position
:
relative
;
left
:
0
;
width
:
3000px
;}
.m-slider
.cnt
li
{
float
:
left
;
width
:
600px
;}
.m-slider
.cnt
img
{
display
:
block
;
width
:
100%
;
height
:
450px
;}
.m-slider
.cnt
p
{
margin
:
20px
0
;}
.m-slider
.icons
{
text-align
:
center
;
color
:
#000
;}
.m-slider
.icons
span
{
margin
:
0
5px
;}
.m-slider
.icons
.curr
{
color
:
red
;}
.f-anim
{
-webkit-transition
:
left
.2s
linear
;}
</style>
</head>
<body>
<div
class=
"m-slider"
>
<ul
class=
"cnt"
id=
"slider"
>
<li>
<img
src=
"http://imglf1.ph.126.net/qKodH3sZoVbPalKFtHS9mw==/6608946691259322175.jpg"
>
<p>
20140813镜面的世界,终究只是倒影。看得到你的身影,却触摸不到你的未来
</p>
</li>
<li>
<img
src=
"http://imglf1.ph.126.net/40-jqH_j6EoCWnZOixY2pA==/4798022453110310215.jpg"
>
<p>
20140812锡林浩特前往东乌旗S101必经之处,一条极美的铁路。铁路下面是个小型的盐沼,淡淡的有了一丝天空之境的感觉。可惜在此玩了一个小时也没有看见一列火车经过,只好继续赶往东乌旗。
</p>
</li>
<li>
<img
src=
"http://imglf0.ph.126.net/Jnmi2y51zVdjKAYlibtpFw==/3068640196117481166.jpg"
>
<p>
20140811水的颜色为什么那么蓝,我也纳闷,反正自然饱和度和对比度拉完就是这个颜色的
</p>
</li>
<li>
<img
src=
"http://imglf1.ph.126.net/79GPsjhwiIj8e-0nP5MsEQ==/6619295294699949331.jpg"
>
<p>
海洋星球3重庆天气热得我想卧轨自杀
</p>
</li>
<li>
<img
src=
"http://imglf1.ph.126.net/40-jqH_j6EoCWnZOixY2pA==/4798022453110310215.jpg"
>
<p>
以上这些作品分别来自两位设计师作为观者,您能否通过设计风格进行区分
</p>
</li>
</ul>
<div
class=
"icons"
id=
"icons"
>
<span
class=
"curr"
>
1
</span>
<span>
2
</span>
<span>
3
</span>
<span>
4
</span>
<span>
5
</span>
</div>
</div>
<script>
var
slider
=
{
//判断设备是否支持touch事件
touch
:(
'ontouchstart'
in
window
)
||
window
.
DocumentTouch
&&
document
instanceof
DocumentTouch
,
slider
:
document
.
getElementById
(
'slider'
),
//事件
events
:{
index
:
0
,
//显示元素的索引
slider
:
this
.
slider
,
//this为slider对象
icons
:
document
.
getElementById
(
'icons'
),
icon
:
this
.
icons
.
getElementsByTagName
(
'span'
),
handleEvent
:
function
(
event
){
var
self
=
this
;
//this指events对象
if
(
event
.
type
==
'touchstart'
){
self
.
start
(
event
);
}
else
if
(
event
.
type
==
'touchmove'
){
self
.
move
(
event
);
}
else
if
(
event
.
type
==
'touchend'
){
self
.
end
(
event
);
}
},
//滑动开始
start
:
function
(
event
){
var
touch
=
event
.
targetTouches
[
0
];
//touches数组对象获得屏幕上所有的touch,取第一个touch
startPos
=
{
x
:
touch
.
pageX
,
y
:
touch
.
pageY
,
time
:
+
new
Date
};
//取第一个touch的坐标值
isScrolling
=
0
;
//这个参数判断是垂直滚动还是水平滚动
this
.
slider
.
addEventListener
(
'touchmove'
,
this
,
false
);
this
.
slider
.
addEventListener
(
'touchend'
,
this
,
false
);
},
//移动
move
:
function
(
event
){
//当屏幕有多个touch或者页面被缩放过,就不执行move操作
if
(
event
.
targetTouches
.
length
>
1
||
event
.
scale
&&
event
.
scale
!==
1
)
return
;
var
touch
=
event
.
targetTouches
[
0
];
endPos
=
{
x
:
touch
.
pageX
-
startPos
.
x
,
y
:
touch
.
pageY
-
startPos
.
y
};
isScrolling
=
Math
.
abs
(
endPos
.
x
)
<
Math
.
abs
(
endPos
.
y
)
?
1
:
0
;
//isScrolling为1时,表示纵向滑动,0为横向滑动
if
(
isScrolling
===
0
){
event
.
preventDefault
();
//阻止触摸事件的默认行为,即阻止滚屏
this
.
slider
.
className
=
'cnt'
;
this
.
slider
.
style
.
left
=
-
this
.
index
*
600
+
endPos
.
x
+
'px'
;
}
},
//滑动释放
end
:
function
(
event
){
var
duration
=
+
new
Date
-
startPos
.
time
;
//滑动的持续时间
if
(
isScrolling
===
0
){
//当为水平滚动时
this
.
icon
[
this
.
index
].
className
=
''
;
if
(
Number
(
duration
)
>
10
){
//判断是左移还是右移,当偏移量大于10时执行
if
(
endPos
.
x
>
10
){
if
(
this
.
index
!==
0
)
this
.
index
-=
1
;
}
else
if
(
endPos
.
x
<
-
10
){
if
(
this
.
index
!==
this
.
icon
.
length
-
1
)
this
.
index
+=
1
;
}
}
this
.
icon
[
this
.
index
].
className
=
'curr'
;
this
.
slider
.
className
=
'cnt f-anim'
;
this
.
slider
.
style
.
left
=
-
this
.
index
*
600
+
'px'
;
}
//解绑事件
this
.
slider
.
removeEventListener
(
'touchmove'
,
this
,
false
);
this
.
slider
.
removeEventListener
(
'touchend'
,
this
,
false
);
}
},
//初始化
init
:
function
(){
var
self
=
this
;
//this指slider对象
if
(
!!
self
.
touch
)
self
.
slider
.
addEventListener
(
'touchstart'
,
self
.
events
,
false
);
//addEventListener第二个参数可以传一个对象,会调用该对象的handleEvent属性
}
};
slider
.
init
();
</script>
</body>
</html>
\ No newline at end of file
gzh/login.html
View file @
214b7a13
...
...
@@ -32,6 +32,7 @@
<div
class=
"login-btn"
>
登录
</div>
</div>
</div>
<div
class=
"yanzheng-shadow"
></div>
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
w
<script
src=
"lib/fingerprint2.js"
></script>
...
...
@@ -68,6 +69,16 @@
}
})
}
// $.ajax({
// url:'http://openapi.lvdou66.com/captcha/slide/get.html',
// data:{
// phone:17722581707
// },
// type:"post",
// success:function(data){
// console.log(data)
// }
// })
$
(
".code-btn"
).
on
(
"click"
,
function
()
{
if
(
$
(
".login-phone-ipt"
).
val
().
length
>
10
)
{
$
.
ajax
({
...
...
gzh/login2.html
View file @
214b7a13
...
...
@@ -49,25 +49,25 @@
fp
.
get
(
function
(
result
,
components
)
{
canvasCode
=
result
});
//
if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){
//
$.ajax({
//
url:$ip+'activesys/getUserBaseInfo',
//
type: "post",
//
data: {
//
uid:localStorage.uid,
//
token:localStorage.token
//
},
//
success:function(msg){
//
var data = JSON.parse(msg)
//
console.log("获取用户基本信息",data)
//
if(data.code==1){
// window.location.href='index.html
';
//
}else{
//
layer.msg(data.msg)
//
}
//
}
//
})
//
}
if
(
localStorage
.
uid
!=
undefined
&&
localStorage
.
uid
!=
"undefined"
){
$
.
ajax
({
url
:
$ip
+
'activesys/getUserBaseInfo'
,
type
:
"post"
,
data
:
{
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
},
success
:
function
(
msg
){
var
data
=
JSON
.
parse
(
msg
)
console
.
log
(
"获取用户基本信息"
,
data
)
if
(
data
.
code
==
1
){
window
.
location
.
href
=
'https://activity.ishuaji.cn/active2020/subsidy/index.html?uid='
+
data
.
uid
+
'&token='
+
data
.
token
+
'
'
;
}
else
{
layer
.
msg
(
data
.
msg
)
}
}
})
}
$
(
".code-btn"
).
on
(
"click"
,
function
()
{
if
(
$
(
".login-phone-ipt"
).
val
().
length
>
10
)
{
$
.
ajax
({
...
...
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