{"version":3,"sources":["webpack:///./src/views/answerDetail.vue","webpack:///./src/views/answerDetail.vue?4996","webpack:///./src/views/answerDetail.vue?386f","webpack:///./src/views/answerDetail.vue?3ed0","webpack:///./src/views/answerDetail.vue?9014"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","staticStyle","_v","_s","isEn","news","questionEn","title","titleEn","question","domProps","mycontent","attrs","model","value","imgBox","callback","$$v","expression","currentImgs","_l","decImg","index","key","staticRenderFns","component","NoticeDetail","_AbpBase","_this","_classCallCheck","Object","aid","pageSize","pageIndex","userid","commentBox","commentList","Array","commentContent","loadmore","currentImgUrl","optertionInfo","likeId","isLike","followId","isFollow","userInfo","anonymous","showShare","shownews","msg","isPreview","screenWidth","domainAccount","_inherits","_createClass","that","$store","dispatch","type","id","then","res","console","log","solutionEn","solution","changeUrlArg","url","arg","val","pattern","replaceText","match","replace","eval","to","from","query","location","reload","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","document","body","clientWidth","$route","getNewsByID","abp","localization","currentLanguage","name","stop","created","apply","arguments","setTimeout","navigator","userAgent","toLowerCase","imgs","getElementsByClassName","getElementsByTagName","i","length","img","onclick","e","currentTarget","src","push","ViewerDom","getElementById","viewer","options","navbar","toolbar","images","contain","click","AbpBase","__decorate","Watch","Component","components"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,iBAAiBC,YAAY,CAAC,WAAa,YAAY,CAACJ,EAAG,MAAM,CAACG,YAAY,aAAaC,YAAY,CAAC,WAAa,SAAS,CAACJ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,SAAS,CAACL,EAAIO,GAAG,cAAcP,EAAIQ,GAAGR,EAAIS,KAA2B,MAArBT,EAAIU,KAAKC,YAAuC,IAArBX,EAAI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up=_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.questionEn==null||_vm.news.questionEn==\"\"?_vm.news.title:_vm.news.titleEn):_vm.news.question)+\"\\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!./answerDetail.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!./answerDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./answerDetail.vue?vue&type=template&id=e238839a&scoped=true\"\nimport script from \"./answerDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./answerDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./answerDetail.vue?vue&type=style&index=0&id=e238839a&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 \"e238839a\",\n null\n \n)\n\nexport default component.exports","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!./answerDetail.vue?vue&type=style&index=0&id=e238839a&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\taid: 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: 'tag/getAnswerById',\r\n\t\t\t\tid: this.aid\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\t that.mycontent=that.isEn?((that.news as any).solutionEn==null||(that.news as any).solutionEn==\"\"?(that.news as any).solution:(that.news as any).solutionEn):(that.news as any).solution;\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t})\r\n\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.aid != from.query.aid) {\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;\t\t\t\r\n\t\t\tthat.screenWidth = document.body.clientWidth\r\n\t\t\tconsole.log(that.screenWidth)\r\n\t\t\tif (this.$route.query.aid && (this.$route.query.aid as any) > 0) {\r\n\t\t\t\tthis.aid = this.$route.query.aid as any;\t\t\t\r\n\t\t\t\tthis.getNewsByID();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar languageName=\"\";\r\n\t\t\t\r\n\t\t\tif(abp.localization.currentLanguage.name!='en')\r\n\t\t\t{\r\n\t\t\t\tlanguageName = 'zh-Hans';\r\n\t\t\t\t that.isEn=false;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlanguageName = 'en';\t\t\t\t\r\n\t\t\t\tthat.isEn=true;\r\n\t\t\t}\r\n\t\t\t\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\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\t\t\t\t\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"],"sourceRoot":""}