function dpdocd(classid,id){
$.ajax({
type:'post',
dateType:'JSON',
url:'/e/dongpo/word/index.php',
data:"enews=getdoc&classid="+classid+"&id="+id,
success:function(res){
var rs=$.parseJSON(res);
var x = $("#other_newstext").offset().left - 108;
var y = $("#other_newstext").offset().top - 180;
var tt = y - 14;
if(rs.s==0){
simpletip(rs.m,"yuedutip",x,y,tt);
}else{
$("#other_newstext").html(rs.m);
}
}
});
}
function getli(){
$(".payxxbox li").click(function(){
$(".payxxbox li").removeClass("on");
$(this).addClass("on");
var i=$(this).index();
$(".jhch4").text(jhcgsay[i]);
});
}
function dpdown(classid,id){
$.ajax({
type:'post',
dateType:'JSON',
url:'/e/dongpo/word/index.php',
data:"enews=down&classid="+classid+"&id="+id,
success:function(res){
var rs=$.parseJSON(res);
var x = $("#down_link").offset().left - 108;
var y = $("#down_link").offset().top - 180;
var tt = y - 14;
simpletip(rs.m,"xiazaitip",x,y,tt);
}
});
}
function showall(classid,id){
$.ajax({
type:'post',
dateType:'JSON',
url:'/e/dongpo/word/show.php',
data:"classid="+classid+"&id="+id,
success:function(res){
var rs=$.parseJSON(res);
$("#other_newstext").html(rs.m);
$("#down_link").html(rs.d);
}
});
}
function simpletip(msg,clsName,x,y,tt){
//$(".downtip").remove();
//$("body").append("
"+msg+"
");
// $("."+clsName).css({"position":"absolute","left":x,"top":y,"z-index":101}).animate({"top":tt},1);
//$("."+clsName).css({"position":"absolute","left":300,"top":y,"z-index":101,"top":tt});
//setTimeout(function(){$("."+clsName).hide();},50000);
layer.open({
title: '下载文档',
shift:5,
area:'540px',
btn:[],
//btn: ['关闭'],
content:msg
});
getli();
}
function checkcopy(classid,id){
$.ajax({
type:'post',
dateType:'JSON',
url:'/e/dongpo/word/index.php',
data:"enews=down&classid="+classid+"&id="+id,
success:function(res){
var rs=$.parseJSON(res);
var screenWidth = $(window).width();
var screenHeigth = $(window).height();
var scollTop = $(document).scrollTop();
var objLeft = (screenWidth - 500) / 2;
var objTop = (screenHeigth - 350) / 2 + scollTop;
simpletipcopy(rs.m,"yuedutip2",objLeft,objTop);
}
});
}
function simpletipcopy(msg,clsName,objLeft,objTop){
layer.open({
title: '系统提醒',
area:'540px',
shift:5,
btn:[],
content:msg
});
getli();
}
//yecha add
function buygroup(id,payid,type){
var payfs="";
if(payid==3){
layer.open({
type: 2,
title: '支付宝支付',
area: ['540px', '450px'],
content: '/e/payapi/alipay/paysm.php'
});
window.open('/e/payapi/BuyGroupPayc.php?payid='+payid+'&id='+id+'&istype='+type);
} else {
layer.open({
type: 2,
title: '微信支付'+payfs,
area: ['540px', '450px'],
//content: '/e/payapi/pcweixin/success1.php'
content: '/e/payapi/BuyGroupPayc.php?payid='+payid+'&id='+id+'&istype='+type
});
}
}
function buypay(payid){
var xxid=$(".payxxbox li.on").attr("xxid");
xxid=xxid?xxid:"1"; //如果未获取到id 则设置为默认9元的id
buygroup(xxid,payid,1)
}
function kefu(){
top.layer.open({
type: 1,
title: '客服微信',
offset: '150px',
content: '支付后请稍等几分钟系统自动到账,如果未到账则请加客服微信63525693,立刻给您处理!
'
});
}