| | |
| | | } |
| | | |
| | | TCarInfoDlg.oneChange9 = function (e) { |
| | | console.log(111) |
| | | var oneId=$(e).val(); |
| | | var elementById = document.getElementById("pt"); |
| | | |
| | | var elementById = document.getElementById("radio1"); |
| | | var operatorId; |
| | | if (elementById !== null) { |
| | | console.log(elementById) |
| | | operatorId = $("#account").val() |
| | | if (elementById.checked){ |
| | | operatorId = 0 |
| | | operatorId = $("#account").val() |
| | | }else{ |
| | | operatorId = $("#account").val() |
| | | operatorId = 0 |
| | | } |
| | | } |
| | | |
| | | |
| | | var ajax = new $ax(Feng.ctxPath + "/tShop/getCityYys", function(data){ |
| | | if(data!=null){ |
| | | if(language==1){ |
| | |
| | | * 提交添加 |
| | | */ |
| | | 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(); |
| | | |
| | |
| | | var shopIdString = shopId.join(","); |
| | | var name = $("#name").val(); |
| | | if(name==""){ |
| | | Feng.info("请输入赛事名称"); |
| | | Feng.info("请输入活动名称"); |
| | | return; |
| | | } |
| | | var startTime = $("#startTime").val(); |
| | |
| | | let realName = document.querySelector('input[name="realName"]:checked').value; |
| | | var introduction = $("#introduction").val(); |
| | | if(introduction==""){ |
| | | Feng.info("请输入赛事简介"); |
| | | Feng.info("请输入活动简介"); |
| | | return; |
| | | } |
| | | |
| | | var goodImgs = TCarInfoDlg.goodsPicArray1; |
| | | if(goodImgs.length==0){ |
| | | Feng.info("请上传赛事活动图片") |
| | | Feng.info("请上传活动图片") |
| | | return; |
| | | } |
| | | var imgOne =""; |
| | |
| | | |
| | | var name = $("#name").val(); |
| | | if(name==""){ |
| | | Feng.info("请输入赛事名称"); |
| | | Feng.info("请输入活动名称"); |
| | | return; |
| | | } |
| | | var startTime = $("#startTime").val(); |
| | |
| | | return; |
| | | } |
| | | var registerEndTime = $("#registerEndTime").val(); |
| | | if(registerEndTime==""){ |
| | | Feng.info("请选择截止报名时间"); |
| | | return; |
| | | } |
| | | let registerCondition = document.querySelector('input[name="registerCondition"]:checked').value; |
| | | var startAge = $("#startAge").val(); |
| | | var endAge = $("#endAge").val(); |
| | | var cashPrice = $("#cashPrice").val(); |
| | |
| | | let realName = document.querySelector('input[name="realName"]:checked').value; |
| | | var introduction = $("#introduction").val(); |
| | | if(introduction==""){ |
| | | Feng.info("请输入赛事简介"); |
| | | Feng.info("请输入活动简介"); |
| | | return; |
| | | } |
| | | |
| | | var goodImgs = TCarInfoDlg.goodsPicArray1; |
| | | |
| | | if(goodImgs.length==0){ |
| | | Feng.info("请上传赛事活动图片") |
| | | Feng.info("请上传活动图片") |
| | | return; |
| | | } |
| | | var imgOne =""; |
| | |
| | | ajax.set("startTime",startTime); |
| | | ajax.set("endTime",endTime); |
| | | ajax.set("registerEndTime",registerEndTime); |
| | | ajax.set("registerCondition",registerCondition); |
| | | ajax.set("startAge",startAge); |
| | | ajax.set("endAge",endAge); |
| | | ajax.set("cashPrice",cashPrice); |
| | |
| | | |
| | | |
| | | 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){ |
| | |
| | | ajax.start(); |
| | | |
| | | |
| | | if (typeof(oneId) == "undefined"){ |
| | | if (oneId == "1"){ |
| | | console.log("===============") |
| | | |
| | | var button = document.getElementById("account"); |
| | | button.removeAttribute("disabled"); |
| | | |
| | |
| | | var marker; |
| | | //搜索地图 |
| | | TCarInfoDlg.searchByStationName = function(e,type){ |
| | | var keyword="成都"; |
| | | var keyword=""; |
| | | if(type==2){ |
| | | keyword = $(e).parent().prev().find("input").val(); |
| | | }else { |
| | |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | } |