rushfee/build/classes/html/rush/messageback.html

103 lines
3.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<html login="false">
<head>
<title>退费短信发送</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" id= "message" iconCls="icon-mail" onclick="message">发送退费短信</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()" >退出</a>
</div>
<input widget="edit" name="contact" label="短信接受人" readonly="true" style="margin-top:5px"/>
<input widget="edit" name="mobile" label="电话" readonly="true" />
<br/>
<input widget="textarea" name="msg" label="短信内容" width="505px" height="100px"/>
<br/>
<br/>
<span id="warning" style="margin-left:65px">提示:短信接收人为客户信息明细页面下方表格选择的联系人</span>
</body>
<script type="text/javascript">
var flag = 0;
var myDate = new Date();
function init(param){
var nowDate=myDate.toLocaleDateString();
var serviceDate=param.serviceDate;
aos.get("contact").setValue(param.contact);
aos.get("mobile").setValue(param.mobile);
var cust_name=param.cust_name;
// if((new Date(nowDate.replace(/-/g,"\/"))) > (new Date(serviceDate.replace(/-/g,"\/")))){
aos.get("msg").setValue(cust_name+"根据国家减税降费政策相关规定您单位符合增值税开票系统服务费减免条件请尽快关注微信公众号“河南航天信息”回复“退费”申请退还2019年度服务费收款账户应为单位对公账户或法人代表银行账户。如有疑问请联系航天信息全国统一服务热线95113。");
// }else{
// aos.get("msg").setValue(cust_name+"您的税控系统服务费即将到期为保证正常使用请微信搜索“河南航天信息”关注公众号点击“服务支持”选择“在线交费”缴费成功即可抽奖小米50寸智能电视、佳能彩色打印机、百元红包等您来拿如有疑问请拨打95113");
// }
}
//发送短信功能成功后插入rush_log表。并返回插入数据的id。
function message(){
if(flag==0){
var msgparam = aos.getForm().getData();
msgparam['msg']=aos.get('msg').getValue();
msgparam['mobile']=aos.get('mobile').getValue();
aos.post({
url:"rush/call/testSendSMS",
data:msgparam,
success:function(rtnData){
aos.alert('发送成功');
var param = aos.getForm().getData();
param['info']="联系"+aos.get('contact').getValue()+"("+aos.get('mobile').getValue()+");"+"短信内容:"+aos.get('msg').getValue();
param['action']='message';
param['time']='0';
aos.post({
url:"rush/search/insertLog",
data:param,
success:function(rtnData){
CloseWindow(rtnData);
}
});
}
});
}
flag = flag + 1 ;
}
/* var timeoutflag = null;
$('#message').click(function() {
if(timeoutflag != null){
clearTimeout(timeoutflag);
timeoutflag = null;
}
else{
timeoutflag=setTimeout(function(){
// dosomething();//此处是一个会请求远程的ajax 异步操作;
var msgparam = aos.getForm().getData();
msgparam['msg']=aos.get('msg').getValue();
msgparam['mobile']=aos.get('mobile').getValue();
aos.post({
url:"rush/call/testSendSMS",
data:msgparam,
success:function(rtnData){
aos.alert('发送成功');
var param = aos.getForm().getData();
param['info']="联系"+aos.get('contact').getValue()+"("+aos.get('mobile').getValue()+");"+"短信内容:"+aos.get('msg').getValue();
param['action']='message';
param['time']='0';
aos.post({
url:"rush/search/insertLog",
data:param,
success:function(rtnData){
CloseWindow(rtnData);
}
});
}
});
},3000);
}
}); */
</script>
</html>