本港台开马现场直播新人权益
反馈建议
您正在使用的浏览器版本过低,将不能正常浏览请升级最新浏览器或更换浏览器访问
{{# if(d.isNotUse){ }}
{{# } else if(!d.isNotUse) { }}
{{# if(!d.isError){ }}
{{d.leaveMessages }}
{{# if(d.style1) { }}
{{# } else { }}
{{# } }}
{{# if(d.style2) { }}
{{# } else { }}
{{# } }}
{{# if(d.ifToken!='tourist'&&d.setting.allowTourist==='Y'){ }}
{{# if(d.style3) { }}
{{# } else { }}
{{# } }}
{{# } }}
{{# if((d.currentTab==0|| d.currentTab==2) && !d.showReplyList ){ }}
{{# } }}
{{# if(d.isPaginator&&!d.showReplyList){ }}
{{# } }}
{{# } }}
{{# } }}
{{# if(d.currentTab==1 &&( (d.setting.allowTourist==='Y' && d.ifToken!== 'tourist')||(d.setting.allowTourist==='N'))){ }}
{{# } }}
{{# if(d.showReplyList&&d.currentTab!=1){ }}
{{# layui.each(d.replyList, function(index, item){ }}
{{# }); }}
{{# if(d.currentMsg.auditStatus == 2){ }}
{{# } }}
{{# } }}
{{# if((data.currentTab==1 ||data.currentTab==2) && (data.setting.allowTourist==='Y' && data.ifToken=== 'tourist')){ }}
请先登录
{{# } }}
' +'
';
formContainer.append(str)
});
}
});
// 获取xss正则;
getCheckIsXSS()
function getCheckIsXSS() {
$.ajax({
url: '/aop_component//openapp/system/getXssConfig',
crossDomain: false,
headers:data.queryParams,
type: "post",
dataType: "json",
contentType: "application/json",
success: function (res) {
if (res.code == "0000") {
data.xssRule=res.data
}
},
error: function (response) {
layer.msg(response.msg);
}
})
};
/*xss校验函数,返回值:true 表示存在xss漏洞,false:不存在*/
function checkIsXSS(v) {
return (new RegExp(data.xssRule)).test(v);
};
//回复
function replyclickfun(){
data.replyWindow=!data.replyWindow;
renderTemplate(data);
replyEditorRender();
};
//发送回复内容
function reply() {
if(!replyEditor.$txt.text()){
layer.msg("请输入回复内容",{time:1000});
return false;
}
if(checkIsXSS(replyEditor.$txt.html())){
layer.msg("内容存在异常,请修改",{time:1000});
return false;
}
var base64 = new Base64();
var paramsdata = {};
paramsdata.messageId = data.currentMsg.id;
paramsdata.replyContent = base64.encode(replyEditor.$txt.html());
$.ajax({
url: '/aop_component//webber/messageboard/front/reply',
data: JSON.stringify(paramsdata),
crossDomain:false,
headers:data.queryParams ,
type: "post",
dataType: "json",
contentType: "application/json",
success: function(ret) {
data.isError = 0;
if(ret.code == '0000'){
data.replyWindow = false;
data.replyEditor=replyEditor.$txt.html('' +'
' +
'' +(item.required == 'Y' ? '*' : '') +(item.fieldName == "" ? "" : item.fieldName) +'
' + '' +'
' +'' +'' +'
' +'咨询电话:0374-2968866 电子邮箱:xcxyxyk@163.com
邮政编码:46100 单位地址:河南省许昌市八一路 88号

加入...