243 lines
7.3 KiB
HTML
243 lines
7.3 KiB
HTML
|
|
<!doctype html>
|
|||
|
|
<html>
|
|||
|
|
|
|||
|
|
<head>
|
|||
|
|
<meta charset="utf-8">
|
|||
|
|
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
|
|||
|
|
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
|
|||
|
|
<title>播放视频</title>
|
|||
|
|
<link rel="stylesheet" type="text/css" href="/css/api.css" />
|
|||
|
|
<link rel="stylesheet" type="text/css" href="/css/content.css" />
|
|||
|
|
<script type="text/javascript" src="/scripts/jquery-2.0.2.min.js"></script>
|
|||
|
|
<script type="text/javascript" src="/scripts/jquery.cookie.min.js"></script>
|
|||
|
|
<!--<script type="text/javascript" src="/scripts/iscroll.js"></script>-->
|
|||
|
|
<script type="text/javascript" src="/script/main.js?t=0"></script>
|
|||
|
|
<script type="text/javascript" src="/layer/layer.js"></script>
|
|||
|
|
<script type="text/javascript" src="/Scripts/long.js"></script>
|
|||
|
|
<script type="text/javascript" src="/script/moment.js"></script>
|
|||
|
|
<script type="text/javascript" src="/script/api.js"></script>
|
|||
|
|
<style type="text/css">
|
|||
|
|
html, body {
|
|||
|
|
overflow: hidden;
|
|||
|
|
background-color: #000;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#wrapper {
|
|||
|
|
width:100%;
|
|||
|
|
height:100%;
|
|||
|
|
flex: 1;
|
|||
|
|
overflow-y: auto;
|
|||
|
|
-webkit-overflow-scrolling: touch;
|
|||
|
|
}
|
|||
|
|
.closebox {
|
|||
|
|
/* 最外层的盒子 */
|
|||
|
|
right: 0.8em;
|
|||
|
|
top: 2.8em;
|
|||
|
|
position: absolute;
|
|||
|
|
overflow: hidden;
|
|||
|
|
display: none;
|
|||
|
|
width: 1.8em;
|
|||
|
|
height: 1.8em;
|
|||
|
|
padding: 0.15em;
|
|||
|
|
background-color: #fff;
|
|||
|
|
border: 1px solid #f1f1f1;
|
|||
|
|
border-radius: 50%;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
display: none;
|
|||
|
|
}
|
|||
|
|
.closebox img {
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
}
|
|||
|
|
.box {
|
|||
|
|
/* 最外层的盒子 */
|
|||
|
|
width: 50px;
|
|||
|
|
height: 50px;
|
|||
|
|
right: 0.8em;
|
|||
|
|
top: 2.8em;
|
|||
|
|
position: absolute;
|
|||
|
|
overflow: hidden;
|
|||
|
|
border-radius: 50%;
|
|||
|
|
background-color: pink;
|
|||
|
|
display: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.left_box, .right_box {
|
|||
|
|
/*
|
|||
|
|
左右两边用于 隐藏 旋转的div的盒子
|
|||
|
|
通过overflow来隐藏内部div旋转出去的部分
|
|||
|
|
*/
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
width: 25px;
|
|||
|
|
height: 50px;
|
|||
|
|
overflow: hidden;
|
|||
|
|
z-index: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.left_box {
|
|||
|
|
left: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.right_box {
|
|||
|
|
right: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.left_item, .right_item {
|
|||
|
|
/* 这是需要旋转的div(没有被mask遮盖展示出来的部分作为倒计时的线条) 为了方便理解,下面用deeppink和cyan分别设置了左右两边div的颜色 */
|
|||
|
|
width: 25px;
|
|||
|
|
height: 50px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.left_item {
|
|||
|
|
/*
|
|||
|
|
1.设置圆角,圆角大小为高度的一半
|
|||
|
|
2.这只旋转的中心店,这是左边圆,中心点设置到右边中心点,右边圆则设置到左边中心点
|
|||
|
|
*/
|
|||
|
|
border-top-left-radius: 100px;
|
|||
|
|
border-bottom-left-radius: 100px;
|
|||
|
|
-webkit-transform-origin: right center;
|
|||
|
|
transform-origin: right center;
|
|||
|
|
background-color: deeppink;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.right_item {
|
|||
|
|
border-top-right-radius: 100px;
|
|||
|
|
border-bottom-right-radius: 100px;
|
|||
|
|
-webkit-transform-origin: left center;
|
|||
|
|
transform-origin: left center;
|
|||
|
|
background-color: deeppink;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.mask {
|
|||
|
|
/* 遮住div多余的部分,呈现出线条的效果 */
|
|||
|
|
position: absolute;
|
|||
|
|
top: 5px;
|
|||
|
|
left: 5px;
|
|||
|
|
right: 5px;
|
|||
|
|
bottom: 5px;
|
|||
|
|
width: 40px;
|
|||
|
|
height: 40px;
|
|||
|
|
line-height: 40px;
|
|||
|
|
text-align: center;
|
|||
|
|
z-index: 2;
|
|||
|
|
border-radius: 50%;
|
|||
|
|
background-color: #fff;
|
|||
|
|
color: #000;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@-webkit-keyframes loading_left {
|
|||
|
|
0% {
|
|||
|
|
-webkit-transform: rotate(0deg);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
50% {
|
|||
|
|
-webkit-transform: rotate(0deg);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
100% {
|
|||
|
|
-webkit-transform: rotate(180deg);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@-webkit-keyframes loading_right {
|
|||
|
|
0% {
|
|||
|
|
-webkit-transform: rotate(0deg);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
50% {
|
|||
|
|
-webkit-transform: rotate(180deg);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
100% {
|
|||
|
|
-webkit-transform: rotate(180deg);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
var isLoading = false;
|
|||
|
|
var isLoadRewardVideo = false;
|
|||
|
|
var lyAd = null;
|
|||
|
|
|
|||
|
|
var userId = null;
|
|||
|
|
var LoginId = null;
|
|||
|
|
var opentimes = null;
|
|||
|
|
var ifapp = 0;
|
|||
|
|
var video = "";
|
|||
|
|
var products = null;
|
|||
|
|
var guiges = null;
|
|||
|
|
var myScroll = null;
|
|||
|
|
var pullDown = 1; // 下拉刷新避免多次执行
|
|||
|
|
var pullUp = 1; // 上拉加载避免多次执行
|
|||
|
|
var downHeight = 0;
|
|||
|
|
var upHeight = 0;
|
|||
|
|
var isload = true;//设置是否终止滚动加载
|
|||
|
|
var curScrollHeight = 0;//当前滚动位置
|
|||
|
|
var curCount = 1;//计数器,防止滚动时重复执行加载下一页
|
|||
|
|
$(document).ready(function () {
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
var tvideo = $.getUrlParam("video");
|
|||
|
|
if (tvideo != null) {
|
|||
|
|
video = tvideo;
|
|||
|
|
}
|
|||
|
|
var aifapp = getlocalStorage("ifapp");
|
|||
|
|
if (aifapp != null) {
|
|||
|
|
ifapp = aifapp;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
rdata(1);
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
function rdata(ag) {
|
|||
|
|
|
|||
|
|
$(".ajaxLoader").removeClass("uhide");
|
|||
|
|
|
|||
|
|
var winWidth = $('#wrapper').width();
|
|||
|
|
var winHeight = $('#wrapper').height();
|
|||
|
|
var html = "<video width=\"" + winWidth + "\" height=\"" + winHeight + "\" id=\"myVideo\" style=\"background-color: #000000;\" autoplay poster=\"\" x5-video-player-type=\"h5\" x5-video-player-fullscreen=\"false\" x5-playsinline=\"\" playsinline=\"\" webkit-playsinline=\"\"><source src=\"" + video + "\" type=\"video/mp4\"></video><span style=\"display:none\">用于保存视频不能保存问题</span><br/>";
|
|||
|
|
$("#wrapper").html(html);
|
|||
|
|
var myVideo = document.getElementById("myVideo");
|
|||
|
|
myVideo.addEventListener("canplay", canplay);
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
}
|
|||
|
|
function canplay() {
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
</head>
|
|||
|
|
|
|||
|
|
<body>
|
|||
|
|
<header style="background:none;">
|
|||
|
|
<div class="ub">
|
|||
|
|
<div class="nav-btn" id="nav-left" style=" margin:0; padding:0; padding-top:0.2em; min-width:3em" onclick="closeWin()">
|
|||
|
|
|
|||
|
|
<img src="../image/faifei.png" style="margin-left:0; margin-top:0em; height:1.2em;width:1.2em;" />
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</header>
|
|||
|
|
<section class="ub-f1" id="wrapper"></section>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="ajaxLoader ub ub-ac uhide" onclick="reload()">
|
|||
|
|
<div class="ub ub-ac ub-ver"><img src="image/load.gif" /><br>正在加载...</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</body>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</html>
|