| | |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label for="input2" class="changdu1 control-label">所属分类</label> |
| | | <label for="input2" class="changdu1 control-label">顶部标签</label> |
| | | <div class="col-sm-7"> |
| | | <select id="classtype"></select> |
| | | <select id="classtype" class="form-control" style="max-width: 150px;"></select> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <script> |
| | | $(function() { |
| | | |
| | | $.post('api/videoType/getAllVideoType',function(data){ |
| | | $.post('api/homerecommend/getSpcialList', { |
| | | "page": 1 |
| | | }, function (data) { |
| | | if(data.code==0){ |
| | | var list = data.list; |
| | | for(var i= 0;i <list.length;i++){ |
| | | var vt = list[i]; |
| | | var vid =vt.id; |
| | | $("#classtype").append("<option key='"+vid+"'>"+vt.name+"</option>") |
| | | } |
| | | var datas = data.data.data; |
| | | $("#classtype").empty(); |
| | | for (var i = 0; i < datas.length; i++) { |
| | | var html = "<option"; |
| | | html += " value=" + datas[i].special.dataKey + " >"; |
| | | html += datas[i].special.name; |
| | | html += "</option>"; |
| | | $("#classtype").append(html); |
| | | } |
| | | |
| | | },'json') |
| | | } |
| | | |
| | | }, "json"); |
| | | |
| | | |
| | | $.post('api/common/detailsystemlist', function(data) { |
| | | if(data.code == 0) { |
| | |
| | | 'hasMore': $("#hasMore").is(":checked") ? true : false, |
| | | 'icon': $("#icon").val(), |
| | | 'detailsystemids': dess, |
| | | 'videoType.id':$("#classtype :checked").attr("key") |
| | | 'specialDataKey': $("#classtype").val() |
| | | }, function(data) { |
| | | layer.close(index); |
| | | layer.msg(data.msg); |