| | |
| | | |
| | | } |
| | | }; |
| | | TSite.oneChange = function (e) { |
| | | console.log("进入!") |
| | | var oneId=$(e).val(); |
| | | console.log(oneId) |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompetition/onChange", function(data){ |
| | | var content='<option value="">选择市</option>'; |
| | | $.each(data, function(k,v) { |
| | | content += "<option value='"+v.code+"'>"+v.name+"</option>"; |
| | | }); |
| | | $("#cCode").empty().append(content); |
| | | }); |
| | | if (oneId==""){ |
| | | var temp = '<option value="">请先选择省</option>'; |
| | | $("#cCode").empty().append(temp); |
| | | } |
| | | ajax.set("oneId",oneId); |
| | | ajax.start(); |
| | | } |
| | | |
| | | /** |
| | | * 关闭此对话框 |
| | | */ |
| | | TSite.close = function() { |
| | | parent.layer.close(window.parent.TSite.layerIndex); |
| | | } |
| | | |
| | | TSite.merchantNumber = function(){ |
| | | if($("#merchantNumber").val() == "" || $("#merchantNumber").val() == null){ |
| | | Feng.error("请填写微信商户号") |
| | | return; |
| | | } |
| | | if($("#name").val() == "" || $("#name").val() == null){ |
| | | Feng.error("请填写微信商户全称") |
| | | return; |
| | | } |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/operator/merchantNumberWx", function(data){ |
| | | console.log(data) |
| | | if (data.code == 500){ |
| | | Feng.error(data.msg) |
| | | return |
| | | } |
| | | Feng.success("操作成功!"); |
| | | window.parent.TSite.table.refresh(); |
| | | TSite.close(); |
| | | },function(data){ |
| | | Feng.error("操作失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("id",$("#id").val()); |
| | | ajax.set("merchantNumber",$("#merchantNumber").val()); |
| | | ajax.set("name",$("#name").val()); |
| | | ajax.start(); |
| | | }; |
| | | TSite.oneChange = function (e) { |
| | | console.log("进入!") |
| | | var oneId=$(e).val(); |