苹果cms vod.html,苹果cms(苹果cms官方)

此文件,只是临时使用,昨天登录网站后台看到 官方提供的豆瓣获取资料 api接口GG了,在此放出来一个提供给大家使用苹果cms根目录,application/admin/view/vod/info.html首先备份程序自带的info.html 文件再进行修改!api接口:cdn.feifeicms.co/server/v3/douban.php?key=&callback=douban&id=也可直接复制以下代码{include file="../../../application/admin/view/public/head" /}window.UEDITOR_CONFIG.serverUrl = "{:url('upload/upload')}?from=ueditor&flag=vod_editor&input=upfile";基本信息其他信息{notempty name="info.vod_id"}角色信息{/notempty}参数:请选择分类{volist name="type_tree" id="vo"}{if condition="$vo.type_mid eq 1"}{$vo.type_name}{volist name="$vo.child" id="ch"} |   |—{$ch.type_name}{/volist}{/if}{/volist}请选择推荐推荐9-幻灯推荐1推荐2推荐3推荐4推荐5推荐6推荐7推荐8已审核未审核未锁锁定已完结未完结标题:副标:别名:首字母:高亮:TAG:备注:总集数:连载数:上映日期:主演:导演:编剧:电视频道:节目周期:视频时长:豆瓣评分:豆瓣ID:查询数据关联视频:查询数据关联文章:查询数据扩展分类:上映年代:发行地区:对白语言:影片版本:资源类别:图片:上传图片缩略图:上传图片海报图:上传图片简介:{$info.vod_blurb}var players_arr_len = {$vod_play_list|count};var downers_arr_len = {$vod_down_list|count};{volist name="$vod_play_list" id="vo"}播放{$key}:请选择播放器.{volist name="player_list" id="vo1"}{if condition="$vo1.status eq '1'"}{$vo1.show}{/if}{/volist} 请选择服务器组.{volist name="server_list" id="vo2"}{if condition="$vo2.status eq '1'"}{$vo2.show}{/if}{/volist} 清空  删除  上移  下移  校正  倒序  去前缀 {$vo.url|mac_str_correct=###,'#',chr(13)}{/volist}添加一组播放


{volist name="$vod_down_list" id="vo"}下载{$key}:请选择下载器.{volist name="downer_list" id="vo1"}{if condition="$vo1.status eq '1'"}{$vo1.show}{/if}{/volist} 请选择服务器组.{volist name="server_list" id="vo2"}{if condition="$vo2.status eq '1'"}{$vo2.show}{/if}{/volist} 操作: 清空   删除   上移   下移   校正   倒序   去前缀   {$vo.url|mac_str_correct=###,'#',chr(13)}{/volist}添加一组下载详细介绍:{$info.vod_content}顶数量:踩数量:随机生成总人气:月人气:周人气:日人气:平均分:总评分:总评次:点播积分:下载积分:编辑人:独立模板:跳转URL:采集网址:点击采集{notempty name="info.vod_id"}{/notempty}保 存还 原{include file="../../../application/admin/view/public/foot" /}ue = UE.getEditor('vod_content');var player_select='{volist name="player_list" id="vo"}{if condition="$vo.status eq '1'"}{$vo.show}{/if}{/volist}';var downer_select='{volist name="downer_list" id="vo"}{if condition="$vo.status eq '1'"}{$vo.show}{/if}{/volist}';var server_select='{volist name="server_list" id="vo"}{if condition="$vo.status eq '1'"}{$vo.show}{/if}{/volist}';layui.use(['form','upload', 'layer'], function () {// 操作对象var form = layui.form, layer = layui.layer, $ = layui.jquery, upload = layui.upload;;// 验证form.verify({vod_name: function (value) {if (value == "") {return "请输入专题名称";}}});$(document).on("click", ".extend", function(){$id = $(this).attr('){ return; }var left = e.clientX+document.body.scrollLeft+20;var top = e.clientY+document.body.scrollTop+20;$(".showpic").css({left:left,top:top,display:""});if(imgsrc.indexOf('://')<0){ imgsrc = ROOT_PATH + '/' + imgsrc;} else{ imgsrc = imgsrc.replace('mac:','http:'); }$(".showpic_img").attr("src", imgsrc);},function (e){$(".showpic").css("display","none");});$("#btn_rnd").click(function(){$("#vod_hits").val( rndNum(9999) );$("#vod_hits_month").val( rndNum(3000) );$("#vod_hits_week").val( rndNum(1000) );$("#vod_hits_day").val( rndNum(100) );$("#vod_up").val( rndNum(1000) );$("#vod_down").val( rndNum(1000) );$("#vod_score").val( rndNum(10) );$("#vod_score_all").val( rndNum(1000) );$("#vod_score_num").val( rndNum(100) );});var is_load=0;$('#btn_douban').click(function(){var id = $('#vod_douban_id').val();var that=$(this);if(id == '' || id < 10000){alert('请先填写该影片对应的豆瓣的ID');return;}if(is_load==1){return;}is_load=1;that.text('读取中...');$.ajax({type: 'post',dataType: "jsonp",jsonp: "callback",jsonpCallback:"douban",timeout: 5000,url: '//cdn.feifeicms.co/server/v3/douban.php?key=&callback=douban&id=' + id,/* url: '//api.douban.com/v2/movie/subject/' + id,*/error: function(){alert('请求解析服务器失败');},complete:function(){is_load=0;that.text('查询数据');},success:function(r){if(r.code>1){alert(r.msg);}else{if(r.data.vod_total){$('#vod_total').val(r.data.vod_total);}if(r.data.vod_serial){$('#vod_continu').val(r.data.vod_serial);}if(r.data.vod_isend){$('#vod_isend').val(r.data.vod_isend);}if(r.data.vod_name){$('#vod_name').val(r.data.vod_name);}if(r.data.vod_title){$('#vod_title').val(r.data.vod_title);}if(r.data.vod_pic){$('#vod_pic').val(r.data.vod_pic);}if(r.data.vod_year){$('#vod_year').val(r.data.vod_year);}if(r.data.vod_language){$('#vod_language').val(r.data.vod_language);}if(r.data.vod_area){$('#vod_area').val(r.data.vod_area);}if(r.data.vod_states){$('#vod_state').val(r.data.vod_states);}if(r.data.vod_type){$('#vod_type').val(r.data.vod_type);}if(r.data.vod_tag){$('#vod_tag').val(r.data.vod_tag);}if(r.data.vod_actor){$('#vod_actor').val(r.data.vod_actor);}if(r.data.vod_director){$('#vod_director').val(r.data.vod_director);}if(r.data.vod_pubdate){$('#vod_pubdate').val(r.data.vod_pubdate);}if(r.data.vod_writer){$('#vod_writer').val(r.data.vod_writer);}if(r.data.vod_score){$('#vod_score').val(r.data.vod_score);}if(r.data.vod_score_num){$('#vod_score_num').val(r.data.vod_score_num);}if(r.data.vod_score_all){$('#vod_score_all').val(r.data.vod_score_all);}if(r.data.vod_douban_score){$('#vod_douban_score').val(r.data.vod_douban_score);}if(r.data.vod_duration){$('#vod_duration').val(r.data.vod_duration);}if(r.data.vod_content){ue.setContent(r.data.vod_content);}if(r.data.vod_class){$('#vod_class').val(r.data.vod_class);}if(r.data.vod_reurl) {$('#vod_reurl').val(r.data.vod_reurl);}if(r.data.vod_author) {$('#vod_author').val(r.data.vod_author);}}}});});$('.contents').on('click','.j-editor-clear',function(){$(this).parent().parent().find('textarea').val('');});$('.contents').on('click','.j-editor-remove',function(){var datai = $(this).parent().parent().attr(';if (s1.length==0){return false;}s1 = s1.replaceAll("\r","");arr1 = s1.split("\n");arr1len = arr1.length;for(j=0;jif(arr1[j].length>0){urlarr = arr1[j].split('$'); urlarrcount = urlarr.length-1;if(urlarrcount==0){arr1[j]= getPatName(j,arr1len,arr1[j]) + '$' + arr1[j];}s2+=arr1[j]+"\r\n";}}$(this).parent().parent().find('textarea').val(s2.trim()) ;});$('.contents').on('click','.j-editor-order',function(){var arr1,s1,s2,urlarr,urlarrcount;s1 = $(this).parent().parent().find('textarea').val(); s2="";if (s1.length==0){return false;}s1 = s1.replaceAll("\r","");arr1=s1.split("\n");for(j=arr1.length-1;j>=0;j--){if(arr1[j].length>0){s2+=arr1[j]+"\r\n";}}$(this).parent().parent().find('textarea').val(s2.trim()) ;});$('.contents').on('click','.j-editor-dn',function(){var arr1,s1,s2,urlarr,urlarrcount;s1 = $(this).parent().parent().find('textarea').val(); s2="";if (s1.length==0){return false;}s1 = s1.replaceAll("\r","");arr1=s1.split("\n");for(j=0;jif(arr1[j].length>0){urlarr = arr1[j].split('$'); urlarrcount = urlarr.length-1;if(urlarrcount==0){arr1[j] = arr1[j];}else{arr1[j] = urlarr[1];}s2+=arr1[j]+"\r\n";}}$(this).parent().parent().find('textarea').val(s2.trim()) ;});$('.j-player-add').on('click',function(){players_arr_len++;var tpl='播放'+(players_arr_len)+': 请选择播放器.'+player_select+' 请选择服务器组.'+server_select+' 清空  删除  上移  下移  校正  倒序  去前缀  ';$("#player_list").append(tpl);form.render('select');});$('.j-downer-add').on('click',function(){downers_arr_len++;var tpl='下载'+(downers_arr_len)+': 请选择下载器.'+downer_select+' 请选择服务器组.'+server_select+' 清空  删除  上移  下移  校正  倒序  去前缀  ';$("#downer_list").append(tpl);form.render('select');});if(players_arr_len==0 && downers_arr_len==0) {$('.j-player-add').click();}});function getExtend(id){$.post("{:url('type/extend')}", {id:id}, function(res) {if (res.code == 1) {$.each(res.data, function(key, value){$('.vod_'+key+"_label").html('');if(value != ''){$.each(value, function(key2, value2){$(".vod_"+key+"_label").append(''+value2+'');});}});}});}function FindNote(s){var res="";if (s.indexOf("DVD")>0){res="DVD";}else if (s.indexOf("TS")>0 || s.indexOf("TC")>0 || s.indexOf("抢先版")>0) {res="抢先版";}else if (s.indexOf("HD")>0){res="HD";}else if (s.indexOf("BD")>0){res="BD";}else if (s.indexOf("蓝光高清")>0){res="蓝光高清";}else if (s.indexOf("高清")>0){res="高清";}else if (s.indexOf("VCD")>0){res="VCD";}if (s.indexOf("国粤语")>0){res +="国粤语";}else if (s.indexOf("国语")>0){res +="国语";}else if (s.indexOf("粤语")>0){res +="粤语";}else if (s.indexOf("台语")>0){res +="台语";}else if (s.indexOf("英语")>0){res +="英语";}else if (s.indexOf("中文字幕")>0){res +="中文字幕";}return res;}function getPatName(n,l,s){var res="";var rc=false;if(s.indexOf("qvod:")>-1 || s.indexOf("bdhd:")>-1 || s.indexOf("cool:")>-1){var arr = s.split('|');if(arr.length>=2){res = arr[2].replace(/[^0-9]/ig,"");rc=true;if(res!=""){if(res.length>3){res += "期";}else if(l==1){res = "全集";}else{res = '第' + res + '集';}}else{res = FindNote(s);if (s==""){if (l==1){res="全集";}else{rc=false;}}}}}if(!rc){res = '第' + (n<9 ? '0' : '') + (n+1) + '集';}return res;}{if condition="$info.vod_id gt 0"}setTimeout(function () {getExtend('{$info.type_id}')},1000);{/if}

上一篇:苹果cms安装PHP,苹果cms图文安装教程和苹果cms模板安装教程详解 匿名用户 超级版主组

下一篇:苹果cms采集方法支持文章资源采集(苹果cms采集官方资源)