chunk-1354d984.245e7f9e.js.map 31 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/forum/forum-contribute.vue?9b9c","webpack:///./src/components/layout/childNavbar.vue","webpack:///src/components/layout/childNavbar.vue","webpack:///./src/components/layout/childNavbar.vue?4bd6","webpack:///./src/components/layout/childNavbar.vue?afec","webpack:///./src/assets/icon/childNavbar sync ^\\.\\/.*\\.png$","webpack:///./src/components/layout/childNavbar.vue?0c29","webpack:///./src/assets/icon/childNavbar sync ^\\.\\/.*_1\\.png$","webpack:///./src/views/forum/forum-contribute.vue","webpack:///src/views/forum/forum-contribute.vue","webpack:///./src/views/forum/forum-contribute.vue?0f26","webpack:///./src/views/forum/forum-contribute.vue?4b67"],"names":["render","_vm","this","_c","_self","staticClass","_l","menuList","item","index","class","current","on","$event","handlePush","attrs","icon_s","icon","blue","_v","_s","title","numKey","num","shape","_e","staticRenderFns","name","props","menu","type","Array","required","Object","data","watch","val","$emit","mounted","_this","map","_objectSpread","iconPath","findIndex","link","$route","path","methods","$router","push","then","require","concat","icon_title","component","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","resolve","module","exports","forumMarkNum","directives","rawName","value","params","expression","domProps","target","composing","$set","editorParams","model","content","callback","$$v","addTagVisible","tag_list","tag","tag_index","splice","submit","tag_value","components","ChildNavbar","WangEditor","placeholder","height","isDisabled","label","computed","mapState","state","mark_num","query","forum_id","initEdit","localStorage","getItem","$store","dispatch","ForumService","getForumInfo","_ref","_data$detail","detail","split","_this2","length","join","userReferForum","_ref2","msg","$message","success","setTimeout","back","error"],"mappings":"kHAAA,W,oCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACJ,EAAIK,GAAIL,EAAIM,UAAU,SAASC,EAAKC,GAAO,MAAO,CAAU,QAARD,EAAgBL,EAAG,MAAM,CAACE,YAAY,qBAAqBF,EAAG,MAAM,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AAAxD,OAAAwD,MACAA,EAAAC,WACA,KAAA9B,OAAAf,GAAA4C,EAAAC,SACA,KAAAC,YAEAC,aAAAC,QAAA,cACA,KAAAC,OAAAC,SAAA,uBAEA5D,QAAA,CACAwD,SAAA,eAAAhE,EAAA,KACAqE,OAAAC,aAAA,CAAApD,GAAA,KAAAe,OAAAf,KAAAP,MAAA,SAAA4D,GAAA,IAAA5E,EAAA4E,EAAA5E,KACA6E,EAAA7E,EAAA8E,OAAA3F,EAAA0F,EAAA1F,MAAA2D,EAAA+B,EAAA/B,QAAAgB,EAAAe,EAAAf,MAAAvC,EAAAsD,EAAAtD,GACAlB,EAAAiC,OAAA,CAAAnD,QAAA2D,UAAAgB,QAAAvC,MACAlB,EAAAuC,aAAAE,UACAzC,EAAA6C,SAAAY,EAAAiB,MAAA,SAGAzB,OAAA,eAAA0B,EAAA,KACA,YAAA1C,OAAAnD,MACA,KAAAmD,OAAAQ,QACA,KAAAI,SAAA+B,QACA,KAAA3C,OAAAwB,MAAA,KAAAZ,SAAAgC,KAAA,UACAR,OAAAS,eAAA,KAAA7C,QAAAtB,MAAA,SAAAoE,GAAA,IAAAC,EAAAD,EAAAC,IACAL,EAAAM,SAAAC,QAAAF,GACAG,YAAA,WACAR,EAAAlE,QAAA2E,SACA,SANA,KAAAH,SAAAI,MAAA,UADA,KAAAJ,SAAAI,MAAA,UADA,KAAAJ,SAAAI,MAAA,aCxKyW,I,wBCQrWtE,EAAY,eACd,EACAtD,EACA0B,GACA,EACA,KACA,WACA,MAIa,aAAA4B,E","file":"js/chunk-1354d984.245e7f9e.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-contribute.vue?vue&type=style&index=0&id=5d794f5e&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"childNavbar-wrap\"},[_vm._l((_vm.menuList),function(item,index){return [(item == 'line')?_c('div',{staticClass:\"childNavbar-line\"}):_c('div',{staticClass:\"childNavbar-item\",class:{ 'childNavbar-item-currnet': _vm.current == index },on:{\"click\":function($event){return _vm.handlePush(item, index)}}},[_c('img',{attrs:{\"src\":_vm.current == index ? item.icon_s : item.icon,\"alt\":\"\"}}),_c('span',{class:{ blue: _vm.current == index }},[_vm._v(_vm._s(item.title))]),(item.numKey && !!_vm.num[item.numKey])?_c('div',{staticClass:\"mark\"},[_vm._v(\"\\n \"+_vm._s(item.shape == \"round\" ? \"\" : _vm.num[item.numKey])+\"\\n \")]):_vm._e()])]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"childNavbar-wrap\">\r\n <template v-for=\"(item, index) in menuList\">\r\n <div class=\"childNavbar-line\" v-if=\"item == 'line'\"></div>\r\n <div\r\n v-else\r\n class=\"childNavbar-item\"\r\n :class=\"{ 'childNavbar-item-currnet': current == index }\"\r\n @click=\"handlePush(item, index)\"\r\n >\r\n <img :src=\"current == index ? item.icon_s : item.icon\" alt=\"\" />\r\n <span :class=\"{ blue: current == index }\">{{ item.title }}</span>\r\n <div class=\"mark\" v-if=\"item.numKey && !!num[item.numKey]\">\r\n {{ item.shape == \"round\" ? \"\" : num[item.numKey] }}\r\n </div>\r\n </div>\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"childNavbar\",\r\n props: {\r\n menu: {\r\n type: Array,\r\n required: true,\r\n },\r\n num: {\r\n type: Object,\r\n },\r\n },\r\n data() {\r\n return {\r\n current: 0,\r\n menuList: [],\r\n };\r\n },\r\n watch: {\r\n current(val) {\r\n this.$emit(\"change\", val);\r\n },\r\n },\r\n mounted() {\r\n this.menuList = this.menu.map((item) => {\r\n return typeof item == \"string\"\r\n ? item\r\n : {\r\n ...item,\r\n ...this.iconPath(item),\r\n };\r\n });\r\n this.current = this.menuList.findIndex(\r\n (item) => item.link == this.$route.path\r\n );\r\n },\r\n methods: {\r\n handlePush(item, index) {\r\n if (this.current == index) return;\r\n this.current = index;\r\n this.$router.push(item.link).then(() => {});\r\n },\r\n iconPath(item) {\r\n return {\r\n icon: require(`@/assets/icon/childNavbar/${\r\n item.icon_title || item.title\r\n }.png`),\r\n icon_s: require(`@/assets/icon/childNavbar/${\r\n item.icon_title || item.title\r\n }_1.png`),\r\n };\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.childNavbar-wrap {\r\n background-color: white;\r\n border-radius: 10px;\r\n width: 100%;\r\n padding: 15px 0;\r\n box-sizing: border-box;\r\n user-select: none;\r\n .childNavbar-line {\r\n width: calc(100% - 60px);\r\n height: 1px;\r\n background-color: rgba(151, 151, 151, 0.1);\r\n margin: 5px auto;\r\n }\r\n .childNavbar-item {\r\n width: calc(100% - 60px);\r\n height: 30px;\r\n display: flex;\r\n align-items: center;\r\n padding: 10px 30px;\r\n img {\r\n width: 16px;\r\n height: 16px;\r\n }\r\n span {\r\n font-size: 16px;\r\n line-height: 40px;\r\n margin-left: 12px;\r\n }\r\n .mark {\r\n height: 16px;\r\n width: 16px;\r\n background-color: #ff3535;\r\n color: white;\r\n border-radius: 50%;\r\n margin-left: 20px;\r\n text-align: center;\r\n line-height: 16px;\r\n font-size: 12px;\r\n }\r\n }\r\n\r\n .childNavbar-item:hover {\r\n background: rgba(0, 84, 247, 0.06);\r\n }\r\n .childNavbar-item-currnet {\r\n background: rgba(0, 84, 247, 0.06);\r\n }\r\n .blue {\r\n color: #2a63f3;\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!./childNavbar.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!./childNavbar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./childNavbar.vue?vue&type=template&id=d8446d90&scoped=true&\"\nimport script from \"./childNavbar.vue?vue&type=script&lang=js&\"\nexport * from \"./childNavbar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./childNavbar.vue?vue&type=style&index=0&id=d8446d90&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 \"d8446d90\",\n null\n \n)\n\nexport default component.exports","var map = {\n\t\"./充值订单.png\": \"9728\",\n\t\"./充值订单_1.png\": \"a398\",\n\t\"./回复我的.png\": \"91ea\",\n\t\"./回复我的_1.png\": \"b528\",\n\t\"./回复我的_forum.png\": \"0818\",\n\t\"./回复我的_forum_1.png\": \"74fa\",\n\t\"./回答我的.png\": \"efa8\",\n\t\"./回答我的_1.png\": \"3d81\",\n\t\"./学习历史.png\": \"9f71\",\n\t\"./学习历史_1.png\": \"0677\",\n\t\"./我的关注.png\": \"cda1\",\n\t\"./我的关注_1.png\": \"3215\",\n\t\"./我的发布.png\": \"2e1a\",\n\t\"./我的发布_1.png\": \"b48b\",\n\t\"./我的回复.png\": \"a5f6\",\n\t\"./我的回复_1.png\": \"ec94\",\n\t\"./我的回复_forum.png\": \"c8a9\",\n\t\"./我的回复_forum_1.png\": \"6cb6\",\n\t\"./我的回答.png\": \"d83c\",\n\t\"./我的回答_1.png\": \"76ef\",\n\t\"./我的已购.png\": \"42aa\",\n\t\"./我的已购_1.png\": \"d388\",\n\t\"./我的提问.png\": \"7f11\",\n\t\"./我的提问_1.png\": \"d9f4\",\n\t\"./我的收藏.png\": \"04a8\",\n\t\"./我的收藏_1.png\": \"f30b\",\n\t\"./我的点赞.png\": \"4740\",\n\t\"./我的点赞_1.png\": \"8be3\",\n\t\"./我的订阅.png\": \"0bb9\",\n\t\"./我的订阅_1.png\": \"95b6\",\n\t\"./我的评论.png\": \"2d4e\",\n\t\"./我的评论_1.png\": \"a078\",\n\t\"./我的评论_forum.png\": \"aba0\",\n\t\"./我的评论_forum_1.png\": \"af14\",\n\t\"./我的追番.png\": \"6c7d\",\n\t\"./我的追番_1.png\": \"51c3\",\n\t\"./浏览记录.png\": \"709a2\",\n\t\"./浏览记录_1.png\": \"3aed\",\n\t\"./点赞我的.png\": \"1146\",\n\t\"./点赞我的_1.png\": \"9c4b\",\n\t\"./订阅.png\": \"2a09\",\n\t\"./订阅_1.png\": \"5527\",\n\t\"./评论我的.png\": \"7d7e\",\n\t\"./评论我的_1.png\": \"d6b0\",\n\t\"./账户管理.png\": \"c6a7\",\n\t\"./账户管理_1.png\": \"62bf\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"9b0e\";","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!./childNavbar.vue?vue&type=style&index=0&id=d8446d90&prod&lang=scss&scoped=true&\"","var map = {\n\t\"./充值订单_1.png\": \"a398\",\n\t\"./回复我的_1.png\": \"b528\",\n\t\"./回复我的_forum_1.png\": \"74fa\",\n\t\"./回答我的_1.png\": \"3d81\",\n\t\"./学习历史_1.png\": \"0677\",\n\t\"./我的关注_1.png\": \"3215\",\n\t\"./我的发布_1.png\": \"b48b\",\n\t\"./我的回复_1.png\": \"ec94\",\n\t\"./我的回复_forum_1.png\": \"6cb6\",\n\t\"./我的回答_1.png\": \"76ef\",\n\t\"./我的已购_1.png\": \"d388\",\n\t\"./我的提问_1.png\": \"d9f4\",\n\t\"./我的收藏_1.png\": \"f30b\",\n\t\"./我的点赞_1.png\": \"8be3\",\n\t\"./我的订阅_1.png\": \"95b6\",\n\t\"./我的评论_1.png\": \"a078\",\n\t\"./我的评论_forum_1.png\": \"af14\",\n\t\"./我的追番_1.png\": \"51c3\",\n\t\"./浏览记录_1.png\": \"3aed\",\n\t\"./点赞我的_1.png\": \"9c4b\",\n\t\"./订阅_1.png\": \"5527\",\n\t\"./评论我的_1.png\": \"d6b0\",\n\t\"./账户管理_1.png\": \"62bf\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"aace\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"navbar\"},[_c('ChildNavbar',{attrs:{\"num\":_vm.forumMarkNum,\"menu\":_vm.menu}})],1),_c('div',{staticClass:\"content\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.title),expression:\"params.title\"}],staticClass:\"title\",attrs:{\"type\":\"text\",\"placeholder\":\"写下你的问题\"},domProps:{\"value\":(_vm.params.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"title\", $event.target.value)}}}),_c('div',{staticClass:\"detail\"},[_c('WangEditor',{attrs:{\"editorParams\":_vm.editorParams},model:{value:(_vm.params.content),callback:function ($$v) {_vm.$set(_vm.params, \"content\", $$v)},expression:\"params.content\"}})],1),_c('div',{staticClass:\"tag\"},[_c('div',{staticClass:\"tag-add tag-btn\",on:{\"click\":function($event){_vm.addTagVisible = true}}},[_vm._v(\"\\n #添加标签\\n \")]),_vm._l((_vm.tag_list),function(tag,tag_index){return _c('div',{staticClass:\"tag-item tag-btn\"},[_vm._v(\"\\n \"+_vm._s(tag)+\" \"),_c('i',{staticClass:\"el-icon-close\",on:{\"click\":function($event){return _vm.tag_list.splice(tag_index, 1)}}})])})],2),_c('div',{staticClass:\"submit\",on:{\"click\":_vm.submit}},[_vm._v(\"发布问题\")])]),(_vm.addTagVisible)?_c('el-dialog',{attrs:{\"width\":\"350px\",\"visible\":_vm.addTagVisible},on:{\"update:visible\":function($event){_vm.addTagVisible=$event}}},[_c('div',{staticClass:\"window\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"请输入标签\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tag_value),expression:\"tag_value\"}],staticClass:\"value\",attrs:{\"type\":\"text\",\"placeholder\":\"请输入标签\"},domProps:{\"value\":(_vm.tag_value)},on:{\"input\":function($event){if($event.target.composing)return;_vm.tag_value=$event.target.value}}}),_c('div',{staticClass:\"btn-box\"},[_c('div',{staticClass:\"btn cancel\",on:{\"click\":function($event){_vm.addTagVisible = false;\n _vm.tag_value = '';}}},[_vm._v(\"\\n 取消\\n \")]),_c('div',{staticClass:\"btn confirm\",on:{\"click\":function($event){_vm.tag_list.push(_vm.tag_value);\n _vm.addTagVisible = false;\n _vm.tag_value = '';}}},[_vm._v(\"\\n 确认\\n \")])])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"wrap\">\r\n <div class=\"navbar\">\r\n <ChildNavbar :num=\"forumMarkNum\" :menu=\"menu\" />\r\n </div>\r\n <div class=\"content\">\r\n <input\r\n type=\"text\"\r\n class=\"title\"\r\n placeholder=\"写下你的问题\"\r\n v-model=\"params.title\"\r\n />\r\n <div class=\"detail\">\r\n <WangEditor v-model=\"params.content\" :editorParams=\"editorParams\" />\r\n </div>\r\n <div class=\"tag\">\r\n <div class=\"tag-add tag-btn\" @click=\"addTagVisible = true\">\r\n #添加标签\r\n </div>\r\n <div class=\"tag-item tag-btn\" v-for=\"(tag, tag_index) in tag_list\">\r\n {{ tag }}&nbsp;<i\r\n class=\"el-icon-close\"\r\n @click=\"tag_list.splice(tag_index, 1)\"\r\n ></i>\r\n </div>\r\n </div>\r\n <div class=\"submit\" @click=\"submit\">发布问题</div>\r\n </div>\r\n <el-dialog width=\"350px\" v-if=\"addTagVisible\" :visible.sync=\"addTagVisible\">\r\n <div class=\"window\">\r\n <div class=\"title\">请输入标签</div>\r\n <input\r\n class=\"value\"\r\n type=\"text\"\r\n placeholder=\"请输入标签\"\r\n v-model=\"tag_value\"\r\n />\r\n <div class=\"btn-box\">\r\n <div\r\n class=\"btn cancel\"\r\n @click=\"\r\n addTagVisible = false;\r\n tag_value = '';\r\n \"\r\n >\r\n 取消\r\n </div>\r\n <div\r\n class=\"btn confirm\"\r\n @click=\"\r\n tag_list.push(tag_value);\r\n addTagVisible = false;\r\n tag_value = '';\r\n \"\r\n >\r\n 确认\r\n </div>\r\n </div>\r\n </div>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport ChildNavbar from \"@/components/layout/childNavbar\";\r\nimport WangEditor from \"@/components/module/wang-editor.vue\";\r\nimport { ForumService } from \"@/common/service\";\r\nimport { mapState } from \"vuex\";\r\nexport default {\r\n components: { ChildNavbar, WangEditor },\r\n data() {\r\n return {\r\n menu: [\r\n {\r\n title: \"回答我的\",\r\n link: \"/forum/answer-on-my\",\r\n numKey: \"answer_num\",\r\n },\r\n {\r\n title: \"评论我的\",\r\n link: \"/forum/comment-on-my\",\r\n numKey: \"comment_num\",\r\n icon_title: \"回复我的\",\r\n },\r\n {\r\n title: \"回复我的\",\r\n link: \"/forum/reply-on-my\",\r\n numKey: \"reply_num\",\r\n icon_title: \"回复我的_forum\",\r\n },\r\n {\r\n link: \"/forum/like-on-my\",\r\n title: \"点赞我的\",\r\n numKey: \"praise_num\",\r\n shape: \"round\",\r\n },\r\n \"line\",\r\n {\r\n title: \"我的提问\",\r\n link: \"/forum/my-question\",\r\n },\r\n {\r\n title: \"我的回答\",\r\n link: \"/forum/my-answer\",\r\n },\r\n {\r\n title: \"我的评论\",\r\n link: \"/forum/my-comment\",\r\n icon_title: \"我的评论_forum\",\r\n },\r\n {\r\n title: \"我的回复\",\r\n link: \"/forum/my-reply\",\r\n icon_title: \"我的回复_forum\",\r\n },\r\n {\r\n title: \"我的点赞\",\r\n link: \"/forum/my-like\",\r\n },\r\n {\r\n title: \"我的关注\",\r\n link: \"/forum/my-follow\",\r\n },\r\n {\r\n title: \"浏览记录\",\r\n link: \"/forum/browse-history\",\r\n },\r\n ],\r\n editorParams: {\r\n content: \"\", // 富文本内容\r\n placeholder: \"问题描述\", // 富文本占位内容\r\n height: \"320px\", // 富文本最小高度\r\n isDisabled: false, // 富文本是否禁用\r\n },\r\n params: {\r\n title: \"\",\r\n content: \"\",\r\n label: \"\",\r\n },\r\n tag_list: [],\r\n addTagVisible: false,\r\n tag_value: \"\",\r\n };\r\n },\r\n computed: {\r\n ...mapState({\r\n forumMarkNum: (state) => state.mark_num.forumMarkNum, //直接拿到count数量\r\n }),\r\n },\r\n mounted() {\r\n const { query } = this.$route;\r\n if (query.forum_id) {\r\n this.params.id = query.forum_id;\r\n this.initEdit();\r\n }\r\n if (localStorage.getItem(\"user_info\"))\r\n this.$store.dispatch(\"getMarkNum\", \"forum\");\r\n },\r\n methods: {\r\n initEdit() {\r\n ForumService.getForumInfo({ id: this.params.id }).then(({ data }) => {\r\n const { title, content, label, id } = data.detail;\r\n this.params = { title, content, label, id };\r\n this.editorParams.content = content;\r\n this.tag_list = label.split(\",\");\r\n });\r\n },\r\n submit() {\r\n if (!this.params.title) return this.$message.error(\"标题不能为空\");\r\n if (!this.params.content) return this.$message.error(\"内容不能为空\");\r\n if (!this.tag_list.length) return this.$message.error(\"标签不能为空\");\r\n this.params.label = this.tag_list.join(\",\");\r\n ForumService.userReferForum(this.params).then(({ 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</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.wrap {\r\n width: calc(100% - #{$navbarWidth} - 10px);\r\n padding-bottom: 50px;\r\n position: relative;\r\n .navbar {\r\n width: $navbarWidth;\r\n position: fixed;\r\n right: 10px;\r\n }\r\n @media (max-width: 78.125rem) {\r\n .navbar {\r\n position: absolute;\r\n top: var(--scrollTop);\r\n left: calc(78.125rem - 2 * #{$navbarWidth} - 30px);\r\n }\r\n }\r\n .content {\r\n width: 800px;\r\n padding: 50px 60px;\r\n box-sizing: border-box;\r\n margin: 0 auto;\r\n background: #ffffff;\r\n border-radius: 10px;\r\n .title {\r\n width: 100%;\r\n height: 60px;\r\n border-radius: 4px;\r\n border: 1px solid #d5d5d5;\r\n outline: none;\r\n padding: 10px 15px;\r\n box-sizing: border-box;\r\n font-size: 16px;\r\n font-weight: 400;\r\n &::placeholder {\r\n color: #999999;\r\n }\r\n }\r\n .detail {\r\n margin-top: 20px;\r\n user-select: text;\r\n }\r\n .tag {\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n justify-content: flex-start;\r\n margin-top: 20px;\r\n .tag-btn {\r\n height: 30px;\r\n border-radius: 2px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n display: flex;\r\n align-items: center;\r\n padding: 0 10px;\r\n line-height: 1em;\r\n user-select: none;\r\n margin-bottom: 10px;\r\n margin-right: 10px;\r\n }\r\n .tag-add {\r\n background: #f2f2f2;\r\n color: #999999;\r\n cursor: pointer;\r\n }\r\n .tag-item {\r\n background: #eff2fa;\r\n color: #0054f7;\r\n i {\r\n cursor: pointer;\r\n }\r\n }\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: 10px;\r\n cursor: pointer;\r\n }\r\n }\r\n .window {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n .title {\r\n font-size: 18px;\r\n font-weight: 400;\r\n color: #333333;\r\n }\r\n .value {\r\n height: 45px;\r\n width: 270px;\r\n background: #f5f5f5;\r\n border-radius: 10px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n outline: none;\r\n border: none;\r\n padding: 10px 15px;\r\n box-sizing: border-box;\r\n margin: 60px 0;\r\n &::placeholder {\r\n color: #999999;\r\n }\r\n }\r\n .btn-box {\r\n width: 240px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n .btn {\r\n width: 108px;\r\n height: 44px;\r\n border-radius: 10px;\r\n font-size: 18px;\r\n font-weight: 400;\r\n color: #ffffff;\r\n text-align: center;\r\n line-height: 44px;\r\n }\r\n .cancel {\r\n background: #e6e6e6;\r\n }\r\n .confirm {\r\n background: #2a63f3;\r\n }\r\n }\r\n }\r\n /deep/ .el-dialog {\r\n border-radius: 10px;\r\n }\r\n\r\n /deep/ .el-dialog__header {\r\n display: none;\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-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-contribute.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./forum-contribute.vue?vue&type=template&id=5d794f5e&scoped=true&\"\nimport script from \"./forum-contribute.vue?vue&type=script&lang=js&\"\nexport * from \"./forum-contribute.vue?vue&type=script&lang=js&\"\nimport style0 from \"./forum-contribute.vue?vue&type=style&index=0&id=5d794f5e&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 \"5d794f5e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}