Files
PropertyDeployment/resources/Web/PropertyApp/html/static/js/pages-notice-detail-noticeDetail.b266e1e5.js
2025-12-09 20:22:03 +08:00

1 line
4.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-notice-detail-noticeDetail"],{"1ceb":function(t,e,i){var a=i("8746");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("5042bf62",a,!0,{sourceMap:!1,shadowMode:!1})},"44ef":function(t,e,i){"use strict";i.r(e);var a=i("9749"),n=i("84fe");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("f62f");var c=i("828b"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"74fb5e44",null,!1,a["a"],void 0);e["default"]=r.exports},"84fe":function(t,e,i){"use strict";i.r(e);var a=i("a3da"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},8746:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,".user-container[data-v-74fb5e44]{padding:%?25?% %?10?%;background-color:#f0f0f0\n\t/*border: 1px solid black;*/}.notice[data-v-74fb5e44]{margin:%?10?% %?7?%;padding:%?25?%;background-color:#fff;border-radius:%?7?%}.title[data-v-74fb5e44]{border-bottom:%?1?% solid #dedede;font-weight:700;font-size:%?34?%;color:#0a0}.content[data-v-74fb5e44]{padding:%?15?% 0;font-size:%?25?%;color:#7b7b7b}.footer[data-v-74fb5e44]{padding:%?15?% 0;font-size:%?22?%;color:#adadad}",""]),t.exports=e},9749: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(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"user-container"},[e("v-uni-view",{staticClass:"flex-sub text-center bg-white"},[e("v-uni-view",{staticClass:"solid-bottom text-xl padding"},[e("v-uni-text",{staticClass:"text-black text-bold"},[this._v(this._s(this.notice.title))])],1),e("v-uni-view",{staticClass:"footer"},[this._v("时间: "+this._s(this.notice.timeStr))])],1),e("v-uni-view",{staticClass:"flex-sub bg-white"},[e("v-uni-view",{staticClass:"content"},[e("v-uni-rich-text",{staticClass:"solid-bottom text-df padding",attrs:{nodes:this.notice.context}})],1)],1)],1)},n=[]},a3da:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5c47"),i("a1c1");var n=i("af6b"),o=i("7fee"),c=a(i("cfa6")),r=a(i("9494")),s={data:function(){return{notice:{},noticeId:""}},onLoad:function(t){this.java110Context.onLoad();var e=t.noticeId;this.noticeId=e,this._loadNoticeDetail()},onShow:function(){},methods:{_loadNoticeDetail:function(){var t=this;t.communityId=(0,o.getCurrentCommunity)().communityId,this.java110Context.request({header:t.java110Context.getHeaders(),url:r.default.GetNoticeListUrl,method:"GET",data:{communityId:t.communityId,page:1,row:10,noticeId:t.noticeId},success:function(e){console.log(e);var i=e.data.notices[0];i.timeStr=i.startTime.replace(/:\d{1,2}$/," "),i.context=(0,n.replaceImgSrc)(i.context,c.default.baseUrl),t.notice=i}})}}};e.default=s},af6b:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.formatRichText=c,e.replaceImgSrc=function(t,e){if(console.log("_content",(0,n.default)(t)),(0,o.isEmpty)(t))return t;t=t.replaceAll("&amp;","&");var i=/<img [^>]*src=['"]([^'"]+)[^>]*>/g,a=t.match(i);if(!(0,o.isEmpty)(a))for(var r=0;r<a.length;r++){var s=a[r].replace(i,"$1");"http"==s.slice(0,4)||"https"==s.slice(0,5)||(t=t.replace(s,e+s))}return c(t)};var n=a(i("fcf3"));i("5c47"),i("a1c1"),i("45da"),i("2c10"),i("f7a5");var o=i("f41e");function c(t){var e=t.replace(/<img[^>]*>/gi,(function(t,e){return t=t.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,""),t=t.replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,""),t=t.replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,""),t}));return e=e.replace(/style="[^"]+"/gi,(function(t,e){return t=t.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;"),t})),e=e.replace(/<br[^>]*\/>/gi,""),e=e.replace(/\<img/gi,'<img style="max-width:100%;height:auto;display:block;margin:10px 0;"'),e}},f62f:function(t,e,i){"use strict";var a=i("1ceb"),n=i.n(a);n.a}}]);