the code of java (Java this output, calling the method); main function is, according to the status message, and then get information on the page, and finally more conditional jump page.
@RequestMapping ( "/")
public void Test (the HttpServletResponse Response) {
OUT = response.getWriter ();
Out.println ( "<Script> parent.frameCallback (\ '" + JSON.toJSONString (tipResult) + "\') </ Script> ");
out.flush ();
the out.close ();
}
parent.frameCallback (); parent parent window represents meaning.
Click method of page js
function frameCallback (MSG) {
MSG = the eval ( '(' + + MSG ')');
IF (msg.success!) {
Layer.close (currTc);
layer.open ({
type : 0,
offset: '100px',
title: 'prompt'
} else {
// var insureForm = $('#insureForm');
// insureForm.removeAttr('target');
// $('#check').val(2);
// insureForm.submit();
//弹出投保确认页面
var orderNo = msg.businessNo;
// window.location.href="policyConfirm.htm?orderNo="+orderNo
currTc = layer.open({
title: false,
type: 2,
closeBtn: 0,
offset: ['0px', '0px'],
area: ['100%', '100%'],
content: jsbasepath + 'wx/product/policyConfirm.htm?orderNo=' + orderNo,
success:function (layero) {
//layer.alert ( "successfully added!")
$(layero).addClass ( "scroll-wrapper"); // Apple iframe scrollbar failure solution
}
});
}
}