无关风月
昨天 31755963171a6c7b7fdc286d83882daac6d9310b
cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js
@@ -102,6 +102,58 @@
    parent.layer.close(window.parent.TCompetition.layerIndex);
}
TCarInfoDlg.oneChange9 = function (e) {
    var oneId=$(e).val();
    var elementById = document.getElementById("radio1");
    var operatorId;
    if (elementById !== null) {
        operatorId =  $("#account").val()
        if (elementById.checked){
            operatorId = $("#account").val()
        }else{
            operatorId =  0
        }
    }
    var ajax = new $ax(Feng.ctxPath + "/tShop/getCityYys", function(data){
        if(data!=null){
            if(language==1){
                var content='<option value="">选择市</option>';
            }else if(language==2){
                var content='<option value="">Choose your franchisee</option>';
            }else {
                var content='<option value="">Pilih franchisee Anda</option>';
            }
            $.each(data, function(k,v) {
                content += "<option value='"+v.code+"'>"+v.name+"</option>";
            });
            $("#cCode1").empty().append(content);
            $("#cCode").empty().append(content);
        }
    });
    ajax.set("province",oneId);
    ajax.set("operatorId",operatorId);
    ajax.start();
};
TCarInfoDlg.oneChangeNext9 = function (e) {
    console.log(111)
    var oneId=$(e).val();
    var ajax = new $ax(Feng.ctxPath + "/tShop/getStoresYys", function(data){
        if(data!=null){
            if(language==1){
            }else if(language==2){
                var content='<option value="">Choose your franchisee</option>';
            }else {
                var content='<option value="">Pilih franchisee Anda</option>';
            }
            $.each(data, function(k,v) {
                content += "<option value='"+v.id+"'>"+v.name+"</option>";
            });
            $("#shopId").empty().append(content);
        }
    });
    ajax.set("cityCode",oneId);
    ajax.start();
}
/**
 * 收集数据
 */
@@ -154,24 +206,61 @@
 * 提交添加
 */
TCarInfoDlg.addSubmit = function() {
    this.clearData();
    this.collectData();
    if(!this.validate()){
        return ;
    }
    var pCode = $("#pCode").val();
    if(pCode==""){
        Feng.info("请选择省");
        return;
    var pCode;
    var cCode;
    var elementById = document.getElementById("radio1");
    console.log("看看标签")
    console.log(elementById)
    if (elementById!=null){
    if (!elementById.checked){
        console.log("选中平台")
        console.log($("#pCode1").val())
        console.log($("#cCode1").val())
        // 选中平台赛事
        pCode = $("#pCode1").val();
        if($("#pCode1").val()==""){
            Feng.info("请选择省");
            return;
        }
        cCode = $("#cCode1").val();
        if($("#cCode1").val()==""){
            Feng.info("请选择市");
            return;
        }
    }else{
        console.log("选中运营商")
        console.log($("#pCode").val())
        console.log($("#cCode").val())
        // 选中运营商赛事
        pCode = $("#pCode").val();
        if(pCode==""){
            Feng.info("请选择省");
            return;
        }
        cCode = $("#cCode").val();
        if(cCode==""){
            Feng.info("请选择市");
            return;
        }
    }
    var cCode = $("#cCode").val();
    if(cCode==""){
        Feng.info("请选择市");
        return;
    }
    console.log("当前登陆人"+$("#type").val())
    if ($("#type").val()==2){
        pCode = $("#pCode1").val();
        if($("#pCode1").val()==""){
            Feng.info("请选择省");
            return;
        }
        cCode = $("#cCode1").val();
        if($("#cCode1").val()==""){
            Feng.info("请选择市");
            return;
        }
    }
    var shopId = $("#shopId").val();
@@ -512,13 +601,19 @@
TCarInfoDlg.oneChangeYys = function(e){
    var oneId= $("input[name='pt']:checked").val()
    console.log("===========oneId=========="+oneId)
    var oneId= $(e).val()
    var SelectValue="";
    if(SelectValue=='0' ){
    if(oneId=='0' ){
        oneId=0
        console.log("隐藏")
        $("#yys1").hide();
        $("#t1").hide();
        $("#account").hide();
    }else{
        console.log("展示")
        $("#yys1").show();
        $("#t1").show();
        $("#account").show();
    }
    // var ajax = new $ax(Feng.ctxPath + "/tSite/getChangeOne", function(data){
    //     if(data!=null){
@@ -558,9 +653,8 @@
    ajax.start();
    if (typeof(oneId) == "undefined"){
    if (oneId == "1"){
        console.log("===============")
        var button = document.getElementById("account");
        button.removeAttribute("disabled");
@@ -574,7 +668,20 @@
};
TCarInfoDlg.oneChange3 = function (e) {
    var operatorId=$(e).val();
    var ajax = new $ax(Feng.ctxPath + "/tShop/getProvinceYys", function(data){
        if(data!=null){
            var content='<option value="">选择市</option>';
            $.each(data, function(k,v) {
                content += "<option value='"+v.code+"'>"+v.name+"</option>";
            });
            $("#pCode").empty().append(content);
        }
    });
    ajax.set("operatorId",operatorId);
    ajax.start();
};
TCarInfoDlg.oneChange1 = function (e) {
    console.log(111)
    var oneId=$(e).val();
@@ -685,7 +792,7 @@
var marker;
//搜索地图
TCarInfoDlg.searchByStationName = function(e,type){
    var keyword="成都";
    var keyword="";
    if(type==2){
        keyword = $(e).parent().prev().find("input").val();
    }else {