jquery日历控件

define("statistic/mobile-payment", [ "jquery", "welife", "modules/date", "modules/popovers", "modules/exporter" ], function(a, b) {
    "use strict";
    var c = function() {
        var c = a(".mainbody"), d = c.find("#inputSearchShop"), e = c.find("#inputSearchPay");
        e.on("change", function() {
            if (a(this).val() === "3") {
                d.val("all");
            }
        });
        d.on("change", function() {
            if (a(this).val() !== "all") {
                e.find("option[value=3]").hide();
                if (e.val() === "3") {
                    e.val("");
                }
            } else {
                e.find("option[value=3]").show();
            }
        });
        b.date(c, {
            endDate: true,
            range: "1m"
        });
        b.exporter(c);
        b.popoverNotice(c);
    };
    return c;
});

 

你可能感兴趣的:(javascript)