A页面的头部
"/OACustomer/CustomerDetail"
: { title:
"客户详情"
, headLeft: [{ foreImage:
"iconback"
, eventString:
"gjj://Close.Page/1?jsCallBack=JC5wYWdpbmcuc2VhcmNoKCk7"
}],
headRight: [{ foreImage:
"icondrop"
, type:
"DropDownList"
, menus: [{ iconImage:
"iconcontentchange"
, alpha:
"100"
, text:
"修改客户信息"
, textSize: 16, textColor:
"000000"
, backColor:
"FFFFFF"
, eventString:
"modiFicaTion()"
}, ], }] },
B页面的头部
"/OACustomer/AddLogView"
: { title:
"添加客户日志"
, headRight: [{ text:
"提交"
, eventString:
"submit()"
}] }
function
submit() {
var
mes = $(
"form"
).validtor();
if
(mes) {
$.dialog.openDialogString(mes);
return
false;
}
var
url =
"/OACustomer/SubmitAddLog"
;
$.ajax({
type:
"post"
,
url: url,
data: $(
"form"
).serialize(),
dataType:
"json"
,
beforeSend:
function
() {
},
error:
function
() {
$.dialog.openDialogString(
"加载失败,请重试"
);
},
success:
function
(data) {
if
(data.DictJsonStatus == 200) {
$.zProtocol({
type:
"Close.Page"
,
path:
"/1"
,
success:
'DunnAge('
+ JSON.stringify(data) +
')'
});
}
else
{
$.dialog.openDialogString(data.Msg);
}
}
})
}
<form action=
"/OACustomer/SubmitAddLog"
>
<!------action 提交地址------>
<input type=
"hidden"
value=
"@detail.Id"
name=
"FkOACustomer"
/>
<p
class
=
"remarks"
>
<p><i style=
"color:#f00"
>*</i>备注留言:</p>
<p>
<textarea placeholder=
"请填写申请表述(必填)"
class
=
"js_inputbox"
name=
"Remark"
data-tipname=
"备注留言"
data-valid=
'{required:true}'
></textarea></p>
</p>
</form>