nickchange
2023-10-17 a830a73fd10a21e3793c79a35be4e532de124c6f
cloud-server-management/src/main/webapp/static/modular/system/cpPayment/cpPayment_info.js
@@ -15,7 +15,7 @@
TCompetition.initColumn = function () {
    return [
        {field: 'selectItem', checkbox: true},
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: '所在省市', field: 'provinceAndCity', visible: role==1?true:false, align: 'center', valign: 'middle'},
        {title:  '门店名称', field: 'storeName', visible: true, align: 'center', valign: 'middle'},
        {title:  '课包类型', field: 'coursePackageType', visible: true, align: 'center', valign: 'middle'},
@@ -317,6 +317,8 @@
        success: function(response) {
            if (response == "5001"){
                Feng.error("当前课包预约人数已满!")
            }else if(response == "5002"){
                Feng.error("剩余课时不足,无法购买!")
            }else{
                Feng.success("上架成功!");
                TCompetition.close();
@@ -384,6 +386,18 @@
};
TCompetition.threeChange = function (e) {
    var oneId=$(e).val();
    var content1 = "<option value=''>请选择门店</option>";
    var ajax2=new $ax(Feng.ctxPath + "/cpPayment/getStore", function(data){
        $.each(data, function(k,v) {
            content1 += "<option value='"+v.id+"'>"+v.name+"</option>";
        });
        $("#store").empty().append(content1);
    });
    ajax2.set("city",oneId);
    ajax2.start();
};
TCompetition.fourChange = function (e) {
    var content1 = "<option value=''>请选择门店</option>";
    var ajax2=new $ax(Feng.ctxPath + "/cpPayment/getStore", function(data){
        $.each(data, function(k,v) {
@@ -394,7 +408,6 @@
    ajax2.set("city",e);
    ajax2.start();
};
TCompetition.getStudent = function () {
    var phone = $("#vipPhone").val();
@@ -507,8 +520,7 @@
                        if (option.text === city) {
                            option.selected = true;
                            c =  option.text;
                            TCompetition.threeChange(c)
                            TCompetition.fourChange(c)
                            break; // 找到匹配的选项后,可以选择停止遍历
                        }