pages-applic-info.33113de5.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-applic-info"],{2353:function(t,e,i){"use strict";i.r(e);var n=i("8773"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"24bf":function(t,e,i){"use strict";var n=i("4ea4");i("a4d3"),i("e01a"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i("d9da"),a=n(i("b98c")),o={components:{jyfParser:a.default},data:function(){return{id:"",list:"",description:"",type:0}},onLoad:function(t){this.id=t.id,this.loadData()},methods:{loadData:function(){var t=this;(0,r.details)({},t.id).then((function(e){t.list=e.data,null!=t.list.content&&(t.description=t.list.content.replace(/<img/g,"<img style='max-width:100%;height:auto;'"))}))}}};e.default=o},3239:function(t,e,i){"use strict";var n=i("49af"),r=i.n(n);r.a},"43ab":function(t,e,i){"use strict";i.r(e);var n=i("ed7b"),r=i("d1f8");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("d50a");var o,s=i("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"570fabe3",null,!1,n["a"],o);e["default"]=l.exports},"49af":function(t,e,i){var n=i("c2a6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("ea3af736",n,!0,{sourceMap:!1,shadowMode:!1})},"4afd":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-570fabe3]{min-height:100%;background:#fff}.notice_name[data-v-570fabe3]{font-size:%?35?%!important;color:#303133;padding:%?25?% %?25?% %?0?% %?25?%;margin-bottom:%?25?%}.course-video[data-v-570fabe3]{width:100%;height:%?500?%}.notice-item[data-v-570fabe3]{width:100%;height:100%;color:#666;padding:%?35?% %?35?%;font-size:%?23?%;padding-bottom:%?30?%}body.?%PAGE?%[data-v-570fabe3]{background:#fff}',""]),t.exports=e},"806a":function(t,e,i){i("ac1f"),i("1276");var n={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:r(" , ,\t,\r,\n,\f"),boolAttrs:r("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:r("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:r("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:r("a,colgroup,fieldset,legend,table"),selfClosingTags:r("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:r("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function r(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=n},8773:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("caad"),i("c975"),i("acd8"),i("e25e"),i("ac1f"),i("2532"),i("466d"),i("5319"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("b85c")),a=uni.getSystemInfoSync().windowWidth,o=i("806a"),s={name:"parser",data:function(){return{uid:this._uid,showAm:"",nodes:[]}},props:{html:String,autopause:{type:Boolean,default:!0},autoscroll:Boolean,autosetTitle:{type:Boolean,default:!0},domain:String,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},created:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,n=e.split("://")[0],r=n.length;i=e[r];r++){if("/"==i&&"/"!=e[r-1]&&"/"!=e[r+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(r),this[t]=n}if(this[t]=e,e.includes("data:image")){var a=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!a)return}}}},mounted:function(){this.document=document.getElementById("rtf"+this._uid),this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var s,l=this.rtf.getElementsByTagName("style"),c=0;s=l[c++];)s.innerHTML=s.innerHTML.replace(/body/g,"#rtf"+this._uid),s.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"500px 0px 500px 0px"}));var u=this,d=this.rtf.getElementsByTagName("title");d.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:d[0].innerText}),this.imgList.length=0;for(var f,h=this.rtf.getElementsByTagName("img"),p=0,m=0;f=h[p];p++){parseInt(f.style.width||f.getAttribute("width"))>a&&(f.style.height="auto");var g=f.getAttribute("src");this.domain&&g&&("/"==g[0]?"/"==g[1]?f.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+g:f.src=this.domain+g:g.includes("://")||(f.src=this.domain+"/"+g)),f.hasAttribute("ignore")||"A"==f.parentElement.nodeName||(f.i=m++,u.imgList.push(f.src||f.getAttribute("data-src")),f.onclick=function(){var t=!0;this.ignore=function(){return t=!1},u.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:u.imgList})}),f.onerror=function(){o.errorImg&&(u.imgList[this.i]=this.src=o.errorImg),u.$emit("error",{source:"img",target:this})},u.lazyLoad&&this._observer&&f.src&&0!=f.i&&(f.setAttribute("data-src",f.src),f.removeAttribute("src"),this._observer.observe(f))}var v,b=this.rtf.getElementsByTagName("a"),y=(0,r.default)(b);try{for(y.s();!(v=y.n()).done;){var _=v.value;_.onclick=function(){var t=!0,e=this.getAttribute("href");if(u.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])u.useAnchor&&u.navigateTo({id:e.substr(1)});else{if(0==e.indexOf("http")||0==e.indexOf("//"))return!0;uni.navigateTo({url:e})}return!1}}}catch(j){y.e(j)}finally{y.f()}var w=this.rtf.getElementsByTagName("video");u.videoContexts=w;for(var x,T=0;x=w[T++];)x.style.maxWidth="100%",x.onerror=function(){u.$emit("error",{source:"video",target:this})},x.onplay=function(){if(u.autopause)for(var t,e=0;t=u.videoContexts[e++];)t!=this&&t.pause()};var A,k,C=this.rtf.getElementsByTagName("audio"),S=(0,r.default)(C);try{for(S.s();!(A=S.n()).done;){var I=A.value;I.onerror=function(){u.$emit("error",{source:"audio",target:this})}}}catch(j){S.e(j)}finally{S.f()}if(this.autoscroll){var B,L=this.rtf.getElementsByTagName("table"),M=(0,r.default)(L);try{for(M.s();!(B=M.n()).done;){var O=B.value,E=document.createElement("div");E.style.overflow="scroll",O.parentNode.replaceChild(E,O),E.appendChild(O)}}catch(j){M.e(j)}finally{M.f()}}e||this.document.appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){i.rect=i.rtf.getBoundingClientRect(),i.rect.height==k&&(i.$emit("ready",i.rect),clearInterval(i._timer)),k=i.rect.height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:_show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;var t="";return t=this.rtf.innerText,t},in:function(t){t.page&&t.selector&&t.scrollTop&&(this._in=t)},navigateTo:function(t){var e=this;if(!this.useAnchor)return t.fail&&t.fail("Anchor is disabled");var i=" ",n=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(i,"#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(i,".").concat(t.id):"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((function(i){if(!i[0])return t.fail&&t.fail("Label not found");var n=i[1].scrollTop+i[0].top-(i[2]?i[2].top:0)+(t.offset||0);e._in?e._in.page[e._in.scrollTop]=n:uni.pageScrollTo({scrollTop:n,duration:300}),t.success&&t.success()}))},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},_handleHtml:function(t,e){if(!e){var i="<style scoped>@keyframes _show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";for(var n in o.userAgentStyles)i+="".concat(n,"{").concat(o.userAgentStyles[n],"}");for(n in this.tagStyle)i+="".concat(n,"{").concat(this.tagStyle[n],"}");i+="</style>",t=i+t}return t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*a/750+"px"}))),t}}};e.default=s},b191:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},a=[]},b85c:function(t,e,i){"use strict";i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=r(i("06c5"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(l)throw o}}}}},b98c:function(t,e,i){"use strict";i.r(e);var n=i("b191"),r=i("2353");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("3239");var o,s=i("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6ea0d5e4",null,!1,n["a"],o);e["default"]=l.exports},c2a6:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-6ea0d5e4{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-6ea0d5e4{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},cb9f:function(t,e,i){var n=i("4afd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("3120a607",n,!0,{sourceMap:!1,shadowMode:!1})},d1f8:function(t,e,i){"use strict";i.r(e);var n=i("24bf"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},d50a:function(t,e,i){"use strict";var n=i("cb9f"),r=i.n(n);r.a},d9da:function(t,e,i){"use strict";var n=i("4ea4");i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.articletop=a,e.articledel=o,e.details=s,e.deconstructArticle=l;var r=n(i("b292"));function a(t){return(0,r.default)({url:"/api/circle/articletop",method:"post",data:t})}function o(t){return(0,r.default)({url:"/api/circle/articledel",method:"post",data:t})}function s(t,e){return(0,r.default)({url:"/api/article/details/"+e,method:"get",data:t})}function l(t){return t&&(t=t.replace(/<img/g,'<img style="width: 100% !important;height:auto"').replace(/<p>\S*<img/g,'<p style="line-height: 0;"><img')),t}},ed7b:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={jyfParser:i("b98c").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"notice-item"},[i("jyf-parser",{ref:"article",attrs:{html:t.description}})],1)],1)},a=[]}}]);