chunk-b21ac540.359227ae.js.map 39 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/icon-106.png","webpack:///./src/views/news/news-details.vue","webpack:///./src/components/newFooter.vue","webpack:///src/components/newFooter.vue","webpack:///./src/components/newFooter.vue?36c3","webpack:///./src/components/newFooter.vue?f124","webpack:///src/views/news/news-details.vue","webpack:///./src/views/news/news-details.vue?9e57","webpack:///./src/views/news/news-details.vue?90bc","webpack:///./src/views/news/news-details.vue?b6d7","webpack:///./src/components/newFooter.vue?ec68","webpack:///./src/assets/icon-122.png","webpack:///./src/components/comments-popup.vue?86c4","webpack:///./src/components/comments-popup.vue","webpack:///src/components/comments-popup.vue","webpack:///./src/components/comments-popup.vue?e5c6","webpack:///./src/components/comments-popup.vue?24b3"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","style","top","first_open","on","showShareFn","ref","class","title_hide","domProps","_s","info","title","$event","app_logo","attrs","require","_v","app_name","content","create_at","read_num","$refs","basePage","offsetTop","switch_open","switchSet","comments","totalNum","commentPostShow","commentsPopup","showFn","commentsOption","newsTags","newsCollect","share","report","commentAppendToList","resetList","updateLikeStatus","index","tags","toTop","staticRenderFns","$emit","commentNum","is_praise","praise_num","is_collect","collect_num","props","type","component","components","SharePopup","Comments","CommentsPopup","ToTop","Related","NewFooter","DetailHeader","IsLoginVip","data","isLogin","isWeChat","computed","mapState","listApi","PressService","id","params","likeApi","postApi","postReplyApi","reportType","delApi","mounted","methods","window","getNewsDetail","that","desc","console","GeneralService","msg","Toast","parseInt","status","model","value","show","callback","$$v","expression","switchVal","switchChange","_e","name","default","switchShow","watch","checked","option","fixedListHeight"],"mappings":"mGAAAA,EAAOC,QAAU,soC,2CCAjB,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,eAAe,CAACG,MAAO,CAAEC,IAAKN,EAAIO,WAAa,OAAS,GAAKC,GAAG,C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,GACA,EACA,KACA,WACA,MAIa,OAAAS,E","file":"js/chunk-b21ac540.359227ae.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwtJREFUWEfNmM9PE1EQx7/T7QKBlEC7e+Biol408QASIVHCyejBs0biXSVR459iIok/zhKNdw4aTwRNgFS4GDhoTLxAsq+F0EAs23bMLF2zlHb37bZN2uO+eTOfvpl582YIMX/7+/vnXde9TUQzAC4z8zkAmbqaEhH9AbDFzCumaX4aGRn5HccE6Qgzc0opdQ/AEwDXAWjtA8AAvgFYsCzrIxHVouxFKlZK3WTmlwAuRSkLWyeiLQDPLMv6EirXapGZB4rF4gtmfsjMkeA6sETERPQ2m80+J6K/zfY0NbSzs2On0+klANd0DCWQWa9UKnfGxsacxr1ngATGNM1lZm7LRVGQRLTtuu5sI9QpIHFToVAQmG6dTCPnumVZs0H3nQIqFAqva7Xao6h/18n1VCr1JpfLPfZ1/geSbALwuVMBrAstgQ7glp99HlD9nvnRbmrrQpwJZKKtXC53Re4pD6hYLN6vVqvvkyrsxD7DMOay2ewHD8hxnBUAN6IU5/N5uK6LiYkJ9Pf3h4qXy2VsbGzANE1MTk5GqZb1r7Ztz9Du7u4FwzB+6pSDtbU1HBwcYHBw0DPSCkpgBP7o6AjDw8OYmprSAWLTNC+S4zgS4a90dhwfH3uGDg8PW0IFYYaGhjzwvr4+HfUiM09KqXfM/EB3RxhUmzAgokUByjPzVV0gkWsGJd99NyU4Gc88EX0Xl0k9seIANYOSbxIzSWHq9pUASdUNT5kWtMGTEpE2YURFuS2gYMyItqjs0/CCB5TIZUEYAfFd1iaUShTUjTD+xecHdVIoL6jjpn0zGP+CDFvTcNdJ2se5GHUM6siEwM1Tva35pVM6VldXUSqVIoM3CJXJZDA9Pa1zQCelI25xrVQqGB8f1yqum5ubSKfT8YqrAPXC8wPAnG3bJ8+PnnugCVRPPWH9iOupR37ddQNKqeUuNoiN2RbeBol0TzWKPn4daqlbDSMRrbuuq9dK+1A9NWwIOrpT4xgA20T0NPE4JgjFzMbe3t7darWaaGBlGMbC6OhoZwZWjWnR7ZHeP2HLCzN5PiMhAAAAAElFTkSuQmCC\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('DetailHeader',{style:({ top: _vm.first_open ? '1rem' : 0 }),on:{\"shareClick\":_vm.showShareFn}}),_c('div',{ref:\"basePage\",staticClass:\"basePage\"},[_c('div',{staticClass:\"top\"},[_c('div',{staticClass:\"top-title\"},[_c('span',{class:_vm.title_hide ? 'hide' : '',domProps:{\"innerHTML\":_vm._s(_vm.info.title)},on:{\"click\":function($event){_vm.title_hide = !_vm.title_hide}}})]),_c('div',{staticClass:\"item-top\"},[_c('div',{staticClass:\"item-top-left\"},[(_vm.info.app_logo)?_c('img',{attrs:{\"src\":_vm.info.app_logo}}):_c('img',{attrs:{\"src\":require(\"@/assets/avatar.png\")}}),_c('div',[_vm._v(_vm._s(_vm.info.app_name || `匿名用户`))])])]),_c('Related',{attrs:{\"info\":_vm.info}}),_c('div',{staticClass:\"top-content\",domProps:{\"innerHTML\":_vm._s(_vm.info.content)}}),_c('div',{staticClass:\"top-footer\"},[_c('span',[_vm._v(\"发布于\"+_vm._s(_vm.info.create_at))]),_c('span',[_vm._v(_vm._s(_vm.info.read_num)+\"浏览\")])])],1)]),_c('comments',{ref:\"comments\",staticClass:\"comment\",attrs:{\"get-header-height\":() => _vm.$refs.basePage.offsetTop,\"switch-val\":_vm.info.switch_open},on:{\"switchChange\":function($event){return _vm.switchSet(10)}}}),_c('NewFooter',{attrs:{\"info\":_vm.info,\"commentNum\":_vm.$refs.comments ? _vm.$refs.comments.totalNum : 0},on:{\"inputClick\":function($event){return _vm.$refs.comments.commentPostShow()},\"commentClick\":function($event){return _vm.$refs.commentsPopup.showFn(_vm.commentsOption)},\"tagsClick\":function($event){return _vm.newsTags()},\"collectClick\":function($event){return _vm.newsCollect()}}}),_c('share-popup',{ref:\"sharePopup\",attrs:{\"followSwitch\":_vm.info.switch_open},on:{\"share\":_vm.share,\"report\":_vm.report,\"follow\":function($event){return _vm.switchSet(10)}}}),_c('comments-popup',{ref:\"commentsPopup\",attrs:{\"switch-val\":_vm.info.switch_open},on:{\"switchChange\":function($event){return _vm.switchSet(10)},\"append\":function($event){return _vm.$refs.comments.commentAppendToList($event)},\"delComment\":function($event){return _vm.$refs.comments.resetList()},\"likeComment\":function($event){return _vm.$refs.comments.updateLikeStatus($event.index, $event.tags)}}}),_c('to-top',{attrs:{\"display-height\":\"0\",\"bottom\":100,\"toTop\":_vm.toTop}}),_c('is-login-vip',{ref:\"isLoginVip\",attrs:{\"type\":\"none\",\"style-type\":\"s2\",\"no-status\":true}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer\"},[_c('div',{staticClass:\"footer-wrap\"},[_c('div',{staticClass:\"footer-input-box\",on:{\"click\":function($event){return _vm.$emit('inputClick')}}},[_c('input',{staticClass:\"footer-input\",attrs:{\"disabled\":\"\",\"placeholder\":\"发布一条友善的评论\"}})]),_c('ul',{staticClass:\"footer-list\"},[_c('li',{on:{\"click\":function($event){return _vm.$emit('commentClick')}}},[_c('img',{staticClass:\"footer-icon\",attrs:{\"src\":require(\"@/assets/icon-122.png\"),\"alt\":\"\"}}),_vm._v(\"\\n \"+_vm._s(_vm.commentNum)+\"\\n \")]),_c('li',{on:{\"click\":function($event){return _vm.$emit('tagsClick')}}},[(_vm.info.is_praise === 1)?_c('img',{staticClass:\"footer-icon\",attrs:{\"src\":require(\"@/assets/icon-123active.png\"),\"alt\":\"\"}}):_c('img',{staticClass:\"footer-icon\",attrs:{\"src\":require(\"@/assets/icon-123.png\"),\"alt\":\"\"}}),_vm._v(\"\\n \"+_vm._s(_vm.info.praise_num || 0)+\"\\n \")]),_c('li',{on:{\"click\":function($event){return _vm.$emit('collectClick')}}},[(_vm.info.is_collect === 1)?_c('img',{staticClass:\"footer-icon\",attrs:{\"src\":require(\"@/assets/icon-124active.png\"),\"alt\":\"\"}}):_c('img',{staticClass:\"footer-icon\",attrs:{\"src\":require(\"@/assets/icon-124.png\"),\"alt\":\"\"}}),_vm._v(\"\\n \"+_vm._s(_vm.info.collect_num || 0)+\"\\n \")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"footer\">\r\n <div class=\"footer-wrap\">\r\n <div class=\"footer-input-box\" @click=\"$emit('inputClick')\">\r\n <input class=\"footer-input\" disabled placeholder=\"发布一条友善的评论\" />\r\n </div>\r\n <ul class=\"footer-list\">\r\n <li @click=\"$emit('commentClick')\">\r\n <img src=\"@/assets/icon-122.png\" class=\"footer-icon\" alt=\"\" />\r\n {{ commentNum }}\r\n </li>\r\n <li @click=\"$emit('tagsClick')\">\r\n <img\r\n src=\"@/assets/icon-123active.png\"\r\n class=\"footer-icon\"\r\n v-if=\"info.is_praise === 1\"\r\n alt=\"\"\r\n />\r\n <img src=\"@/assets/icon-123.png\" class=\"footer-icon\" v-else alt=\"\" />\r\n {{ info.praise_num || 0 }}\r\n </li>\r\n\r\n <li @click=\"$emit('collectClick')\">\r\n <img\r\n src=\"@/assets/icon-124active.png\"\r\n class=\"footer-icon\"\r\n v-if=\"info.is_collect === 1\"\r\n alt=\"\"\r\n />\r\n <img src=\"@/assets/icon-124.png\" class=\"footer-icon\" v-else alt=\"\" />\r\n {{ info.collect_num || 0 }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n props: {\r\n info: {\r\n type: Object,\r\n },\r\n commentNum: {},\r\n },\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.footer {\r\n width: 100%;\r\n height: 83px;\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 999;\r\n background-color: #ffffff;\r\n display: flex;\r\n justify-content: center;\r\n align-items: flex-start;\r\n padding: 6px 0 0 12px;\r\n box-sizing: border-box;\r\n .footer-wrap {\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n .footer-input-box {\r\n flex: 1;\r\n height: 38px;\r\n background-color: #f3f3f3;\r\n border-radius: 40px;\r\n padding: 0 12px;\r\n box-sizing: border-box;\r\n display: flex;\r\n align-items: center;\r\n .footer-input {\r\n font-size: 14px;\r\n flex: 1;\r\n height: 38px;\r\n pointer-events: none;\r\n }\r\n .footer-input::placeholder {\r\n color: #999999;\r\n }\r\n }\r\n .footer-list {\r\n flex: 1;\r\n display: flex;\r\n align-items: center;\r\n margin-left: 7px;\r\n li {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n color: #555555;\r\n font-size: 11px;\r\n .footer-icon {\r\n width: 22px;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newFooter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newFooter.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./newFooter.vue?vue&type=template&id=696ef710&scoped=true&\"\nimport script from \"./newFooter.vue?vue&type=script&lang=js&\"\nexport * from \"./newFooter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./newFooter.vue?vue&type=style&index=0&id=696ef710&prod&lang=scss&scoped=true&\"\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 \"696ef710\",\n null\n \n)\n\nexport default component.exports","<!-- 新闻-详情 -->\r\n<template>\r\n <div class=\"wrap\">\r\n <DetailHeader\r\n @shareClick=\"showShareFn\"\r\n :style=\"{ top: first_open ? '1rem' : 0 }\"\r\n />\r\n <div class=\"basePage\" ref=\"basePage\">\r\n <div class=\"top\">\r\n <div class=\"top-title\">\r\n <span\r\n @click=\"title_hide = !title_hide\"\r\n :class=\"title_hide ? 'hide' : ''\"\r\n v-html=\"info.title\"\r\n ></span>\r\n </div>\r\n\r\n <div class=\"item-top\">\r\n <div class=\"item-top-left\">\r\n <img :src=\"info.app_logo\" v-if=\"info.app_logo\" />\r\n <img src=\"@/assets/avatar.png\" v-else />\r\n <div>{{ info.app_name || `匿名用户` }}</div>\r\n </div>\r\n </div>\r\n <Related :info=\"info\" />\r\n <div class=\"top-content\" v-html=\"info.content\"></div>\r\n <div class=\"top-footer\">\r\n <span>发布于{{ info.create_at }}</span>\r\n <span>{{ info.read_num }}浏览</span>\r\n </div>\r\n </div>\r\n </div>\r\n <comments\r\n class=\"comment\"\r\n ref=\"comments\"\r\n :get-header-height=\"() => $refs.basePage.offsetTop\"\r\n :switch-val=\"info.switch_open\"\r\n @switchChange=\"switchSet(10)\"\r\n />\r\n <NewFooter\r\n :info=\"info\"\r\n :commentNum=\"$refs.comments ? $refs.comments.totalNum : 0\"\r\n @inputClick=\"$refs.comments.commentPostShow()\"\r\n @commentClick=\"$refs.commentsPopup.showFn(commentsOption)\"\r\n @tagsClick=\"newsTags()\"\r\n @collectClick=\"newsCollect()\"\r\n />\r\n <share-popup\r\n ref=\"sharePopup\"\r\n :followSwitch=\"info.switch_open\"\r\n @share=\"share\"\r\n @report=\"report\"\r\n @follow=\"switchSet(10)\"\r\n />\r\n <!-- 全部评论弹窗 -->\r\n <comments-popup\r\n ref=\"commentsPopup\"\r\n :switch-val=\"info.switch_open\"\r\n @switchChange=\"switchSet(10)\"\r\n @append=\"$refs.comments.commentAppendToList($event)\"\r\n @delComment=\"$refs.comments.resetList()\"\r\n @likeComment=\"$refs.comments.updateLikeStatus($event.index, $event.tags)\"\r\n />\r\n <!-- 回到顶部 -->\r\n <to-top display-height=\"0\" :bottom=\"100\" :toTop=\"toTop\" />\r\n\r\n <is-login-vip\r\n ref=\"isLoginVip\"\r\n type=\"none\"\r\n style-type=\"s2\"\r\n :no-status=\"true\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { PressService, GeneralService } from \"@/common/service\";\r\nimport { Toast } from \"vant\";\r\nimport { isWeChatOpen } from \"@/common/util\";\r\nimport SharePopup from \"@/components/share-popup.vue\";\r\nimport Comments from \"@/components/comments.vue\";\r\nimport CommentsPopup from \"@/components/comments-popup.vue\";\r\nimport ToTop from \"@/components/to-top.vue\";\r\nimport Related from \"@/components/related.vue\";\r\nimport NewFooter from \"@/components/newFooter.vue\";\r\nimport DetailHeader from \"@/components/detail-header.vue\";\r\nimport IsLoginVip from \"@/components/is-login-vip.vue\";\r\nimport { mapState } from \"vuex\";\r\n\r\nexport default {\r\n components: {\r\n SharePopup,\r\n Comments,\r\n CommentsPopup,\r\n ToTop,\r\n Related,\r\n NewFooter,\r\n DetailHeader,\r\n IsLoginVip,\r\n },\r\n data() {\r\n return {\r\n isLogin: false,\r\n isWeChat: isWeChatOpen(),\r\n title_hide: true,\r\n info: {},\r\n };\r\n },\r\n computed: {\r\n ...mapState([\"first_open\"]),\r\n // 评论区参数\r\n commentsOption() {\r\n return {\r\n // 列表api\r\n listApi: (params) =>\r\n PressService.getPressCommentList({\r\n id: this.info.id,\r\n ...params,\r\n }),\r\n // 点赞\r\n likeApi: (comment) =>\r\n PressService.pressCommentTags({\r\n id: comment.id,\r\n }),\r\n // 发布评论\r\n postApi: (params) =>\r\n PressService.pressComment({\r\n ...params,\r\n id: this.info.id,\r\n }),\r\n // 回复评论\r\n postReplyApi: (params, comment) =>\r\n PressService.pressSecondComment({\r\n ...params,\r\n id: comment.id,\r\n }),\r\n reportType: 9,\r\n // 删除评论\r\n delApi: (params) => PressService.delComment({ id: params.id }),\r\n };\r\n },\r\n },\r\n mounted() {\r\n const option = this.$route.query;\r\n const id = parseInt(option.press_id || 0);\r\n const user_info = localStorage.getItem(\"user_info\");\r\n const token = localStorage.getItem(\"token\");\r\n if (id > 0) {\r\n this.info.id = id;\r\n this.isLogin = user_info && token;\r\n this.getNewsDetail();\r\n }\r\n },\r\n methods: {\r\n // 回到顶部\r\n toTop() {\r\n window.scrollTo(0, 0);\r\n },\r\n // 获取新闻详情\r\n getNewsDetail() {\r\n let that = this;\r\n PressService.getPressDetail({ id: that.info.id }).then(({ data }) => {\r\n that.info = data.detail;\r\n this.$refs.comments.init(this.commentsOption);\r\n });\r\n },\r\n // 打开分享\r\n showShareFn() {\r\n const info = this.info;\r\n this.$refs.sharePopup.showFn({\r\n title: info.title, // 分享标题\r\n desc: info.desc || \"\", // 分享描述\r\n });\r\n },\r\n // 点击分享事件\r\n share() {\r\n PressService.pressTransmit({\r\n id: this.info.id,\r\n }).then(() => {\r\n if (!/[+.wW]/.test(this.info.transmit_num)) {\r\n this.info.transmit_num = Number(this.info.transmit_num) + 1;\r\n }\r\n });\r\n },\r\n // 举报\r\n report() {\r\n if (!this.isLogin) {\r\n this.showOpenLogin = true;\r\n console.log(\"没登陆\");\r\n return;\r\n }\r\n const type = 7; // 举报类型(1 视频 2 视频评论 3 会员 4 资料 5 图文)\r\n const report_id = this.info.id; // 举报内容的id\r\n this.$router.push(`/report?type=${type}&id=${report_id}`);\r\n },\r\n // 通知、订阅开关\r\n switchSet(type = 10) {\r\n if (!this.isLogin) {\r\n return this.$refs.isLoginVip.show(\"请先登录\", \"login\", \"s2\");\r\n }\r\n GeneralService.switchSet({\r\n id: this.info.id,\r\n type,\r\n }).then(({ data, msg }) => {\r\n this.$set(this.info, \"switch_open\", data.status);\r\n Toast(data.status ? \"开启通知\" : \"关闭通知\");\r\n });\r\n },\r\n // 点赞\r\n newsTags() {\r\n const info = this.info;\r\n return PressService.PressTags({\r\n id: info.id,\r\n }).then(({ msg, data }) => {\r\n Toast(msg);\r\n this.$set(info, \"is_praise\", data.tags);\r\n if (!/[+.wW]/.test(info.praise_num)) {\r\n this.$set(\r\n info,\r\n \"praise_num\",\r\n parseInt(info.praise_num) + (info.is_praise === 1 ? 1 : -1)\r\n );\r\n }\r\n });\r\n },\r\n // 收藏\r\n newsCollect() {\r\n const info = this.info;\r\n return PressService.pressCollect({\r\n status: 1 - info.is_collect,\r\n id: info.id,\r\n }).then(({ msg, data }) => {\r\n Toast(msg);\r\n this.$set(info, \"is_collect\", data.status);\r\n if (!/[+.wW]/.test(info.collect_num)) {\r\n this.$set(\r\n info,\r\n \"collect_num\",\r\n parseInt(info.collect_num) + (info.is_collect === 1 ? 1 : -1)\r\n );\r\n }\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.wrap {\r\n transition: all 0.4s;\r\n width: 100%;\r\n padding: 44px 0 calc(70vh + 44px);\r\n .basePage {\r\n border-bottom: 10px solid #f4f4f4;\r\n .top {\r\n width: 100%;\r\n overflow: hidden;\r\n padding: 10px 10px 0;\r\n box-sizing: border-box;\r\n display: flex;\r\n flex-direction: column;\r\n background-color: #ffffff;\r\n border-bottom: 1px solid #f4f4f4;\r\n .item-top {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n .item-top-left {\r\n display: flex;\r\n align-items: center;\r\n color: #222222;\r\n font-size: 13px;\r\n max-width: 120px;\r\n > img {\r\n width: 28px;\r\n height: 28px;\r\n border-radius: 50%;\r\n margin-right: 10px;\r\n }\r\n > div {\r\n width: calc(100% - 38px);\r\n height: 25px;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n overflow: auto;\r\n line-height: 25px;\r\n }\r\n }\r\n }\r\n .head-box {\r\n display: flex;\r\n margin-top: 10px;\r\n justify-content: center;\r\n .head {\r\n width: 100%;\r\n height: 50px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background-color: #f2f4fa;\r\n box-sizing: border-box;\r\n border-radius: 8px;\r\n .head-left {\r\n color: #2a63f3;\r\n font-size: 14px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n > img {\r\n width: 22px;\r\n margin-right: 4px;\r\n }\r\n > span {\r\n // display: -webkit-box;\r\n // -webkit-line-clamp: 1;\r\n // overflow: hidden;\r\n // text-overflow: ellipsis;\r\n // -webkit-box-orient: vertical;\r\n white-space: nowrap;\r\n }\r\n }\r\n\r\n .head-right {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 75px;\r\n height: 28px;\r\n line-height: 28px;\r\n color: #2a63f3;\r\n font-size: 13px;\r\n font-weight: bold;\r\n }\r\n }\r\n .head:not(:first-child) {\r\n margin-left: 10px;\r\n }\r\n }\r\n .top-title {\r\n margin-bottom: 15px;\r\n font-size: 20px;\r\n font-weight: 500;\r\n color: #222222;\r\n .hide {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n -webkit-box-orient: vertical;\r\n }\r\n }\r\n .top-content {\r\n margin-top: 10px;\r\n }\r\n .top-footer {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n font-size: 12px;\r\n font-weight: 400;\r\n color: #666666;\r\n margin: 10px 0;\r\n }\r\n }\r\n }\r\n .comment ::v-deep .van-switch__node {\r\n position: static;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./news-details.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./news-details.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./news-details.vue?vue&type=template&id=0ff63717&scoped=true&\"\nimport script from \"./news-details.vue?vue&type=script&lang=js&\"\nexport * from \"./news-details.vue?vue&type=script&lang=js&\"\nimport style0 from \"./news-details.vue?vue&type=style&index=0&id=0ff63717&prod&lang=scss&scoped=true&\"\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 \"0ff63717\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./news-details.vue?vue&type=style&index=0&id=0ff63717&prod&lang=scss&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newFooter.vue?vue&type=style&index=0&id=696ef710&prod&lang=scss&scoped=true&\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABYNJREFUWEflmW2IV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8MY4jpc0nfashpM5HecKpVQPgAsB7DfGcGhp+lBK7QPAGXbgsMZkQRDsJqLrOXEQUWsul+Pip2mDW6nEiYOplFJc83L7wo63LI7jqqlZKTUXALdJn1tr787lcocr7SybzY6XUr4K4BohRLvWmpuCimPQqdn3/XFCCE4eEsAhYww3jBX7NqXUBgDcVPLoA7AJwA4iOmStFZ7nTQAwH8CtAEa4eRuMMfdV4R188eO0zLGYBbGWF8VxzMV8v5HJZC5PpVIcBpPa+j4iWhDHMV8F9BtKqcVu02eahkTlpbNjLuA/4d9CiB97e3sn7927949KQtra2kacPn16hRBiWdkVQOn0LiJaP3z48HUdHR18EpVg6y/gnZa3A1jgoFdqrddVszv+n8ELhcJ0a+11QojR7nSOSyk/9TxvTzVQnjfkFskB3wTgXQe51hjz0EDAQ3nWqCaUcznndL6FnJPL5TqGAlXp3Ya2+a5VmczeP2zYsNa+vr5pUsqZALpOnjz5QjWbTrqphl6kZLPZMVLKo+xzRPSnEILDWjEsMdNPAB5Np9Ob6mj9G39V5fv+UiHEGwm0dZCIXpZSbtFa/zzQ/H/0MjAIgjuI6HUHwL3dAQARAL6r4FjJDlla/PMJfAvgC9Y+EXW7U2nOdatzhiXWWq4nTHk9EQTBNCLibmS2y4gJDuPslKZeaJdThWHYaq3lK6W5RDRVCHHm20aF8e9+MqgCxc40nrOdtTYtpZT/uY8yie2ggRNrXmg3UFZDljrvgP8CChLRS2UFdkUAAAAASUVORK5CYII=\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./comments-popup.vue?vue&type=style&index=0&id=66f46990&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('van-popup',{attrs:{\"round\":\"\",\"position\":\"bottom\",\"z-index\":\"999999999\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('div',{staticClass:\"allComments-window\"},[_c('div',{staticClass:\"allComments-window-top\"},[_vm._v(\"\\n 全部评论\\n \"),_c('button',{staticClass:\"allComments-window-close\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.show = false}}},[_c('img',{attrs:{\"src\":require(\"../assets/icon-106.png\"),\"alt\":\"\"}})])])]),_c('div',{staticClass:\"comment-list-fixed-height\"},[(_vm.show)?_c('comments',{ref:\"comments\",attrs:{\"switchShow\":true,\"type\":_vm.type,\"switch-val\":_vm.switchVal,\"fixed-list-height\":true},on:{\"switchChange\":_vm.switchChange,\"append\":function($event){return _vm.$emit('append', $event)},\"delComment\":function($event){return _vm.$emit('delComment', $event)},\"likeComment\":function($event){return _vm.$emit('likeComment', $event)}}}):_vm._e()],1),_c('div',{staticClass:\"allComments-window-bottom\",on:{\"click\":function($event){return _vm.$refs.comments.commentPostShow()}}},[_c('div',{staticClass:\"allComments-window-input-box\"},[_c('input',{staticClass:\"allComments-window-input\",attrs:{\"placeholder\":\"发布一条友善的评论\",\"disabled\":\"\"}})]),_c('button',{staticClass:\"allComments-window-bottom-btn\",attrs:{\"type\":\"button\"}},[_vm._v(\"发布\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 全部评论 -->\r\n<template>\r\n <van-popup v-model=\"show\" round position=\"bottom\" z-index=\"999999999\">\r\n <div class=\"allComments-window\">\r\n <div class=\"allComments-window-top\">\r\n 全部评论\r\n <button type=\"button\" class=\"allComments-window-close\" @click=\"show = false\">\r\n <img src=\"../assets/icon-106.png\" alt=\"\">\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"comment-list-fixed-height\">\r\n <comments\r\n :switchShow=\"true\"\r\n :type=\"type\"\r\n v-if=\"show\"\r\n ref=\"comments\"\r\n :switch-val=\"switchVal\"\r\n :fixed-list-height=\"true\"\r\n @switchChange=\"switchChange\"\r\n @append=\"$emit('append', $event)\"\r\n @delComment=\"$emit('delComment', $event)\"\r\n @likeComment=\"$emit('likeComment', $event)\"\r\n />\r\n </div>\r\n\r\n <div class=\"allComments-window-bottom\" @click=\"$refs.comments.commentPostShow()\">\r\n <div class=\"allComments-window-input-box\">\r\n <input class=\"allComments-window-input\" placeholder=\"发布一条友善的评论\" disabled/>\r\n </div>\r\n <button type=\"button\" class=\"allComments-window-bottom-btn\">发布</button>\r\n </div>\r\n </van-popup>\r\n</template>\r\n\r\n<script>\r\nimport Comments from \"@/components/comments.vue\";\r\n\r\nexport default {\r\n name: 'comments-popup',\r\n components: {Comments},\r\n props: {\r\n switchVal: {\r\n default: 0,\r\n },\r\n switchShow:{\r\ndefault:true\r\n },\r\n type: {\r\n default: '',\r\n },\r\n },\r\n watch: {\r\n switchVal() {\r\n this.checked = this.switchVal;\r\n },\r\n },\r\n data() {\r\n return {\r\n checked: 0,\r\n show: false,\r\n };\r\n },\r\n methods: {\r\n switchChange(){\r\n this.$emit('switchChange', 1)\r\n },\r\n showFn(option) {\r\n this.show = true;\r\n this.$nextTick(() => {\r\n this.$refs.comments.init({\r\n ...option,\r\n fixedListHeight: true,\r\n });\r\n });\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.allComments-window {\r\n width: 100%;\r\n padding: 0 12px 0;\r\n box-sizing: border-box;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.allComments-window-top {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 18px 0 0;\r\n margin-bottom: 4px;\r\n color: #222222;\r\n font-size: 18px;\r\n font-weight: bold;\r\n position: relative;\r\n}\r\n\r\n.allComments-window-close {\r\n position: absolute;\r\n right: 0;\r\n top: 18px\r\n}\r\n\r\n.allComments-window-close > img {\r\n width: 18px;\r\n}\r\n\r\n.allComments-window-bottom {\r\n width: 100%;\r\n height: 83px;\r\n padding-top: 8px;\r\n box-sizing: border-box;\r\n display: flex;\r\n align-items: flex-start;\r\n}\r\n\r\n.allComments-window-input-box {\r\n flex: 1;\r\n margin-left: 12px;\r\n background-color: #F3F3F3;\r\n height: 36px;\r\n padding: 0 16px;\r\n box-sizing: border-box;\r\n border-radius: 50px;\r\n}\r\n\r\n.allComments-window-input {\r\n flex: 1;\r\n height: 36px;\r\n line-height: 36px;\r\n font-size: 14px;\r\n border-radius: 50px;\r\n pointer-events: none;\r\n}\r\n\r\n.allComments-window-input::placeholder {\r\n color: #999999;\r\n}\r\n\r\n.allComments-window-bottom-btn {\r\n height: 36px;\r\n line-height: 36px;\r\n padding: 0 12px;\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #2A63F3;\r\n}\r\n\r\n.comment-list-fixed-height {\r\n height: calc(100vh - 250px + 39px);\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./comments-popup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./comments-popup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./comments-popup.vue?vue&type=template&id=66f46990&scoped=true&\"\nimport script from \"./comments-popup.vue?vue&type=script&lang=js&\"\nexport * from \"./comments-popup.vue?vue&type=script&lang=js&\"\nimport style0 from \"./comments-popup.vue?vue&type=style&index=0&id=66f46990&prod&scoped=true&lang=css&\"\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 \"66f46990\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}