| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-special-topic"],{"06b3":function(t,e,i){"use strict";i.r(e);var n=i("581a"),o=i("ef7a");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("f5e9");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"2ed9a6d2",null,!1,n["a"],void 0);e["default"]=r.exports},3471:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},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 s,r=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){c=!0,s=t},f:function(){try{r||null==i["return"]||i["return"]()}finally{if(c)throw s}}}},i("01a2"),i("e39c"),i("bf0f"),i("844d"),i("18f7"),i("de6c"),i("7a76"),i("c9b5");var n=function(t){return t&&t.__esModule?t:{default:t}}(i("5d6b"))},"349b":function(t,e,i){var n=i("6529");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("55b57a4c",n,!0,{sourceMap:!1,shadowMode:!1})},"3a0c":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("3471"));i("5ef2"),i("4626"),i("5ac7"),i("5c47"),i("2c10"),i("af8f"),i("a1c1"),i("e966"),i("aa9c"),i("c223"),i("e838");var a=uni.getSystemInfoSync(),s=a.windowWidth,r=(a.platform,i("ab37")),c={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],o=n.length;i=e[o];o++){if("/"==i&&"/"!=e[o-1]&&"/"!=e[o+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(o),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 a,c=this.rtf.getElementsByTagName("style"),l=0;a=c[l++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.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 d=this,u=this.rtf.getElementsByTagName("title");u.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:u[0].innerText});var f=function(t){var e=t.getAttribute("src");i.domain&&e&&("/"==e[0]?"/"==e[1]?t.src=(i.domain.includes("://")?i.domain.split("://")[0]:"")+":"+e:t.src=i.domain+e:e.includes("://")||0==e.indexOf("data:")||(t.src=i.domain+"/"+e))};this.imgList.length=0;for(var h,v=this.rtf.getElementsByTagName("img"),p=0,g=0;h=v[p];p++)parseInt(h.style.width||h.getAttribute("width"))>s&&(h.style.height="auto"),f(h),h.hasAttribute("ignore")||"A"==h.parentElement.nodeName||(h.i=g++,d.imgList.push(h.getAttribute("original-src")||h.src||h.getAttribute("data-src")),h.onclick=function(t){t.stopPropagation();var e=!0;this.ignore=function(){return e=!1},d.$emit("imgtap",this),e&&uni.previewImage({current:this.i,urls:d.imgList})}),h.onerror=function(){r.errorImg&&(d.imgList[this.i]=this.src=r.errorImg),d.$emit("error",{source:"img",target:this})},d.lazyLoad&&this._observer&&h.src&&0!=h.i&&(h.setAttribute("data-src",h.src),h.removeAttribute("src"),this._observer.observe(h));var m,b=this.rtf.getElementsByTagName("a"),w=(0,o.default)(b);try{for(w.s();!(m=w.n()).done;){var _=m.value;_.onclick=function(t){t.stopPropagation();var e=!0,i=this.getAttribute("href");if(d.$emit("linkpress",{href:i,ignore:function(){return e=!1}}),e&&i)if("#"==i[0])d.useAnchor&&d.navigateTo({id:i.substr(1)});else{if(0==i.indexOf("http")||0==i.indexOf("//"))return!0;uni.navigateTo({url:i})}return!1}}}catch(L){w.e(L)}finally{w.f()}var y=this.rtf.getElementsByTagName("video");d.videoContexts=y;for(var x,k=0;x=y[k++];)f(x),x.style.maxWidth="100%",x.onerror=function(){d.$emit("error",{source:"video",target:this})},x.onplay=function(){if(d.autopause)for(var t,e=0;t=d.videoContexts[e++];)t!=this&&t.pause()};var C,T,S=this.rtf.getElementsByTagName("audio"),$=(0,o.default)(S);try{for($.s();!(C=$.n()).done;){var A=C.value;f(A),A.onerror=function(){d.$emit("error",{source:"audio",target:this})}}}catch(L){$.e(L)}finally{$.f()}if(this.autoscroll){var I,B=this.rtf.getElementsByTagName("table"),O=(0,o.default)(B);try{for(O.s();!(I=O.n()).done;){var E=I.value,M=document.createElement("div");M.style.overflow="scroll",E.parentNode.replaceChild(M,E),M.appendChild(E)}}catch(L){O.e(L)}finally{O.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==T&&(i.$emit("ready",i.rect),clearInterval(i._timer)),T=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=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(" ","#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(" ",".").concat(t.id):"")).boundingClientRect();this._in?i.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():i.selectViewport().scrollOffset(),i.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 r.userAgentStyles)i+="".concat(n,"{").concat(r.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)*s/750+"px"}))),t}}};e.default=c},"581a":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uParse:i("c6b8").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0==t.shenheStatus?i("v-uni-view",{staticClass:"topic"},[i("v-uni-view",{staticClass:"topic-content"},[i("v-uni-view",{staticClass:"topic-title"},[t._v(t._s(t.msg.title))]),i("v-uni-view",{staticClass:"topic-data"},[i("v-uni-view",[t._v(t._s(t.msg.addtime))]),i("v-uni-view",[t._v(t._s(t.msg.read_count))])],1),i("v-uni-view",{staticClass:"topic-text"},[i("u-parse",{attrs:{html:t.msg.content}})],1)],1),i("v-uni-view",{staticClass:"btn-bottom"},[0==t.msg.is_favorite?i("v-uni-view",{staticClass:"show",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite(1)}}},[i("v-uni-text",{staticClass:"iconfont icon-collection"}),i("v-uni-view",[t._v(t._s(t.$t("goods.collect")))])],1):t._e(),1==t.msg.is_favorite?i("v-uni-view",{staticClass:"show",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite(0)}}},[i("v-uni-text",{staticClass:"iconfont icon-collection-fill",staticStyle:{color:"#fa2c19"}}),i("v-uni-view",[t._v(t._s(t.$t("goods.collected")))])],1):t._e(),i("v-uni-view",{staticClass:"xiang",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.share.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-share"}),i("v-uni-view",[t._v(t._s(t.$t("goods.share")))])],1)],1),i("share",{ref:"share",attrs:{topic_id:t.id}})],1):1==t.shenheStatus?i("Shenhe"):t._e()},a=[]},"5c59":function(t,e,i){"use strict";i.r(e);var n=i("3a0c"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},6529:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-3120ed1e{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-3120ed1e{0%{opacity:0}100%{opacity:1}}\n\n\n\n\n",""]),t.exports=e},"66cd":function(t,e,i){"use strict";i.r(e);var n=i("fcde"),o=i("ee73");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("8c1e");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"b87eae98",null,!1,n["a"],void 0);e["default"]=r.exports},"74bb":function(t,e,i){var n=i("7bca");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("de149718",n,!0,{sourceMap:!1,shadowMode:!1})},"7b0c":function(t,e,i){var n=i("a11f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("42ac7c98",n,!0,{sourceMap:!1,shadowMode:!1})},"7bca":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-2ed9a6d2] .u-form-item--right__content__slot > uni-view,[data-v-2ed9a6d2] .u-form-item--right__content__slot > div,[data-v-2ed9a6d2] .u-form-item--right__content__slot > span,[data-v-2ed9a6d2] .u-form-item--right__content__slot > uni-text{width:100%}.topic[data-v-2ed9a6d2]{min-height:100vh;padding-bottom:%?110?%}.topic-content[data-v-2ed9a6d2]{padding:%?0?% %?34?% %?110?%;background-color:#fff}.topic-content .topic-title[data-v-2ed9a6d2]{margin:%?50?% auto %?43?%;font-size:%?48?%;font-family:PingFang SC;font-weight:700;color:#1d1d1d;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-all}.topic-content .topic-data[data-v-2ed9a6d2]{display:flex;font-size:%?28?%;align-items:center;color:#999}.topic-content .topic-data > uni-view[data-v-2ed9a6d2]:nth-child(1){position:relative;margin-right:%?15?%;padding-right:10px}.topic-content .topic-data > uni-view[data-v-2ed9a6d2]:nth-child(1)::before{content:"";position:absolute;right:0;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:%?28?%;width:1px;background:#999}.topic-content .topic-text[data-v-2ed9a6d2]{margin-top:%?52?%}.btn-bottom[data-v-2ed9a6d2]{position:fixed;bottom:%?0?%;left:%?0?%;width:100%;height:%?100?%;display:flex;background-color:#fff}.btn-bottom > uni-view[data-v-2ed9a6d2]{width:50%;display:flex;justify-content:center;align-items:center}.btn-bottom > uni-view .iconfont[data-v-2ed9a6d2]{margin-right:%?8?%;font-size:%?52?%}.btn-bottom > uni-view uni-view[data-v-2ed9a6d2]{font-size:%?26?%}',""]),t.exports=e},"89ee":function(t,e,i){"use strict";var n=i("349b"),o=i.n(n);o.a},"8c1e":function(t,e,i){"use strict";var n=i("7b0c"),o=i.n(n);o.a},a11f:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-b87eae98] .u-form-item--right__content__slot > uni-view,[data-v-b87eae98] .u-form-item--right__content__slot > div,[data-v-b87eae98] .u-form-item--right__content__slot > span,[data-v-b87eae98] .u-form-item--right__content__slot > uni-text{width:100%}.dis-list[data-v-b87eae98]{display:flex;justify-content:space-around;background-color:#f2f2f2}.dis-list > uni-view[data-v-b87eae98]{padding:%?60?% %?0?%;display:flex;flex-direction:column;align-items:center;justify-content:center}.dis-list > uni-view uni-image[data-v-b87eae98]{width:%?120?%;height:%?120?%;margin-bottom:%?12?%;border-radius:50%}.dis-list > uni-view uni-view[data-v-b87eae98]{text-align:center;width:%?180?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.dis-list > uni-view uni-button[data-v-b87eae98]{position:relative;display:block;margin-left:auto;margin-right:auto;padding:%?0?%;box-sizing:border-box;text-align:center;text-decoration:none;border-radius:5px;width:%?180?%;height:%?80?%;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f2f2f2;font-size:%?32?%}.dis-list > uni-view uni-button[data-v-b87eae98]::after{border:0}.dis-list > uni-view uni-button[disabled][data-v-b87eae98]{background-color:#fff;color:#666}.dis-list > uni-view .button-hover[data-v-b87eae98]{color:rgba(0,0,0,.6);background-color:#fff}.close[data-v-b87eae98]{text-align:center;height:%?100?%;line-height:%?100?%;background-color:#fff}.poster[data-v-b87eae98]{position:fixed;top:%?0?%;left:%?0?%;width:100vw;height:100vh;background-color:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;padding:%?40?%}.poster .poster-content[data-v-b87eae98]{width:100%;height:100%;border-radius:%?10?%;background-color:#fff;box-sizing:border-box;padding:%?24?%;display:flex;flex-direction:column;align-items:center}.poster .poster-content .poster-close[data-v-b87eae98]{width:100%;display:flex;justify-content:flex-end}.poster .poster-content .poster-close uni-image[data-v-b87eae98]{width:%?40?%;height:%?40?%}.poster .poster-content .poster-img-content[data-v-b87eae98]{margin-bottom:%?36?%;width:80%;height:75%}.poster .poster-content .poster-img-content .poster-img[data-v-b87eae98]{margin-top:%?36?%;width:100%;height:100%}.poster .poster-content .poster-img-content .poster-load[data-v-b87eae98]{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.poster .poster-content .poster-img-content .poster-load uni-image[data-v-b87eae98]{width:%?88?%;height:%?88?%}.poster .poster-content .poster-img-content .poster-load uni-view[data-v-b87eae98]{margin-top:%?10?%;color:#888}.poster .poster-content .save[data-v-b87eae98]{padding-top:%?36?%;width:80%}.poster .poster-content .save .save-one[data-v-b87eae98]{width:100%;margin-bottom:%?11?%;height:%?80?%;line-height:%?80?%;text-align:center;border:%?1?% solid #f3f3f3}.poster .poster-content .save .save-two[data-v-b87eae98]{color:#888;font-size:%?24?%;text-align:center}.mShare .button[data-v-b87eae98]{height:auto;color:#333}.mShare uni-image[data-v-b87eae98]{display:block;margin:0 auto}',""]),t.exports=e},ab37:function(t,e){var i={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:n(" , ,\t,\r,\n,\f"),boolAttrs:n("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:n("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:n("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:n("a,colgroup,fieldset,legend"),selfClosingTags:n("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:n("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 n(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=i},bfc2:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{show:!1,poster_show:!1,imgshow:!1,img_src:"",openSettingBtnHidden:!0}},props:{topic_id:{type:String,default:""}},methods:{shareTo:function(t){switch(t){case"WXSceneSession":uni.share({provider:"weixin",scene:"WXSceneSession",type:2,imageUrl:this.img_src});break;case"WXSenceTimeline":uni.share({provider:"weixin",scene:"WXSenceTimeline",type:2,imageUrl:this.img_src});break;default:break}},handleSetting:function(t){t.detail.authSetting["scope.writePhotosAlbum"]?this.openSettingBtnHidden=!0:this.openSettingBtnHidden=!1},saveEwm:function(t){var e=this;uni.getSetting({success:function(t){t.authSetting["scope.writePhotosAlbum"]?e.saveImgToLocal():uni.authorize({scope:"scope.writePhotosAlbum",success:function(){e.saveImgToLocal()},fail:function(){e.openSettingBtnHidden=!1}})}})},saveImgToLocal:function(t){var e=this;uni.showModal({title:e.$t("order.prompt"),content:e.$t("common.shareContent"),success:function(t){t.confirm?uni.downloadFile({url:e.img_src,success:function(t){200===t.statusCode&&uni.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){uni.showToast({title:e.$t("common.saveSuc"),icon:"none"})},fail:function(){uni.showToast({title:e.$t("common.saveFail"),icon:"none"})}})}}):t.cancel}})},showShare:function(){this.show=!0},generate:function(){var t=this;this.show=!1,this.poster_show=!0;var e={goods_id:this.topic_id};this.$allrequest.special.topicQrcode(e,!0).then((function(e){0==e.code&&(t.img_src=e.data.pic_url,t.imgshow=!0)})).catch((function(e){t.$u.toast(t.$t("common.posterFail")),t.poster_show=!1}))},previewImg:function(){uni.previewImage({current:"0",urls:[this.img_src]})}}};e.default=n},c6b8:function(t,e,i){"use strict";i.r(e);var n=i("fda0"),o=i("5c59");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("89ee");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"3120ed1e",null,!1,n["a"],void 0);e["default"]=r.exports},ee73:function(t,e,i){"use strict";i.r(e);var n=i("bfc2"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},ef7a:function(t,e,i){"use strict";i.r(e);var n=i("f455"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},f455:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("2ba3")),a=n(i("66cd")),s={components:{share:a.default,Shenhe:o.default},data:function(){return{id:"",msg:""}},onLoad:function(t){if(uni.setNavigationBarTitle({title:this.$t("title.topic")}),t&&(this.id=t.id,this.getDetails()),t.scene){var e=this.$utils.sceneDecode(t.scene);e.gid&&(this.id=e.gid)}this.getDetails()},methods:{favorite:function(t){var e=this,i={topic_id:this.id,action:t};this.$allrequest.special.topicFavorite(i).then((function(i){0==i.code&&(e.msg.is_favorite=t,uni.showToast({title:i.msg}))}))},getDetails:function(){var t=this,e={id:this.id};this.$allrequest.special.topicDetails(e).then((function(e){0==e.code&&(e.data.content=t.$utils.formatRichText(e.data.content),t.msg=e.data)}))},share:function(){this.$refs.share.showShare()}}};e.default=s},f5e9:function(t,e,i){"use strict";var n=i("74bb"),o=i.n(n);o.a},fcde:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uPopup:i("650d").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"mShare"},[i("u-popup",{attrs:{mode:"bottom","mask-close-able":!1,duration:0},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("v-uni-view",{staticClass:"dis-list"},[i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.generate.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:t.asyncImgs.goods.share_qrcode,mode:""}}),i("v-uni-view",[t._v(t._s(t.$t("common.beforePoster")))])],1)],1),i("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.show=!1}}},[t._v(t._s(t.$t("common.close")))])],1),t.poster_show?i("v-uni-view",{staticClass:"poster"},[i("v-uni-view",{staticClass:"poster-content"},[i("v-uni-view",{staticClass:"poster-close"},[i("v-uni-image",{attrs:{src:t.asyncImgs.mch.close,mode:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.poster_show=!t.poster_show}}})],1),i("v-uni-view",{staticClass:"poster-img-content"},[t.imgshow?i("v-uni-image",{staticClass:"poster-img",attrs:{src:t.img_src,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImg.apply(void 0,arguments)}}}):t._e(),t.imgshow?t._e():i("v-uni-view",{staticClass:"poster-load"},[i("v-uni-image",{attrs:{src:t.asyncImgs.home.qrcode_close,mode:""}}),i("v-uni-view",[t._v(t._s(t.$t("common.poster")))])],1)],1),t.imgshow?i("v-uni-view",{staticClass:"save"}):t._e()],1)],1):t._e()],1)},a=[]},fda0:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[this.nodes.length?this._e():this._t("default"),e("v-uni-view",{style:this.showAm+(this.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[e("div",{attrs:{id:"rtf"+this.uid}})])],2)},o=[]}}]);
|