43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
@{
|
|
Layout = null;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Index</title>
|
|
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
执行开始时间:@ViewBag.startdate <br />
|
|
GUID:@ViewBag.result <br />
|
|
执行开始时间:@ViewBag.enddate <br />
|
|
执行次数:@ViewBag.execount<br />
|
|
username:@ViewBag.username<br />
|
|
password:@ViewBag.password
|
|
</div>
|
|
<div>
|
|
<input type="button" value="提交" id="message" />
|
|
|
|
<script type="text/javascript">
|
|
$("#message").click(function () {
|
|
var para = { "username": "root", "password": "root", "type": "send-sms", "sr_url": null, "sr_cnt": 0, "sr_prd": 0, "sms_url": null, "sms_cnt": 0, "sms_prd": 0, "task_num": 1, "tasks": [{ "tid": 1, "from": "1", "to": "13416115228", "sms": "测试短信", "chs": null, "coding": 0, "smsc": null, "intvl": null, "tmo": 0, "sdr": 0, "fdr": 0, "dr": 0, "sr_prd": 0, "sr_cnt": 0 }] };
|
|
$.ajax({
|
|
url: "http://192.168.1.68/goip_post_sms.html",
|
|
//url:"/WebTest",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: para,
|
|
success: function (data) {
|
|
console.log(data);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|