75 lines
2.7 KiB
Plaintext
75 lines
2.7 KiB
Plaintext
|
|
@model dccdc.Models.infectionRedMoneyModel
|
|
<add namespace="System.Web.Mvc.Html" />
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
$("#submitid").click(function () {
|
|
if ($("#days").val().trim() == "") {
|
|
$.ligerDialog.alert("请输入签到日期次数!");
|
|
return;
|
|
}
|
|
if ($("#daymoney").val().trim() == "") {
|
|
$.ligerDialog.alert("请输入满次数红包金额!");
|
|
return;
|
|
}
|
|
if ($("#testmoney").val().trim() == "") {
|
|
$.ligerDialog.alert("请输入体检后红包金额!");
|
|
return;
|
|
}
|
|
|
|
$.ajax({
|
|
url: "@Url.Action("Add")",
|
|
type: "post",
|
|
dataType: "json",
|
|
data: {
|
|
days: $("#days").val(),
|
|
daymoney: $("#daymoney").val(),
|
|
testmoney: $("#testmoney").val()
|
|
},
|
|
success: function (data) {
|
|
$.ligerDialog.alert(data.Message);
|
|
window.location.reload();
|
|
},
|
|
error: function (e) {
|
|
$.ligerDialog.warn(e.responseText);
|
|
}
|
|
});
|
|
})
|
|
</script>
|
|
}
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<div id="edit">
|
|
<table class="t1" style="width: 280px">
|
|
<tr>
|
|
<td class="ltd" width="280px">签到日期次数:</td>
|
|
<td class="rtd">@Html.TextBoxFor(m => m.days, new { Styles = "width:140px", Class = "l-text" }) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="280px">满次数红包金额:</td>
|
|
<td class="rtd">@Html.TextBoxFor(m => m.daymoney, new { Styles = "width:140px", Class = "l-text" }) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="280px">体检后红包金额:</td>
|
|
<td class="rtd">@Html.TextBoxFor(m => m.testmoney, new { Styles = "width:140px", Class = "l-text" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
<input type="submit" id="submitid" value="提交" class="l-button" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|