1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64ad8044"],{"2f1b":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"detail"},[a("div",{staticClass:"detail-body"},[a("div",{staticClass:"detail-card top-tit-card"},[t._m(0),a("div",{staticClass:"right"},[a("div",{staticClass:"top"},[t._v(t._s(t.title))]),a("div",{staticClass:"bottom"},[a("span",[t._v(" "+t._s(t.releaseTime))]),a("span",[t._v("基金PARK 物管处")])])])]),a("div",{staticClass:"detail-card info"},["1"===t.detail.source?a("div",{staticClass:"detail-card info",staticStyle:{border:"0"},domProps:{innerHTML:t._s(t.content)}}):t._e(),"2"===t.detail.source?a("div",{staticClass:"detail-card info",staticStyle:{border:"0"}},[t._v(t._s(t.content))]):t._e(),t._l(t.fileUrlList,function(t){return a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t,alt:""}})})],2),a("div",{staticClass:"detail-card info"},[a("p",{staticClass:"detail-card info",staticStyle:{border:"0"}},[t._v("已查阅:"+t._s(t.read))])]),a("div",{staticClass:"detail-card info"},[a("p",{staticClass:"detail-card info",staticStyle:{border:"0"}},[t._v("未查阅:"+t._s(t.unread))])])]),a("div",{staticClass:"white-bottom"})])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"left"},[a("i",{staticClass:"iconfont icon-laba"})])}],r=(a("a481"),a("ac6a"),a("435e")),i=a("5cab"),c={data:function(){return{id:"",title:"",content:"",fileUrlList:[],releaseTime:"",read:"",unread:"",detail:{}}},mounted:function(){this.id=this.$route.params.id,this.selectById(),this.selectUserName()},methods:{selectUserName:function(){var t=this;Object(r["f"])({id:t.id}).then(function(e){var a=e.data;a.length>0&&a.forEach(function(e){"1"===e.status?t.unread=e.userName:t.read=e.userName})})},selectById:function(){var t=this;Object(r["d"])({id:t.id,userId:i["a"].currUser().id}).then(function(e){var a=e.data;if(t.detail=a,t.title=a.title,-1!==a.content.indexOf("src=")&&(a.content=a.content.replace("server","industryParkApi")),-1!==a.content.indexOf("width")&&-1!==a.content.indexOf("height")&&(a.content=a.content.replace(/width="(\S*)"/,'width="100%"').replace(/height="(\S*)"/,'height="100%"')),null!==a.fileUrl&&a.fileUrl.length>2){var n=[],s=t.$common.castEval(a.fileUrl);s.forEach(function(t){if(t.url){var e=t.url.replace("server","industryParkApi");n.push(e)}}),t.fileUrlList=n}t.content=a.content,t.releaseTime=t.$common.transServDate(a.releaseTime)})}}},o=c,d=(a("39ab"),a("2877")),l=Object(d["a"])(o,n,s,!1,null,"379b644f",null);e["default"]=l.exports},"39ab":function(t,e,a){"use strict";var n=a("aa6c"),s=a.n(n);s.a},"435e":function(t,e,a){"use strict";a.d(e,"a",function(){return i}),a.d(e,"g",function(){return c}),a.d(e,"d",function(){return o}),a.d(e,"e",function(){return d}),a.d(e,"f",function(){return l}),a.d(e,"c",function(){return u}),a.d(e,"b",function(){return f});var n=a("8982"),s="/industryParkApi",r="/wx/announcementNotice";function i(t){return Object(n["a"])({url:s+r+"/add",method:"post",data:t})}function c(t){return Object(n["a"])({url:s+r+"/list",method:"post",data:t})}function o(t){return Object(n["a"])({url:s+r+"/getById",method:"post",data:t})}function d(t){return Object(n["a"])({url:s+r+"/getConsultPerson",method:"post",data:t})}function l(t){return Object(n["a"])({url:s+r+"/getPerson",method:"post",data:t})}function u(t){return Object(n["a"])({url:s+r+"/edit",method:"post",data:t})}function f(t){return Object(n["a"])({url:s+r+"/clickCollect",method:"post",data:t})}},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return h}),a.d(e,"b",function(){return m});var n=a("795b"),s=a.n(n),r=a("bc3a"),i=a.n(r),c=a("4328"),o=a.n(c),d=a("4360"),l=a("5cab"),u=a("a18c"),f=a("3089");function h(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var a={method:t.method,url:t.url,data:o.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new s.a(function(e,n){i()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),n(e,a)})})}function m(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new s.a(function(a,n){i.a.defaults.withCredentials=!0,i()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(f["Toast"])(e.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),n(e,a)})})}},aa6c:function(t,e,a){}}]);
|