工会web

This commit is contained in:
cyw
2026-02-24 09:25:17 +08:00
parent 6444f9f72e
commit ab4066dd14
801 changed files with 74278 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
function dh(ty){
if(!ty){
ty = 'main';
}
$(".tab .xfl").removeClass('tab_dhs');
$("#tab_"+ty).addClass('tab_dhs');
loadnr(ty);
}
function loadnr(ty){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/dh/', {
ty : ty,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
function test(){
alert(11);
}
function exchange(eid,grade,dgrade){
if(dgrade > grade){
var cgrade = dgrade-grade;
layer.open({content: '您的经验值不够<br>还差'+cgrade+'经验<br>来继续游戏赚经验吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(eid > 4){
var contt = "您将扣除"+dgrade+"经验值<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dgrade+"经验值";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/jp.php', {
eid : eid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
window.location.reload();
}});
});
}});
}
}
loadnr('main');

View File

@@ -0,0 +1,97 @@
function dh(ty){
if(!ty){
ty = 'main';
}
$(".tab .xfl").removeClass('tab_dhs');
$("#tab_"+ty).addClass('tab_dhs');
loadnr(ty);
}
function loadnr(ty,sort){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/gh/index.php', {
ty : ty,
sort : sort,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
loadnr('main');
function union(ty,idd,titnr){
var code = 0;
var ntitle = "";
var nnr = "";
if(ty == 'join'){
code = $("#jcode").val();
if(!code){
layer.closeAll();
layer.open({content: '请输入公会码!',style: 'width:180px;',btn: '我知道了'});
return false;
}
}else if(ty == 'add'){
code = $("#ccode").val();
ntitle = $("#cname").val();
if(!code || !ntitle){
layer.closeAll();
layer.open({content: '请填写完整!',style: 'width:180px;',btn: '我知道了'});
return false;
}
nnr = $("#cgg").val();
}else if(ty == 'out'){
var tit = "是否退出公会?";
}else if(ty == 'dels'){
var unren = $("#un-ren").val();
if(unren > 1){
layer.open({content: '点击头像把所有成员踢出公会<br>才可以解散公会',style: 'width:220px;',btn: '我知道了'});
return false;
}else{
var tit = "是否解散公会?";
}
}
if(titnr){
var tit = titnr;
}
if(tit){
layer.open({content: tit,style: 'width:200px;',btn: ['确定', '取消'],yes: function(index){
layer.open({type:2,shade:false});
$.get('/gh/cl.php', {
ty : ty,
gameid : gid,
code : code,
ntitle : ntitle,
nnr : nnr,
idd : idd
}, function(data, status) {
layer.closeAll();
if(data == 'ok'){
loadnr('main');
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}});
}else{
layer.open({type:2,shade:false});
$.get('/gh/cl.php', {
ty : ty,
gameid : gid,
code : code,
ntitle : ntitle,
nnr : nnr,
idd : idd
}, function(data, status) {
layer.closeAll();
if(data == 'ok'){
loadnr('main');
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}
}

View File

@@ -0,0 +1,173 @@
function dh(ty){
if(!ty){
ty = 'main';
}
$(".tab .xfl").removeClass('tab_dhs');
$("#tab_"+ty).addClass('tab_dhs');
loadnr(ty);
}
function loadnr(ty,idd,sort){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/gong/index.php', {
ty : ty,
idd : idd,
sort : sort,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
loadnr('main');
function union(ty,idd,titnr,ida){
var code = 0;
var ntitle = "";
var nnr = "";
if(ty == 'join'){
code = $("#jcode").val();
if(!code){
layer.closeAll();
layer.open({content: '请输入公会码!',style: 'width:180px;',btn: '我知道了'});
return false;
}
}else if(ty == 'add'){
code = $("#ccode").val();
ntitle = $("#cname").val();
card = $("#ccard").val();
if(!code || !ntitle || !card){
layer.closeAll();
layer.open({content: '请填写完整!',style: 'width:180px;',btn: '我知道了'});
return false;
}
if(card < 80){
layer.closeAll();
layer.open({content: '必须要有80张房卡',style: 'width:180px;',btn: '我知道了'});
return false;
}
}else if(ty == 'out'){
card = ida;
var tit = "是否退出公会?";
}else if(ty == 'dels'){
var unren = $("#un-ren").val();
if(unren > 1){
layer.open({content: '点击头像把所有成员踢出公会<br>才可以解散公会',style: 'width:220px;',btn: '我知道了'});
return false;
}else{
var tit = "是否解散公会?";
}
}
if(titnr){
var tit = titnr;
}
if(tit){
layer.open({content: tit,style: 'width:200px;',btn: ['确定', '取消'],yes: function(index){
layer.open({type:2,shade:false});
$.get('/gong/cl.php', {
ty : ty,
gameid : gid,
code : code,
card : card,
ntitle : ntitle,
nnr : nnr,
idd : idd
}, function(data, status) {
layer.closeAll();
if(data == 'ok'){
if(ty == 'out' && titnr){
loadnr('main',ida);
}else{
loadnr('main');
}
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}});
}else{
layer.open({type:2,shade:false});
$.get('/gong/cl.php', {
ty : ty,
gameid : gid,
code : code,
card : card,
ntitle : ntitle,
nnr : nnr,
idd : idd
}, function(data, status) {
layer.closeAll();
if(data == 'ok'){
loadnr('main');
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}
}
//修改公会信息
function unionEdit(ty){
var tit ="";
if(ty == 'join'){
var gids = $("#gids").val();
var unionid = $("#unionid").val();
var opens = $('input:radio[name=open]:checked').val();
if(!gids){
layer.open({content:"请输入游戏ID",style: 'width:220px;',btn: '我知道了'});
return false;
}
var postdara = {ty:'join',gameid:gid,gid:gids,opens:opens};
}else if(ty == 'fang'){
var fang = $("#fang").val();
if(fang < 10){
layer.open({content:"转入房卡最少10张起",style: 'width:220px;',btn: '我知道了'});
return false;
}
tit = "转入"+fang+"张房卡<br>一旦转入不能转出";
var postdara = {ty:'zhuan',gameid:gid,fang:fang};
}else{
var code = $("#ccode").val();
var names = $("#cname").val();
if(!names){
layer.open({content:"公会名称必须输入",style: 'width:220px;',btn: '我知道了'});
return false;
}
var nr = $("#cgg").val();
var postdara = {ty:'edit',gameid:gid,code:code,names:names,nr:nr};
}
if(tit){
layer.open({content: tit,style: 'width:200px;',btn: ['确定', '取消'],yes: function(index){
layer.open({type:2,shade:false});
$.get('/gong/cl.php', postdara, function(data, status) {
layer.closeAll();
if(data == 'ok'){
loadnr('adm');
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}});
}else{
layer.open({type:2,shade:false});
$.get('/gong/cl.php', postdara, function(data, status) {
layer.closeAll();
if(data == 'ok'){
layer.open({content: "操作成功!",style: 'width:220px;',btn: '我知道了',yes: function(index){
if(ty == 'join'){
dh('main');
loadnr('main',unionid);
}else{
loadnr('adm');
}
}});
}else{
layer.open({content: data,style: 'width:220px;',btn: '我知道了'});
}
});
}
}

View File

@@ -0,0 +1,81 @@
function dh(ty){
if(!ty){
ty = 'ds';
}
$(".tab .xfl").removeClass('tab_dhs');
$("#tab_"+ty).addClass('tab_dhs');
loadnr(ty);
}
function loadnr(ty){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/dh/index.php', {
ty : ty,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
function test(){
alert(11);
}
function duihuan(sid,yuanbao,dyuanbao,stitle){
if(dyuanbao > yuanbao){
var cyuanbao = dyuanbao-yuanbao;
layer.open({content: '您的元宝不够<br>还差'+cyuanbao+'个元宝<br>来继续游戏赚元宝吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(sid == 5 || sid == 6){
layer.open({content: '请到好友栏目点击查看!',style: 'width:180px;',btn: '我知道了'});
return "";
}else if(sid > 6){
var contt = "您将扣除"+dyuanbao+"个元宝<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dyuanbao+"个元宝";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/jp.php', {
sid : sid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
var d = new Date(),str = '';
str = d.getMonth() + 1+'-'+d.getDate()+' '+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds();
$("#shop_log").prepend("<li>"+nickname+"<br>兑换 "+stitle+"<br><font color='red'>今天</font> "+str+"</li>");
var ybs = $("#yuanbao").text();
$("#yuanbao").text(parseInt(ybs)-parseInt(dyuanbao));
//window.location.reload();
layer.closeAll();
}});
});
}});
}
}
/*
function exchange(eid,grade,dgrade){
if(dgrade > grade){
var cgrade = dgrade-grade;
layer.open({content: '您的经验值不够<br>还差'+cgrade+'经验<br>来继续游戏赚经验吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(eid > 4){
var contt = "您将扣除"+dgrade+"经验值<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dgrade+"经验值";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/jp.php', {
eid : eid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
window.location.reload();
}});
});
}});
}
}*/
loadnr('ds');

View File

@@ -0,0 +1,81 @@
function dh(ty){
if(!ty){
ty = 'mobile';
}
$(".tab .xfl").removeClass('tab_dhs');
$("#tab_"+ty).addClass('tab_dhs');
loadnr(ty);
}
function loadnr(ty){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/dh/index2.php', {
ty : ty,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
function test(){
alert(11);
}
function duihuan(sid,yuanbao,dyuanbao,stitle){
if(dyuanbao > yuanbao){
var cyuanbao = dyuanbao-yuanbao;
layer.open({content: '您的元宝不够<br>还差'+cyuanbao+'个元宝<br>来继续游戏赚元宝吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(sid == 5 || sid == 6){
layer.open({content: '请到好友栏目点击查看!',style: 'width:180px;',btn: '我知道了'});
return "";
}else if(sid > 6){
var contt = "您将扣除"+dyuanbao+"个元宝<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dyuanbao+"个元宝";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/jp.php', {
sid : sid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
var d = new Date(),str = '';
str = d.getMonth() + 1+'-'+d.getDate()+' '+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds();
$("#shop_log").prepend("<li>"+nickname+"<br>兑换 "+stitle+"<br><font color='red'>今天</font> "+str+"</li>");
var ybs = $("#yuanbao").text();
$("#yuanbao").text(parseInt(ybs)-parseInt(dyuanbao));
//window.location.reload();
layer.closeAll();
}});
});
}});
}
}
/*
function exchange(eid,grade,dgrade){
if(dgrade > grade){
var cgrade = dgrade-grade;
layer.open({content: '您的经验值不够<br>还差'+cgrade+'经验<br>来继续游戏赚经验吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(eid > 4){
var contt = "您将扣除"+dgrade+"经验值<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dgrade+"经验值";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/jp.php', {
eid : eid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
window.location.reload();
}});
});
}});
}
}*/
loadnr('ds');