| | |
| | | table: null, |
| | | layerIndex: -1 |
| | | }; |
| | | |
| | | TQuestion.close = function() { |
| | | parent.layer.close(window.parent.TQuestion.layerIndex); |
| | | } |
| | | /** |
| | | * 初始化表格的列 |
| | | */ |
| | |
| | | * 选择视频 回显视频封面 |
| | | * @param e |
| | | */ |
| | | TQuestion.oneChange = function (e) { |
| | | var id = $("#name").val(); |
| | | var ajax = new $ax(Feng.ctxPath + "/benefits/getCoverDrawing/"+id, function(data){ |
| | | document.getElementById('img').src = data.coverDrawing; |
| | | $("#introduce").val(data.introduce); |
| | | TCompetition.oneChange = function (e) { |
| | | var oneId=$(e).val(); |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompetition/onChange", function(data){ |
| | | if(data!=null){ |
| | | var content='<option value="">选择市</option>'; |
| | | $.each(data, function(k,v) { |
| | | content += "<option value='"+v.code+"'>"+v.name+"</option>"; |
| | | }); |
| | | $("#cCode").empty().append(content); |
| | | } |
| | | }); |
| | | ajax.set("id",id); |
| | | ajax.set("oneId",oneId); |
| | | ajax.start(); |
| | | }; |
| | | /** |
| | |
| | | success: function (response) { |
| | | if (response === 500){ |
| | | Feng.error("所选视频已经存在于当前福利视频分类下!"); |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.close(); |
| | | |
| | | }else{ |
| | | Feng.success("添加成功"); |
| | | } |