(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/publicity/publicityDetail"],{"05ab":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(){n.e("components/uni-popup").then(function(){return resolve(n("bf63"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/filesComponent/fileUnit").then(function(){return resolve(n("18af"))}.bind(null,n)).catch(n.oe)},s={data:function(){return{baseData:{},isShow:!1,loadingType:1,foundType:0,FileList:[],cardShow:!0,isSign:!1,isResolve:!1,showPopupBottom:!1,commentContent:"",signInfo:{}}},components:{uniPopup:u,fileUnit:c},computed:a({},(0,o.mapGetters)({users:"getUser"})),methods:a(a({},(0,o.mapMutations)(["shouldReLoadingList"])),{},{getDetail:function(e){var n=this,o=this;o.$request.$get("getPublicityDetils",{publicityId:e}).then((function(e){"100"==e.ResultCode&&(n.isShow=!0),t.hideLoading(),o.baseData=e.Data,o.baseData.fixedFileList.map((function(t){var e=t.IMAGE_DESC.split(".");t.type=e[e.length-1],t.name=t.IMAGE_DESC,t.path=t.IMAGE_PATH})),o.baseData.spotcheckFileList.map((function(t){var e=t.IMAGE_DESC.split(".");t.type=e[e.length-1],t.name=t.IMAGE_DESC,t.path=t.IMAGE_PATH})),o.rememberReader()}))},timeFormat:function(t){for(var e=Math.round((Date.now()-new Date(t).getTime())/1e3),n=["年","个月","星期","天","小时","分钟","秒"],o=[31536e3,2592e3,604800,86400,3600,60,1],i=0;i<o.length;i++){var a=Math.floor(e/o[i]);if(0!=a)return a+n[i]+"前"}},hidePopup:function(){this.showPopupBottom=!1},tapPublicity:function(){var t=this;t.$request.$post("updatePublicityThumbs",{publicityId:t.baseData.PUBLICITY_ID}).then((function(e){t.getDetail(t.baseData.PUBLICITY_ID),t.shouldReLoadingList(!0)}))},upComment:function(){var t=this;0!=t.commentContent.trim().length&&t.$request.$post("addPublicityComment",{publicityId:t.baseData.PUBLICITY_ID,content:t.commentContent.trim()}).then((function(e){100==e.ResultCode&&(t.commentContent="",t.hidePopup(),t.getDetail(t.baseData.PUBLICITY_ID),t.shouldReLoadingList(!0))}))},rememberReader:function(t){var e=this;e.$request.$post("InsertPublicityReading",{fileName:t||"",readingType:1e3,publicityId:e.baseData.PUBLICITY_ID})}}),onUnload:function(){this.$util.addUserBehavior()},onLoad:function(e){t.showLoading({title:"正在加载"}),this.getDetail(e.PUBLICITY_ID)}};e.default=s}).call(this,n("543d")["default"])},"56e7":function(t,e,n){},"65a4":function(t,e,n){"use strict";n.r(e);var o=n("890c"),i=n("9053");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("d1f9");var r,u=n("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"69b6aff2",null,!1,o["a"],r);e["default"]=c.exports},"890c":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isShow&&t.baseData.commentList.length>0?t.__map(t.baseData.commentList,(function(e,n){var o=t.__get_orig(e),i=t.timeFormat(e.OPERATE_DATE);return{$orig:o,m0:i}})):null);t._isMounted||(t.e0=function(e){t.showPopupBottom=!0},t.e1=function(e){t.showPopupBottom=!0}),t.$mp.data=Object.assign({},{$root:{l0:n}})},a=[]},9053:function(t,e,n){"use strict";n.r(e);var o=n("05ab"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},c05d:function(t,e,n){"use strict";(function(t){n("40da");o(n("66fd"));var e=o(n("65a4"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},d1f9:function(t,e,n){"use strict";var o=n("56e7"),i=n.n(o);i.a}},[["c05d","common/runtime","common/vendor"]]]);