You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-helpCenter-helpDetails-helpDetails"],{"08db":function(t,e,i){"use strict";var r=i("8e18"),a=i.n(r);a.a},2856:function(t,e,i){"use strict";i.r(e);var r=i("4590"),a=i.n(r);for(var n in r)"default"!==n&&function(t){i.d(e,t,(function(){return r[t]}))}(n);e["default"]=a.a},4397:function(t,e,i){var r=i("24fb");e=r(!1),e.push([t.i,"@-webkit-keyframes show-data-v-21de0c3c{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-21de0c3c{0%{opacity:0}100%{opacity:1}}\n\n\n\n\n",""]),t.exports=e},4590:function(t,e,i){"use strict";var r=i("4ea4");i("99af"),i("caad"),i("c975"),i("acd8"),i("ac1f"),i("2532"),i("466d"),i("5319"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("b85c")),n=uni.getSystemInfoSync().screenWidth/750,o=i("ba1f"),s={name:"parser",data:function(){return{uid:this._uid,showAm:"",nodes:[],poster:""}},props:{name:"parser",html:null,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){console.log("html",t),this.setContent(t)}},mounted:function(){this.poster=uni.getStorageSync("platformInfor").videoimg,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,r="",a=0;i=e[a];a++){if("/"==i&&"/"!=e[a-1]&&"/"!=e[a+1])break;r+=Math.random()>.5?i.toUpperCase():i}return r+=e.substr(a),this[t]=r}if(this[t]=e,e.includes("data:image")){var n=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!n)return}}},this.document=document.getElementById("rtf"+this._uid),this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList&&this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{_Dom2Str:function(t){var e,i="",r=(0,a.default)(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;if("text"==n.type)i+=n.text;else{for(var o in i+="<"+n.name,n.attrs||{})i+=" "+o+'="'+n.attrs[o]+'"';n.children&&n.children.length?i+=">"+this._Dom2Str(n.children)+"</"+n.name+">":i+=">"}}}catch(s){r.e(s)}finally{r.f()}return i},_handleHtml:function(t,e){if("string"!=typeof t&&(t=this._Dom2Str(t.nodes||t)),!e){var i="<style scoped>@keyframes show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";for(var r in o.userAgentStyles)i+="".concat(r,"{").concat(o.userAgentStyles[r],"}");for(r in this.tagStyle)i+="".concat(r,"{").concat(this.tagStyle[r],"}");i+="</style>",t=i+t}return t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*n+"px"}))),t},setContent:function(t,e){var i=this,r=t.replace(/$nbsp;/g,"");if(r){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(r,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,r=0;e=t[r++];)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,f=this.rtf.getElementsByTagName("title");f.length&&this.autosetTitle&&(this.imgList.length=0);for(var d,h=this.rtf.getElementsByTagName("img"),p=0,g=0;d=h[p];p++){var v=d.getAttribute("src");d.style.maxWidth="100%",d.style.verticalAlign="top",this.domain&&v&&("/"==v[0]?"/"==v[1]?d.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+v:d.src=this.domain+v:v.includes("://")||(d.src=this.domain+"/"+v)),d.hasAttribute("ignore")||"A"==d.parentElement.nodeName||(d.i=g++,u.imgList.push(d.src||d.getAttribute("data-src")),d.onclick=function(){this.ignore=function(){return!1},u.$emit("imgtap",this)}),d.onerror=function(){o.errorImg&&(u.imgList[this.i]=this.src=o.errorImg),u.$emit("error",{source:"img",target:this})},u.lazyLoad&&this._observer&&d.src&&0!=d.i&&(d.setAttribute("data-src",d.src),d.removeAttribute("src"),this._observer.observe(d))}var b,m=this.rtf.getElementsByTagName("a"),y=(0,a.default)(m);try{for(y.s();!(b=y.n()).done;){var w=b.value;w.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(H){y.e(H)}finally{y.f()}var x=this.rtf.getElementsByTagName("video");u.videoContexts=x;for(var T,_=0;T=x[_++];)T.style.maxWidth="100%",T.poster=u.poster,T.onerror=function(){u.$emit("error",{source:"video",target:this})},T.onplay=function(){if(u.autopause)for(var t,e=0;t=u.videoContexts[e++];)t!=this&&t.pause()};var k,A,C=this.rtf.getElementsByTagName("audio"),I=(0,a.default)(C);try{for(I.s();!(k=I.n()).done;){var S=k.value;S.onerror=function(){u.$emit("error",{source:"audio",target:this})}}}catch(H){I.e(H)}finally{I.f()}if(this.autoscroll){var M,B=this.rtf.getElementsByTagName("table"),E=(0,a.default)(B);try{for(E.s();!(M=E.n()).done;){var L=M.value,O=document.createElement("div");O.style.overflow="scroll",L.parentNode.replaceChild(O,L),O.appendChild(L)}}catch(H){E.e(H)}finally{E.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==A&&(i.$emit("ready",i.rect),clearInterval(i._timer)),A=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},navigateTo:function(t){if(!this.useAnchor)return t.fail&&t.fail({errMsg:"Anchor is disabled"});if(!t.id)return window.scrollTo(0,this.rtf.offsetTop),t.success&&t.success({errMsg:"pageScrollTo:ok"});var e=document.getElementById(t.id);if(!e)return t.fail&&t.fail({errMsg:"Label not found"});t.scrollTop=this.rtf.offsetTop+e.offsetTop+(t.offset||0),uni.pageScrollTo(t)},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]}}};e.default=s},"643b":function(t,e,i){var r=i("24fb");e=r(!1),e.push([t.i,"[data-v-50bbbafa] .uni-scroll-view::-webkit-scrollbar{width:0;height:0}.scollView[data-v-50bbbafa]{padding:0 %?30?%;width:%?690?%}.helpDetails[data-v-50bbbafa]{font-size:0;overflow-x:scroll}uni-page-body[data-v-50bbbafa]{background:#fff}.detailsMainPackage[data-v-50bbbafa]{padding:%?30?% 0;font-size:%?24?%;color:#999}.detailsTitlePackage[data-v-50bbbafa]{margin:0 %?30?%;border-bottom:%?1?% solid #eff0fe}.detailsTitlePackage > span[data-v-50bbbafa]{line-height:%?105?%;font-size:%?30?%;font-weight:700;color:#333}.detailsTitle[data-v-50bbbafa]{height:%?105?%}body.?%PAGE?%[data-v-50bbbafa]{background:#fff}",""]),t.exports=e},"883b":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return r}));var r={jyfParser:i("c906").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"helpDetails"},[i("far-bottom"),i("v-uni-view",{staticClass:"detailsTitle"},[i("v-uni-view",{staticClass:"detailsTitlePackage"},[i("span",[t._v(t._s(t.detailInfo.title))])])],1),i("v-uni-scroll-view",{staticClass:"scollView",style:{height:t.phoneHight},attrs:{"scroll-x":!0,"scroll-y":!0}},[i("v-uni-view",{staticClass:"detailsMain"},[i("v-uni-view",{staticClass:"detailsMainPackage"},[i("jyf-parser",{attrs:{html:t.detailInfo.content}})],1)],1)],1)],1)},n=[]},"8e18":function(t,e,i){var r=i("4397");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=i("4f06").default;a("37f0caa6",r,!0,{sourceMap:!1,shadowMode:!1})},"91a4":function(t,e,i){var r=i("643b");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=i("4f06").default;a("fb1c211a",r,!0,{sourceMap:!1,shadowMode:!1})},aa0a:function(t,e,i){"use strict";var r=i("4ea4");i("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("2c7c")),n=(r(i("c906")),r(i("ec93")),{data:function(){return{detailInfo:{},phoneHight:0,titleHeight:0}},onLoad:function(t){var e=this;e.id=t.id,e.init()},mounted:function(){var t=this;uni.createSelectorQuery().select(".detailsTitle").boundingClientRect((function(e){t.titleHeight=e.height})).exec(),uni.getSystemInfo({success:function(e){t.phoneHight=e.windowHeight-t.titleHeight+"px"}})},methods:{init:function(){var t=this;t.getDetailInfo()},getDetailInfo:function(){var t=this,e={id:t.id};a.default._post_form("&p=helper&do=detail",e,(function(e){t.detailInfo=e.data}))}}});e.default=n},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=n;var r=a(i("06c5"));function a(t){return t&&t.__esModule?t:{default:t}}function n(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,r.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,n=function(){};return{s:n,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:n}}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}}}}},ba1f:function(t,e,i){function r(t){for(var e=Object.create(null),i=t.split(","),r=i.length;r--;)e[i[r]]=!0;return e}i("ac1f"),i("1276"),t.exports={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"),blockTags:r("address,article,aside,body,caption,center,cite,footer,header,html,nav,section,pre"),ignoreTags:r("area,base,canvas,frame,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr,iframe"),richOnlyTags:r("a,colgroup,fieldset,legend,picture,table,navigator"),selfClosingTags:r("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:r("align,allowfullscreen,alt,app-id,author,autoplay,autostart,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:r("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),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"}}},ba64:function(t,e,i){"use strict";i.r(e);var r=i("883b"),a=i("d5be");for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("bbad");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"50bbbafa",null,!1,r["a"],o);e["default"]=l.exports},bbad:function(t,e,i){"use strict";var r=i("91a4"),a=i.n(r);a.a},c906:function(t,e,i){"use strict";i.r(e);var r=i("fcef"),a=i("2856");for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("08db");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"21de0c3c",null,!1,r["a"],o);e["default"]=l.exports},d5be:function(t,e,i){"use strict";i.r(e);var r=i("aa0a"),a=i.n(r);for(var n in r)"default"!==n&&function(t){i.d(e,t,(function(){return r[t]}))}(n);e["default"]=a.a},fcef:function(t,e,i){"use strict";var r;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return r}));var a=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)},n=[]}}]);
|