66 lines
2.5 KiB
Plaintext
66 lines
2.5 KiB
Plaintext
@{
|
|
Layout = null;
|
|
}
|
|
|
|
<div class="group content_title_width">
|
|
<span class="csicon MianFeiIcon"></span>
|
|
<span>免费活动订单</span>
|
|
</div>
|
|
<div class="content_div">
|
|
<table class="layui-table content_width">
|
|
<thead>
|
|
<tr>
|
|
<td>
|
|
<input id="AddLevel2Order" class="layui-btn layui-btn-sm layui-btn-normal" value="添加免费活动订单" type="button">
|
|
|
|
<input id="refreshLevel2Order" class="layui-btn layui-btn-sm layui-btn-primary" value="刷新免费活动订单" onclick="refreshLevel2Order()" type="button">
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
</table>
|
|
<div id="level2orderlists">
|
|
@Html.Action("OrderList", "Leve2Order", new { ResId = ViewBag.CustomerId })
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$("#AddLevel2Order").click(function () {
|
|
//window.parent.ChildAddTab("下免费活动订单", "../Level2/Leve2Order/CreateOrderApply?CustomerId=@ViewBag.CustomerId", "");
|
|
$("#modalwindow").html(GetIframeHtml("/Level2/Leve2Order/CreateOrderApply?CustomerId=@ViewBag.CustomerId"));
|
|
$("#modalwindow").window({ title: '编辑', width: 600, height: 400, iconCls: 'icon-edit' }).window('open');
|
|
});
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
$(".cancelOrder").click(function () {
|
|
|
|
var $this = $(this);
|
|
var statu = $this.attr("status");
|
|
var orderId = $this.attr("OrderId");
|
|
|
|
if (statu == "0") {
|
|
$.messageBox5s("提示", "未开通订单无法撤消");
|
|
}
|
|
else if (statu == "2") {
|
|
$.messageBox5s("提示", "该订单已撤销");
|
|
}
|
|
else {
|
|
|
|
var src = "/Level2/Leve2Order/OrderRevApply?status=" + statu + "&OrderId=" + orderId;
|
|
$("#modalwindow").html(GetIframeHtml(src));
|
|
$("#modalwindow").window({ title: '编辑', width:500, height: 250, iconCls: 'icon-edit' }).window('open');
|
|
}
|
|
});
|
|
function refreshLevel2Order() {
|
|
$.r_ajax({
|
|
url: "/Level2/Leve2Order/OrderList",
|
|
type: "Post",
|
|
data: { ResId: '@ViewBag.CustomerId' },
|
|
dataType: "html",
|
|
loading: true,
|
|
success: function (data) {
|
|
$("#level2orderlists").html(data);
|
|
}
|
|
});
|
|
}
|
|
</script> |