EasyShop/js/MyCar.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function Add_My_Car(userid, proid, num, tp) {
// alert(llid);
if (typeof llid == "undefined" || (typeof llid != "undefined" && llid == "")) {
location.href = '/login.aspx?ReturnUrl='+ encodeURIComponent(location.href);
}
var url = "/ashx/JsFn.ashx?MethodStr=Add_My_Car&rnd=" + Math.random();
var data = { "userid": userid, "proid": proid, "num": num || 1, "tp": tp || "" };
if (current_model != null && $("a.pro-mode-link").length>0) {//发送规格
data.model_id = current_model.attr("model_id");
//console.log(data)
}
if (typeof car_tp != "undefined") data.car_tp = car_tp;// show the type catalog
$.ajax({
url: url,
type: "POST",
data: data,
success: function () {
if (typeof _re != "undefied" && _re) { //ok
if (!tp)
alert('成功放入购物车');
} else {
alert(_errMsg);
}
},
error: function() {
},
complete: function() {
}
});
}
function Add_My_Car_2(img, userid, proid) {
if (!check_has_model_select()) {
return;
}
var img = $(img);
var num = img.parent().siblings(":text");
Add_My_Car(userid || llid, proid, num.val());
if (userid == "")
{
// location.replace('');
// window.location.href = "/login.aspx?ProductInfo.aspx?ID=225";
}
else
{
}
}
function delete_MyCar(link, proid,modelid) {
/// <summary>
/// 删除购物车中的项
/// </summary>
/// <param name="link"></param>
/// <param name="proid"></param>
var url = "/ashx/JsFn.ashx?MethodStr=Delete_My_Car&rnd=" + Math.random();
var data = { "proid": proid };
if (typeof modelid != "undefined" && modelid != "") {
data.model_id = modelid;
}
$.ajax({
后面还有 145 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。