<div class="xiaoxi">\n‘ + ‘ <div class="layui-row">\n‘ + ‘ <input type="hidden" name="id" class="id" value="‘ + item.ID + ‘"/>\n‘ + ‘ <input type="hidden" name="type" class="type" value="‘ + item.type + ‘"/>\n‘ + ‘ <input type="hidden" name="name" class="name" value="‘ + item.name + ‘"/>\n‘ + ‘ <input type="hidden" name="states" class="states" value="‘ + item.states + ‘"/>\n‘ + ‘ <div class="layui-col-xs8" style="padding-left: 50px;padding-top: 10px;">\n‘ + ‘ <div ><span name="ziti">‘ + item.TITLE + ‘</span></div>\n‘ + ‘ <div class="one" style=" padding-top: 8px;"><span name="ziti" style="font-size:12px">‘ + item.ZDRQ + ‘</span></div>\n‘ + ‘ </div>\n‘ + ‘ <div class="layui-col-xs1">\n‘ + ‘ </div>\n‘ + ‘ <div class="layui-col-xs3" style="padding-left: 50px;padding-top: 10px;">\n‘ + ‘ <div><span name="ziti">‘ + item.CDATE + ‘</span></div>\n‘ + ‘ <div><span name="ziti">‘ + item.TJR + ‘</span></div>\n‘ + ‘ </div>\n‘ + ‘ </div>\n‘ + ‘ <div style=" padding-top: 15px;"><hr/></div>\n‘ + ‘</div>‘
============================================ //消息的跳转页面$(".xiaoxi").click(function () { //添加跳转页面的单击事件var id = $(this).find("input[name=‘id‘]").val();//账单或合同的IDvar type = $(this).find("input[name=‘type‘]").val();//0是合同,1是账单var span = $(this).find("span").val();//获取span标签里的内容if (type === "1") {//0是合同,1是账单 if (states === "0") {//账单待审核0/审核通过1/审核不通过2/ 默认生成3 parent.layer.open({ zIndex: 1005, type: 2, //弹出类型 title: ‘审核账单‘, //标题 closeBtn: 1, //显示关闭按钮 shade: [0.3], //遮罩透明度 area: [‘80%‘, ‘90%‘], //打开窗口的宽高 time: 0, //几秒后自动关闭,默认0时不关闭 anim: 1, //动画效果 resize: false, //设置成不允许拉伸 content: ‘../../../webhtml/daiban/bill_shenhe.html?BILL_ID=‘ + id + ‘‘ //iframe的url });
原文地址:https://www.cnblogs.com/songyinan/p/8573934.html
时间: 2024-11-08 04:51:01