chunk-53f8e2f9.70aab877.js.map 6.5 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/forum/forum-answer-contribute.vue?e3cf","webpack:///./src/views/forum/forum-answer-contribute.vue","webpack:///src/views/forum/forum-answer-contribute.vue","webpack:///./src/views/forum/forum-answer-contribute.vue?01e7","webpack:///./src/views/forum/forum-answer-contribute.vue?099e"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","info","title","attrs","editorParams","model","value","content","callback","$$v","expression","on","submit","staticRenderFns","components","WangEditor","data","placeholder","height","isDisabled","mounted","id","$route","query","forum_id","getQuestionDetail","methods","_this","ForumService","getForumInfo","then","_ref","detail","_this2","$message","error","replyForum","_ref2","msg","success","setTimeout","$router","back","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,KAAKC,UAAUN,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,aAAa,CAACO,MAAM,CAAC,aAAeT,EAAIU,cAAcC,MAAM,CAACC,MAAOZ,EAAIa,QAASC,SAAS,SAAUC,GAAMf,EAAIa,QAAQE,GAAKC,WAAW,cAAc,GAAGd,EAAG,MAAM,CAACE,YAAY,SAASa,GAAG,CAAC,MAAQjB,EAAIkB,SAAS,CAAClB,EAAIK,GAAG,aAE1Zc,EAAkB,G,wBCWP,GACfC,WAAA,CAAAC,mBACAC,KAAA,WACA,OACAZ,aAAA,CACAG,QAAA,GACAU,YAAA,OACAC,OAAA,QACAC,YAAA,GAEAZ,QAAA,GACAN,KAAA,KAGAmB,QAAA,WACA,KAAAnB,KAAAoB,GAAA,KAAAC,OAAAC,MAAAC,SACA,KAAAC,qBAEAC,QAAA,CAEAD,kBAAA,eAAAE,EAAA,KACAC,OAAAC,aAAA,CAAAR,GAAA,KAAApB,KAAAoB,KAAAS,MAAA,SAAAC,GAAA,IAAAf,EAAAe,EAAAf,KACAW,EAAA1B,KAAAe,EAAAgB,WAGApB,OAAA,eAAAqB,EAAA,KACA,SAAA1B,QAAA,YAAA2B,SAAAC,MAAA,UACAP,OAAAQ,WAAA,CAAAf,GAAA,KAAApB,KAAAoB,GAAAd,QAAA,KAAAA,UAAAuB,MACA,SAAAO,GAAA,IAAAC,EAAAD,EAAAC,IACAL,EAAAC,SAAAK,QAAAD,GACAE,YAAA,WACAP,EAAAQ,QAAAC,SACA,WC7CgX,I,wBCQ5WC,EAAY,eACd,EACAlD,EACAoB,GACA,EACA,KACA,WACA,MAIa,aAAA8B,E","file":"js/chunk-53f8e2f9.70aab877.js","sourcesContent":["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!./forum-answer-contribute.vue?vue&type=style&index=0&id=e58303f4&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.info.title))]),_c('div',{staticClass:\"detail\"},[_c('WangEditor',{attrs:{\"editorParams\":_vm.editorParams},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}})],1),_c('div',{staticClass:\"submit\",on:{\"click\":_vm.submit}},[_vm._v(\"回答问题\")])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"wrap\">\r\n <div class=\"title\">{{ info.title }}</div>\r\n <div class=\"detail\">\r\n <WangEditor v-model=\"content\" :editorParams=\"editorParams\" />\r\n </div>\r\n <div class=\"submit\" @click=\"submit\">回答问题</div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport WangEditor from \"@/components/module/wang-editor.vue\";\r\nimport { ForumService } from \"@/common/service\";\r\nexport default {\r\n components: { WangEditor },\r\n data() {\r\n return {\r\n editorParams: {\r\n content: \"\", // 富文本内容\r\n placeholder: \"答案描述\", // 富文本占位内容\r\n height: \"320px\", // 富文本最小高度\r\n isDisabled: false, // 富文本是否禁用\r\n },\r\n content: \"\",\r\n info: {},\r\n };\r\n },\r\n mounted() {\r\n this.info.id = this.$route.query.forum_id;\r\n this.getQuestionDetail();\r\n },\r\n methods: {\r\n // 获取问题详情\r\n getQuestionDetail() {\r\n ForumService.getForumInfo({ id: this.info.id }).then(({ data }) => {\r\n this.info = data.detail;\r\n });\r\n },\r\n submit() {\r\n if (!this.content) return this.$message.error(\"内容不能为空\");\r\n ForumService.replyForum({ id: this.info.id, content: this.content }).then(\r\n ({ msg }) => {\r\n this.$message.success(msg);\r\n setTimeout(() => {\r\n this.$router.back();\r\n }, 1000);\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 width: 800px;\r\n padding: 50px 60px;\r\n box-sizing: border-box;\r\n margin: 15px auto;\r\n background: #ffffff;\r\n border-radius: 10px;\r\n .title {\r\n width: 100%;\r\n font-size: 20px;\r\n font-weight: 400;\r\n }\r\n .detail {\r\n margin-top: 20px;\r\n user-select: text;\r\n }\r\n .submit {\r\n width: 200px;\r\n height: 60px;\r\n background: #0054f7;\r\n border-radius: 4px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n color: #ffffff;\r\n text-align: center;\r\n line-height: 60px;\r\n margin-top: 20px;\r\n cursor: pointer;\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!./forum-answer-contribute.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!./forum-answer-contribute.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./forum-answer-contribute.vue?vue&type=template&id=e58303f4&scoped=true&\"\nimport script from \"./forum-answer-contribute.vue?vue&type=script&lang=js&\"\nexport * from \"./forum-answer-contribute.vue?vue&type=script&lang=js&\"\nimport style0 from \"./forum-answer-contribute.vue?vue&type=style&index=0&id=e58303f4&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 \"e58303f4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}