yidian.docinfo,c=l.query,d=l.doc,p=(navigator.userAgent||"").toLowerCase()},238:function(e,t,n){e.exports=n.p+"/views_online/article/article_init.pug"},239:function(e,t,n){"use strict";function r(){return c&&c.iflowApp&&"assistantscreen"===c.iflowApp&&c.distribution&&"oneplus"===c.distribution&&l.related_wemedia&&l.related_wemedia.fromId?'\n <header id="header">\n <h3>'+l.title+'</h3>\n <div class="meta">\n <div class="meta-items">\n <div class="meta-img"><img src="'+l.related_wemedia.media_pic+'"></div>\n <p class="source">'+l.related_wemedia.media_name+'</p>\n <p class="date">'+l.date_fmt+'</p>\n </div>\n <a href="javascript:;" class="follow-icon">关注</a>\n </div>\n </header>\n ':'\n <header id="header">\n <h3>'+l.title+'</h3>\n <div class="meta">\n <span class="date">'+l.date_fmt+'</span><span class="source">'+l.source+"</span>\n </div>\n </header>\n "}function i(){if(l.is_video)return'\n <article id="article" class="article-video">\n <div id="content" class="v-content">\n <div class="video-wrapper">\n <div class="video video-own">\n <video width="1" height="1" src="'+l.video_url+'" poster="'+l.image+'" volume="0.5" controls preload="true" playsinline webkit-playsinline="webkit-playsinline" x-webkit-airplay="allow"></video>\n </div>\n <div class="video-cover" style="background-image: url('+l.image+');"></div>\n <div class="video-play"></div>\n </div>\n </div>\n <div id="yd-source-wrapper-container">\n <div class="yd-source-wrapper"><span></span><div class="yd-source"><span></span>此网页由一点资讯提供</div></div>\n </div>\n </article>\n ';if(l.$content){var e=document.createElement("div");e.id="yd-source-wrapper-container",e.innerHTML='<div class="yd-source-wrapper"><div class="yd-source"><span></span>此网页由一点资讯提供</div></div>';var t=document.createElement("article");return t.id="article",t.appendChild(l.$content),t.appendChild(e),t}return'\n <article id="article">\n <div id="content" class="a-content">'+l.content+'</div>\n <div id="yd-source-wrapper-container">\n <div class="yd-source-wrapper"><span></span><div class="yd-source"><span></span>此网页由一点资讯提供</div></div>\n </div>\n </article>\n '}var a=n(44),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),s=yidian.docinfo,l=s.doc,c=s.query;if("oppo_gallery"===s.tpl){var d=n(240);document.getElementById("main").innerHTML=d({docinfo:s,gallery_items:l.gallery_items})}else!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getHeader,n=void 0===t?r:t,a=e.getArticle,o=void 0===a?i:a,s=n(),l=o(),c=document.getElementById("main");"string"==typeof l?c.innerHTML=s+l:(c.innerHTML=s,c.appendChild(l))}(),o.traverseNode(document.getElementById("article"),function(e){!e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src||window.eval(e.innerHTML)}),l.is_imedia&&o.loadScript("//static.yidianzixun.com/modules/build/common/tagcomponent.js",function(){try{window.$TagComponent.render()}catch(e){}});"oppo"!==s.tpl||c&&c.iflowApp&&"assistantscreen"===c.iflowApp||(document.getElementById("yd-source-wrapper-container").innerHTML+='\n <div class="personal-point">\n <div class="article-praise"><span class="praise-img"></span><span class="up">'+(l.up||0)+'</span></div>\n <div class="oppo-comlpain"><span class="comlpain-img"></span><span class="comlpain-txt">举报</span></div>\n </div>\n '),c&&c.iflowApp&&"assistantscreen"===c.iflowApp&&c.distribution&&"oneplus"===c.distribution&&(document.getElementById("yd-source-wrapper-container").innerHTML+='\n <div class="oneplus-personal-point">\n <div class="oneplus-article-praise"></div>\n </div>\n ')},240:function(e,t,n){"use strict";function r(e){var t,n="",r=e||{};return function(e,r){n+='\x3c!--renderData = {\n gallery_items: [],\n docinfo: docinfo\n};\n--\x3e<div class="swiper-container"><div class="swiper-wrapper">',function(){var e=r;if("number"==typeof e.length)for(var t=0,a=e.length;t<a;t++){var o=e[t];n=n+'<div class="swiper-slide"><div class="swiper-zoom-container"><img class="swiper-lazy"'+i.attr("data-src",o.img,!0,!0)+"></div></div>"}else{var a=0;for(var t in e){a++;var o=e[t];n=n+'<div class="swiper-slide"><div class="swiper-zoom-container"><img class="swiper-lazy"'+i.attr("data-src",o.img,!0,!0)+"></div></div>"}}}.call(this),n=n+'</div></div><aside class="desc"><div class="desc-box"><h3>'+i.escape(null==(t=e.doc.title)?"":t)+'</h3><div> <span class="index"><span id="currentPictureIndex">1</span><span>/</span><span class="total">'+i.escape(null==(t=r.length)?"":t)+'</span></span><span id="descContent">'+i.escape(null==(t=r[0].desc||"")?"":t)+"</span></div></div></aside>"}.call(this,"docinfo"in r?r.docinfo:"undefined"!=typeof docinfo?docinfo:void 0,"gallery_items"in r?r.gallery_items:"undefined"!=typeof gallery_items?gallery_items:void 0),n}var i=n(17);e.exports=r},44:function(e,t,n){"use strict";function r(e){var e,t;return t=location.search,"?"===t[0]&&(t=t.slice(1)),t=t.split("&"),t.forEach(function(t){return t=t.split("="),e[t[0]]=decodeURIComponent(t[1])})}function i(e){var t,n,r,i,a,o,s;return"string"!=typeof e||-1===e.indexOf(" ")&&-1===e.indexOf("T")?e=new Date(e):(e=-1!==e.indexOf(" ")?e.split(" "):e.split("T"),t=e[0].split("-"),a=e[1].split(":"),e=new Date(t[0],t[1]-1,t[2],a[0],a[1],a[2])),i=new Date,o=new Date(i.getFullYear(),i.getMonth(),i.getDate()),t=(e-o)/864e5,s=e.getFullYear()+"."+(e.getMonth()+1)+"."+e.getDate(),t>=0?(n=(i-e)/36e5,n<1?(r=(i-e)/6e4,s=r>=1?Math.floor(r)+"分钟前":"刚刚"):s=Math.floor(n)+"小时前"):t>-4&&(t=Math.ceil(Math.abs(t)),s=1===t?"昨天":t+"天前"),s}function a(e){var t,n,r,i,a,o,s;return"string"!=typeof e||-1===e.indexOf(" ")&&-1===e.indexOf("T")?e=new Date(e):(e=-1!==e.indexOf(" ")?e.split(" "):e.split("T"),t=e[0].split("-"),a=e[1].split(":"),e=new Date(t[0],t[1]-1,t[2],a[0],a[1],a[2])),i=new Date,o=new Date(i.

Prev | Next
Pg.: 1 2 3 4 5 6


Back to home | File page

Subscribe | Register | Login | N