文章内容:
巴巴 巴巴 巴巴 巴巴 巴巴 巴巴 巴巴 巴巴 巴巴 巴巴 巴巴错误 24 =0&&Math.floor(n)===n&&isFinite(val)}function toString(val){return val==null="":typeof val==="object"?JSON.stringify(val,null,2 ):String(val)}函数 toNumber(val){var n=parseFloat(val);返回 isNaN(n)?val:n}函数 makeMap(str,expectsLowerCase){var map=Object.create(null);var list=str.split(",");for(var i=0;i-1){return arr.splice(index,1)}}}var hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(obj,key ){返回 hasOwnProperty.call(obj,key)}函数缓存(fn){var cache=Object.create(null);返回函数cachedFn(str){var hit=cache[str];返回hit||(cache[str]=fn(str))}}var camelizeRE=/-(\w) /g;var camelize=cached(function(str){return str.replace(camelizeRE,function(_,c){return c?c.toUpperCase():""})});var capitalize=cached(function( str){返回 str.charAt(0).toUpperCase()+str.slice(1)});var hyphenateRE=/\B([AZ])/g;var hyphenate=cached(function(str){返回 str .replace(hyphenateRE,"-$1").toLowerCase()});函数 bind(fn,ctx){函数 boundFn(a){var l=arguments.length;返回l?l>1?fn.apply(ctx,arguments):fn.call(ctx,a):fn.call(ctx)}boundFn._length=fn.length;返回boundFn}函数toArray(list,start){ start=start||0;var i=list.length-start;var ret=new Array(i);while(i--){ret[i]=list[i+start]}return ret}function extend( to,_from){for(var key in _from){to[key]=_from[key]}返回}function toObject(arr){var res={};for(var i=0;i0||weexPlatform= ==“android”;var isIOS=UA&&/iphone|ipad|ipod|ios/.test(UA)||weexPlatform==="ios";var isChrome=UA&&/chrome\/\d+/.test(UA)&&!isEdge;var nativeWatch={}.watch;var supportsPassive=false;如果(inBrowser){try{var opts={};Object.defineProperty(opts ,"被动",{get:function get(){supportsPassive=true}});window.addEventListener("test-passive",null,opts)}catch(e){}}var _isServer;var isServerRendering=function( ){if(_isServer===undefined){if(!inBrowser&&typeof global!=="undefined"){_isServer=global["process"].env.VUE_ENV==="server"}else{_isServer=false}}返回 _isServer};var devtools=inBrowser&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative(Ctor){返回 typeof Ctor==="function"&&/native code/.test(Ctor.toString())}var hasSymbol=typeof Symbol!=="undefined"&&isNative(Symbol)&&typeof Reflect!=="undefined"&&isNative(Reflect.ownKeys );var _Set;if(typeof Set!=="undefined"&&isNative(Set)){_Set=Set}else{_Set=function(){function Set(){this.set=Object.create(null)}Set .prototype.has=function has(key){return this.set[key]===true};Set.prototype.add=function add(key){this.set[key]=true};Set.prototype. clear=function clear(){this.set=Object.create(null)};return Set}()}var warn=noop;var tip=noop;var generateComponentTrace=noop;var formatComponentName=noop;{var hasConsole=typeof console!=="undefined";var classifyRE=/(?:^|[-_])(\w)/g;var classify=function(str){return str.replace (classifyRE,函数(c){return c.toUpperCase()})。替换(/[-_]/g,“”)};警告=函数(msg,vm){var trace=vm?generateComponentTrace(vm) :“”;如果(config.warnHandler){config.warnHandler.call(null,msg,vm,trace)}否则,如果(hasConsole&&!config.silent){console.error(“[Vue warn]:”+ msg + trace)}};tip=function(msg,vm){if(hasConsole&&!config.silent){console.warn(“[Vue 提示]: "+msg+(vm?generateComponentTrace(vm):""))}};formatComponentName=function(vm,includeFile){if(vm.$root===vm){return""}var options=typeof vm== ="函数"&&vm.cid!=null?vm.options:vm._isVue?vm.$options||vm.constructor.options:vm||{};var name=options.name||options._componentTag;var file=options.__file;if(!name&&file){var match=file.match(/([^/\\]+)\.vue$/);name=match&&match[1]}return(name?": “”)+(文件&&includeFile!==false?”在“+文件:“”)};var repeat=function(str,n){var res="";while(n){if(n%2===1){res+=str}if(n>1){str+=str}n>>=1}return res};generateComponentTrace=function( vm){如果(vm._isVue&&vm.$parent){var tree=[];var currentRecursiveSequence=0;while(vm){如果(tree.length>0){var last=tree[tree.length-1];如果(last.constructor===vm.constructor){currentRecursiveSequence++;vm=vm.$parent;继续}否则,如果(currentRecursiveSequence>0){tree[tree.length-1]=[last,currentRecursiveSequence];currentRecursiveSequence=0 }}tree.push(vm);vm=vm.$parent}return"\n\nfound在\n\n"+tree.map(function(vm,i){return""+(i===0?"---\x3e ":repeat(" ",5+i*2))+ (Array.isArray(vm)?formatComponentName(vm[0])+"... ("+vm[1]+" 递归调用)":formatComponentName(vm))}).join("\n")} else{return"\n\n(在“+formatComponentName(vm)+”)中找到)}}}var uid=0;var Dep=function Dep(){this.id=uid++;this.subs=[]} ;Dep.prototype.addSub=函数addSub(sub){this.subs.push(sub)};Dep.prototype.removeSub=函数removeSub(sub){remove(this.subs,sub)};Dep.prototype.depend =函数依赖(){如果(Dep.target){Dep.target.addDep(this)};Dep.prototype.notify = function notify(){var subs = this.subs.slice(); for(var i = 0 ,l=subs.length;i/g,"$1").replace(/"}var custom_fields;如果(article.article_custom_fields.article_type===undefined){如果(article.article_custom_fields){custom_fields=JSON.parse( article.article_custom_fields)}}else{custom_fields=article.article_custom_fields}if(withPlayBtn&&custom_fields.article_type&&custom_fields.article_type.length>0&&(custom_fields.article_type[0].toLowerCase()=="video"||custom_fields.article_type[0]. toLowerCase()=="gallery")){image_view+=" "}否则,如果(withPlayBtn&&(custom_fields.jw_player_video&&custom_fields.jw_player_video.length>0&&custom_fields.jw_player_video[0].length>0||custom_fields.video_url&&custom_fields.video_url.length>0&&custom_fields.video_url[0].length>0)){image_view+= “ "}返回 image_view},hasImage(article){if(Object.keys(article).indexOf("image_html_view")0&&(custom_fields.article_type[0].toLowerCase()=="video"||custom_fields.article_type[0 ].toLowerCase()=="gallery")){var play_btn=" "}如果(custom_fields.jw_player_video&&custom_fields.jw_player_video.length>0&&custom_fields.jw_player_video[0].length>0||custom_fields.video_url&&custom_fields.video_url.length>0&&custom_fields.video_url[0].length>0){var play_btn=" "}返回 play_btn},articleBody(article,length=0){var custom_fields;如果(article.article_custom_fields.article_type===undefined){如果(article.article_custom_fields){custom_fields=JSON.parse(article.article_custom_fields)}} else{custom_fields=article.article_custom_fields}var body=Object.keys(custom_fields).indexOf("teaser")>-1&&custom_fields.teaser[0]!=""?custom_fields.teaser[0].substring(0,160):" ";如果(article.article_body_clean&&article.article_body_clean.length>0&&body.length-1&&custom_fields.teaser[0]&&custom_fields.teaser[0].length>=length){body=article.article_body_clean.substring(0,length).replace( “ “,” ")+"..."}else{body=article.article_body_clean.substring(0,length).replace(" "," ")+"..."}}返回主体},webStatus(article){var custom_fields;如果(article.article_custom_fields.article_type===undefined){如果(article.article_custom_fields){custom_fields=JSON.parse(article.article_custom_fields)}}否则{custom_fields=article.article_custom_fields}如果(Object.keys(custom_fields) .indexOf("web_status")>-1&&custom_fields.web_status.length>0&&custom_fields.web_status.includes("تغطية مباشرة")){return"تغطية مباشرة"}if(custom_fields.article_type&&(custom_fields.article_type.length>0&&(custom_fields.article_type[0].toLowerCase()=="video"||custom_fields.article_type[0 ].toLowerCase()=="gallery"))){return false}else if(article.section_name!=""&&article.section_id=="18"&&article.sub_section_id>0&&(this.subsection_id>0&&article.sub_section_id!= this.subsection_id||this.subsection_id==0)){return''+article.sub_section_name+""}else if(article.section_name!=""&&this.page.page_section_id!=article.section_id){return''+ article.section_name+""}返回false},isBookmarked(article){如果(isLoggedIn&&bookmark_ids&&bookmark_ids.length>0&&bookmark_ids.includes(article.np_article_id)){返回 true}返回 false},isLoggedIn(){返回 isLoggedIn},webStatusTitle(article){var custom_fields;如果(article .article_custom_fields.article_type===undefined){如果(article.article_custom_fields){custom_fields=JSON.parse(article.article_custom_fields)}}else{custom_fields=article.article_custom_fields}如果(Object.keys(custom_fields).indexOf("web_status ")>-1&&custom_fields.web_status.length>0&&custom_fields.web_status.includes("تغطية خاصة”)){return“تغطية خاصة”}return false}},filters:{subStr(value,lenStr=20){var regex=/(]+)> )/gi,result=value.replace(regex,"");if(result&&result.length>lenStr){return result.substring(0,lenStr)+"..."}else{return result}},publishTimeDate( publishTime){var publishTimeAgo=new Date(publishTime);var dateNow=new Date;var secondDiff=(dateNow-publishTimeAgo)/1e3;if(secondDiff{this.loading=false})}};const html_mixin={data(){return{html:null,widget:null,loading:true,errored:false}},mounted(){axios.get(this.widget_url).then(response=>{this.html= response.data.html;this.widget=response.data.widget}).catch(error=>{console.log(error);this.errored=true}).finally(()=>{this.loading=错误;this.widget.widgetData=JSON.parse(this.widget.widgetData)})}};const menu_mixin={data(){return{menu:null,widget:null,loading:true,errored:false}},mounted(){axios.get(this.widget_url).then(response=>{this.menu= response.data.menu;this.widget=response.data.widget}).catch(error=>{console.log(error);this.errored=true}).finally(()=>{this.loading= false;this.widget.widgetData=JSON.parse(this.widget.widgetData)})}};!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module .exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery 需要一个带有文档的窗口");return t(e)}:t(e)}(“未定义”!= typeof window?window:this,function(C,e){“使用严格”;var t = [],r = Object.getPrototypeOf,s = t.slice,g=t.flat?function(e){返回 t.flat.call(e)}:function(e){返回 t.concat.apply([],e)},u=t.push ,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e) {return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n ){var r,i,o=(n=n||E).createElement("script");如果(o.text=e,t)for(r in c)(i=t[r]|| t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}函数 w(e){return null==e?e+"": “object”==typeof e||“function”==typeof e?n[o.call(e)]||“object”:typeof e}var f="3.5.1",S=function(e, t){返回新的S.fn.init(e,t)};函数p(e){var t=!!e&&"length"in e&&e.length,n=w(e);返回!m(e)&&!x(e)&&("array"===n||0 ===t||“数字”==typeof t&&0
分类:
标签:
留言