WebHost/Views/Discount/OutInList.cshtml
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@model ViewModel.DiscountRuleViewExt
@{
Layout = null;
}
<script type="text/javascript">
$(function () {
$("#SDate").focus(function () {
var endTime = $dp.$('EDate'); WdatePicker({ skin: 'whyGreen', dateFmt: 'yyyy-MM-dd', readOnly: true, onpicked: function () { endTime.focus(); }, maxDate: '#F{$dp.$D(\'EDate\')}' });
})
$("#EDate").focus(function () {
WdatePicker({ skin: 'whyGreen', dateFmt: 'yyyy-MM-dd', readOnly: true, minDate: '#F{$dp.$D(\'SDate\')}' });
})
$("#STime").focus(function () {
var endTime = $dp.$('ETime'); WdatePicker({ skin: 'whyGreen', dateFmt: 'HH:mm:ss', readOnly: true, onpicked: function () { endTime.focus(); }, maxDate: '#F{$dp.$D(\'ETime\')}' });
})
$("#ETime").focus(function () {
WdatePicker({ skin: 'whyGreen', dateFmt: 'HH:mm:ss', readOnly: true, minDate: '#F{$dp.$D(\'STime\')}' });
})
clickradio();
$(".discount_radio").click(function () {
clickradio();
})
})
function clickradio()
{
var val = $(".discount_radio");
$(".discount_radio").parents(".form-group").removeClass("has-error");
$(".discount_radio").parents(".col-sm-6").nextAll().remove(".help-block");
for (var i = 0; i < val.length; i++) {
if (i == 0 && val[i].checked) {
$("#FullAmount1").attr("check-type", "amount");
$("#DiscountRate").attr("check-type", "number");
$("#FullAmount2").removeAttr("check-type");
$("#ReduceAmount").removeAttr("check-type");
$("#heightestAmount").removeAttr("check-type");
$("#RuleTable").val("DiscountPrice");
}
else if (i == 1 && val[i].checked) {
$("#RuleTable").val("DiscountFullReduce");
$("#FullAmount1").removeAttr("check-type");
$("#DiscountRate").removeAttr("check-type");
$("#FullAmount2").attr("check-type", "amount");
$("#ReduceAmount").attr("check-type", "amount");
$("#heightestAmount").attr("check-type", "amount");
}
}
}
</script>
<!----------内容导航区域END---------->
<!----------内容区域---------->
<div class="panel">
<form id="formDiscout" role="form" class="form-horizontal validate">
<div class="form-group">
后面还有 139 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
