session_start();
$openid=NULL;
if (isset($_GET['op'])){
$openid=$_GET['op'];
$_SESSION['openid']=$openid;
}
if (isset($_SESSION['openid'])){
$openid=$_SESSION['openid'];
}
if (empty($openid)){
header("Content-Type:text/html;charset=UTF-8");
include_once './c/config.php';
$redirect_uri = urlencode('http://hisense.mei94.com/b2.php');
$api_userinfo_base='https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$appId.'&redirect_uri='.$redirect_uri.'&response_type=code&scope=snsapi_base#wechat_redirect';
header('Location: '.$api_userinfo_base);
}
$url='http://lin.mei94.com/hai';
include_once './c/config.php';
include_once './jssdk.php';
//$appId = 'wxe214ac48790c622f';
//$secret = '62d3091e10b72a50a8a2c4f758a799b2';
$jssdk = new JSSDK($appId, $secret);
$signPackage = @$jssdk->GetSignPackage();
$shareDesc='海信50周年庆放大招!扫50领千元家电神券';
?>
海信50周年献礼,信会有礼html,body{width:100%;font-size:12px;font-family:Helvetica,Tahoma, Arial, STXihei,Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body{position:relative;}
body, div{padding:0px;margin:0px auto;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
.js_dialog{display:none;}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:4px;color:#787c7f;font-size:12px;z-index:2;border:none;background:transparent;}
.txt::-webkit-input-placeholder {text-align:left;}
select{position:absolute;color:#787c7f;display:block;background:transparent;border:0px;text-indent:4px;font-size:12px;-webkit-appearance:none;}
.container{position:relative;width:100%;height:auto;}
.load-b1{position:absolute;background:transparent url('<?php echo $url; ?>/img/l1/x.jpg') no-repeat;background-size:cover;}
.load-p1{position:absolute;background:transparent url('<?php echo $url; ?>/img/l1/t.png') no-repeat;background-size:cover;}
.page{position:absolute;width:100%;height:100%;display:none;}
.bg, .thebg, .p-b, .p1-bg{position:absolute;width:100%;top:0;left:0;}
.load{background-color:#00aaa9;}
.p1{background-color:#60d5d6;}
.p1-logo{z-index:7;}
#p1-bao{position:absolute;}
#p1-5{position:absolute;background:transparent url('<?php echo $url; ?>/img/z/1.png') no-repeat;background-size:cover;}
.rule-t1{position:absolute;left:0;background:transparent url('<?php echo $url; ?>/img/rule-t1.png') no-repeat;background-size:cover;}
.muico{position:absolute;top:0;right:0;}
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?7497c824a97ab96a9c741b718076fe5b";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);})();
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate>
var _img=['p1.png'];
var loader = new PxLoader();
for(var i=0; i<_img.length i echo>/img/'+_img[i]);}
for(var i=1; i<173; i++){loader.addImage('<?php echo $url; ?>/t4/'+i+'.png');}
for(var i=1; i<8; i++){loader.addImage('<?php echo $url; ?>/img/z/'+i+'.png');}
var _theimg=new Image();
var _theimg2=new Image();
loader.start();
var _bgm = document.getElementById('bgm');
var _percent=0;
var _loadW=_rate*307;
function _runL(){
_percent=_percent+3;
$('.load-p1').width((_percent/100)*_loadW);
if(_percent > 98){
$('.load-p1').width(_loadW);
window.setTimeout(function(){
_run5();
window.setTimeout(function(){
$(".load").fadeOut();
_runbao();
$(".p1").show().addClass("fade-in");
}, 800);
return;
}, 200);
}else{
window.setTimeout(function(){_runL();}, 250);
}
}
//var _baocxt=document.getElementById("p1-bao").getContext("2d");
var _baoId=1;
var _drawImgbao=document.getElementById("p1-bl");
function _runbao(){
//_theimg2.src="<?php echo $url; ?>/t4/"+_baoId+".png";
$("#p1-bl").attr("src","<?php echo $url; ?>/t4/"+_baoId+".png");
//_baocxt.clearRect(0,0,340,480);
//_baocxt.drawImage(_drawImgbao, 0,0);
_baoId++;
if(_baoId > 172){
window.setTimeout(function(){_baoId=1; _runbao();}, 40);
}else{
window.setTimeout(function(){_runbao();}, 40);
}
}
//var _p5cxt=document.getElementById("p1-5").getContext("2d");
var _p5Id=1;
function _run5(){
$("#p1-5").attr("src","<?php echo $url; ?>/img/z/"+_p5Id+".png");
//_theimg.src="<?php echo $url; ?>/img/z/"+_p5Id+".png";
//_p5cxt.clearRect(0,0,199,140);
//_p5cxt.drawImage(_theimg, 0,0);
_p5Id++;
if(_p5Id > 7){
_p5Id=1;
}
window.setTimeout(function(){_run5();}, 180);
}
$(".load").show().addClass("fade-in");
_runL();
loader.addCompletionListener(function(e){
_bgm.play();
document.addEventListener("WeixinJSBridgeReady", function () {_bgm.play();
}, false);
});
$(function(){
$('body').on('touchmove',function(e){
//e.preventDefault();
});
$('.container, .hai').width(sWidth).height(h);
$('.p-bg').width(sWidth).height(_rate*1260);
$('.p1-logo').width(_rate*236).height(_rate*78).css({"top":0, "left":0});
$('.p1-s50').width(_rate*230).height(_rate*178).css({"top":_rate*722, "left":_rate*270});
$('.load-p1').width(0).height(_rate*27).css({"top":_rate*435, "left":_rate*220});
$('.load-b1').width(sWidth).height(_rate*616).css({"top":(h-_rate*680)/2, "left":0});
$('.p1-rule').width(_rate*285).height(_rate*99).css({"top":_rate*1026, "left":_rate*232});
$('.rule-t1').width(sWidth).height(_rate*800).css({"top":_rate*160});
$('.rule-close').width(_rate*100).height(_rate*100).css({"top":_rate*40, "right":_rate*60});
$('.rule-ok').width(_rate*220).height(_rate*100).css({"top":_rate*620, "left":_rate*270});
$('#p1-5').width(_rate*199*1.2).height(_rate*140*1.2).css({"top":_rate*718, "left":_rate*266});
$('#p1-bao, #p1-bl').width(_rate*340*1.2).height(_rate*480*1.2).css({"top":_rate*400, "left":_rate*175});
$('.muico').width(_rate*133).height(_rate*122);
var _cha=(h - _rate*1260);
if(_cha < 1){_cha=0;}
$('.thebg').css({"top":_cha});
if(_cha > 80){
$(".p1-bg").attr("src","<?php echo $url; ?>/img/p1x.png");
$('.p-bg').height(_rate*1448);
$('.thebg').css({"top":0});
$('#p1-5').width(_rate*199*1.4).height(_rate*140*1.4).css({"left":_rate*244});
$('#p1-bao, #p1-bl').width(_rate*340*1.4).height(_rate*480*1.4).css({"left":_rate*137});
$('#p1-5').css({"top":_rate*796});
$('#p1-bao, #p1-bl').css({"top":_rate*424});
$('.p1-s50').css({"top":_rate*862});
$('.p1-rule').css({"top":_rate*1156});
}
$('.p1-s50').click(function(){
window.location.href="https://webar.imysky.com/project/mysky/hisense/web/index.html?hi=<?php echo $openid; ?>";
});
$('.p1-rule').click(function(){
$('.p1').fadeOut();
$('.rule').fadeIn();
});
$('.rule-close, .rule-ok').click(function(){
$('.p1').fadeIn();
$('.rule').fadeOut();
});
wx.config({
appId: '<?php echo $signPackage["appId"];?>',timestamp: <?php echo $signPackage["timestamp"];?>,
nonceStr: '<?php echo $signPackage["nonceStr"];?>',signature: '<?php echo $signPackage["signature"];?>',
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage','onMenuShareQQ','showMenuItems','showOptionMenu','updateAppMessageShareData','updateTimelineShareData']
});
wx.ready(function (){
var _link='http://hisense.mei94.com/';
var _imgUrl='http://mei94.com/hai/img/64.jpg';
wx.updateAppMessageShareData({
title: '海信50周年献礼,信会有礼',
desc: '<?php echo $shareDesc ?>',
link: _link,
imgUrl: _imgUrl,
success: function () {}
})
wx.updateTimelineShareData({
title: '<?php echo $shareDesc ?>',
link: _link,
imgUrl: _imgUrl,
success: function () {
}
})
});
var _mStatus=true;
$(".muico").click(function(){
if(true == _mStatus){
_mStatus=false;
$(".muico").attr("src", "<?php echo $url; ?>/img/close.png");
_bgm.pause();
}else{
_mStatus=true;
$(".muico").attr("src", "<?php echo $url; ?>/img/open.png");
_bgm.play();
}
});
});
一键复制
编辑
Web IDE
原始数据
按行查看
历史