Web/shop/js/Runner.js

(开头部分) 5KB

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

/*商家提交跑腿订单 20151202*/

$(function () {

    $("input[type=text],textarea").one("focus", function () {
        $(this).val("");
    });

    $("[tip]").focus(function () {
        $(this).nextAll(".warning").remove();

        if ($("#hf_IsLogin").val() == "") {
            jtipsWindown('请登陆', 'id:divShowContent', '520', '260', 'true', '', 'true', 'text');
        }
    }).blur(function () {
        if ($(this).val() == "") {
            var $warnDiv = $("<div class='warning' style='display:none;'>" + $(this).attr("tip") + "</div>");
            $(this).parent().append($warnDiv);
            $(this).nextAll(".warning").show();
        }
    });


    //提交跑腿订单按钮
    $("#bt_Request1").click(function () {

        var tbInve2 = $("#tbInve2").val();

        showload_super();

        if (j_submitdata("form-list")) {

            if ($("#cbsendfee").attr("checked")) {
                var reg = new RegExp("^([0-9]|[0-9].[0-9]{0-2}|[1-9][0-9]*.[0-9]{0,2})$");
                var fee = $("#tbsendfee").val();
                if (!reg.test(fee)) {
                    alert($("#tbsendfee").attr("tip"));
                    return false;
                }
                $("#hidsendfee").val(fee);
            }
            return true;
        }
        return false;

    });


    //初始化商家位置 2015-12-2 
    serchAddFrom($("#hidflat").val(), $("#hidflng").val());

});


//搜索寄件人地址
function addfrom() {
    var addressfrom = $("#tbAddress").val();
    if (addressfrom == "请输入发件人地址" || addressfrom == "") {
        alert("请输入发件人地址");
    }
后面还有 155 行代码,购买后查看完整代码

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

AI 解读 AI

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

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