2020-11-12 14:57:34 +08:00

1 line
4.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/publicity/publicityDetail"],{"067b":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=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 i=t.__get_orig(e),o=t.timeFormat(e.OPERATE_DATE);return{$orig:i,m0:o}})):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=[]},1262:function(t,e,n){"use strict";n.r(e);var i=n("067b"),o=n("637a");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("8300");var r,u=n("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"29a50a07",null,!1,i["a"],r);e["default"]=c.exports},"636a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(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("9cb3"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/filesComponent/fileUnit").then(function(){return resolve(n("cb7b"))}.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,i.mapGetters)({users:"getUser"})),methods:{getDetail:function(e){var n=this,i=this;i.$request.get({action_type:"getPublicityDetils",publicityId:e}).then((function(e){"100"==e.ResultCode&&(n.isShow=!0),t.hideLoading(),i.baseData=e.Data,i.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})),i.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}))}))},timeFormat:function(t){for(var e=Math.round((Date.now()-new Date(t).getTime())/1e3),n=["年","个月","星期","天","小时","分钟","秒"],i=[31536e3,2592e3,604800,86400,3600,60,1],o=0;o<i.length;o++){var a=Math.floor(e/i[o]);if(0!=a)return a+n[o]+"前"}},hidePopup:function(){this.showPopupBottom=!1},tapPublicity:function(){var t=this;t.$request.post({action_type:"updatePublicityThumbs",publicityId:t.baseData.PUBLICITY_ID}).then((function(e){t.getDetail(t.baseData.PUBLICITY_ID),t.$eventHub.$emit("publicity",!0)}))},upComment:function(){var t=this;0!=t.commentContent.trim().length&&t.$request.post({action_type:"addPublicityComment",publicityId:t.baseData.PUBLICITY_ID,content:t.commentContent.trim()}).then((function(e){e.data.ResultCode&&(t.commentContent="",t.hidePopup(),t.getDetail(t.baseData.PUBLICITY_ID),t.$eventHub.$emit("publicity",!0))}))},rememberReader:function(t){var e=this;e.$request.post({action_type:"InsertPublicityReading",fileName:t||"",readingType:1e3,publicityId:e.baseData.PUBLICITY_ID})}},onLoad:function(e){t.showLoading({title:"正在加载"}),this.getDetail(e.PUBLICITY_ID),this.rememberReader()}};e.default=s}).call(this,n("543d")["default"])},"637a":function(t,e,n){"use strict";n.r(e);var i=n("636a"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},8300:function(t,e,n){"use strict";var i=n("87b6"),o=n.n(i);o.a},"87b6":function(t,e,n){},f91d:function(t,e,n){"use strict";(function(t){n("5fd4");i(n("66fd"));var e=i(n("1262"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["f91d","common/runtime","common/vendor"]]]);