| | |
| | | |
| | | </div> |
| | | |
| | | <select name="select" class="form-control search select-detailsystem"> |
| | | |
| | | <select name="select" class="form-control search select-fromtype"> |
| | | <option value="0">自有库</option> |
| | | <option value="1">全网搜</option> |
| | | <option value="2">短视频</option> |
| | | </select> |
| | | <select name="select" class="form-control search contenttype"> |
| | | <option value="1">正片</option> |
| | |
| | | <td width="12%"> |
| | | <div style="position: relative"> |
| | | <img v-bind:src="item.hpicture" class="cover-h"> |
| | | <img v-if="item.freeType>0" src="image/icon_vip.png" style="position: absolute;right: 0;bottom: 0;height: 20px;"> |
| | | <img v-if="item.freeType>0" src="image/icon_vip.png" |
| | | style="position: absolute;right: 0;bottom: 0;height: 20px;"> |
| | | </div> |
| | | </td> |
| | | <td width="8%"> |
| | |
| | | } |
| | | }, 'json'); |
| | | |
| | | //获取系统列表 |
| | | $.post('api/common/detailsystemlist', {}, function (data) { |
| | | if (data.code == 0) { |
| | | $(".select-detailsystem").empty(); |
| | | $(".select-detailsystem").append("<option value='0'>全部</option>"); |
| | | |
| | | $(".detailsystem").empty(); |
| | | data.data.forEach(function (detailsystem) { |
| | | var html = ""; |
| | | html += "<option value=" + detailsystem.id + ">"; |
| | | html += detailsystem.name; |
| | | html += "</option>"; |
| | | $(".select-detailsystem").append(html); |
| | | |
| | | html = "<li><input type='checkbox' value=" + detailsystem.id + ">"; |
| | | html += "<span>" + detailsystem.name; |
| | | html += "</span> </li>"; |
| | | $(".detailsystem").append(html); |
| | | }); |
| | | } |
| | | |
| | | }, 'json'); |
| | | }); |
| | | </script> |
| | | |
| | |
| | | function getCheckedItems() { |
| | | var ids = ""; |
| | | for (var i = 0; i < $(".check-item").length; i++) { |
| | | |
| | | if ($(".check-item").eq(i).is(':checked')) { |
| | | ids += $(".check-item").eq(i).attr("key") + ","; |
| | | ids += app.videos[i].id + ","; |
| | | } |
| | | } |
| | | if (ids.length > 0) |
| | |
| | | //直接添加到推荐 |
| | | var key = video.id; |
| | | $("#hometype .videoids").val(key); |
| | | //清空显示 |
| | | // $("#hometype").find("input[type=checkbox]").each(function () { |
| | | // this.checked = false; |
| | | // }); |
| | | |
| | | $("#hometype").modal("show"); |
| | | |
| | | // var index = layer.open({ |
| | |
| | | $.post('api/video/videolist', { |
| | | "page": page, |
| | | "videotype": $(".search-div .videotypes select:last").val(), |
| | | "detailsystem": $(".search-div .select-detailsystem").val(), |
| | | "fromtype": $(".search-div .select-fromtype").val(), |
| | | "type": $(".search-div .type").val(), |
| | | "contenttype": $(".contenttype").val(), |
| | | "freeType": $(".freeType").val(), |