| | |
| | | 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'}, |
| | |
| | | success: function(response) { |
| | | if (response == "5001"){ |
| | | Feng.error("当前课包预约人数已满!") |
| | | }else if(response == "5002"){ |
| | | Feng.error("剩余课时不足,无法购买!") |
| | | }else{ |
| | | Feng.success("上架成功!"); |
| | | TCompetition.close(); |
| | |
| | | }; |
| | | |
| | | 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) { |
| | |
| | | ajax2.set("city",e); |
| | | ajax2.start(); |
| | | }; |
| | | |
| | | |
| | | TCompetition.getStudent = function () { |
| | | var phone = $("#vipPhone").val(); |
| | |
| | | if (option.text === city) { |
| | | option.selected = true; |
| | | c = option.text; |
| | | |
| | | TCompetition.threeChange(c) |
| | | TCompetition.fourChange(c) |
| | | |
| | | break; // 找到匹配的选项后,可以选择停止遍历 |
| | | } |