Website/_Template/Default/Scripts/khd_order.js

(完整代码) 851B

//购物车
$(function() {
    $('input[name=txtquantity]').keyup(function() {
        var pid = $(this).attr("pid");
        $(this).val($(this).val().replace(/\D/g, ""));   //替换非数字
        $.getJSON("shoppingcart.aspx?action=editshopping&pid=" + pid + "&txtQuantity=" + $(this).val() + "&datatime=" + new Date().getTime(), function(json) {
            if (json == "error") {
                alert('数量超过了库存!');
            } else {
                $("#singleScore" + pid).html(json.i1);
                $("#total" + pid).html(json.i2); //商品小计
                $("#pro_count").html(json.i3 + "件"); //商品件数
                $("#price_count").html(json.i6 + "元"); //产品金额总计
                $("#pro_score").html(json.i4 + "分"); //赠送积分
            }
        });
    });
});

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

AI 解读 AI

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

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