{"version":3,"sources":["webpack:///./src/views/noticeDetail.vue?4feb","webpack:///./src/views/noticeDetail.vue?5490","webpack:///./src/views/noticeDetail.vue","webpack:///./src/views/noticeDetail.vue?9cf5","webpack:///./src/views/noticeDetail.vue?71b7"],"names":["NoticeDetail","_AbpBase","_this","_classCallCheck","news","Object","noticeid","pageSize","pageIndex","userid","commentBox","commentList","Array","commentContent","loadmore","imgBox","currentImgs","currentImgUrl","optertionInfo","likeId","isLike","followId","isFollow","userInfo","anonymous","showShare","shownews","msg","isPreview","screenWidth","isEn","mycontent","domainAccount","_inherits","_createClass","key","value","that","this","$store","dispatch","type","id","then","res","console","log","date","publishTime","creationTime","time","Util","formatDate","Date","externalView","contentEn","content","setTimeout","as","document","getElementsByClassName","getElementsByTagName","i","length","img","onclick","e","href","currentTarget","url","changeUrlArg","data","phonenumber","phoneNumber","getLoginUserDomainAccount","name","res2","arg","val","pattern","replaceText","match","replace","eval","to","from","query","location","reload","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","domain","userId","wrap","_context","prev","next","body","clientWidth","abp","session","$route","undefined","ProviderKey","Property","isen","getLoginUser","writeNewsReadLog","preview","getNewsByID","stop","created","apply","arguments","navigator","userAgent","toLowerCase","imgs","src","push","ViewerDom","getElementById","viewer","options","title","navbar","toolbar","images","contain","click","AbpBase","__decorate","Watch","Component","components","render","_vm","_c","_self","_setupProxy","staticClass","staticStyle","_v","_s","titleEn","domProps","attrs","model","callback","$$v","expression","_l","decImg","index","staticRenderFns","component"],"mappings":"2IAAA,W,6uHCkBsBA,aAAY,SAAAC,UAAjC,SAAAD,eAAA,IAAAE,EA8ByB,OA9BzBC,iHAAA,KAAAH,c,0CACCE,EAAAE,KAAe,IAAIC,OACnBH,EAAAI,SAAmB,EACnBJ,EAAAK,SAAmB,GACnBL,EAAAM,UAAoB,EACpBN,EAAAO,OAAiB,EACjBP,EAAAQ,YAAsB,EACtBR,EAAAS,YAA+B,IAAIC,MACnCV,EAAAW,eAAyB,GACzBX,EA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CAAC,WAAa,SAAS,CAACJ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,SAAS,CAACJ,EAAIM,GAAG,cAAcN,EAAIO,GAAGP,EAAI7G,KAAwB,MAAlB6G,EAAIvI,KAAK+I,SAAiC,IAAlBR,EAAIvI,KAAK+I,QAAYR,EAAIvI,KAAK2H,MAAMY,EAAIvI,KAAK+I,QAASR,EAAIvI,KAAK2H,OAAO,gBAAgBa,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACJ,EAAIM,GAAG,eAAeN,EAAIO,GAAGP,EAAIvI,KAAK8C,MAAM,kBAAkB0F,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,qBAAqBK,SAAS,CAAC,UAAYT,EAAIO,GAAGP,EAAI5G,oBAAoB6G,EAAG,QAAQ,CAACG,YAAY,YAAYM,MAAM,CAAC,UAAW,EAAM,eAAc,EAAK,MAAQ,SAASC,MAAM,CAAClH,MAAOuG,EAAI5H,OAAQwI,SAAS,SAAUC,GAAMb,EAAI5H,OAAOyI,GAAKC,WAAW,WAAW,CAACb,EAAG,SAAS,CAACG,YAAY,aAAaM,MAAM,CAAC,GAAK,SAAS,OAASV,EAAI3H,cAAc2H,EAAIe,GAAIf,EAAI3H,aAAa,SAAS2I,EAAOC,GAAO,OAAOhB,EAAG,MAAM,CAACzG,IAAIyH,EAAMZ,YAAY,CAAC,MAAQ,QAAQK,MAAM,CAAC,IAAMM,QAAY,IAAI,IAAI,IAEzkCE,EAAkB,G,YCFgX,S,wBCQlYC,EAAY,eACd,EACApB,EACAmB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/chunk-0d0012e4.62dd64f5.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticeDetail.vue?vue&type=style&index=0&id=54a4abea&prod&lang=less&scoped=scoped\"","\r\n\timport {\r\n\t\tComponent,\r\n\t\tVue,\r\n\t\tInject,\r\n\t\tProp,\r\n\t\tWatch\r\n\t} from 'vue-property-decorator';\r\n\timport Util from '@/lib/util';\r\n\timport wx from 'weixin-js-sdk';\r\n\timport AbpBase from '@/lib/abpbase';\r\n\timport Viewer from 'v-viewer'\r\n\timport 'viewerjs/dist/viewer.css'\r\n\t@Component({\r\n\t\tcomponents: {\r\n\r\n\t\t}\r\n\t})\r\n\texport default class NoticeDetail extends AbpBase {\r\n\t\tnews: Object = new Object() as any;\r\n\t\tnoticeid: number = 0;\r\n\t\tpageSize: number = 10;\r\n\t\tpageIndex: number = 1;\r\n\t\tuserid: number = 0;\r\n\t\tcommentBox: boolean = false;\r\n\t\tcommentList: Array < Object >= new Array < Object > ();\r\n\t\tcommentContent: string = \"\";\r\n\t\tloadmore: boolean = true;\r\n\t\timgBox: boolean = false;\r\n\t\tcurrentImgs: Array < Object >= new Array < Object > ();\r\n\t\tcurrentImgUrl: string = '';\r\n\t\toptertionInfo: Object = {\r\n\t\t\tlikeId: 0,\r\n\t\t\tisLike: false,\r\n\t\t\tfollowId: 0,\r\n\t\t\tisFollow: false\r\n\t\t};\r\n\t\tuserInfo: Object = new Object();\r\n\t\tanonymous: boolean = false;\r\n\r\n\t\tshowShare: boolean = false;\r\n\t\tshownews: number = 0; // 0加载中 1 可见 2 不可见\r\n\t\tmsg: string = '';\r\n\t\tisPreview: boolean = false;\r\n\t\tscreenWidth:number=0;\r\n\t\t\r\n\t\tisEn: boolean = false;\r\n\t\tmycontent:string='';\r\n\t\tdomainAccount:string='';\r\n\r\n\t\tgetNewsByID() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getNewsById',\r\n\t\t\t\tid: this.noticeid\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tconsole.log(res);\r\n\t\t\t\tthat.news = res as any;\r\n\t\t\t\tif (that.userid == 0 && !that.isPreview) {\r\n\t\t\t\t\tif ((that.news as any).externalView != null && (that.news as any).externalView) {\r\n\t\t\t\t\t\tthat.shownews = 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.shownews = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthat.shownews = 1;\r\n\t\t\t\t\tvar date = (that.news as any).publishTime;\r\n\t\t\t\t\tif (date == null) {\r\n\t\t\t\t\t\tdate = (that.news as any).creationTime;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t(that.news as any).time = Util.formatDate(new Date(date), 'yyyy-MM-dd hh:mm:ss');\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t that.mycontent=that.isEn?((that.news as any).contentEn==null||(that.news as any).contentEn==\"\"?(that.news as any).content:(that.news as any).contentEn):(that.news as any).content;\r\n\t\t\t\t \r\n\t\t\t\t setTimeout(function() {\t\t\t\t\t \r\n\t\t\t\t\t let as = document.getElementsByClassName('newscot')[0].getElementsByTagName('a');\r\n\t\t\t\t\t for (var i = 0; i < as.length; i++) {\r\n\t\t\t\t\t \tvar img = as[i] as any;\r\n\t\t\t\t\t \timg.onclick = function(e) {\r\n\t\t\t\t\t \t\tvar href=e.currentTarget.href;\t\t\t\t\t\t\r\n\t\t\t\t\t \t\tvar url = that.changeUrlArg(href, 'domain', that.domainAccount);\t\r\n\t\t\t\t\t \t\te.currentTarget.href=url;\r\n\t\t\t\t\t\t\tconsole.log(url);\r\n\t\t\t\t\t \t}\r\n\t\t\t\t\t }\r\n\t\t\t\t }, 500);\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t})\r\n\t\t}\r\n\t\twriteNewsReadLog() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/writeNewsReadLog',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tid: that.noticeid\r\n\t\t\t\t}\r\n\t\t\t}).then((res) => {\r\n\r\n\t\t\t})\r\n\t\t}\r\n\t\t\r\n\r\n\t\tgetLoginUser() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getLoginUser',\r\n\t\t\t\tdata: {}\r\n\t\t\t}).then(res => {\r\n\t\t\t\tthat.userInfo = res;\r\n\t\t\t\tvar phonenumber=res.phoneNumber;\r\n\t\t\t\tthat.getLoginUserDomainAccount(phonenumber);\r\n\t\t\t})\r\n\t\t}\r\n\t\tgetLoginUserDomainAccount(phonenumber) {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'user/getUserByUserName',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tname:phonenumber\r\n\t\t\t\t}\r\n\t\t\t}).then(res2 => {\t\t\t\t\t\r\n\t\t\t\tthat.domainAccount=res2.domainAccount;\r\n\t\t\t\tconsole.log(\"domainAccount:\"+that.domainAccount)\r\n\t\t\t})\r\n\t\t}\r\n\t\t\r\n\t\tchangeUrlArg(url, arg, val) {\r\n\t\t\tvar pattern = arg + '=([^&]*)';\r\n\t\t\tvar replaceText = arg + '=' + val;\r\n\t\t\treturn url.match(pattern) ? url.replace(eval('/(' + arg + '=)([^&]*)/gi'), replaceText) :\r\n\t\t\t\t(url.match('[\\?]') ? url + '&' + replaceText : url + '?' + replaceText);\r\n\t\t}\r\n\t\t\r\n\t\t@Watch('$route')\r\n\t\troutechange(to: any, from: any) {\r\n\t\t\tif (to.query.noticeid != from.query.noticeid) {\r\n\t\t\t\tlocation.reload();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tasync created() {\r\n\t\t\tvar that=this;\r\n\t\t\tthat.screenWidth = document.body.clientWidth\r\n\t\t\tconsole.log(that.screenWidth)\r\n\r\n\t\t\tif (!Util.abp.session.userId) {\r\n\t\t\t\tvar domain = this.$route.query.domain as any;\r\n\t\t\t\tif (domain != undefined && domain != null && domain != '') {\r\n\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\"AuthProvider\": \"IDSDOMAIN\",\r\n\t\t\t\t\t\t\t\"ProviderAccessCode\": domain,\r\n\t\t\t\t\t\t\tProviderKey: \"\",\r\n\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t})\r\n\t\t\t\t\tlocation.reload();\r\n\t\t\t\t}\r\n\t\t\t\tvar userId = this.$route.query.userid as any;\r\n\t\t\t\tif (userId != undefined && userId != null && userId != '') {\r\n\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\"AuthProvider\": \"IDSID\",\r\n\t\t\t\t\t\t\t\"ProviderAccessCode\": userId,\r\n\t\t\t\t\t\t\tProviderKey: userId,\r\n\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t})\r\n\t\t\t\t\tlocation.reload();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (this.$route.query.isen && (this.$route.query.isen as any) == 1) {\r\n\t\t\t\tthis.isEn=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (this.$route.query.noticeid && (this.$route.query.noticeid as any) > 0) {\r\n\t\t\t\tthis.noticeid = this.$route.query.noticeid as any;\r\n\t\t\t\tconsole.log(Util.abp.session.userId);\r\n\t\t\t\tif (Util.abp.session.userId) {\r\n\t\t\t\t\tthis.userid = Util.abp.session.userId;\t\t\t\t\t\r\n\t\t\t\t\tthis.getLoginUser();\r\n\t\t\t\t\tthis.writeNewsReadLog();\r\n\t\t\t\t}\r\n\t\t\t\tif (this.$route.query.preview && (this.$route.query.preview as any) > 0) {\r\n\t\t\t\t\tthis.isPreview = true;\r\n\t\t\t\t}\r\n\t\t\t\tthis.getNewsByID();\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\tmounted() {\r\n\t\t\tvar that=this;\r\n\t\t\tsetTimeout(function() {\r\n\t\t\t\tvar u = navigator.userAgent.toLowerCase();\r\n\t\t\t\t//统一使用组件方式查看图片可以缩放\r\n\t\t\t\tif (1==1 || u.indexOf('iphone os 13_4') > -1 || u.indexOf('iphone os 14') > -1 || u.indexOf('ipad') > -1 || u.indexOf('ipod') > -1 || that.screenWidth>=768) {\r\n\t\t\t\t\tlet imgs = document.getElementsByClassName('newscot')[0].getElementsByTagName('img');\r\n\t\t\t\t\tfor (var i = 0; i < imgs.length; i++) {\r\n\t\t\t\t\t\tvar img = imgs[i] as any;\r\n\t\t\t\t\t\timg.onclick = function(e) {\r\n\t\t\t\t\t\t\t// that.currentImgUrl = e.currentTarget.src;\r\n\t\t\t\t\t\t\t// that.currentImgs = [];\r\n\t\t\t\t\t\t\t// that.currentImgs.push(that.currentImgUrl);\r\n\t\t\t\t\t\t\t// that.imgBox = true;\r\n\t\t\t\t\t\t\t// that.$forceUpdate();\r\n\t\t\t\t\t\t\t//(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t\t\tthat.currentImgUrl = e.currentTarget.src;\r\n\t\t\t\t\t\t\tthat.currentImgs = [];\r\n\t\t\t\t\t\t\tthat.currentImgs.push(that.currentImgUrl);\r\n\t\t\t\t\t\t\t//that.imgBox = true;\r\n\t\t\t\t\t\t\tconst ViewerDom = document.getElementById('viewer');\r\n\t\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.title = false;\r\n\t\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.navbar = false;\r\n\t\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.toolbar=false;\r\n\t\t\t\t\t\t\t((ViewerDom as any).viewer as any).images= that.currentImgs;\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\tvar contain=document.getElementsByClassName('descimgBox')[0].getElementsByTagName('img');;\r\n\t\t\t\t\t\t\t\tif(contain!=null && contain.length>0){\r\n\t\t\t\t\t\t\t\t\t contain[0].click();\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t},300)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// img.ontouchend = function(e) {\r\n\t\t\t\t\t\t// \t(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet imgs = document.getElementsByClassName('newscot')[0].getElementsByTagName('img');\r\n\t\t\t\t\tfor (var i = 0; i < imgs.length; i++) {\r\n\t\t\t\t\t\tvar img = imgs[i] as any;\r\n\t\t\t\t\t\timg.onclick = function(e) {\r\n\t\t\t\t\t\t\t(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}, 2000)\r\n\t\t}\r\n\t};\r\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"newsDetailWrap\",staticStyle:{\"background\":\"#f2f2f2\"}},[_c('div',{staticClass:\"newsDetail\",staticStyle:{\"background\":\"#fff\"}},[_c('div',[_c('div',{staticClass:\"newsTop\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \\n\\t\\t\\t\\t\"+_vm._s(_vm.isEn?(_vm.news.titleEn==null||_vm.news.titleEn==\"\"?_vm.news.title:_vm.news.titleEn):_vm.news.title)+\"\\n\\t\\t\\t\\t\")]),_c('div',{staticClass:\"time\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.news.time)+\"\\n\\t\\t\\t\\t\")])]),_c('div',{staticClass:\"newscot\"},[_c('div',{staticClass:\"rich_media_content\",domProps:{\"innerHTML\":_vm._s(_vm.mycontent)}})])])]),_c('Modal',{staticClass:\"newImgBox\",attrs:{\"closable\":false,\"footer-hide\":true,\"title\":\"Image\"},model:{value:(_vm.imgBox),callback:function ($$v) {_vm.imgBox=$$v},expression:\"imgBox\"}},[_c('viewer',{staticClass:\"descimgBox\",attrs:{\"id\":\"viewer\",\"images\":_vm.currentImgs}},_vm._l((_vm.currentImgs),function(decImg,index){return _c('img',{key:index,staticStyle:{\"width\":\"100%\"},attrs:{\"src\":decImg}})}),0)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticeDetail.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticeDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./noticeDetail.vue?vue&type=template&id=54a4abea&scoped=true\"\nimport script from \"./noticeDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./noticeDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./noticeDetail.vue?vue&type=style&index=0&id=54a4abea&prod&lang=less&scoped=scoped\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"54a4abea\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}