|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/ada36728/6e3bc2/ |
?#pragma checksum "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F313928BDE30ED53FC2101F18E3B68978362BF4D"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具天生。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且若是
// 沉新天生代码,这些更改将会迷失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Helpers;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Optimization;
using System.Web.Routing;
using Web;
public class _Page_Views_Order_Cart_cshtml : System.Web.Mvc.WebViewPage<IEnumerable<dynamic>> {
#line hidden
public _Page_Views_Order_Cart_cshtml() {
}
protected ASP.global_asax ApplicationInstance {
get {
return ((ASP.global_asax)(Context.ApplicationInstance));
}
}
public override void Execute() {
#line 2 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
ViewBag.Title = "购物车";
ViewBag.Head = true;
ViewBag.Foot = false;
#line default
#line hidden
WriteLiteral("\r\n<section");
WriteLiteral(" class=\"cartMain\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"cartBox\"");
WriteLiteral(">\r\n");
#line 9 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
#line default
#line hidden
#line 9 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
if (Model.Count() == 0)
{
#line default
#line hidden
WriteLiteral(" <p");
WriteLiteral(" style=\"text-align: center;padding: 1rem 0;\"");
WriteLiteral(">购物车是空的</p>\r\n");
#line 12 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
}
#line default
#line hidden
WriteLiteral(" ");
#line 13 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
foreach (var item in Model)
{
#line default
#line hidden
WriteLiteral(" <dl");
WriteLiteral(" class=\"order_lists\"");
WriteLiteral(" data-id=\"");
#line 15 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(item.id);
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">\r\n <dt");
WriteLiteral(" class=\"list_chk\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" type=\"checkbox\"");
WriteAttribute("id", Tuple.Create(" id=\"", 486), Tuple.Create("\"", 508)
, Tuple.Create(Tuple.Create("", 491), Tuple.Create("checkbox_", 491), true)
#line 17 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 500), Tuple.Create<System.Object, System.Int32>(item.id
#line default
#line hidden
, 500), false)
);
WriteLiteral(" class=\"son_check\"");
WriteLiteral(">\r\n <label");
WriteAttribute("for", Tuple.Create(" for=\"", 556), Tuple.Create("\"", 579)
, Tuple.Create(Tuple.Create("", 562), Tuple.Create("checkbox_", 562), true)
#line 18 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 571), Tuple.Create<System.Object, System.Int32>(item.id
#line default
#line hidden
, 571), false)
);
WriteLiteral("></label>\r\n </dt>\r\n <dd");
WriteLiteral(" class=\"list_img\"");
WriteLiteral(">\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 675), Tuple.Create("\"", 700)
, Tuple.Create(Tuple.Create("", 682), Tuple.Create("/Product/", 682), true)
#line 21 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 691), Tuple.Create<System.Object, System.Int32>(item.pid
#line default
#line hidden
, 691), false)
);
WriteLiteral("><img");
WriteAttribute("src", Tuple.Create(" src=\"", 706), Tuple.Create("\"", 721)
#line 21 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 712), Tuple.Create<System.Object, System.Int32>(item.pic
#line default
#line hidden
, 712), false)
);
WriteLiteral("></a>\r\n </dd>\r\n <dd");
WriteLiteral(" class=\"list_text\"");
WriteLiteral(">\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 814), Tuple.Create("\"", 839)
, Tuple.Create(Tuple.Create("", 821), Tuple.Create("/Product/", 821), true)
#line 24 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 830), Tuple.Create<System.Object, System.Int32>(item.pid
#line default
#line hidden
, 830), false)
);
WriteLiteral(" class=\"text_c\"");
WriteLiteral(">");
#line 24 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(item.title);
#line default
#line hidden
WriteLiteral("</a>\r\n <p>单价:<span");
WriteLiteral(" style=\"color:#f60\"");
WriteLiteral(">¥");
#line 25 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(item.price.ToString("0.##"));
#line default
#line hidden
WriteLiteral("</span></p>\r\n <div");
WriteLiteral(" class=\"jg_box\"");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"price\"");
WriteLiteral(">¥");
#line 27 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(item.price);
#line default
#line hidden
WriteLiteral("</p>\r\n <p");
WriteLiteral(" class=\"sum_price\"");
WriteLiteral(">¥");
#line 28 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(Common.ConvertHelper.ConvertToDecimal(item.price * item.num,0).ToString("0.##"));
#line default
#line hidden
WriteLiteral("</p>\r\n <div");
WriteLiteral(" class=\"amount_box\"");
WriteLiteral(">\r\n <a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(" class=\"reduce reSty\"");
WriteLiteral(">-</a>\r\n <input");
WriteLiteral(" type=\"text\"");
WriteAttribute("value", Tuple.Create(" value=\"", 1376), Tuple.Create("\"", 1393)
#line 31 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
, Tuple.Create(Tuple.Create("", 1384), Tuple.Create<System.Object, System.Int32>(item.num
#line default
#line hidden
, 1384), false)
);
WriteLiteral(" data-max=\"999\"");
WriteLiteral(" class=\"sum\"");
WriteLiteral(" maxlength=\"3\"");
WriteLiteral(">\r\n <a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(" class=\"plus\"");
WriteLiteral(">+</a>\r\n </div>\r\n <p");
WriteLiteral(" class=\"del\"");
WriteLiteral("><a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(" class=\"delBtn\"");
WriteLiteral(">删除</a></p>\r\n </div>\r\n </dd>\r\n </dl>" +
"\r\n");
#line 38 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
}
#line default
#line hidden
WriteLiteral(" </div>\r\n\r\n <div");
WriteLiteral(" class=\"bar-wrapper\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"list_chk\"");
WriteLiteral(">\r\n <input");
WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" id=\"all\"");
WriteLiteral(" class=\"whole_check\"");
WriteLiteral(">\r\n <label");
WriteLiteral(" for=\"all\"");
WriteLiteral("></label>全选\r\n </div>\r\n <div");
WriteLiteral(" class=\"bar-right\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"totalMoney\"");
WriteLiteral(">共计: <strong");
WriteLiteral(" class=\"total_text\"");
WriteLiteral(">¥0</strong></div>\r\n <div");
WriteLiteral(" class=\"calBtn\"");
WriteLiteral("><a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(">去结算</a></div>\r\n </div>\r\n </div>\r\n</section>\r\n<section");
WriteLiteral(" class=\"model_bg\"");
WriteLiteral("></section>\r\n<section");
WriteLiteral(" class=\"my_model\"");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"title\"");
WriteLiteral(">删除宝贝<!--<span class=\"closeModel\">X</span>--></p>\r\n <p>您确认要删除该宝贝吗?</p>\r\n <d" +
"iv");
WriteLiteral(" class=\"opBtn\"");
WriteLiteral("><a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(" class=\"dialog-sure\"");
WriteLiteral(">确定</a><a");
WriteLiteral(" href=\"javascript:;\"");
WriteLiteral(" class=\"dialog-close\"");
WriteLiteral(">取缔</a></div>\r\n</section>\r\n\r\n");
DefineSection("js", () => {
WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(" src=\"/js/m/carts.js?v=20230908\"");
WriteLiteral(@"></script>
<script>
//$("".wrapper"").addClass(""cart-page"");
function GetIDList() {
var arrID = new Array();
$("".order_lists .mark"").each(function () {
var iid = $(this).parents('.order_lists').attr(""data-ID"");
if (arrID.indexOf(iid) == -1) {
arrID.push(iid);
}
})
var idlist = arrID.join(',');
return idlist;
}
$(function () {
$("".calBtn a"").click(function () {
var idlist = GetIDList();
if (idlist == """") {
msgBox(""请选择商品"");
} else {
var _index = layer.load(1, { shade: [0.2, '#fff'] });
var _data = { id: 0, ids: idlist}
$.ajax({
url: '/api/Order/PostBuy',
type: ""post"",
headers: {'RequestVerificationToken': '");
#line 85 "D:\wwwroot\jinxiangshun123\wwwroot\Views\Order\Cart.cshtml"
Write(Web.Api.ApiValidateAntiForgeryToken.GenerateAntiForgeryTokenForHeader());
#line default
#line hidden
WriteLiteral(@"'},
data: _data,
success: function (res) {
console.log(res.data);
if (res.code == 0) {
window.location.href = ""/Order/List/"" + res.data;
} else {
msgError(""操作失败"");
}
},
error: function () {
msgError(""操作失败"");
}, complete: function () {
layer.close(_index);
}
})
}
})
})
</script>
");
});
}
}
}