EasyShop/Content/images2/minicart.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(
	function()
	{
		var miniCartServiceUrl = "http://jd2008.360buy.com/purchase/minicartservice.aspx?callback=?";
		
		refreshMiniCart();
		
		function refreshMiniCart()
		{
			$.login(
				{
					automatic: false,
					complete:
						function(result)
						{
							var isRetrievable = $.cookie("IsRetrievable") == null || $.cookie("IsRetrievable") == "true";
							if (result.IsAuthenticated && isRetrievable)
							{
								$.getJSON(
									miniCartServiceUrl,
									{
										method: "RetrieveCart"
									},
									function(result)
									{
										$.cookie(
											"IsRetrievable",
											false,
											{
												domain: ".360buy.com"
											});
										if (result.Cart != null && result.GetCart != null)
										{
											$("#ProductNum").text(result.Cart.Num);
											$("#MyCart").html(result.GetCart.process(result));
										}
									});
							}
							else
							{
								$.getJSON(
									miniCartServiceUrl,
									{
										method: "GetCart"
									},
									function(result)
									{
										if (result.Cart != null && result.GetCart != null)
										{
											$("#ProductNum").text(result.Cart.Num);
											$("#MyCart").html(result.GetCart.process(result));
										}
									});
							}
						}
				});
		}
		
		$("#MyCart .MyCart_List a[id][name]").livequery(
			"click",
后面还有 67 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。