hlzyWeb/obj/Debug/Package/PackageTmp/Utility/vshoping.helper.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(document).ready(function () {
$("input[name='inputQuantity']").bind("blur", function () { chageQuantity(this); }); //立即购买
$("[name='iDelete']").bind("click", function () {
var obj = this;
myConfirm('询问', '确定要从购物车里删除该商品吗?', '确认删除', function () {
deleteCartProduct(obj);
});
}); //立即购买
$("#selectShippingType").bind("change", function () { chageShippingType() });
$("#selectCoupon").bind("change", function () { chageCoupon() });
$("#aSubmmitorder").bind("click", function () { submmitorder() });
});
function deleteCartProduct(obj) {
var type = $(obj).attr("stype");
if (type == null || type == undefined) {
type = 0;
}
$.ajax({
url: "/API/VshopProcess.ashx",
type: 'post', dataType: 'json', timeout: 10000,
data: { action: "DeleteCartProduct", skuId: $(obj).attr("skuId"), type: type },
success: function (resultData) {
if (resultData.Status == "OK") {
location.href = "/Vshop/ShoppingCart.aspx?ReferralId=" + getParam("ReferralId");
}
}
});
}
function chageQuantity(obj) {
$.ajax({
url: "/API/VshopProcess.ashx",
type: 'post', dataType: 'json', timeout: 10000,
data: { action: "ChageQuantity", skuId: $(obj).attr("skuId"), quantity: parseInt($(obj).val()) },
success: function (resultData) {
if (resultData.Status == "OK") {
location.href = "/Vshop/ShoppingCart.aspx?ReferralId=" + getParam("ReferralId");
}
else {
alert_h("最多只可购买" + resultData.Status + "件", function () {
location.href = "/Vshop/ShoppingCart.aspx?ReferralId="+ getParam("ReferralId");
});
}
}
});
}
function chageShippingType() {
var freight = 0;
if ($("#selectShippingType").val() != "-1") {
var selectedShippingType = $("#selectShippingType option:selected").text();
freight = parseFloat(selectedShippingType.substring(selectedShippingType.lastIndexOf("¥") + 1));
}
后面还有 108 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
