真服了妈妈[code]
query(“SELECT * from pay_qrlist WHERE `pid`='{$userrow[‘pid’]}’ and hook_type=’0′”)->rowCount();
$sql=” `pid`='{$userrow[‘pid’]}'”;
$con=’共有 ‘.$numrows.’ 条记录’;
$alipay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’alipay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$wxpay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’wxpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$qqpay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’qqpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$alipay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’alipay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$wxpay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’wxpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$qqpay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’qqpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
?>
$(‘#myModal’).modal(‘show’);
function showQrlist(id) {
var ii = layer.load(2, {shade: [0.1, ‘#fff’]});
var status = [‘未支付’, ‘已支付’, ‘已退款’];
$.ajax({
type: ‘GET’,
url: ‘Ajax.php?act=Qrlist&id=’ + id,
dataType: ‘json’,
success: function (data) {
layer.close(ii);
if (data.code == 0) {
var data = data.data;
var item = ”;
item += ‘监控金额’ + data.money + ‘‘;
item += ‘二维码类型’ + data.type + ”;
item += ‘总订单详细’ + data.ali_order + ”;
item += ‘今日详细’ + data.jr_order + ”;
item += ‘昨日详细’ + data.zr_order + ”;
item += ”;
var area = [$(window).width() > 480 ? ‘480px’ : ‘100%’];
layer.open({
type: 1,
area: area,
title: ‘二维码详细信息’,
skin: ‘layui-layer-rim’,
content: item
});
} else {
layer.alert(data.msg);
}
},
error: function (data) {
layer.msg(‘服务器错误’);
return false;
}
});
}
function pay_pass() {//POST提交
var pay_pass = $(“#pay_pass”).val();
var ii = layer.load(3, {shade: [0.1, ‘#fff’]});
$.ajax({
type: “POST”,
url: “Ajax2.php?act=Pay_pass”,
data: {pay_pass},
dataType: ‘json’,
timeout: 10000,
success: function (data) {
layer.close(ii);
layer.msg(data.msg);
if (data.code == 1) {
setTimeout(function () {
location.reload();
}, 1000); //延时1秒跳转
} else if (data.code == 0) {
setTimeout(function () {
window.location.href = ‘Api_Set.php’;
}, 1000); //延时1秒跳转
}
},
error: function (data) {
layer.close(ii);
layer.msg(‘服务器错误’);
}
});
}
$(‘#shanchu’).on(‘show.bs.modal’, function (event) {
var btnThis = $(event.relatedTarget); //触发事件的按钮
var modal = $(this); //当前模态框
var modalId = btnThis.data(‘id’); //解析出data-id的内容
var content = btnThis.closest(‘tr’).find(‘td’).eq(0).text();
modal.find(‘.ca0’).val(content);
var content = btnThis.closest(‘tr’).find(‘td’).eq(6).text();
modal.find(‘.ca6’).val(content);
真服了妈妈[code]
query(“SELECT * from pay_qrlist WHERE `pid`='{$userrow[‘pid’]}’ and hook_type=’0′”)->rowCount();
$sql=” `pid`='{$userrow[‘pid’]}'”;
$con=’共有 ‘.$numrows.’ 条记录’;
$alipay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’alipay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$wxpay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’wxpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$qqpay_cookie_ok=$DB->query(“SELECT count(*) from pay_qrlist where status=’1′ and hook_type=’0′ and type=’qqpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$alipay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’alipay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$wxpay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’wxpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
$qqpay_cookie_no=$DB->query(“SELECT count(*) from pay_qrlist where status!=’1′ and hook_type=’0′ and type=’qqpay’ and `pid`='{$userrow[‘pid’]}'”)->fetchColumn();
?>
$(‘#myModal’).modal(‘show’);
function showQrlist(id) {
var ii = layer.load(2, {shade: [0.1, ‘#fff’]});
var status = [‘未支付’, ‘已支付’, ‘已退款’];
$.ajax({
type: ‘GET’,
url: ‘Ajax.php?act=Qrlist&id=’ + id,
dataType: ‘json’,
success: function (data) {
layer.close(ii);
if (data.code == 0) {
var data = data.data;
var item = ”;
item += ‘监控金额’ + data.money + ‘‘;
item += ‘二维码类型’ + data.type + ”;
item += ‘总订单详细’ + data.ali_order + ”;
item += ‘今日详细’ + data.jr_order + ”;
item += ‘昨日详细’ + data.zr_order + ”;
item += ”;
var area = [$(window).width() > 480 ? ‘480px’ : ‘100%’];
layer.open({
type: 1,
area: area,
title: ‘二维码详细信息’,
skin: ‘layui-layer-rim’,
content: item
});
} else {
layer.alert(data.msg);
}
},
error: function (data) {
layer.msg(‘服务器错误’);
return false;
}
});
}
function pay_pass() {//POST提交
var pay_pass = $(“#pay_pass”).val();
var ii = layer.load(3, {shade: [0.1, ‘#fff’]});
$.ajax({
type: “POST”,
url: “Ajax2.php?act=Pay_pass”,
data: {pay_pass},
dataType: ‘json’,
timeout: 10000,
success: function (data) {
layer.close(ii);
layer.msg(data.msg);
if (data.code == 1) {
setTimeout(function () {
location.reload();
}, 1000); //延时1秒跳转
} else if (data.code == 0) {
setTimeout(function () {
window.location.href = ‘Api_Set.php’;
}, 1000); //延时1秒跳转
}
},
error: function (data) {
layer.close(ii);
layer.msg(‘服务器错误’);
}
});
}
$(‘#shanchu’).on(‘show.bs.modal’, function (event) {
var btnThis = $(event.relatedTarget); //触发事件的按钮
var modal = $(this); //当前模态框
var modalId = btnThis.data(‘id’); //解析出data-id的内容
var content = btnThis.closest(‘tr’).find(‘td’).eq(0).text();
modal.find(‘.ca0’).val(content);
var content = btnThis.closest(‘tr’).find(‘td’).eq(6).text();
modal.find(‘.ca6’).val(content);
});
更新二维码
×
请用对应二维码的支付宝或QQ扫码哦
[/code]
不让连续评论,我评论了三遍了,就是看不见,评论了看不见了,赶紧修复
牛逼克卡
8
888888888888888888888888
不错不错