工会web
This commit is contained in:
81
GonghuiWeb/www/m/js/del/mj2.js
Normal file
81
GonghuiWeb/www/m/js/del/mj2.js
Normal 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');
|
||||
Reference in New Issue
Block a user