$(function(){
// 详情地址要变,
var ipurl = "", //ip地址
folder = "/xjnj/zxzx/", //文件夹名称
strurl = folder + "hd_xjxq.shtml", //详情页 上传到cms时把html改成shtml
departmentid = "b36b28ce91204159b602d612cca92622"; //传的id
var newipurl = "//www.xjnj.gov.cn",
new_folder = "/xjnj/zxzx/",
new_strurl = '/hd/hd_xjxq';
// 根据电话号码和查询码获取信件详情
// $('.btn-info').click(function(e){
// if ( e && e.preventdefault ) {
// e.preventdefault();
// } else {
// window.event.returnvalue = false;
// };
// //获取手机号和查询码
// var phone = $('#phone').val(),
// searchcode = $('#searchcode').val();
// phone = encrypt(phone);
// phone = encodeuricomponent(phone);
// var url = ipurl + "/communication/api-mailbox/frontmail/detailbyphoneandsearchcode?phone=" + phone + "&searchcode=" + searchcode;
// if(phone == "" || searchcode == "") {
// return alert('手机号码和查询码不能为空!');
// };
// $.ajax({
// url: url,
// type: "get",
// success:function(data) {
// if(data.status == 'success') {
// var url = strurl + '?phone=' + phone + '&searchcode=' + searchcode;
// window.open(url);
// };
// },
// error:function(data){
// return alert('没有找到该信件,请重新输入!');
// // console.log('error:' + json.stringify(data));
// }
// });
// });
//分页的回调函数
function callback(index) {
maillist(index,20,departmentid);
}
/* divname 导航选择器
npagecount 总页数;
ncurrindex 当前页码;
npagesize 每页条数;
npesultcount 总条数
callback 回调函数;
*/
function ejscreatepagehtml(divname, npagecount, ncurrindex, npagesize, npesultcount, callback) {
$('#' + divname).each(function () {
var active = "";
var pagination_num = [];
var num = 5;
var con_text = '' +
"