EasyShop/Content/images2/mklview/StyleDetail.js

(开头部分) 33KB

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

///<reference path="lib\jquery-1.3.2-vsdoc2.js" />
///<reference path="lib\jquery.cookie.js" />
///<reference path="StyleCommon.js" />

var loadCount = 0;
function LoadSKU() {
	//若单卖文字不存在,则不执行单卖逻辑判断(放到styleCommon)
	if (typeof (aloneMessage) != undefined && aloneMessage != null && aloneMessage.length > 0) {
		//是单卖产品,执行返回操作
		$(".choicebox").html(aloneMessage);

		$(".choicebox").attr("class", "error");
		return;
	}
	else {
		try {
			//1、库存处理
			CombSKUAndWH(styleEntityListJson, styleSKUItemsJson, productWarehouseJson);
		}
		catch (e) {
			loadCount++;
			if (loadCount <= 50) {
				setTimeout("LoadSKU()", 100);
				return;
			}
		}

		//2、天天抢逻辑判断
		if (scareBuyingItem != undefined || scareBuyingItem != null) { //判断是否是天天抢


				$(".choicebox").attr("maxqty", scareBuyingItem.MaxQtyPerUser);

		}

		//初始化Dimention1
		InitDimention1();
		//5、特殊分类商品逻辑
		//SpecialClassLogic();
	}
};



/// <summary>
/// 加载单品页左侧模块
/// </summary>
function LoadStyleDetailLeft(styleId) {
	$.get("http://product.m18.com/pl-" + styleId + ".htm", function(data) {
		$('.col_2_a').append(data);
		//4、为清除cookie链接绑定事件
		BindClearCookieButton();
		
		//7、最近浏览记录加载
		try {
			ShowLastestViewedItems();
		}
		catch (e) {

		}
后面还有 910 行代码,购买后查看完整代码

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

AI 解读 AI

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

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