Commit 3c2d2177 by libai

测试

parent 203cf5e3
Showing with 83 additions and 31 deletions
...@@ -3,42 +3,49 @@ ...@@ -3,42 +3,49 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>输出</title> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>果冻直播登录</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/index.css?v=2019041702">
<script src="lib/fsize.js"></script>
<style> <style>
ul.lanren {
margin: 100px auto;
}
.scale_panel { .scale_panel {
color: #999; color: #999;
position: absolute; position: absolute;
line-height: 18px; line-height: 18px;
left: 60px; left: 0.5rem;
top: -0px; top: -0px;
} }
.scale_panel>span:first-child { .scale_panel>span:first-child {
position: absolute; position: absolute;
left: -5rem; left: -0.5rem;
font-size: 2rem; font-size: 0.2rem;
} }
.scale_panel>span:nth-child(2) { .scale_panel>span:nth-child(2) {
position: absolute; position: absolute;
right: -5rem; right: -0.5rem;
font-size: 2rem; font-size: 0.2rem;
} }
.scale>span { .scale>span {
background-color: red; background-color: red;
width: 3rem; width: 0.2rem;
height: 3rem; height: 0.2rem;
position: absolute; position: absolute;
left: -2px; top: -0.05rem;
top: -15px; left: 0;
cursor: pointer; cursor: pointer;
border-radius: 50%; border-radius: 50%;
font-size: 2rem; font-size: 0.2rem;
} }
.scale { .scale {
...@@ -46,10 +53,10 @@ ...@@ -46,10 +53,10 @@
background-position: 0 100%; background-position: 0 100%;
background-image: linear-gradient(to right, #08D7F2 0%, #2BF06A 50%, #2BF06A 50%, #FC6076 100%); background-image: linear-gradient(to right, #08D7F2 0%, #2BF06A 50%, #2BF06A 50%, #FC6076 100%);
border-left: 1px #83BBD9 solid; border-left: 1px #83BBD9 solid;
width: 43rem; width: 9rem;
height: 1rem; height: 0.1rem;
position: relative; position: relative;
border-radius: 2rem; border-radius: 0.2rem;
} }
.scale>div { .scale>div {
...@@ -58,36 +65,56 @@ ...@@ -58,36 +65,56 @@
/*进度条颜色*/ /*进度条颜色*/
width: 0px; width: 0px;
position: absolute; position: absolute;
height: 1rem; height: 0.1rem;
width: 0; width: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
border-radius: 2rem; border-radius: 0.2rem;
}
.lanren{
margin-top: 0.3rem;
} }
.lanren>li { .lanren>li {
margin-left: 3.5rem;
position: relative; position: relative;
list-style: none; list-style: none;
font-size: 3rem; font-size: 0.3rem;
} }
#title { #title {
position: absolute; position: absolute;
top: -6rem; top: -0.6rem;
left: 23rem; left: 2.3rem;
}
.nimo{
overflow: hidden;
position: relative;
width: 9rem;
margin: 0 auto;
height: 4.5rem;
}
.nimo .nimo-bg{
width: 9rem;
}
.nimo .nimo-cover{
width: 1.65rem;
position: absolute;
left: 0;
} }
</style> </style>
</head> </head>
<body> <body>
<!-- 可拖拽进度条 --> <!-- 可拖拽进度条 -->
<div class="nimo"><img src="" alt=""></div> <div class="nimo">
<img class="nimo-bg" src="" alt="">
<img class="nimo-cover" src="" alt="">
</div>
<ul class="lanren"> <ul class="lanren">
<li><span id="title">0</span> <li>
<!-- <span id="title">0</span> -->
<div class="scale_panel"> <div class="scale_panel">
<span class="f-left">开始</span>
<span class="f-right">结束</span>
<div class="scale" id="bar"> <div class="scale" id="bar">
<div></div> <div></div>
<span id="btn"></span> <span id="btn"></span>
...@@ -97,6 +124,8 @@ ...@@ -97,6 +124,8 @@
</ul> </ul>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
<script> <script>
var myPos
var myId
$.ajax({ $.ajax({
url:'http://test.liveauth.ishuaji.cn/captcha/slide/webget.html', url:'http://test.liveauth.ishuaji.cn/captcha/slide/webget.html',
data:{ data:{
...@@ -106,7 +135,11 @@ ...@@ -106,7 +135,11 @@
success:function(msg){ success:function(msg){
var data = JSON.parse(msg) var data = JSON.parse(msg)
console.log(data) console.log(data)
$(".nimo img").attr("src",""+data.background+"") $(".nimo .nimo-bg").attr("src",""+data.background+"")
$(".nimo .nimo-cover").attr("src",""+data.cover+"")
var myTop=Math.floor((data.y/66.66)*100)/100
$(".nimo-cover").css("top",myTop+"rem")
myId=data.id
} }
}) })
// 进度条代码 // 进度条代码
...@@ -136,10 +169,29 @@ ...@@ -136,10 +169,29 @@
}, },
ondrag: function (pos, x) { ondrag: function (pos, x) {
this.step.style.width = Math.max(0, x) + 'px'; this.step.style.width = Math.max(0, x) + 'px';
this.title.innerHTML = pos + '%'; // this.title.innerHTML = pos + '%';
} myPos=pos
$(".nimo-cover").css("left",pos+"%")
},
} }
new scale('btn', 'bar', 'title'); new scale('btn', 'bar', 'title');
$("#btn").on("touchend",function(){
console.log(myPos)
$.ajax({
url:'http://test.liveauth.ishuaji.cn/captcha/slide/check.html',
data:{
data:myId+myPos*6,
checktype:2,
pkg:'gzh'
},
success:function(msg){
var data=JSON.parse(msg);
console.log(data)
alert(data.code);
}
})
})
// }); // });
</script> </script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment