EasyShop/Content/images2/mkl/mklview/StyleDetail.js

(开头部分) 34KB

这里只显示每个文件的开头 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) { //判断是否是天天抢
			//是天天抢但无法购买
			if (scareBuyingItem.ErrorMsg != null && scareBuyingItem.ErrorMsg.length > 0 && scareBuyingItem.ErrorMsg != "0") {
				var errorMsg = "";
				if (scareBuyingItem.ErrorMsg == "1") {
					errorMsg = "对不起,天天抢活动尚未开始或已结束";
				}

				if (scareBuyingItem.ErrorMsg == "2") {
					errorMsg = "对不起,商品已经被其他人抢购完了";
				}

				$("div.choicebox").html(errorMsg);
				$("div.choicebox").attr("class", "error");
				return;
			}
			else {
				//该天天抢可以购买,更改最大购买数量
				$(".choicebox").attr("maxqty", scareBuyingItem.MaxQtyPerUser);
			}
		}

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


$(document).ready(function() {
	//1、PO逻辑
	var skuItemLists = GetSKUItems(styleEntityListJson[0].StyleId, styleSKUItemsJson);
后面还有 961 行代码,购买后查看完整代码

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

AI 解读 AI

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

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