Commit 72aaba35 by libai

测试

parent eb7bf56f
Showing with 5 additions and 1 deletions
...@@ -250,7 +250,6 @@ $(function(){ ...@@ -250,7 +250,6 @@ $(function(){
html+='</div>'; html+='</div>';
$(".grap-content").html(html); $(".grap-content").html(html);
$("title").text(details.title) $("title").text(details.title)
$(".top-keywords").attr("content",tagsArr) $(".top-keywords").attr("content",tagsArr)
} }
}) })
......
...@@ -183,6 +183,7 @@ $(function(){ ...@@ -183,6 +183,7 @@ $(function(){
var list=data.topic; var list=data.topic;
var details=JSON.parse(list.content) var details=JSON.parse(list.content)
$("title").text(details.title) $("title").text(details.title)
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var iosUrl=details.videos[0].url.replace("flv","mp4") var iosUrl=details.videos[0].url.replace("flv","mp4")
...@@ -193,6 +194,7 @@ $(function(){ ...@@ -193,6 +194,7 @@ $(function(){
} }
// console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'') // console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
var html=[]; var html=[];
var tagsArr=[]
html+='<img class="grap-user-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80" alt="">'; html+='<img class="grap-user-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80" alt="">';
html+='<p class="grap-name-p1">'+list.nickname+'</p>'; html+='<p class="grap-name-p1">'+list.nickname+'</p>';
html+='<p class="grap-name-p2">'+timeGet(list.updateTime)[0]+''+timeGet(list.updateTime)[1]+''+timeGet(list.updateTime)[2]+' '+timeGet(list.updateTime)[3]+':'+timeGet(list.updateTime)[5]+'</p>'; html+='<p class="grap-name-p2">'+timeGet(list.updateTime)[0]+''+timeGet(list.updateTime)[1]+''+timeGet(list.updateTime)[2]+' '+timeGet(list.updateTime)[3]+':'+timeGet(list.updateTime)[5]+'</p>';
...@@ -209,9 +211,12 @@ $(function(){ ...@@ -209,9 +211,12 @@ $(function(){
html+='<div class="tag-content">'; html+='<div class="tag-content">';
for(var j=0;j<list.tags.length;j++){ for(var j=0;j<list.tags.length;j++){
html+='<div data-type="'+list.tags[j].tagId+'" class="tag">#'+list.tags[j].tagName+'</div>'; html+='<div data-type="'+list.tags[j].tagId+'" class="tag">#'+list.tags[j].tagName+'</div>';
if(j+1==list.tags.length) tagsArr+=''+list.tags[j].tagName+''
else tagsArr+=''+list.tags[j].tagName+','
} }
html+='</div>'; html+='</div>';
$(".grap-content").html(html); $(".grap-content").html(html);
$(".keywords-meta").attr("content",tagsArr)
} }
}) })
$.ajax({ $.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment