var Ready = true;
var tapBut= true;
function isMobile(){
var sUserAgent= navigator.userAgent.toLowerCase(),
bIsIpad= sUserAgent.match(/ipad/i) == "ipad",
bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os",
bIsMidp= sUserAgent.match(/midp/i) == "midp",
bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4",
bIsUc= sUserAgent.match(/ucweb/i) == "ucweb",
bIsAndroid= sUserAgent.match(/android/i) == "android",
bIsCE= sUserAgent.match(/windows ce/i) == "windows ce",
bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile",
bIsWebview = sUserAgent.match(/webview/i) == "webview";
return (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM);
}
//判断使用那种事件:
var touchStart,touchMove,touchEnd;
touchStart = isMobile() ? 'touchstart' : 'mousedown';
touchMove = isMobile() ? 'touchmove' : 'mousemove';
touchEnd = isMobile() ? 'touchend' : 'mouseup';
var arr = {
index : 0,
but : false,
codeBut : true,
pull : true,
type : 1,
page : 1,
page1 : 1,
item : true,
hot : 1,
reco :1,
informat : 1,
alone : 1,
hots : true,
giftPage : 1,
pageSize : 15,
arrType : '',
isReady : true,
jfen :false,
hasGift : false,
userNavIndex : 3,
numitem : 0,
wumoney : 50,
height : $(window).height(),
width : $(window).width()
}
$(function(){
if (arr.width >= 768) {
arr.width = 768
}
$(".slide-banner").css("height", arr.width * (121 / 375));
/*$('.box-2').css({
'height':arr.height+$('.footer-nav').height(),
'background': "#e5e5e5",
'padding-bottom':"40px"
})*/
//alert(arr.width)
$('.box-ser').css({
'height':$(window).height()
})
/* $('.box-3').css({
'height':arr.height+$('.footer-nav').height(),
'padding-bottom':"100px"
})*/
/* dot*/
//box-help
$('.box-help').css({
'height':$("document").height(),
'padding-bottom':"100px"
})
$('.box-13,.box-14,.box-15,.box-16,.box-3').css({
'height':'auto',
'padding-bottom':"0px",
'background':'#fff'
})
$('.box-3').css({
'height':'auto',
'padding-bottom':"100px",
'background':'#fff'
})
$('.swiper-na').find('li').on('tap',function(){
window.localStorage.removeItem("giftCode");
window.localStorage.setItem("gameid",$(this).find('a').attr('id'));
})
/* alert(arr.width)*/
httpGet('http://web.11h5.com:4600/api?token=074d3a96eba00385ab7cd7aacfe7eb86&cmd=getRemindDot',function(data){
var data = data.remind;
console.log(data)
if (data[1]) {
$(".footer-nav i.fa-gift").append(' ')
}
if (data[2]) {
console.log($(".box-1 ol.nav li").eq(2).find('a').html())
$(".box-1 ol.nav li").eq(2).find('a').append(' ')
}
if (data[3]) {
$(".box-1 ol.nav li").eq(1).find("a").append(' ')
}
if (data[4]) {
$(".box-1 ol.nav li").eq(3).find("a").append(' ')
}
if (data[5]) {
$(".box-1 ol.nav li").eq(3).find("a").append(' ')
}
})
function delectDot(type) {
httpGet("http://web.11h5.com:4600/api?token=fcb4b58c59f2bce4a93ed75a881cd5f4&cmd=delRemindDot&type=" + type,
function() {})
}
$(".box-1 ol.nav").on("tap", "li",function() {
if ($(this).find("i").length) {
delectDot($(this).attr("data-type"));
$(this).find("i").remove();
}
});
$(".footer-nav").on("click", "li",function() {
if ($(this).find("i>i").length) {
delectDot($(this).attr("data-type"));
$(this).find("i>i").remove()
}
});
bannerr();
function pageChange(n) {
var _index = "",
_box = "",
_nav = "",
__index = "";
switch (n) {
case "":
//alertBox()
arr.pull = true;
_index = 0;
_box = 1;
_nav = 0;
arr.type = 1;
arr.page = 1;
//console.log(!$(".box-1 .show-box-hot>li").length)
if(!$(".box-1 .tab").eq(0).find('.show-box-hot>li').length) {
loadGameHot();
}
if (arr.hot) {
Ready = true
}
break;
case "#new":
_index = 1;
_box = 1;
_nav = 0;
arr.pull = false;
/*pullUpAction(arr.type, arr.page);*/
if(!$(".box-1 .tab").eq(1).find('.show-box-new>li').length) {
recommendList();
}
if (arr.reco) {
Ready = true
}
break;
case "#info":
_index = 2;
_box = 1;
_nav = 0;
if(!$(".box-1 .tab").eq(2).find('.show-box-info>li').length) {
informationList();
}
if (arr.informat) {
Ready = true
}
break;
case "#today":
_index = 3;
_box = 1;
_nav = 0;
__index = 0;
arr.page = 1;
arr.type = 4;
if(!$(".box-1 .tab").eq(3).find('.show-box-hot>li').length) {
aloneList();
}
if (arr.alone) {
Ready = true
}
break;
case "#gift":
_index = 0;
_box = 2;
_nav = 1;
arr.pull = false;
arr.jfen = false;
if (!$(".box-2 .show-box-gift").html()) {
getJf();
}
if (arr.giftPage) {
arr.isReady = true
}
break;
case "#user":
_box = 3;
_nav = arr.userNavIndex;
userlogin();
break;
case "#serch":
_box = 'ser';
$('.box-1 .btn').unbind('tap').on('tap',function () {
$(this).attr('href','javascript:void(0);')
$('.box-ser .show-box-hot').empty();
var val = $('#searchFriend').val();
if(val==""){
return false
}else{
$.post("index.php/Index/sousuos", {"s1":val}, function (data) {
if(data.status==0){
$('.box-ser .show-box-hot').append('
'+data.msg+'
');
}
else{
var html = "";
for(var key in data){
if(key!="status"){
/*if(data[key].recommend.length>=30){
data[key].recommend=data[key].recommend.substring(0,30)+'...';
}else{
data[key].recommend=data[key].recommend;
}*/
html+= '';
console.log(data[key].Id)
if(data[key].Id=="292"){
html+= ' ';
}else{
html+= ' ';
}
html+= '';
html+= '
';
html+= ''+data[key].name;
for(var item in data[key].info){
html+=''+data[key].info[item]+' '
}
html+= ' ';
html+= '
';
html+= '
'+data[key].recommend+'
';
html+= '
';
html+= '开始游戏 ';
html+= ' ';
}
}
$('.box-ser .show-box-hot').append(html);
$('.box-ser').find('li').on('tap',function(){
window.localStorage.removeItem("giftCode");
window.localStorage.setItem("gameid",$(this).find('a').attr('id'));
})
}
},'json')
}
})
break;
case "#guide":
_box = 8;
_nav = arr.userNavIndex;
if (!$(".box-8").html()) {
aboutList(8)
}
break;
case "#agreement":
_box = 9;
_nav = arr.userNavIndex;
if (!$(".box-9").html()) {
aboutList(9)
}
break;
case "#jiufen":
_box = 10;
_nav = arr.userNavIndex;
if (!$(".box-10").html()) {
aboutList(10)
}
break;
case "#lianxi":
_box = 11;
_nav = arr.userNavIndex;
if (!$(".box-11").html()) {
aboutList(11)
}
break;
case "#cooperation":
_box = 12;
_nav = arr.userNavIndex;
if (!$(".box-12").html()) {
aboutList(12)
}
break;
case "#pay":
_box = 13;
_nav = arr.userNavIndex;
if (!$(".box-13").html()) {
pay()
}
break;
case "#recharge":
_box = 14;
_nav = arr.userNavIndex;
if (!$(".box-14").html()) {
aboutList(14)
}
break;
case "#exchg":
_box = 15;
_nav = arr.userNavIndex;
if (!$(".box-15").html()) {
chinaMobiles()
}
break;
case "#record":
_box = 16;
_nav = arr.userNavIndex;
if (!$(".box-16").html()) {
recordList()
}
break;
}
if (n.indexOf("game/") >= 0) {
_box = 4;
_nav = 0;
arr.but = false;
if($(".box-4").html()){
var swiper1 = new Swiper('.game-swiper', {
slidesPerView: 1.9,
spaceBetween: 15,
observer:true,//修改swiper自己或子元素时,自动初始化swiper
observeParents:true,//修改swiper的父元素时,自动初始化swiper
});
}
arr.giftPage = true;
if(!$(".box-4").html()){
loadGameInfo(n.split("/")[1]);
var swiper1 = new Swiper('.game-swiper', {
slidesPerView: 1.9,
spaceBetween: 15
});
}
}
if(_box == 'ser'){
$(".box-" + _box).show().siblings().hide();
$('.box-1').show().find('.head').siblings().hide();
$('.box-ser .show-box-hot').empty();
}else{
$('.box-wap,.top-head,.head').show()
$(".box-" + _box).show().siblings().hide();
$('.box-ser .show-box-hot').empty();
}
if(n=="#gift"){
$(".box-" + _box).show().siblings().hide();
$(".box-1").show().find('.top-head').siblings().hide();
}else{
/* $('.box-wap,.head').show(); */
}
$(".box-" + _box + " ol.nav li").eq(_index).addClass("active").siblings().removeClass("active");
$(".box-" + _box + " .show-box>div").eq(_index).show().siblings().hide();
$(".footer-nav li").eq(_nav).addClass("active").siblings().removeClass("active");
}
pageChange(location.hash)
$(window).on("hashchange",
function() {
pageChange(location.hash);
});
if ($(window).width() > 750) {
document.getElementById("scrolls").onscroll = function() {
var scrollTop = document.getElementById("scrolls").scrollTop;
if (scrollTop + $(".wrap").height() >= $('.box-1').height()-20) {
if (Ready) {
Ready = false;
switch (location.hash) {
case "":
console.log(arr.hot)
loadGameHot();
break;
case "#new":
recommendList();
break;
case "#info":
informationList();
break;
case "#today":
aloneList();
break;
}
}
}
}
}else{
$(window).scroll(function()
{
var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
if (scrollTop + arr.height >= $(document).height() - 50) {
if (Ready) {
Ready = false;
switch (location.hash) {
case "":
console.log(arr.hot)
loadGameHot();
break;
case "#new":
recommendList();
break;
case "#info":
informationList();
break;
case "#today":
aloneList();
break;
}
}
}
})
}
function jfenload(){
var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
if (scrollTop + arr.height >= $(document).height() - 50) {
if (arr.isReady) {
arr.isReady = false;
getJf();
}
}
}
function pay(){
var html = "";
httpGet("index.php/Index/longin",function(data){
console.log(data)
if(data.status==0){
login(456)
$("body").bind("touchmove",function(event){
event.preventDefault();
})
}else{
html+='';
html+='
'+data[0].wycoin+'
';
html+='
伍游币充值说明 ';
html+='
';
html+='';
html+='
充值金额
';
html+='
';
html+='¥50.00 ';
html+='¥20.00 ';
html+='¥10.00 ';
html+='¥5.00 ';
html+=' ';
html+='
';
html+='';
html+='微信支付 ';
html+='支付宝支付 ';
html+=' ';
html+='立即支付 ';
$('.box-13').append(html);
if(isWeiXin()){
$('.pay-item li').eq(1).hide()
}
if(data[0].id=="21144"){
console.log(123)
}
$('.pay-num li,.pay-item li,.pay-money').on('tap',function(ev){
$(this).addClass('active').siblings().removeClass('active');
console.log(ev.target.className)
if(ev.target.className=="pay-money active"){
paymark(arr.numitem,arr.wumoney,data[0].id)
}else if(ev.target.className=="item-list active"){
arr.numitem= $(this).index();
}else{
console.log($(this).index())
arr.wumoney=$(this).attr('data');
}
})
}
})
}
function isWeiXin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true
} else {
return false
}
}
function paymark(num,money,uid){
var g = "uid="+uid+"&productname="+money*10+"&fee="+money;
if(num==0){
if (isWeiXin()) {
$.post("http://www.5you.cc/wypay/wxpay/jsapi/wybjsapi.php?"+g, {}, function (pay) {
console.log(pay)
function onBridgeReady(pay){
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
"appId":pay.appId, //公众号名称,由商户传入
"timeStamp":pay.timeStamp, //时间戳,自1970年以来的秒数
"nonceStr":pay.nonceStr, //随机串
"package":pay.package,
"signType":pay.signType, //微信签名方式:
"paySign":pay.paySign //微信签名
},
function(res){
if(res.err_msg == "get_brand_wcpay_request:ok" ) {
window.location.reload();
}else if(res.err_msg == "get_brand_wcpay_request:cancel"){
alert('支付取消')
}else if(res.err_msg == "get_brand_wcpay_request:fail"){
alert('支付失败')
}
// 使用以上方式判断前端返回,微信团队郑重提示:res.err_msg将在用户支付成功后返回 ok,但并不保证它绝对可靠。
}
);
}
if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
}else{
onBridgeReady(pay);
}
},'json')
}else{
$.post("http://www.5you.cc/wypay/ipaynow/api/wyb_pay.php?"+g, {}, function (pay) {
var html = '';
html+='
';
html+='
';
html+='
支付确认 ';
html+='
1、请在微信内完成支付,如果您已支付成功,请点击“已完成支付”按钮
';
html+='
2、如果您还未安装微信6.0.2 及以上版本客户端,请点击"取消"并选择其它支付方式付款
';
html+='
';
html+='';
html+='
';
html+='
';
html+='
';
var dataKey = pay.mhtOrderNo;
window.location.href = pay.pay_info;
setTimeout(function(){
$('.box-13').append(html);
$('.confir-footer a').on('tap',function(){
if($(this).index()==1){
$.post("http://www.5you.cc/index.php/Pay/wyb_ipaynow", {"uid":uid,'key':dataKey}, function (data) {
alert(data)
if(data==100){
alert('支付成功');
window.location.reload();
}else if(data==200){
alert('未支付');
$('.confirmation').empty();$('.mod-mask').empty();
window.location.reload();
}
},'json')
}else{
$('.confirmation').empty();$('.mod-mask').empty();
window.location.reload();
}
})
},5000)
},'json')
}
}else if(num==1){
var html= '
';
$('.box-13').append(html);
$('#paymentFrame').css({'width':$(window).width()})
window.open("http://www.5you.cc/wypay/alipay/wybpay.php?"+g, "paymentFrame");
$('iframe').get(0).onload =function(){ //判断iframe页面加载完成
$('.box-13').append('
');
$('.mod-mask').on('touchend',function(ev){
ev.preventDefault();
console.log(ev.target.className)
if(ev.target.className=="mod-mask"){
$('.h5-wy-pay').remove(),$('.mod-mask').remove()
}
},false)
}
//window.open(arr.host + "/wypay/alipay/wybpay.php?"+g, "paymentFrame");
}
}
function aboutList(type){
var html ="";
if(type==8){
html = '网络游戏用户指引和警示说明 '+
'伍游网游戏(以下称“伍游网”)在此特别提醒用户注意:
'+
'本网络游戏仅适合于年满18周岁以上的用户。如果您未满18周岁,不建议您注册并使用本网络游戏服务;如果您坚持使用,请您务必加入本网络游戏防沉迷系统进行实名注册,同时我们将会按照您法定监护人的需求提供您在本网络游戏中的信息。
'+
'您在使用本网络游戏服务之前已经明确知晓网络游戏可能给您带来的一切潜在威胁,包括长时间游戏可能不利于您的身心健康等。为了您的健康请您合理的使用本网络游戏。
';
}else if(type==9){
html= '用户服务协议 前言 本《用户服务协议》协议(以下简称“本协议”)是由您(以下称为“用户”)与伍游网络科技有限公司(以下称为“伍游游戏”)就伍游游戏在其和/或其关联公司的移动游戏平台上所提供的产品和服务(包括但不限于及伍游游戏其关联公司运营的公众号、智能终端APP、网站等现在正在提供和将来可能向用户提供的游戏服务和其他网络服务,以下统称为“产品和服务”)所订立的协议。
如果用户进入伍游游戏网站或其下游戏的页面,或者通过其他任何方式获得和使用伍游游戏所提供的产品和服务,则视为用户已阅读并同意签署本协议。用户不应再以不了解本协议内容为由拒绝履行本协议。因此,请用户务必审慎阅读、充分理解各条款内容,特别是免除或者限制责任的条款、管辖与法律适用条款,以及开通或使用某项服务的单独协议。限制、免责条款及其他需要用户重点阅读的条款内容,我们以红色加粗形式提示用户重点注意 。此外,依据本协议第十六条,伍游游戏有权不时对本协议进行修改与更新,请用户留意查看本协议的最新版本。
一、服务内容 1. 伍游游戏产品和服务的具体内容由伍游游戏根据实际情况提供,例如网络游戏、论坛(BBS)、聊天室、电子邮件等。伍游游戏保留随时变更、中断或终止部分或全部产品和服务的权利。
2. 伍游游戏在提供产品和服务时,可能会对部分用户收取一定的费用。在此情况下,相关页面上会有明确的提示。如用户不同意支付该等费用,可选择不接受相应的产品和服务。
3. 伍游游戏通过服务器端设备接入互联网为用户提供产品和服务,除此之外与产品和服务有关的设备(如电脑、调制解调器及其他与接入互联网有关的装置)及所需的费用(如为接入互联网而支付的电话费及上网费)均应由用户自行负担。
4. 用户应使用正版软件接受产品和服务,软件费用由用户自行负担。
二、帐号名称和密码 1. 您如果需要使用和享受伍游游戏,则您需要将您享有使用权的QQ账号或微信账号作为游戏账号,并按照《网络游戏管理暂行规定》及文化部《网络游戏服务格式化协议必备条款》的要求,登录实名注册系统并进行实名注册。您进行实名注册时,应提供有关您本人真实、合法、准确、有效的身份信息及其他相关信息,且不得以他人身份资料进行实名注册。否则,伍游有权终止为您提供伍游游戏服务,并有权对您的游戏账号采取包括但不限于警告、限制或禁止使用游戏帐号全部或部分功能、删除游戏账号及游戏数据、删除相关信息、游戏账号封禁(以下有时简称“封号”)直至注销暂的处理措施(为描述方便,以下有时也将该等处理措施称为“处罚”),因此造成的一切后果由您自行承担。
2. 您充分理解并同意:伍游游戏会按照国家相关要求将您的实名注册信息运用于防沉迷系统之中,即伍游游戏可能会根据您的实名注册信息判断您是否年满18周岁,从而决定是否对您的游戏账号予以防沉迷限制。
3. 您应妥善保管您的游戏账号,包括妥善保管您游戏账号所对应的QQ账号及密码,以及微信账号及密码;您应在知晓您的游戏账号被盗用后第一时间通知伍游游戏。
4. 您充分理解并同意,为提高伍游游戏服务的安全水平,伍游游戏有权将有关技术或软件应用到伍游游戏中,但伍游游戏不保证这些安全保障措施可以完全杜绝游戏账号被他人窃取或丢失的风险。
5. 您充分理解并同意,若伍游游戏依照相关业务规则限制、冻结或终止您的伍游游戏账号的使用,可能会导致您游戏账号下游戏数据及相关信息被删除,以及相关权益的丧失,该损失由您自行承担,对此伍游游戏不承担任何责任。
6. 您充分理解并同意,为高效利用服务器资源,如果您长期未使用游戏账号登录伍游游戏,伍游游戏有权视需要,在提前通知的情况下,对该账号及其账号下的游戏数据及相关信息采取删除等处置措施,上述处置可能导致您对该游戏账号下相关权益的丧失,对此伍游游戏不承担任何责任。
三、帐号注册信息 1. 提供注册信息
(1)在申请伍游游戏帐号时(或注册后补充信息时),用户应当向伍游游戏提供最新、详细及真实准确的个人注册信息。前述个人注册信息包括:用户的伍游游戏帐号名称、密码及注册伍游游戏帐号(或补充、更新帐号信息时)输入的所有信息。用户在此承诺:用户以其真实身份注册成为伍游游戏的用户,并保证所提供的个人身份资料信息真实、完整、有效,依据法律规定和必备条款约定对所提供的信息承担相应的法律责任。而伍游游戏应当为用户提供帐号注册人证明、原始注册信息等必要的协助和支持,并根据需要向有关行政机关和司法机关提供相关证据信息资料 。
(2)所有由用户提供的个人注册信息将可能被伍游游戏用来作为认定伍游游戏帐号的关联性以及辨别用户身份的依据。用户同意应伍游游戏的要求,随时提供该等信息的证明材料,以便伍游游戏核实用户身份。
(3)如果用户提供给伍游游戏的信息不准确,或不真实,或不合法有效,或已变更而未及时更新,或有任何误导之嫌,伍游游戏有权中止或终止该用户使用伍游游戏的任何服务,直至用户提供符合要求信息。伍游游戏采取中止措施应当通知用户并告知中止期间,中止期间应该是合理的,中止期间届满伍游游戏应当及时恢复对用户的服务 。
(4)伍游游戏有权审查用户注册所提供的身份信息是否真实、有效,并应积极地采取技术与管理等合理措施保障用户帐号的安全、有效;用户有义务妥善保管其帐号及密码,并正确、安全地使用其帐号及密码。任何一方未尽上述义务导致帐号密码遗失、帐号被盗等情形而给对方或他人的权利造成损害的,应当承担由此产生的法律责任。
2. 修改注册信息
用户可以在任何时间,通过伍游游戏官方网站在该时点提供的服务或伍游游戏公布的在该时点可用的其他途径,更新或修改用户申请注册时所提供的信息。伍游游戏应当及时、有效地为其提供该项服务。但是,用户在注册伍游游戏帐号时(或注册后补充信息时)填写的真实姓名、证件号码,以及伍游游戏帐号名称本身,在帐号注册成功后(或补充信息后)如无特殊原因将无法进行修改,请用户慎重填写各类注册信息。
3. 用户同意,与其伍游游戏帐号相关的一切资料、数据和记录(包括但不限于登录记录、登录后行为记录、虚拟货币信息等)均以伍游游戏系统记录的数据为准。
四、信息披露与保护 1. 本协议第三条所描述的注册信息,以及用户在使用产品和服务时存储在伍游游戏控制范围内的非公开信息(以下合称“用户信息”),应按照本条约定进行披露及保护。
2. 为了向用户提供更好的产品和服务,在用户自愿选择使用伍游游戏的产品和服务的情况下,或者明示同意提供信息的情况下,伍游游戏可能会收集用户信息,并可能对这些信息进行分析和整合。在用户使用伍游游戏的产品和服务时,服务器可能会自动记录部分用户信息,这些信息都将成为伍游游戏商业秘密的一部分。
3. 保护用户(特别是未成年人用户)的隐私是伍游游戏的一项基本原则。伍游游戏一贯积极地采取技术与管理等方面的合理措施保障用户信息的安全、保密。
4. 除本协议第四条第4款所列四项情形之外,伍游游戏保证不对外公开或向第三方披露、提供用户信息。四项除外情形如下:
(1)用户(或者用户的监护人)要求或同意伍游游戏披露用户信息;
(2)有关法律法规要求伍游游戏披露用户信息;
(3)司法机关或行政机关基于法定程序要求伍游游戏披露用户信息;
(4)为保护伍游游戏的合法权益(知识产权和其他权益)向用户提起诉讼或者仲裁时需要披露用户信息;
5. 为了向用户正常地提供产品和服务,伍游游戏可能需要向伍游游戏的技术服务商、伍游游戏的关联公司或其他第三方传送部分用户信息,在这些第三方承诺其将承担至少与伍游游戏同等的保密义务的前提下,伍游游戏将向这些第三方传送用户信息,用户对此予以理解和同意。
6. 在不透露单个用户隐私资料的前提下,伍游游戏有权对整个用户信息数据库进行技术分析并对已进行分析、整理后的用户数据库进行商业上的利用。
7. 伍游游戏将采取商业上合理可行的方式保护用户的个人信息的安全。伍游游戏使用通常可以获得的安全技术和程序来保护用户的个人信息不被未经授权地访问、使用或泄漏。
五、用户的基本权利 1. 用户可以根据本协议以及伍游游戏不时公布和变更的其他规则使用伍游游戏提供的产品和服务。
2. 用户可以自愿选择通过手机绑定伍游游戏提供的页面,从而在第一时间获得伍游游戏提供的游戏活动、优惠信息等内容。
3. 用户有权在使用伍游游戏提供的产品和服务期间监督伍游游戏及伍游游戏的工作人员是否按照伍游游戏所公布的标准向用户提供产品和服务,也可以随时向伍游游戏提出与产品和服务有关的意见和建议。
4. 如果用户不同意本协议条款,或对伍游游戏后来修改、更新的条款有异议,或对伍游游戏所提供的产品和服务不满意,用户可以随时选择停止使用伍游游戏的产品和服务。如果用户选择停止使用伍游游戏的产品和服务,伍游游戏不再对用户承担任何义务和责任 。
六、用户行为守则 1. 用户同意按照包括本协议在内的、伍游游戏不时发布或变更的各类规则规范自己的行为,从而接受并使用伍游游戏的产品和服务。用户对登录后其所持帐号产生的行为依法享有权利和承担责任。用户进一步同意,在违反这些规则时,按照本协议第六条第14款、第15款、第十四条及其他相关条款的规定承担违规后果和违约责任 。
2. 用户在使用伍游游戏帐号期间,须遵守与互联网信息发布相关的法律、法规及通常适用的互联网一般道德和礼仪的规范,用户将自行承担用户所发布的信息内容的责任。用户发布的各类信息,不得包含以下内容:
(1)违背宪法所确定的基本原则的;
(2)危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;
(3)损害国家荣誉和利益的;
(4)煽动民族仇恨、民族歧视,破坏民族团结的;
(5)破坏国家宗教政策,宣扬邪教和封建迷信的;
(6)散布谣言,扰乱社会秩序,破坏社会稳定的;
(7)传播淫秽、色情、赌博、暴力、凶杀、恐怖信息或者教唆犯罪的;
(8)侮辱、诽谤或恶意用言语攻击他人,侵害他人合法权益的;
(9)侵犯任何第三者的知识产权,版权或公众/私人权利的;
(10)违反人文道德、风俗习惯的;
(11)破坏游戏正常秩序的;
(12)含有法律、行政法规禁止的其他内容的。
3. 用户的伍游游戏帐号名称及游戏中的人物、帮派等名称应当遵守合法、健康的原则,不允许使用包括但不限于涉及种族、宗教、政治、国家领导人、淫秽、低俗、诽谤、恐吓、欺诈性的、攻击性的、污辱性的、可能引起误会的、违禁药品等内容的名 称。
4. 用户应当对自己在游戏中的言行负责,尤其不得:
(1)通过任何方式、行为散布或传播低俗、不雅信息;
(2)通过任何方式、行为冒充平台或游戏系统向其他用户散布或传播虚假信息;
(3)通过任何方式或途径引起纷争;
(4)通过任何方式、行为散布或传播、使用私服、木马、外挂、病毒及此类信息;
(5)通过任何方式、行为散布或传播代练的信息;
(6)通过任何方式、行为传播或进行除伍游游戏提供的交易途径之外的游戏帐号、虚拟货币、虚拟道具的线下交易;
(7)大量传播相同的、类似的短语或无意义的文字,或者任何与伍游游戏平台及其游戏无关的信息;
(8)宣扬、鼓动任何游戏虚拟世界之外的暴力行为;
(9)泄露其它用户、非用户或伍游游戏平台员工的任何游戏世界和现实世界信息;
(10)宣传或发布违法信息、违反社会公德的信息,或不利于精神文明建设的信息,包括但不限于色情、赌博、邪教、恐怖主义等内容;
(11)通过任何方式、行为散布任何种类的广告信息及广告链接;
(12)发布诋毁或攻击伍游游戏的言论或信息;
(13)其他不符合法律法规、社会公德或游戏规则的言论或行为。
5. 用户不得干扰、阻碍伍游游戏正常地提供产品和服务,尤其不得:
(1)攻击、侵入伍游游戏的网站服务器或使网站服务器过载;
(2)破解、修改伍游游戏提供的客户端程序;
(3)攻击、侵入伍游游戏的游戏服务器或游戏服务器端程序或使游戏服务器过载;
(4)不合理地干扰或阻碍他人使用伍游游戏所提供的产品和服务;
(5)利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);
(6)直接或间接利用游戏Bug(包括游戏系统、程序、设定等方面存在的漏洞或不合理的现象)、程序漏洞获利或扰乱游戏秩序,或者利用Bug、漏洞达到个人目的;
(7)制作、使用、发布、传播任何形式的妨碍游戏公平性的辅助工具或程序(指用于在游戏中获取优势,但不属于伍游游戏平台或各游戏软件的一部分的任何文件或程序),包括作弊性质的外挂以及相关辅助性质的外挂等(包括但不限于自动打怪、自动练级、自动吃药、自动完成任务、加速性质或超出游戏设定范围等操作);
(8)不得修改客户端程序,使之改变或者新增或者减少伍游游戏平台所预先设定的功能,或者导致客户端向服务器发送的数据出现异常的一切行为。
6. 用户不得扰乱游戏秩序,尤其不得:
(1)长时间停留在特殊地点或敏感地区(包括但不限于活动报名人、传送人、传送点等处),干扰其他用户游戏;
(2)进行恶意PK、清场、敲诈、勒索等行为;
(3)扬言进行或煽动其他用户或非用户参与非正常游戏内容的行为(包括但不限于游行、聚众闹事等);
(4)以相似昵称的人物冒充他人好友、冒充NPC或官方角色等方式在游戏内外进行欺诈。
7. 用户可以与游戏管理员(以下称为“GM”)进行交流,但在与GM交流时,不得做出以下行为:
(1)冒充系统或GM;
(2)欺骗或试图欺骗GM,包括但不限于误导GM、拒绝提供信息、提供虚假信息以及任何试图“诈骗”GM的行为;
(3)违反或忽视GM做出的提示。在游戏中,为了确保大多数用户的共同利益,维护正常的游戏秩序,GM可能会提示用户执行某些操作或停止执行某些操作,用户不得忽视或阻挠该项工作的进行;
(4)干扰GM工作。干扰GM工作包括但不限于:向GM索取任何游戏虚拟物品(包括但不限于虚拟货币、游戏道具等),频繁呼叫GM或发送无实质性内容的请求,反复向GM发送已解答或解决问题的帮助请求;
(5)辱骂、威胁或恶意攻击GM。
8. 用户必须保管好自己的帐号和密码,由于用户的原因导致帐号和密码泄密而造成的后果均将由用户自行承担。
9. 用户仅能以个人身份使用伍游游戏所提供的产品和服务,用户不能利用伍游游戏所提供的产品和服务从事商业目的的活动,也不能利用伍游游戏的产品和服务进行销售或其他商业目的的活动。
10. 除非获得伍游游戏的书面许可,否则,用户不得利用伍游游戏的任何产品和服务及其任何内容牟取商业利益,包括但不限于充当游戏道具交易中介收取中介费,以营利为目的销售游戏道具等。
11. 用户不得利用伍游游戏提供的产品和服务从事以下活动:
(1)未经允许,进入伍游游戏计算机信息网络系统或者使用计算机信息网络系统资源的;
(2)未经允许,对计算机信息网络功能进行删除、修改或者增加的;
(3)未经允许,对进入计算机信息网络中存储、处理或者传输的数据和应用程序进行删除、修改或者增加的;
(4)故意制作、传播计算机病毒等破坏性程序的;
(5)其他危害计算机信息网络安全的行为。
12. 用户同意以游戏程序中的监测数据作为判断用户是否有通过使用外挂程序等方法进行的游戏作弊行为的依据。
13. 如果伍游游戏发现用户行为或者数据异常,可以观察及记录该用户行为,并以观察和记录的结果作为判断用户是否实施了违反本协议用户行为守则的依据。
伍游游戏积极保护用户的帐号、虚拟物品及虚拟货币的安全,为此,伍游游戏对盗号及盗号相关行为展开严厉的打击。伍游游戏发现或者怀疑存在包括但不限于以下的盗号及盗号相关行为时,有权视情况按照本协议第六条第14款、第15款、第十四条及其他相关条款的规定处理,同时,伍游游戏保留进一步追诉的权利:
(1)盗取帐号;
(2)盗取虚拟物品;
(3)盗取虚拟货币;
(4)盗取帐号或/及密码;
(5)异常IP下的物品转移;
(6)其他盗号及盗号相关行为。
为了维护游戏的公平与秩序,即使用户没有主动的参与盗号,但是用户的物品来源于盗号或者盗号相关行为的,伍游游戏也有权自行判断回收、冻结涉及盗号的物品及帐号。用户应该配合伍游游戏对盗号及盗号相关行为的调查。用户应该自觉维护游戏的秩序,伍游游戏发现或者怀疑存在虚假的盗号投诉时,有权视情况按照本协议第六条第14款、第15款、第十四条及其他相关条款的规定处理。
14. 若用户实施违反本条所述用户行为守则的行为,伍游游戏有权视行为严重程度,向该用户施加以下一项或若干项违规后果,该用户应承担该等不利后果:
(1)警告:警告是针对轻微违反游戏政策而做出的教育导向,它是用于正常管理游戏运行的一种方式。
(2)禁言:关闭违规用户的部分或全部聊天频道,强制暂停违规用户角色的线上对话功能,使该角色无法与其他用户对话,直到此次处罚到期或是取消。
(3)强制离线:强制让违规用户离开当前游戏,结束该用户当前游戏程序的执行。
(4)封停帐号:暂停或永久终止违规用户使用伍游游戏帐号登录某款游戏的权利。
(5)暂时隔离:将违规用户的游戏角色转移至特殊游戏场景,限制其局部游戏操作,直到此次处罚到期或是取消。
(6)删除档案:将违规用户在某个游戏世界中的人物档案删除,不让该人物再出现在游戏世界。
(7)删除帐号:永久终止违规用户通过伍游游戏帐号登录伍游游戏平台的权利,包括但不限于用户注册信息、角色信息、等级物品、游戏货币等游戏数据库中的全部数据都将被永久封禁。
(8)收回游戏虚拟物品:对于违规用户因欺诈或其他违规行为而获取的游戏虚拟物品,包括但不限于游戏虚拟货币、虚拟物品,进行收回。
(9)修改名称:强制修改违规用户论坛昵称、游戏人物或帮派等的名称。
(10)解散组织:解散违规用户成立的帮派、公会等组织。
(11)倒扣数值:针对游戏角色游戏数值进行扣除,包括但不限于游戏角色等级、金钱、经验等。
(12)封禁IP:暂时或永久禁止违规用户在某一异常IP登录某款游戏的某个服务器。
(13)承担法律责任:违规用户的不当行为对他人或者伍游游戏造成损害,或者与现行法律规定相违背的,违规用户应依法承担相应的民事、行政和/或刑事责任,例如,用户在进行游戏过程中侵犯第三方知识产权或其他权利而导致被权利人索赔的,由用户直接承担责任。
15.若用户实施违反本条所述用户行为守则的行为,伍游游戏还有权要求违规用户向伍游游戏承担违约责任,包括但不限于恢复原状,消除影响,对给伍游游戏造成的直接及间接损失或额外的成本支出进行赔偿,以及在伍游游戏首先承担了因违规用户行为导致的行政处罚或侵权损害赔偿责任后,由伍游游戏向违规用户追偿。
七、游戏管理 1. 游戏管理员
(1)游戏管理员即GM(Game Master),指维护和管理游戏虚拟世界秩序的伍游游戏在线工作人员。
(2)GM不会干预游戏的正常秩序,不会以任何方式索要用户的个人资料和密码,不负责解决用户之间的私人纠纷或回答游戏的攻略、诀窍等问题。
(3)用户在游戏中应当 尊重、理解并配合GM的工作,如有任何意见,应通过专用信箱向客户服务中心申诉和举报。
2. 游戏信息转移。伍游游戏有权根据产品和服务的提供状况,安排拆分或合并游戏服务器。在对用户游戏权益没有实质性损害的情况下,伍游游戏有权将用户在游戏中的人物信息、角色档案转移到其它游戏服务器。
3. 家长监护系统。伍游游戏遵从国家政策,在游戏中开设“未成年人家长监护系统”,若父母(监护人)同意未成年人(尤其是十岁以下子女)使用产品和服务,必须以父母(监护人)名义申请注册伍游游戏帐号。在使用产品和服务时,父母(监护人)应以监护人身份判断产品和服务是否适合未成年人。如果用户未满18周岁(或伍游游戏无法识别用户的年龄),则用户将受到“未成年人家长监护系统”的约束。伍游游戏将有权根据有关规则以及家长的要求,对用户创建或使用伍游游戏帐号关联的游戏帐号进行限制,包括但不限于临时或永久冻结帐号,部分或者全部终止提供伍游游戏各项产品和服务。
4. 防沉迷系统
(1)如果用户未满法定年龄(或伍游游戏无法识别用户的年龄),则用户在游戏内的活动将受到“游戏防沉迷系统”监测;如果用户拥有一个以上伍游游戏帐号,则该“游戏防沉迷系统”将同时适用于该用户的所有伍游游戏帐号;
(2)“游戏防沉迷系统”通过按照连续游戏时间来逐级扣减游戏内收益的方式,对用户长时间连续游戏的行为进行规制;
(3)用户需提供真实完整的信息以便伍游游戏识别用户的身份并向有关部门提交实名认证信息,如因提供的资料不真实而产生的后果由用户自行承担。
5. 在现有的技术条件下,伍游游戏将尽合理的商业努力并根据有关监管部门的要求开发并维护“未成年人家长监护系统”、“游戏防沉迷系统”与实名认证系统,按“现状”提供给用户使用。由于技术不可避免的局限性以及系统运作各环节受外界的影响,伍游游戏不保证各系统不存在任何漏洞,不保证各系统能随时正常运作,亦不保证监护或认证效果完全正确真实或满足用户的需求。伍游游戏不提供任何适用法律明确规定之外的明示或默示担保,不对此承担任何责任。
八、资费政策 1. 伍游游戏产品和服务的收费信息以及有关的资费标准、收费方式、购买方式及其他有关资费政策的信息,在伍游游戏相关平台或游戏网站上作出说明。
2. 伍游游戏有权决定伍游游戏所提供的产品和服务的资费标准和收费方式,伍游游戏可能会就不同的产品和服务制定不同的资费标准和收费方式,也可能按照伍游游戏所提供的产品和服务的不同阶段确定不同的资费标准和收费方式。另外,伍游游戏也可能不时地修改伍游游戏的资费政策。伍游游戏会将有关产品和服务的收费信息以及与该产品和服务有关的资费标准、收费方式、购买方式或其他有关资费政策的信息放置在该产品和服务相关网页的显著位置。
3. 对于伍游游戏的收费产品和服务,用户应该按照伍游游戏确定的资费政策购买伍游游戏的产品和服务。如果用户未按伍游游戏确定的资费政策购买伍游游戏的产品和服务,伍游游戏可以立即停止向用户提供该产品和服务。
4. 除非法律另有明文规定,否则用户不得要求伍游游戏返还用户已经支付予伍游游戏的任何资费(以下简称“退款”),无论该等资费是否已被消费。伍游游戏有权决定是否、何时、以何种方式向用户退款。伍游游戏同意退款的,用户应补偿支付时使用信用卡、手机等支付渠道产生的费用,伍游游戏有权在返还用户的资费中直接扣收。伍游游戏在产品和服务提供过程中赠送的充值金额、虚拟货币、虚拟道具等,不予退款或变现。
九、虚拟物品 1. 伍游游戏(包括但不限于游戏平台、游戏、论坛)所提供的各种虚拟物品,不限于金币、银两、道具、装备等,其所有权归伍游游戏或其合作方所有。用户只能在合乎法律和游戏规则的情况下拥有对虚拟物品的使用权。用户一旦购买了虚拟道具的使用权,将视为已经进入消费过程,不得以任何理由要求退还该虚拟道具。
2. 除服务器大规模断线外,由于地方网络问题、个人操作问题等非可归责于伍游游戏的原因导致造成的角色被删或回档、虚拟物品或金钱的损失,伍游游戏无需向用户承担任何责任。
3. 鉴于网上交易的复杂性,除伍游游戏指定的官方交易平台外,伍游游戏禁止用户进行游戏虚拟物品买卖线下交易及线下交易相关行为。伍游游戏反对用户自行进行虚拟物品买卖线下交易及线下交易相关行为(包括但不限于参与线下交易、协助线下交易者操作及转移游戏虚拟物品等一系列行为),并且不保护线下交易产生的任何交易结果,用户之间进行线下交易行为发生的任何问题、纠纷,包括但不限于被虚假交易信息诈骗金钱或者游戏虚拟物品的,均与伍游游戏无关,用户将自行负责,伍游游戏不负责赔偿或追回因受骗造成的损失。
4. 除伍游游戏指定的官方交易平台外,伍游游戏不认可用户线下交易所产生的交易结果,用户通过线下交易所获得的游戏虚拟物品将被认定为来源不符合游戏规则。伍游游戏有权按照本协议第六条的约定,对线下交易及线下交易相关行为涉及的游戏虚拟物品、游戏角色与伍游游戏帐号采取相应的措施。
十、服务方式、内容的变动与个人资料转移 1. 伍游游戏将尽力持续地向用户提供产品和服务,但是伍游游戏,在适用法律许可的最大范围内,并不排除伍游游戏可能会停止提供任何产品和服务的可能性,也不排除任何改变游戏服务或其他网络服务的服务方式、服务内容的可能性。
2. 为增加并丰富伍游游戏之游戏及其他网络服务的内容,游戏和游戏平台在运行时可能不定期更新并调整其包含的功能。在游戏和游戏平台更新后,一切游戏和游戏平台内的操作、内容、设定,将以游戏和游戏平台中的公告内容为准。
3. 如果伍游游戏停止提供某一项产品和服务,或改变某一项产品和服务的方式或内容,伍游游戏将会事先通知用户,并尽力寻找适当的服务提供者以接替伍游游戏继续提供产品和服务。
4. 在本条第3款所述情况下且在适用法律许可的最大范围内,则伍游游戏可能会将用户的个人资料(包括有关的帐号和密码信息及个人资料)转移给该继续提供服务的一方,用户在此同意伍游游戏有权做此转移和提供,并且同意在伍游游戏完成转移和提供之后,伍游游戏将不再对用户原有资料承担任何义务和责任。但是,伍游游戏并不保证伍游游戏届时一定能够找到适当的服务提供者或服务方式以代替伍游游戏继续提供产品和服务,也不保证伍游游戏找到的服务提供者所提供的产品和服务或者改变的游戏方式能够满足用户的要求。
十一、服务中断或终止 1. 如发生下列任何一种情形,伍游游戏有权随时中断或终止向用户提供本协议项下的游戏服务和其他网络服务,对于因而产生的不便和损失,伍游游戏不承担任何责任 :
(1)用户提供的个人资料不真实;
(2)用户违反本协议中规定的用户行为准则。
2. 用户清楚知悉伍游游戏帐号存在有效期,并同意不定时登录伍游游戏帐号以延续其有效期,用户清楚知悉伍游游戏有权对超过有效期的伍游游戏帐号进行注销并删除该帐号中的信息内容。
(1)用户在注册帐号后长时间内该帐号无登录使用记录,且该帐号从无任何充值记录;则伍游游戏有权立即注销该帐号并删除该帐号中的信息内容。
(2)关于伍游游戏所提供的不同产品和服务注销帐户/角色的其他条件,请参见各个产品和服务的具体规定,或相关产品和服务的官方网站上的具体规定。
3. 为了保障游戏及游戏平台网站和服务器的正常运行,伍游游戏需要定期或不定期对游戏及游戏平台网站和服务器进行停机维护,或针对突发事件进行紧急停机维护。因上述情况而造成的正常服务中断、中止,用户予以理解并同意,伍游游戏则有义务尽力避免服务中断并将中断时间限制在最短时间内。
4. 在适用法律许可的最大范围内,发生下列情形之一时,为了游戏网站和服务器的持续稳定运行,伍游游戏有权不经提前通知,终止或中断游戏服务器所提供之全部或部分服务,对因此而产生的不便或损失,伍游游戏对用户或第三人均不承担任何责任:
(1)定期检查或施工,更新软硬件等;
(2)服务器遭受损害,无法正常运作;
(3)突发性的软硬件设备与电子通信设备故障;
(4)网络提供商线路或其他故障;
(5)在紧急情况之下依照法律的规定或为用户及第三者之人身安全;
(6)第三方原因或其他不可抗力的情形。
5. 在适用法律许可的最大范围内,不管产品和服务由于任何原因终止,用户应采取相应的措施自行处理游戏及游戏平台上的虚拟物品。用户不得因终止服务而要求伍游游戏承担除用户已经购买但尚未使用的游戏虚拟货币以外任何形式的赔偿或补偿责任 ,包括但不限于因不再能继续使用游戏帐号、游戏内虚拟物品等而要求的赔偿。
十二、有限保证及免责声明 1. 对于伍游游戏的产品和服务,伍游游戏仅作本条所述有限保证,该有限保证取代任何文档、包装、或其他资料中的任何其他明示或默示的保证(若有)。
2. 伍游游戏仅以“现有状况且包含所有错误”的形式提供相关的产品、软件或程序及任何支持服务,并仅保证:
(1)伍游游戏所提供的产品和服务能基本符合伍游游戏正式公布的要求;
(2)伍游游戏所提供的相关产品和服务基本与伍游游戏正式公布的服务承诺相符;
(3)伍游游戏仅在商业上允许的合理范围内尽力解决伍游游戏在提供产品和服务过程中所遇到的任何问题。
3. 在适用法律允许的最大范围内,伍游游戏明确表示不提供任何其他类型的保证,不论是明示的或默示的,包括但不限于适销性、适用性、可靠性、准确性、完整性以及无错误的任何默示保证和责任。
4. 在适用法律允许的最大范围内,伍游游戏并不担保伍游游戏所提供的产品和服务一定能满足用户的要求,也不担保提供的产品和服务不会被中断,并且不担保产品和服务的及时性、安全性及不受干扰,亦不担保无错误发生,以及信息能准确、及时、顺利地传送。
5. 用户理解并同意:通过伍游游戏的产品和服务取得的任何信息、资料,是否信任及使用,完全取决于用户自己,并由用户承担由该等信任及使用带来的系统受损、资料丢失以及其它任何风险 。伍游游戏对在产品和服务中提及的任何商品购物服务、交易进程、招聘信息,尤其是第三方发出的信息,都不作担保。
6. 如有系统故障、安全漏洞(Security Vulnerability)、程序缺陷(Bug)、程序出错等问题,伍游游戏有权把游戏的资料还原到一定日期,以维护游戏之平衡。用户不得因此要求补偿或赔偿 。
7. 在适用法律允许的最大范围内,伍游游戏对用户因使用伍游游戏的产品和服务引起的任何间接、偶然、意外、特殊或继起的损害(包括但不限于人身伤害、隐私泄漏、因未能履行包括诚信或合理谨慎在内的任何责任、因过失和因任何其他金钱上的损失或其他损失而造成的损害赔偿)不负责任 ,这些损害可能来自:用户或他人不正当使用产品和服务、在网上购买商品或类似服务、在网上进行交易、非法使用服务或用户传送的信息有所变动。
8. 伍游游戏对本协议项下涉及的境内外基础电信运营商的固定及移动通信网络的故障,各类技术缺陷、覆盖范围限制、不可抗力、计算机病毒、黑客攻击、用户所在位置、用户关机、合作方因素、他人故意或过失行为或其他非伍游游戏技术能力范围内的原因造成的服务中断、用户发送的数据或短信息的内容丢失、出现乱码、错误接收、无法接收、迟延接收等等,均不承担责任。
9. 由于用户个人失误、错误或不当操作导致的任何后果,由用户自行承担责任,伍游游戏不予任何赔偿或补偿。
十三、知识产权及信息所有权 1. 伍游游戏通过产品和服务提供的游戏软件(包括具备客户端软件及不具备客户端软件的游戏)、其他软件、信息、作品及资料,其著作权、专利权、商标专用权及其它知识产权,均为伍游游戏或其相应权利人所有。除非事先经 伍游游戏书面合法授权,或法律另有明文规定,任何人不得擅自以任何形式使用、复制、传播、伪造、模仿、修改、改编、翻译、汇编、出版、进行反编译或反汇编等反向工程,否则伍游游戏有权立即终止向用户提供产品和服务,并依法追究其知识产权侵权责任,要求用户赔偿伍游游戏的一切损失 。
2. 用户在使用产品和服务过程中产生并储存于伍游游戏服务器中的任何数据信息(包括但不限于帐号数据信息、角色数据信息、等级物品数据信息等,但用户的姓名、身份证号、电话号码等个人身份数据信息除外)属于游戏或游戏平台的一部分,由伍游游戏所有并进行管理,用户有权在遵守游戏规则的前提下通过伍游游戏指定的途径对属于自身帐号的数据信息进行修改、转移、处分。
3. 为保证准确及避免争议,本协议涉及到的有关技术方面的数据、信息,用户同意以伍游游戏服务器所储存的数据作为判断标准。伍游游戏保证该数据的真实性。
十四、损害赔偿 用户若违反本协议或可适用的法律法规,导致伍游游戏的母公司、子公司、其他关联公司、附属机构及其人员,受雇人、代理人及其他一切相关履行辅助人员因此受到损害或支出任何衍生费用(包括但不限于支付上述法律主体须就用户的违约或违法行为所进行的一切辩护或索偿诉讼及相关和解之法律费用),用户应承担补偿相关费用及支付损害赔偿的责任。
十五、协议的终止 用户应遵守本协议及有关法律法规的规定。伍游游戏有权判断用户是否违反本协议。若伍游游戏认定用户违反本协议或任何法律法规,伍游游戏有权在无需向用户进行事先通知的情况之下,立即暂停或终止用户的帐号并删除用户帐号中的所有相关资料、档案及任何记录,以及限制、停止或取消用户的使用资格 。
十六、修改和解释权 1. 为了向用户及时、更好地提供产品和服务,基于对伍游游戏本身、用户及市场状况不断变化的考虑,在法律最大适用范围内,伍游游戏保留随时修改、新增、删除本协议条款的权利。修改、新增、删除本协议条款时,伍游游戏将于官方网站公告修改、新增、删除的事实,而不另行对用户进行个别通知 。若用户不同意伍游游戏所修改、新增、删除的内容,可立即停止使用伍游游戏所提供的服务。若用户继续使用伍游游戏提供的服务,则视同用户同意并接受本协议条款修改、新增、删除后的内容,且不得因此而要求任何补偿或赔偿 。
2. 未经伍游游戏事先书面同意,用户不得转让其在本协议项下的权利或义务。伍游游戏有权通过伍游游戏的子公司或其他关联公司行使其在本协议项下的权利或履行本协议项下的义务 。
十七、广告与外部链接 1. 伍游游戏的产品和服务中可能包含他人的商业广告或其它活动促销的广告。这些内容由广告商或商品/服务提供者提供并承担相应责任,伍游游戏仅提供刊登内容的媒介。用户通过伍游游戏或伍游游戏所链接的网站所购买的该等服务或商品,其交易行为仅存于用户与该等商品或服务的提供者之间,与伍游游戏无关,伍游游戏不就用户与该商品或服务的提供者之间所产生的交易行为承担任何法律责任 。
2. 用户可能在使用伍游游戏的产品和服务过程中链接到第三方的站点。第三方的站点不由伍游游戏控制,并且伍游游戏也不对任何第三方站点的内容、第三方站点包含的任何链接、第三方站点的任何更改或更新负责 。伍游游戏仅为了提供便利的目的而向用户提供这些到第三方站点的链接,伍游游戏所提供的这些链接并不意味着伍游游戏认可该第三方站点,不意味着伍游游戏担保其真实性、完整性、实时性或可信度。这些个人、公司或组织与伍游游戏间亦不存在任何雇用、委任、代理、合伙或其它类似的关系。用户需要检查并遵守该第三方站点的相关规定。
3. 用户理解并同意伍游游戏通过电子邮件、短信或者其他方式向用户发送产品和服务或其他相关商业信息。
十八、其他约定 1. 本协议的订立、效力、解释、履行及争议解决适用中华人民共和国法律。如果本协议的任何内容与法律相抵触,应以法律规定为准。
2. 本协议的任何条款部分或全部无效的,不影响其它条款的效力。
3. 如双方就本协议内容或其执行发生任何纠纷,包括但不限于伍游游戏依据本协议对用户进行处罚所产生的合同纠纷或财产性权益侵权纠纷,双方应尽量友好协商解决;协商不成时,用户和伍游游戏一致同意将纠纷交由本协议签订地有管辖权的人民法院管辖 。
4. 本协议于用户完成伍游游戏帐号注册之日在中国北京市朝阳区签订并生效。即便用户没有完成伍游游戏帐号注册,但通过其他任何方式获得和使用伍游游戏所提供的产品和服务的,本协议视为在该用户获得及使用产品和服务之日签订并生效 。
'
}else if(type==10){
html = '网络游戏纠纷处理方式 伍游网游戏(以下称“伍游网”)(特别提醒用户在注册、登陆本网络游戏前请务必仔细阅读本《纠纷处理方式》(未成年人应当在其法定监护人陪同下阅读)中的各个条款,以确保您在享受本网络游戏服务的同时维护自身合法权益:
一、用户之间纠纷处理方式 1、伍游网仅作为本网络游戏的运营商,如若本网络游戏用户之间发生纠纷且无法协商一致的,可向国家相关行政机关或司法机关寻求解决,包括但不限于向公安机关报案、申请仲裁或向人民法院提起诉讼等。伍游网将会为实名注册用户提供必要的协助和支持,并根据有关行政机关和司法机关的要求承担一定的举证责任或采取必要措施。
2、本网络游戏用户之间发生纠纷的,也可向伍游网的客服人员投诉并举证。用户需提供与其帐号注册信息一致的个人有效身份证件、必要的国家 行政或司法机关文件和其他伍游网要求提供的相关证据。经伍游网审核确认后,可以给予必要的协助和支持。
二、用户与伍游网之间纠纷处理方式 1、如本网络游戏用户对伍游网的服务有任何异议的,可以向伍游网的客服人员投诉并举证。查证属实的,伍游网将立即更正并按照现行法律规定给予用户必要的补偿。
2、如本网络游戏用户对伍游网的服务有任何异议的,也可以向双方约定的伍游网公司所在地人民法院提起诉讼。
'
}else if(type==11){
html = '联系方式 关注公众号 长按识别二维码
关注后留言客服第一时间进行回复
客服电话: 010-56295419 '
}else if(type==12){
html = '商务合作 H5游戏联运、广告投放、信息服务
孙冬旭
邮箱:sunday.sun@5you.cc
电话:15001324330
市场合作 流量分布、市场推广、发展路演
曹雨
邮箱:caoyu@5you.cc
电话:18610484662
媒体合作 稿件投放、友情链接、新闻预约
历超男
邮箱:lichaonan@5you.cc
电话:17610606979
';
}else if(type==14){
html= '伍游币充值说明 伍游币可以用来购买伍游游戏平台上的礼物,游戏内的道具、金币等虚拟商品。伍游币需要通过充值才能获得,您可以在下面选择充值金额直接充值。
'
}
$(".box-"+type+"").empty().append(html);
}
function chinaMobiles(){
var dataAr = [],codeData = [];
httpGet("http://www.5you.cc/index.php/Wyb/detail",function(data){
console.log(data)
var html = '';
html+='
'+data.wyb+'
';
html+='
当前伍游币金额 ';
html+='
';
html+='';
html+='
移动商城积分已兑换的伍游币
';
html+='
';
// '+data.data[i].wyb+'.00
if(data.code==200){
console.log('aa')
for(var i = 0;i';
}
}else{
console.log('cccc')
html+='没有可兑换的伍游币
';
}
html+=' ';
html+='
';
html+='立即充值 ';
$('.box-15').append(html);
var number = 0;
$('.tap-list li').live(touchEnd,function(){
if(!$(this).is('.active')){
$(this).addClass('active');
dataAr.push($(this).attr('data'));
codeData.push($(this).attr('data-code'))
/*console.log(codeData.join("-"));
console.log(dataAr);
console.log(codeData);*/
}else{
$(this).removeClass('active');
console.log($(this).attr('data'));
for(var i = 0;i';
html+='充值确认 ';
html+='充值详情 ';
html+='';
html += '";
html+='';
html+='';
$('body').append(html);
}else{
alert('亲!请选择充值面额')
}
})
})
$('body').on(touchEnd,'.f-footer a',function(){
if($(this).index()==0){
$('#confirmDialog').remove()
}else{
httpGet("http://www.5you.cc/index.php/Wyb/wybchange?wyb="+codeData.join("-"),function(data){
if(data.code==200){
$('#confirmDialog').remove();
var html ='';
html +='
';
html += ' ';
html += '恭喜您,充值成功 ';
html += "
";
html += "
";
$('body').append(html);
setTimeout(function(){
window.location.reload();
},1500)
}else{
alert('充值失败')
}
})
}
})
}
function recordList(){
httpGet("http://www.5you.cc/index.php/Wyb/wyblog",function(data){
var html = '';
html+='';
html+='
伍游币充值记录
';
html+='
';
html+='
';
$('.box-16').append(html);
})
}
function loadGameHot() {
// var i,iHTML='';
// var datas=[
// {
// img:'https://game.11h5.com/static/images/2018/1008/20181008021653613.png',
// name:'诸王之刃',
// desc:'《诸王之刃》拥有宏大的魔幻世界故事背景,玩家将亲身参与到波澜壮阔的',
// url:"http://play.11h5.com/game/?gameid=319",
// label:["礼包","精品"]
// },
// {
// img:'https://game.11h5.com/static/images/2018/0710/20180710033430543.png',
// name:'怪兽必须死',
// desc:'《怪兽必须死》是一款休闲放置类游戏;大批变异怪物兵临城下',
// url:"https://play.11h5.com/game/?gameid=62",
// label:["热门","首发"]
// },
// {
// img:'https://game.11h5.com/static/images/2017/0524/20170524045229531.png',
// name:'宝贝星球',
// desc:'《宝贝星球》是一款以宠物小精灵为题材的即时战斗挂机游戏。',
// url:"https://play.11h5.com/game/?gameid=97",
// label:["热门","礼包"]
// },
// {
// img:'http://www.5you.cc/Public/upload/game/593a458da0936.png',
// name:'妖怪宝可萌',
// desc:'《妖怪宝可萌》是一款集宠物养成、策略于一体的回合制...',
// url:"http://play.11h5.com/game/?gameid=170",
// label:["热门","礼包"]
// },
// {
// img:'http://www.5you.cc/Public/upload/game/590017472b32e.png',
// name:'啪啪军团',
// desc:'一款可以群P的血性战争策略游戏。',
// url:"http://play.11h5.com/game/?gameid=173",
// label:["热门","礼包"]
// },
// {
// img:'https://game.11h5.com/static/images/2018/0213/20180213112039262.png',
// name:'西游七十二变',
// desc:'《西游七十二变》以《西游记》为背景,采用多人同时在线即时战斗模式',
// url:"http://play.11h5.com/game/?gameid=297",
// label:["热门","礼包"]
// },
// ]
// for(i=0;i'+datas[i].label[j]+'';
// }
// iHTML+= ' '+
// ''+
// '
'+
// ''+datas[i].name+''+spanhtml+'
'+datas[i].desc+'
'+
// '
'+
// '开始游戏 '
// }
// $('.tab').eq(0).find('ol').append(iHTML);
if (arr.hot) {
//console.log(arr.hot)
$.post("index.php/Index/remenyx", {"page":arr.hot,"type":"1","arr":arr.arrType}, function (data) {
var el, li, i;
console.log(data)
if (data.lists && data.lists.length) {
var spanClass = '';
for ( var item in data['lists']){
var spanHtml = '';
var img = data['lists'][item].icos;
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
//console.log(data['lists'][item].info[key])
spanHtml +=''+data['lists'][item].info[key]+' ';
}
}
li = document.createElement('li');
li.setAttribute("class", "flex");
if(data['lists'][item].recommend.length>25){
data['lists'][item].recommend=data['lists'][item].recommend.substring(0,25)+'...';
}else{
data['lists'][item].recommend=data['lists'][item].recommend;
}
var linkHref="";
if(data['lists'][item].Id==292){
linkHref="http://play.11h5.com/game/?gameid=170"
}else{
linkHref='http://www.5you.cc'+data['lists'][item].key3
}
// onclick="loadGameInfo('+data['lists'][item].Id+')"
//onclick="loadGameInfo('+data['lists'][item].Id+')"
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 '
$('.tab').eq(0).find('ol').get(0).appendChild(li, $('.tab').eq(0).find('ol').get(0).childNodes[0]);
}
$('.tab').eq(0).find('li').on('tap',function(){
window.localStorage.removeItem("giftCode");
window.localStorage.setItem("gameid",$(this).find('a').attr('id'));
})
if (data.p >= arr.hot) {
arr.hot++;
Ready = true;
} else {
arr.hot = false;
}
} else {
arr.hot = false;
}
},'json')
}
}
function recommendList(){
// var i,iHTML='';
// var datas=[
// {
// img:'https://game.11h5.com/static/images/2018/1008/20181008021653613.png',
// name:'诸王之刃',
// desc:'《诸王之刃》拥有宏大的魔幻世界故事背景,玩家将亲身参与到波澜壮阔的',
// url:"http://play.11h5.com/game/?gameid=319",
// label:["礼包","精品"]
// },
// // {
// // img:'https://game.11h5.com/static/images/2018/0710/20180710033430543.png',
// // name:'怪兽必须死',
// // desc:'《怪兽必须死》是一款休闲放置类游戏;大批变异怪物兵临城下',
// // url:"https://play.11h5.com/game/?gameid=62",
// // label:["热门","首发"]
// // },
// {
// img:'https://game.11h5.com/static/images/2017/0524/20170524045229531.png',
// name:'宝贝星球',
// desc:'《宝贝星球》是一款以宠物小精灵为题材的即时战斗挂机游戏。',
// url:"https://play.11h5.com/game/?gameid=97",
// label:["热门","礼包"]
// },
// {
// img:'http://www.5you.cc/Public/upload/game/593a458da0936.png',
// name:'妖怪宝可萌',
// desc:'《妖怪宝可萌》是一款集宠物养成、策略于一体的回合制...',
// url:"http://play.11h5.com/game/?gameid=170",
// label:["热门","礼包"]
// },
// {
// img:'http://www.5you.cc/Public/upload/game/590017472b32e.png',
// name:'啪啪军团',
// desc:'一款可以群P的血性战争策略游戏。',
// url:"http://play.11h5.com/game/?gameid=173",
// label:["热门","礼包"]
// }
// ]
// for(i=0;i'+datas[i].label[j]+'';
// }
// iHTML+= ' '+
// ''+
// '
'+
// ''+datas[i].name+''+spanhtml+'
'+datas[i].desc+'
'+
// '
'+
// '开始游戏 '
// }
// $('.tab').eq(1).find('ol').append(iHTML);
if(arr.reco){
/*alert(arr.page)*/
$.post("index.php/Index/remenyx", {"page":arr.reco,"type":"2","arr":arr.arrType}, function (data) {
if (data.lists && data.lists.length) {
var el, li, i;
var spanClass = "";
for ( var item in data['lists']){
var spanHtml = '';
var img = data['lists'][item].icos;
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
spanHtml +=''+data['lists'][item].info[key]+' ';
}
}
li = document.createElement('li');
li.setAttribute("class", "flex");
// onclick="loadGameInfo('+data['lists'][item].Id+')"
//onclick="loadGameInfo('+data['lists'][item].Id+')"
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 '
$('.tab').eq(1).find('ol').get(0).appendChild(li, $('.tab').eq(1).find('ol').get(0).childNodes[0]);
}
$('.tab').eq(1).find('li').on('tap',function(){
window.localStorage.removeItem("giftCode");
window.localStorage.setItem("gameid",$(this).find('a').attr('id'));
})
if (data.p >= arr.reco) {
arr.reco++;
Ready = true;
} else {
arr.reco = false;
}
}else {
arr.reco = false;
}
},'json')
}
}
function informationList(){
if(arr.informat){
$.post("index.php/Index/remenyx", {"page":arr.informat,"type":"3","arr":arr.arrType}, function (data) {
if (data.lists && data.lists.length) {
var el, li, i;
var infoClass = '';
for ( var item in data['lists']){
li = document.createElement('li');
li.setAttribute("class", "cf");
if(data['lists'][item].key2=="公告"){
infoClass = "tags-recommend";
}
if(data['lists'][item].key2=="活动"){
infoClass = "tags-recommend1";
}
if(data['lists'][item].key2=="开服"){
infoClass = "tags-recommend2";
}
if(data['lists'][item].key2=="攻略"){
infoClass = "tags-recommend3";
}
if(data['lists'][item].key2=="评测"){
infoClass = "tags-recommend4";
}
if(data['lists'][item].key2=="新闻"){
infoClass = "tags-recommend5";
}
li.innerHTML=''+data['lists'][item].key2+' '+
''+data['lists'][item].title+' '+
''+data['lists'][item].times+' '
$('.tab').eq(2).find('ol').get(0).appendChild(li, $('.tab').eq(2).find('ol').get(0).childNodes[0]);
}
if (data.p >= arr.informat) {
arr.informat++;
Ready = true;
} else {
arr.informat = false;
}
}else {
arr.informat = false;
}
},'json')
}
}
function aloneList(){
if(arr.alone){
$.post("index.php/Index/remenyx", {"page":arr.alone,"type":"4","arr":arr.arrType}, function (data) {
if (data.lists && data.lists.length) {
var el, li, i;
console.log(data)
var spanClass = "";
for ( var item in data['lists']){
var spanHtml = '';
var img = data['lists'][item].icos;
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
spanHtml +=''+data['lists'][item].info[key]+' ';
}
console.log(data['lists'][item].info[key]);
}
li = document.createElement('li');
li.setAttribute("class", "flex");
// onclick="loadGameInfo('+data['lists'][item].Id+')"
//onclick="loadGameInfo('+data['lists'][item].Id+')"
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 ';
$('.tab').eq(3).find('ol').get(0).appendChild(li, $('.tab').eq(3).find('ol').get(0).childNodes[0]);
}
$('.tab').eq(3).find('li').on('tap',function(){
window.localStorage.removeItem("giftCode");
window.localStorage.setItem("gameid",$(this).find('a').attr('id'));
})
if (data.p >= arr.alone) {
arr.alone++;
Ready = true;
} else {
arr.alone = false;
}
}else {
arr.alone = false;
}
},'json')
}
}
function pullUpAction(type, page){
if(arr.item){
$.post("index.php/Index/remenyx", {"page":page,"type":type,"arr":arr.arrType}, function (data) {
if (data.lists && data.lists.length) {
var el, li, i;
/*if (page>data['p'])
{
return false;
}
arr.but = false;// 阻止数据没加载玩滑动再次加载*/
if(type==1){
/*$('.show-box-hot').empty();*/
var spanClass = '';
for ( var item in data['lists']){
var spanHtml = '';
var img = data['lists'][item].icos;
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
console.log(data['lists'][item].info[key])
spanHtml +=''+data['lists'][item].info[key]+' ';
}
}
li = document.createElement('li');
li.setAttribute("class", "flex");
/*console.log(data['lists'][item].recommend.substring(0,36));
data['lists'][item].recommend=data['lists'][item].recommend.substring(0,35);*/
if(data['lists'][item].recommend.length>25){
data['lists'][item].recommend=data['lists'][item].recommend.substring(0,25)+'...';
}else{
data['lists'][item].recommend=data['lists'][item].recommend;
}
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 '
$('.tab').eq(0).find('ol').get(0).appendChild(li, $('.tab').eq(0).find('ol').get(0).childNodes[0]);
}
}
else if (type == 2)
{
console.log(data)
$('.tab').eq(0).find('ol').get(0).innerHTML = "";
if(data.lists==null){
arr.item = false;
Ready = false;
/*alert('a')*/
}
var spanClass = "";
for ( var item in data['lists']){
var spanHtml = '';
console.log(data['lists'])
var img = data['lists'][item].icos;
console.log(img)
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
spanHtml +=''+data['lists'][item].info[key]+' ';
console.log(spanHtml)
}
}
li = document.createElement('li');
li.setAttribute("class", "flex");
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 '
$('.tab').eq(1).find('ol').get(0).appendChild(li, $('.tab').eq(1).find('ol').get(0).childNodes[0]);
}
}
else if(type == 3){
var infoClass = '';
/*$('.show-box-info').empty()*/
for ( var item in data['lists']){
li = document.createElement('li');
li.setAttribute("class", "cf");
if(data['lists'][item].key2=="公告"){
infoClass = "tags-recommend";
}
if(data['lists'][item].key2=="活动"){
infoClass = "tags-recommend1";
}
if(data['lists'][item].key2=="开服"){
infoClass = "tags-recommend2";
}
if(data['lists'][item].key2=="攻略"){
infoClass = "tags-recommend3";
}
if(data['lists'][item].key2=="评测"){
infoClass = "tags-recommend4";
}
if(data['lists'][item].key2=="新闻"){
infoClass = "tags-recommend5";
}
li.innerHTML=''+data['lists'][item].key2+' '+
''+data['lists'][item].title+' '+
''+data['lists'][item].times+' '
$('.tab').eq(2).find('ol').get(0).appendChild(li, $('.tab').eq(2).find('ol').get(0).childNodes[0]);
}
}
else if(type == 4){
var spanClass = "";
for ( var item in data['lists']){
var spanHtml = '';
var img = data['lists'][item].icos;
for(var key in data['lists'][item].info){
if(data['lists'][item].info[key]==''){
spanHtml="";
}else{
if(data['lists'][item].info[key]=="精品"){
spanClass="tags-elite";
}
if(data['lists'][item].info[key]=="礼包"){
spanClass="tags-game";
}
if(data['lists'][item].info[key]=="独家"){
spanClass="tags-game1";
}
if(data['lists'][item].info[key]=="热门"){
spanClass="tags-game2";
}
if(data['lists'][item].info[key]=="封测"){
spanClass="tags-game3";
}
if(data['lists'][item].info[key]=="首发"){
spanClass="tags-game4";
}
spanHtml +=''+data['lists'][item].info[key]+' ';
}
console.log(data['lists'][item].info[key]);
}
li = document.createElement('li');
li.setAttribute("class", "flex");
li.innerHTML = ' '+
''+
'
'+
''+data['lists'][item].name+''+spanHtml+'
'+data['lists'][item].recommend+'
'+
'
'+
'开始游戏 ';
$('.tab').eq(3).find('ol').get(0).appendChild(li, $('.tab').eq(3).find('ol').get(0).childNodes[0]);
}
}
if (data.p >= page) {
arr.page++;
console.log(arr.page)
Ready = true;
} else {
//alert('aaa')
arr.page = false;
}
}
},'json')
}
}
function getJf(){
if (arr.giftPage) {
httpGet('index.php/Index/spreeInfo?page='+arr.giftPage+'&pageSize='+arr.pageSize,
function(data) {
var html = "";
for (var i in data) {
html += fillGift(data[i], data[i].Id, data[i].game_url,
function() {})
}
$(".box-2 .show-box-gift").append(html);
$(".box-2 .show-box-gift .taps").off('click').click(function(ev){
/*alert(tapBut)*/
/*alert($(this).index())*/
//alert($(this).find('.more').attr('data-gum'));
if(ev.target.className=="btn"){
return false
}
if($(this).find('.more').attr('data-id')==undefined){
return false
}
console.log($(this).find('.more').attr('data-id'),$(this),$(this).find('.more').attr('data-gum'))
loadGameInfo($(this).find('.more').attr('data-id'),$(this),$(this).find('.more').attr('data-gum'))
})
if (data.length >= arr.pageSize) {
arr.jfen = true;
arr.giftPage++;
isReady = true;
$(".box-2 .show-box-gift").append('' + showLoading() + " ")
} else {
arr.giftPage = false;
$(".box-2 .show-box-gift").append('没有更多了 ')
}
})
}
}
function showLoading() {
return ''
}
})
function httpPost(url, callback) {
$.post(url,
function(data) {
callback(data)
})
}
function httpGet(url, callback) {
$.getJSON(url,
function(data) {
callback(data)
})
}
function Cancelbind(mob){
var html = '';
html += '
';
html += '
您将取消绑定手机号 ';
html += '
'+mob+'
';
html += '";
html += "
";
html +='
手机格式不对 ';
html += "
";
$("body").append(html);
$('.dialog-box-2 .jf-footer a').on(touchEnd,function(){
if($(this).index()==0){
$('#confirmDialog').remove();
$(document).unbind('touchmove');
}else{
httpGet("http://www.5you.cc/index.php/Wyb/qxmobile?phone="+mob,function(data){
if(data.code==200){
window.location.reload();
}else{
$('.error-bind').html(data.msg).show();
}
})
}
setTimeout(function(){
$('.error-bind').hide();
},1500)
})
}
function chinaMobile(data){
var html = '';
html += '
';
html += '
手机号:'+data+'
';
html += '
';
html += '
发送验证码 ';
html += '";
html += "
";
html +='
手机格式不对 ';
html += "
";
$("body").append(html);
$('.dialog-box-3 .jf-footer a').on('touchend',function(){
var photoName = $('.china-m').html(),photoCode = $('.dialog-box-3 #jf-code').val();
if($(this).index()==0){
$('#confirmDialog').remove();
$(document).unbind('touchmove');
}else{
if($('.dialog-box-3 #jf-code').val()==0){
$('.error-bind').html('验证码不能为空').show();
}else{
httpGet("http://www.5you.cc/index.php/Wyb/checkbind?phone="+photoName+"&photoCode="+photoCode,function(data){
if(data.code==200){
$('#confirmDialog').remove();
var html ='';
html +='
';
html += ' ';
html += '恭喜您,账号绑定成功 ';
html += "
";
html += "
";
$("body").append(html);
setTimeout(function(){
$('.Prompt-b').remove();
window.location.reload()
},1500)
console.log(html)
}else{
$('.error-bind').html('验证码错误').show();
}
})
}
setTimeout(function(){
$('.error-bind').hide();
},1500)
}
return false;
})
$('.but-code').on('touchend',function(){
//httpGet("index.php/Index/userverify?phone="+photoName,function(data){
httpGet("http://www.5you.cc/index.php/Wyb/bindmob?phone="+data,function(data) {
if(data.code==200){
if(arr.codeBut){
seconds= 60;
arr.codeBut = false;
countDown(seconds);
}
}else{
$('.error-bind').html(data.msg).show();
}
//})
})
setTimeout(function(){
$('.error-bind').hide();
},1500)
})
}
function confirmMob(){
var html = '';
html += '
';
html += '
绑定手机 ';
html += '
";
html += "
";
html +='
手机格式不对 ';
html += "
";
$("body").append(html);
$('#jf-moile').focus(function(){
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isIOS){
$('#confirmDialog').css({'position':'absolute','top':'11rem'})
}else{
$('#confirmDialog').css({'position':'fixed','top':'0'})
}
});
$('#jf-moile').blur(function(){
$('#confirmDialog').css({'position':'fixed','top':0})
});
$('#jf-code').focus(function(){
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isIOS){
$('#confirmDialog').css({'position':'absolute','top':'11rem'})
}else{
$('#confirmDialog').css({'position':'fixed','top':'0'})
}
})
$('#jf-code').blur(function(){
$('#confirmDialog').css({'position':'fixed','top':0})
});
$('.dialog-box-1 .jf-footer a').on(touchEnd,function(){
var photoName = $('#jf-moile').val(),photoCode = $('#jf-code').val();
if($(this).index()==0){
$('#confirmDialog').remove();
$(document).unbind('touchmove');
}else{
if($('#jf-moile').val()==0){
$('.error-bind').html('手机号不能为空').show();
}else if($('#jf-code').val()==0){
$('.error-bind').html('验证码不能为空').show();
}else{
// httpGet("?phone="+photoName+"&photoCode="+photoCode,function(data){
httpGet("http://www.5you.cc/index.php/Wyb/checkbind?phone="+photoName+"&photoCode="+photoCode,function(data){
if(data.code==200){
$('#confirmDialog').remove();
var html ='';
html +='
';
html += ' ';
html += '恭喜您,账号绑定成功 ';
html += "
";
html += "
";
$("body").append(html);
setTimeout(function(){
$('.Prompt-b').remove();
window.location.reload()
},1500)
console.log(html)
}else{
$('.error-bind').html('验证码错误').show();
}
})
}
setTimeout(function(){
$('.error-bind').hide();
},1500)
}
return false;
})
$('#jf-moile').on('keyup',function(){
var chinamobile =/^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
console.log($(this).val());
if(chinamobile.test($(this).val())){
$('.form-error').show();
}else{
$('.form-error').hide();
}
})
$('#jf-moile').on('blur',function(){
var chinamobile =/^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
/*/^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;*/
if($(this).val()==""){
$('.error-bind').html('手机号不能为空').show();
}else if(!chinamobile.test($(this).val())){
$('.error-bind').html('非移动手机号或格式不正确').show();
}else{
$('.form-error').show();
}
setTimeout(function(){
$('.error-bind').hide();
},1500)
})
$('.but-code').on(touchEnd,function(){
var chinamobile = /^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
var photoName = $('#jf-moile').val();
if(photoName==""){
$('.error-bind').html('手机号不能为空').show();
}else if(!chinamobile.test(photoName)){
$('.error-bind').html('非移动手机号或格式不正确').show();
}else{
//httpGet("index.php/Index/userverify?phone="+photoName,function(data){
httpGet("http://www.5you.cc/index.php/Wyb/bindmob?phone="+photoName,function(data) {
if(data.code==200){
if(arr.codeBut){
seconds= 60;
arr.codeBut = false;
countDown(seconds);
}
}else{
$('.error-bind').html(data.msg).show();
}
//})
})
}
setTimeout(function(){
$('.error-bind').hide();
},1500)
})
}
function confirmDialog(txt, oklabel, cancellabel, okcallback, cancelcallback) {
var html = '';
html += '
';
html += "
提示信息
";
html += "
" + txt + "
";
html += '
';
html += '
";
if (oklabel) {
html += '
"
}
html += "
";
$("body").append(html);
$("#confirmDialog .flexs div").click(function() {
if ($(this).find('a').attr("class").indexOf("cancel") >= 0) {
if (cancelcallback) {
cancelcallback()
}
} else if ($(this).find('a').attr("class").indexOf("ok") >= 0) {
if (okcallback) {
okcallback()
}
}
$("#confirmDialog").remove()
})
}
function userlogin(){
//www.5you.cc/loginwww.html
/*var data={
code:0
}*/
$('.box-3').empty();
var typeHtml = '',
typeUid = '',
typeMoney = '',
typeLi = '',
typeImg = '',
classN = '',
lagout = '',
autonym = '',
jfmobile = "",
mobile = "",
heaeLo = '',
isyd = '',
typeArr = {x : ""};
//http://www.5you.cc/loginwww.html
httpGet("index.php/Index/longin",function(data){
console.log(data)
if(data.status==0){
typeHtml = "点击登录";
heaeLo = 'header-login';
classN = "login-btn";
typeImg="Public/img/headurl.png";
jfmobile = "";
}else{
jfmobile=data[0].jfmobile;
isyd = data[0].isyd;
mobile=data[0].mobile;
//classN="active";
heaeLo='';
typeHtml = data[0].username;
if(data[0].image==""){
typeImg="Public/img/headurl1.png";
}else{
typeImg=data[0].image;
}
data[0].idauth == 0 ? autonym='点击认证 ' : autonym='已认证 ';
typeLi='实名认证 '+autonym+'
'
typeUid ="伍游账号UID:"+ data[0].id;
typeMoney ="伍游币:"+data[0].wycoin;
lagout ='';
if(data[0].jfmobile){
typeArr.x = "取消绑定"
}else{
typeArr.x = "绑定手机"
}
}
var html = ''+
''+/*+lagout;*/
''+lagout;
$('.box-3').append(html);
if(isWeixin()){
$('.lgout').hide();
}
var chinamobile =/^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
$('.box-3 .row-1 li').on(touchEnd, function(ev){
/*if($(this).index()==5){
return false
}*/
console.log(ev.target.className);
if(data.status==0 && $(this).index()==0 || data.status==0 && $(this).index()==1 || data.status==0 && $(this).index()==2){
login(123);
$("body").bind("touchmove",function(event){
event.preventDefault();
});
}/*else if(!jfmobile && $(this).index()==1 && ev.target.className!="mob" && isyd==1){
chinaMobile(data[0].mobile);
}*/
else if(!chinamobile.test(mobile) && $(this).index()==1 && ev.target.className!="mob"){
dialog('抱歉,此服务仅支持移动用户!')
}else if(ev.target.className=="mob"){
return false;
}else{
window.location.href=$(this).find('a').attr('data-href');
}
})
$('.mob').on(touchEnd,function(){
$(document).on("touchmove",function(e) {
e.preventDefault();
})
if(isMobile()){
window.scrollTo(0, document.body.scrollHeight);
}
if(!data[0].jfmobile&&data[0].isyd){
chinaMobile(data[0].mobile);
}else if(!data[0].jfmobile){
confirmMob();
}else{
Cancelbind(data[0].jfmobile)
}
})
if($('.header-login')){
$('.header-login').on(touchEnd, function(){
$("body,html").css({
'height':'100%',
'overflow':'hidden'
})
login(123)
});
}
$('.approve').on(touchEnd, function(){
approve()
});
$('.per-header .active').on('tap', function(){
});
$('.lgout').on(touchEnd, function(){
httpGet("index.php/Index/logout",function(data){
if(data.status==0){
window.location.reload();
}
})
})
})
}
function userName(){
var html = ''+
'
'+
'
'+
'实名认证'+
'
'+
'
'+
''+
'
'+
'
';
$('body').append(html);
$('.app-footer a').on(touchEnd, function(){
if($(this).parent('div').index()==0){
$('.appr-box').remove();
}else{
httpGet("",function(data){
})
}
})
}
function approve(){
var html = ''+
'
'+
'
'+
'实名认证'+
'
'+
'
'+
''+
'
'+
'
';
$('body').append(html);
$('.app-footer a').on(touchEnd, function(){
if($(this).parent('div').index()==0){
$('.appr-box').remove();
}else{
var name = $('.user-name').val();
var namenum = $('.user-num').val();
if(name==""||namenum==""){
dialog("请输入姓名或身份证");
}else{
$.post('index.php/Index/idauth',{"name":name,"idcard":namenum},function(data){
console.log(data)
if(data.status==301){
dialog("身份证错误");
}else if(data.status==300){
dialog("身份证或姓名为空");
}else{
$('.appr-box').remove();
window.location.reload();
}
},'json')
/*httpPost("index.php/Index/idauth?name="+name+'&idcard='+namenum,function(data){
console.log(data)
if(data.status==300){
dialog("身份证或姓名错误");
}else{
$('.appr-box').remove();
}
})*/
}
}
})
}
function login(type,item){
var html=''+
'
'+
'
'+
'登录 '+
'
'+
'
'+
'
'+
'
'+
'
'+
/*'
微信登录 '+
'
微信 '+*/
'
QQ '+
'
微博 '+
'
短信 '+
' '+
'
取消 '+
'
'+
'
'+
'
';
if(type==123){
$('.box-3').append(html);
}else if(type==456){
$('body').append(html);
}
$('#tagYgLogin').on(touchEnd, function(){
$('body').css({
"height":'100%',
'overflow':'auto'
})
$('.log-b').remove();
$("body").unbind("touchmove");
return false
});
var typeIndex = "";
if(item){
typeIndex="type="+item;
//alert(typeIndex)
}else{
typeIndex=""
}
$('#login-list li').on(touchEnd,function(){
if($(this).index()==0){
httpGet("http://www.5you.cc/index.php/Index/gameurl?"+typeIndex,function(data){
})
window.location.href="http://open.51094.com/user/hezuo/1.html?appid=1575e645c3ce2e&token=82a54cb99865f5059783ea362f3a3030";
document.cookie='hzy_login_back='+document.referrer+';path=/';
}else if($(this).index()==1){
window.location.href="https://api.weibo.com/oauth2/authorize?client_id=3623707327&response_type=code&redirect_uri=http://www.5you.cc/weiboOauth.html?"+typeIndex+"";
}else if($(this).index()==2){
if (!$(".login-yg").length) {
loadContentAnimate(loadYgLgMain());
}else {
$("#custom-login-box").empty()
}
$(".login-mode").hide();
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
}
var c = $(document).height();
console.log(c)
if (isIOS) {
if(location.hash=="#gift"){
$('body').css({
"height":$(window).height()
})
$('#ctPwd').focus(function(){
$('.login-box').css({
'position':'absolute',
'top' : 180
})
});
}
$('#ctUser').focus(function(){
$('.login-box').css({'position':'absolute','overflow':'hidden'})
$('body,html').css({
"height":'100%',
'overflow':'hidden'
})
});
$('#ctPwd').focus(function(){
/*$('.login-box').css({
'position':'fixed',
'top' : '100px'
})*/
});
$('#ctUser').blur(function(){
console.log(c)
$('.login-box').css({
'position':'fixed',
'top' : 0
})
})
$('#ctPwd').blur(function(){
console.log(c)
$('.login-box').css({
'position':'fixed',
'top' : 0
})
})
}
$('.log-b .app-footer div').on(touchEnd,function(){
if($(this).index()==0){
/*$('.login-box,.login-box>div').css({"position":"fixed"})*/
$(".login-mode").show()
$('#custom-login-box').empty();
}else if($(this).index()==1){
var nameVal = $('[name="username"]').val(),
password = $('#ctPwd').val();
if(nameVal==""){
dialog("请输入手机号!");
}else if(password==""){
dialog("请输入验证码");
}else{
httpGet("index.php/Index/useradd?phone="+nameVal+'&password='+password,function(data){
window.location.reload()
})
}
}
});
seconds = 60;
$('.code-cont').on(touchEnd, function(){
var nameVal = $('[name="username"]').val();
if(nameVal==""){
dialog("请输入手机号!");
}else{
if(arr.codeBut){
arr.codeBut = false;
httpGet("index.php/Index/userverify?phone="+nameVal,function(data){
countDown(seconds);
})
}
}
});
}
/*if($(this).index()==1){
window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxff97e118ef989647&redirect_uri=http://www.5you.cc/weixinOauth.html?"+typeIndex+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}else if($(this).index()==2){
httpGet("http://www.5you.cc/index.php/Index/gameurl?"+typeIndex,function(data){
})
window.location.href="http://open.51094.com/user/hezuo/1.html?appid=1575e645c3ce2e&token=82a54cb99865f5059783ea362f3a3030";
document.cookie='hzy_login_back='+document.referrer+';path=/';
}
else if($(this).index()==3){
window.location.href="https://api.weibo.com/oauth2/authorize?client_id=3623707327&response_type=code&redirect_uri=http://www.5you.cc/weiboOauth.html?"+typeIndex+"";
}
else if($(this).index()==4){
if (!$(".login-yg").length) {
loadContentAnimate(loadYgLgMain());
console.log($(".login-yg").length)
}else {
$("#custom-login-box").empty()
}
$(".login-mode").hide();
$('.log-b .app-footer div').on('tap',function(){
if($(this).index()==0){
$(".login-mode").show()
$('#custom-login-box').empty();
}else if($(this).index()==1){
var nameVal = $('[name="username"]').val(),
password = $('#ctPwd').val();
if(nameVal==""){
dialog("请输入手机号!");
}else if(password==""){
dialog("请输入验证码");
}else{
httpGet("index.php/Index/useradd?phone="+nameVal+'&password='+password,function(data){
window.location.reload()
})
}
}
});
seconds = 60;
$('.code-cont').on('touchend', function(){
var nameVal = $('[name="username"]').val();
if(nameVal==""){
dialog("请输入手机号!");
}else{
if(arr.codeBut){
arr.codeBut = false;
httpGet("index.php/Index/userverify?phone="+nameVal,function(data){
countDown(seconds);
})
}
}
});
}*/
})
}
function countDown(seconds)
{
var txt ='重新发送('+((seconds < 10) ? "0" + seconds : seconds)+')';
$('.code-cont').html(txt).addClass('send');
var timeId = setTimeout("countDown(--seconds)", 1000);
if (seconds == 0)
{
clearTimeout(timeId);
arr.codeBut= true;
$('.code-cont').html('获取验证码').removeClass('send');
}
}
function dialog(txt, callback){
var html = '';
html += '
';
html += '
提示信息
';
html += '
' + txt + "
";
html += '
';
html += '
确定 ';
html += "
";
$("body").append(html);
$(".dialog_ft .config").on(touchEnd,function() {
$("#dialogBox").remove();
})
}
function loadYgLgMain() {
//获取验证码
var html = '
';
html += '
';
html += '获取验证码 ';
html += '';
/*html += '';
html += '
登录 ';
html += '
其他登录方式 ';
html += "
";*/
html += ''
return html
}
function loadContentAnimate(fn) {
$("#custom-login-box").empty().append(fn);
$("#custom-login-box").removeClass("login-animate");
setTimeout(function() {
$("#custom-login-box").addClass("login-animate");
//loadMpClickMain()
},
1)
}
function loadGameInfo(id, e,num) {
if(e){
if(tapBut){
tapBut=false;
if(e.find('ul').find('li').length==1){
//$(e).html('收回 ')
httpGet("index.php/Index/spreegame?gd=" + id,
//http://web.11h5.com:4600/api?token=0891d88846acd502ceee332e91f38d05&cmd=getGameInfo&id=123&1495448242631
//httpGet("http://web.11h5.com:4600/api?token=0891d88846acd502ceee332e91f38d05&cmd=getGameInfo&id=" + id,
function(data) {
var _data = data,
gift = data.gift;
html = "";
for (var i = 1; i < _data.sinfo.length; i++) {
//console.log(_data.sinfo)
html += fillGift(_data.sinfo[i], id, _data.sinfo.game_url)
}
console.log(html)
e.find('ul').append(html);
e.find('.more').html('收回 ')
tapBut=true;
})
}else{
var type = num -1;
e.find('.more').html('查看更多礼包('+type+') ')
e.find('ul').find('li').eq(0).siblings().remove()
tapBut=true;
}
}
}else{
$('.box-4').empty()
httpGet("index.php/Index/spreegame?gd=" + id,
//http://web.11h5.com:4600/api?token=0891d88846acd502ceee332e91f38d05&cmd=getGameInfo&id=123&1495448242631
//httpGet("http://web.11h5.com:4600/api?token=0891d88846acd502ceee332e91f38d05&cmd=getGameInfo&id=" + id,
function(data) {
var _data = data,
gift = _data.sinfo;
html = "";
location.hash = "game/" + id;
var count = 0,
isGift = false,
isNews = false,
isStrategy = false,
_id = location.hash.split("/")[1];
html += '';
html += '
';
html += '
';
html += '
';
html += "
";
html += "
" + _data.info[0].name + "
";
html += "
" + _data.info[0].recommend + "
";
html += "
";
html += '
开始游戏 ';
html += "
";
html += '
';
html += " 游戏简介 ";
html += "";
/*_data.description = _data.description.replace(/\r\n/gi, "|").replace(/\[more]/gi, " ");
if (_data.description.length > 150) {
var _des = _data.description.substring(0, 150),
_subDes = _data.description.substring(150, _data.description.length);
if (_des.substr( - 1) == "|") {
_des = _data.description.substring(0, 149);
_subDes = _data.description.substring(149, _data.description.length)
}
if (_subDes.substr( - 1) == "|") {
_subDes = _subDes.substring(0, _subDes.length - 1)
}
html += '' + _des.replace(/\|/gi, " ") + '... ") + '" onclick="showMore(this)" class="tags-coupon">更多
'
} else {*/
html += '' + _data.info[0].content_game + "
"
/*}*/
html += " ";
html += " ";
html += '
';
html += '
';
for(var key in _data.info[0].screenshot_game){
html += '
';
}
html += "
";
html += "
";
if(gift==null){
isGift=false;
}else{
if (gift.length > 0) {
count++;
isGift = true
}
}
if(_data.ninfo==null){
isNews=false;
}else{
if (_data.ninfo.length > 0) {
count++;
isNews = true
}
}
if (count > 1) {
html += '
';
if (isNews) {
html += '资讯 '
}
if (isGift) {
html += '礼包 '
}
if (isStrategy) {
html += '攻略 '
}
html += " ";
html += '
';
if (isNews) {
html += '
';
for (var i in _data.ninfo) {
html += fillInfo(_data.ninfo[i])
}
html += " "
}
if (isGift) {
html += '
';
for (var i in gift) {
html += fillGift(gift[i], id, _data.game_url)
}
html += " "
}
if (isStrategy) {
fillStrategy()
}
html += "
"
} else {
if (isGift) {
html += '
';
html += " 游戏礼包 ";
html += '';
html += '';
for (var i in gift) {
html += fillGift(gift[i], id, _data.game_url)
}
html += " ";
html += " ";
html += " "
}
if (isNews) {
html += '
';
html += " 游戏资讯 ";
html += '';
html += '';
for (var i in _data.ninfo) {
html += fillInfo(_data.ninfo[i])
}
html += " ";
html += " ";
html += " "
}
if (isStrategy) {
html += '
';
html += " 游戏攻略 ";
html += '';
fillStrategy();
html += " ";
html += " "
}
}
html += "
";
if(!$(".box-4").html()){
$(".box-4").append(html);
}
gameSwiper();
$(".game-info .nav li.has-gift").addClass("active");
$(".game-info div.show-box ol.show-box-gift").addClass("active");
if (arr.hasGift) {
arr.hasGift = false
}
})
}
}
function gameSwiper(){
var swiper1 = new Swiper('.game-swiper', {
slidesPerView: 1.9,
spaceBetween: 15,
autoplayDisableOnInteraction: false
});
}
function bannerr(){
var navSwipers = $('.swiper-na').swiper(
{
visibilityFullFit : true,
slidesPerView : 'auto',
observer:true,//修改swiper自己或子元素时,自动初始化swiper
observeParents:true,//修改swiper的父元素时,自动初始化swiper
autoplayDisableOnInteraction : false,
})
var swiper = new Swiper('.slide-b', {
pagination: '.swiper-pagination',
spaceBetween: 30,
autoplay: 3000,
loop : true,
observer:true,//修改swiper自己或子元素时,自动初始化swiper
observeParents:true,//修改swiper的父元素时,自动初始化swiper
autoplayDisableOnInteraction : false,
});
}
function fillGift(data, id, url, callback) {
var html = "";
var open_time = new Date(data.effect_time * 1e3);
var percent = parseInt((data.sum - data.getcount) * 100 / data.sum);
var disabled = false;
if (callback) {
html += "";
html += '';
html += '
';
html += '
';
html += "
" + data.name + "
";
/*data.depict="福利-兑换码";*/
if (data.spree_info) {
html += "
" + data.spree_info + "
"
}
html += "
";
html += "
";
html += ""
}
html += '';
html += '';
html += "
" + data.title;
if (data.union_code) {
html += '统一码 '
}
html += "
";
html += "
" + data.recommend + "
";
if (data.nums == '0%') {
html += "
此礼包已经发完了~
";
disabled = true
} else {
if (data.spree_ma) {
html += "
已领取:" + data.spree_ma + "
"
} else {
arr.hasGift = true;
html += "
礼包剩余:" + data.nums + "
"
}
}
html += '
';
html += "
";
html += '"
html += " ";
if (callback) {
html += " ";
if (data.gnum > 1) {
//html += '查看更多礼包(' + (data.gnum - 1) + ")
"
html += '查看更多礼包(' + (data.gnum - 1) + ")
"
}
html += " "
}
return html
}
function tabLabel(e) {
$(e).addClass("active").siblings().removeClass("active");
$(e).parent().next().find("ol").eq($(e).index()).addClass("active").siblings().removeClass("active")
}
function fillInfo(data) {
var html = "",
infoClass = "";
html += '';
if(data.key2=="公告"){
infoClass = "tags-recommend";
}
if(data.key2=="活动"){
infoClass = "tags-recommend1";
}
if(data.key2=="开服"){
infoClass = "tags-recommend2";
}
if(data.key2=="攻略"){
infoClass = "tags-recommend3";
}
if(data.key2=="评测"){
infoClass = "tags-recommend4";
}
if(data.key2=="新闻"){
infoClass = "tags-recommend5";
}
html += ''+data.key2+' '
html += '' + data.title + " ";
html += "" + data.times + " ";
html += " ";
return html
}
Date.prototype.format = function(format) {
var o = {
"M+": this.getMonth() + 1,
"d+": this.getDate(),
"h+": this.getHours(),
"m+": this.getMinutes(),
"s+": this.getSeconds()
};
if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
return format
};
function isLocalStorageSupported() {
var testKey = 'test',
storage = window.sessionStorage;
try {
storage.setItem(testKey, 'testValue');
return true;
} catch (error) {
alert('请打开无痕模式')
return false;
}
}
//isLocalStorageSupported()
function setCookie(name, value) {
var exp = new Date();
exp.setTime(exp.getTime() + 60 * 60 * 1000);
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() + ";path=/";
}
function getCookie(name){
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
function getCode(id, type, url, e) {
httpGet("index.php/Index/getspree?gd=" + id + "&spree_id=" + type,
function(data) {
if(data.user_id==0){
login(456,"gift")
$("body").bind("touchmove",function(event){
event.preventDefault();
})
}else{
var txt = "礼包码: ";
txt += "每个账号只能领取一次";
txt += '长按复制、三小时激活
';
txt += '长按复制、三小时激活
';
confirmDialog(txt, "游戏内显示", "关闭",
function() {
window.localStorage.setItem("giftCode",data.spree_ma);
window.localStorage.setItem("gameid",data.game_id);
window.location.href="http://www.5you.cc"+data.key3;
tapBut= true;
//window.location.href="http://www.5you.cc"+data.key3;
},
function() {
$(e).html("查看").prev().find("p:last-child").html("已领取:" + data.spree_ma)
})
}
//login()
})
}
function alertBox(){
$('.mask').css({'display':'block',opacity:100,'zIndex':99});
$('.alertBox').css({'display':'block','zIndex':100});
tweenMove({
obj:$('.alertBox').get(0),
oTarget:{'translateY':($(window).height() - $('.alertBox').height())/2,'opacity':100},
iTime:300,
iType:'backOut'
});
function closeMessage( ev ){
$('.mask').css({'display':'none','height':$(window).height(),opacity:0});
tweenMove({
obj:$('.alertBox').get(0),
oTarget:{'translateY':0,'opacity':0},
iTime:300,
iType:'backOut',
fnEnd:function(){
$('.alertBox').remove();
$('.mask').css({'zIndex':'5'});
}
});
ev.preventDefault();
}
$('.close').get(0).addEventListener('touchend',closeMessage,false);
$('.mask').get(0).addEventListener('touchend',closeMessage,false);
}
function isWeixin() {
return navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger"
}
function stopTouchendPropagationAfterScroll(){
var flag = false;
window.addEventListener('touchmove', function(ev){
flag || (flag = true, window.addEventListener('touchend', stopTouchendPropagation, true));
}, false);
function stopTouchendPropagation(ev){
ev.stopPropagation();
setTimeout(function(){
window.removeEventListener('touchend', stopTouchendPropagation, true);
flag = false;
}, 50);
}
}
stopTouchendPropagationAfterScroll()
/*function tabIndex(num){
$('.nav li').eq(num).addClass('active').siblings().removeClass('active');
$('.show-box .tab').eq(num).show().siblings().hide()
}*/