jquery之營銷系統

來源:互聯網
上載者:User

標籤:

// //////////////////////////優惠券開始////////////////////////////
// 給附加條件選擇框添加事件
function inputFuJia() {
    hideLable();
    $.each($("input[id^=‘fujia_‘]"), function(i, lable) {
        $(lable).click(function() {
            if (this.name == ‘mian‘) {
                $("#fujialab_FF").hide();
                $("#fujialab_FQ").hide();
            }
            if (this.checked == true) {
                $("#fujialab_" + this.value).show();
            } else {
                $("#fujialab_" + this.value).hide();
            }
        });
    });
}

// 隱藏所有的設值
function hideLable() {
    $.each($("label[id^=‘fujialab_‘]"), function(i, lable) {
        $(lable).hide();
    });
}

//拼接標籤

function addFQ() {
    // 查詢已經添加的優惠劵
    var obj = new Object();
    obj.additionalValues = $("#fujialab_FQ_value").val();
    obj.additionalCounts = $("#fujialab_FQ_count").val();
    if (obj.additionalValues != ‘‘ && obj.additionalCounts != ‘‘) {
        clearTable();
        doAjax({
            url : appPath
                    + ‘/page/ecPromoteRuleGoodsGNewAct/getCouponTypeListByIds‘,
            type : ‘post‘,
            data : obj,
            success : function(data) {
                if (data != null) {
                    var html = "";
                    $
                            .each(
                                    data,
                                    function(i, coup) {
                                        html += "<tr class=\"selectedArea\">"
                                                + "<td><a class=\"easyui-linkbutton deleteArea\" href=\"javascript:void(0)\" iconCls=\"icon-cancel\" >刪除</a></td>"
                                                + "<td>"
                                                + coup.COUPON_TYPE_NO
                                                + " <input type= \"hidden\" name=\"FQ_couponTypeId\" value=\""
                                                + coup.COUPON_TYPE_ID
                                                + "\"> </td>"
                                                + "<td>"
                                                + coup.COUPON_TYPE_NAME
                                                + "</td>"
                                                + "<td>"
                                                + coup.COUPON_FEE
                                                + "<input type = \"hidden\" name = \"FQ_couponFee\"  value = \""
                                                + coup.COUPON_FEE
                                                + "\"></td>"
                                                + "<td><input type=\"text\"  maxlength = \"4\"  name=\"FQ_amount\" value=\""
                                                + coup.NUMBER
                                                + "\" style=\"width:50px;\" /></td>"
                                                + "</tr>";
                                    });
                    $("#selectConputTbl").append(html);
                }
            }
        });
    }

    $(‘#addFQ‘).window({
        title : "返優惠券",
        iconCls : ‘icon-add‘,
        width : 500,
        height : 350,
        left : 100,
        modal : true,
        shadow : true,
        collapsible : false,
        minimizable : false,
        maximizable : false
    });
    $(‘#addFQ‘).window(‘move‘, {
        top : 150
    });
    $(‘#addFQ‘).window(‘open‘);
}

jquery之營銷系統

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.