88 lines
2.8 KiB
HTML
88 lines
2.8 KiB
HTML
<html login="false">
|
|
<head>
|
|
<title>短信内容配置</title>
|
|
<style>
|
|
.aos-labelfield-label2>.aos-labelfield-label{
|
|
text-align: right;
|
|
width:120px;
|
|
white-space: normal;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar" >
|
|
<a widget="button" style="margin-left:8px" id= "message" iconCls="icon-save" onclick="save">保存</a>
|
|
</div>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="jjdq" label="服务费即将到期短信内容" width="505px" height="100px"/>
|
|
<br/>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="yjdq" label="服务费已经到期短信内容" width="505px" height="100px"/>
|
|
<br/>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="tgjjdq" label="托管即将到期短信内容" width="505px" height="100px"/>
|
|
<br/>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="tgyjdq" label="托管已经到期短信内容" width="505px" height="100px"/>
|
|
<br/>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="tgfmz" label="非免征短信内容" width="505px" height="100px"/>
|
|
<br/>
|
|
<br/>
|
|
<input class="aos-labelfield-label2" style="margin-left:5px" widget="textarea" name="tgmz" label="免征短信内容" width="505px" height="100px"/>
|
|
</body>
|
|
<script type="text/javascript">
|
|
aos.post({
|
|
url:"rush/message/getContent",
|
|
success:function(rtnData){
|
|
if(rtnData!=null&&rtnData.length>0){
|
|
for(var i=0;i<rtnData.length;i++){
|
|
if(rtnData[i]['text']=='jjdq'){
|
|
aos.get("jjdq").setValue(rtnData[i]['memo']);
|
|
}
|
|
if(rtnData[i]['text']=='yjdq'){
|
|
aos.get("yjdq").setValue(rtnData[i]['memo']);
|
|
}
|
|
if(rtnData[i]['text']=='tgyjdq'){
|
|
aos.get("tgyjdq").setValue(rtnData[i]['memo']);
|
|
}
|
|
if(rtnData[i]['text']=='tgjjdq'){
|
|
aos.get("tgjjdq").setValue(rtnData[i]['memo']);
|
|
}
|
|
if(rtnData[i]['text']=='tgmz'){
|
|
aos.get("tgmz").setValue(rtnData[i]['memo']);
|
|
}
|
|
if(rtnData[i]['text']=='tgfmz'){
|
|
aos.get("tgfmz").setValue(rtnData[i]['memo']);
|
|
}
|
|
}
|
|
}
|
|
},
|
|
fail:function (e) {
|
|
alert("发生错误!"+e);
|
|
}
|
|
});
|
|
|
|
|
|
function save(){
|
|
aos.confirm("请检查短信内容,是否确认保存?",null,function(action) {
|
|
if(action == 'cancel'){return;}
|
|
else if(action=='ok'){
|
|
|
|
aos.post({
|
|
url:"rush/message/saveMessage",
|
|
data:aos.getForm().getData(),
|
|
success:function(rtnData){
|
|
aos.alert(rtnData.msg);
|
|
},
|
|
fail:function (e) {
|
|
alert("发生错误!"+e);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
</html>
|