|
|
(function () {
|
|
|
var self = LADING = {
|
|
|
config:{
|
|
|
imgpath:"/Public/Home/images/ladingpage/",
|
|
|
qq:'',
|
|
|
canTips:true
|
|
|
},
|
|
|
init : function(config){
|
|
|
self.config = Object.assign(self.config,config)
|
|
|
self.leftTipsShow();
|
|
|
if(self.config.canTips){
|
|
|
self.leftTipsEvent();
|
|
|
}
|
|
|
},
|
|
|
leftTipsShow:function(){
|
|
|
var leftTipsTmp = ''+
|
|
|
'<div style="position: fixed;bottom: 20%;margin-left: .1rem;line-height: 0;z-index: 99;">'+
|
|
|
'<div class="agewind" style="width: 1rem;height: auto;">'+
|
|
|
'<img src="'+self.config.imgpath+'18.png" alt="" style="width:100%;">'+
|
|
|
'</div>'+
|
|
|
'<div class="servewind" style="width: 1rem;height: auto;">'+
|
|
|
'<img src="'+self.config.imgpath+'serve.png" alt="" style="width:100%;">'+
|
|
|
'</div>'+
|
|
|
'</div>';
|
|
|
var ageTipsTmp= '<div class="ageTipsMb" style="display:none;">'+
|
|
|
'<div style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;background:rgba(0,0,0,0.6); z-index: 999;">'+
|
|
|
'<div style="width: 5.24rem;height: auto;padding: .2rem;"> '+
|
|
|
'<div style="width: 100%;height: .72rem;background-color: #2687FF;border-radius: .16rem .16rem 0 0;display: flex;justify-content:flex-end;align-items: center;">'+
|
|
|
'<img class="colseAgeTip" src="'+self.config.imgpath+'close.png" style="width: .26rem;margin-right:.2rem">'+
|
|
|
'</div>'+
|
|
|
'<div style="height: auto;padding: .1rem .23rem .33rem;background-color: #fff;border-radius:0 0 .16rem .16rem;">'+
|
|
|
'<div style="font-size: .28rem;color: #343434;">本平台网络游戏适合18周岁以上用户使用,本平台网络游戏用户实名认证系统符合国家防沉迷实名认证要求,规则说明如下:</div>'+
|
|
|
'<div style="font-size: .22rem;color: #343434;margin-top: .23rem;">1、新用户注册必须强制实名认证且满18周岁;<br/>2、未经实名注册的用户,将无法进入游戏;<br/>3、已实名认证且满18周岁的用户可正常游戏。</div>'+
|
|
|
'</div>'+
|
|
|
'</div>'+
|
|
|
'</div>'+
|
|
|
'</div>';
|
|
|
|
|
|
$("body").append(leftTipsTmp);
|
|
|
$("body").append(ageTipsTmp);
|
|
|
},
|
|
|
leftTipsEvent:function(){
|
|
|
$(".servewind").on("click",function(){
|
|
|
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin='+self.config.qq+'&version=1&src_type=web&web_src=oicqzone.com';
|
|
|
})
|
|
|
$(".agewind").on("click",function(){
|
|
|
$(".ageTipsMb").show();
|
|
|
})
|
|
|
$(".ageTipsMb").on("click",function(){
|
|
|
$(".ageTipsMb").hide();
|
|
|
})
|
|
|
$(".colseAgeTip").on("click",function(){
|
|
|
$(".ageTipsMb").hide();
|
|
|
})
|
|
|
}
|
|
|
};
|
|
|
window.LADING = LADING || {};
|
|
|
})()
|