{"version":3,"sources":["uni-app:///main.js","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?d6bf","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?1fc9","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?b865","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?5bff","uni-app:///uni_modules/uce-bbs/pages/submit/submit.vue","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?60c3","webpack:////Users/mac/Desktop/UceEduFront/uni_modules/uce-bbs/pages/submit/submit.vue?ad5e"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","btnCustomStyle","width","height","background","borderRadius","letterSpacing","title","content","value","label","show","categories","onLoad","that","methods","submit","uni","icon","success","url","category_id","back","fail","actionSheetCallback","console","getCategories"],"mappings":";;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,qOAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP,KAAK;AACL;AACA,aAAa,iQAEN;AACP,KAAK;AACL;AACA,aAAa,4OAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1DA;AAAA;AAAA;AAAA;AAAm1B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+Bv2B;AAAA,eACA;EACAC;IACA;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;MACAC;QACAC;MACA;MACAC;MACAC;IACA;EACA;EACAC;IACAC;IACA;EACA;EACAC;IACAC;MACA;QACAC;UACAC;UACAX;QACA;QACA;MACA;MAEA;QACAU;UACAC;UACAX;QACA;QACA;MACA;MACA;QACAU;UACAC;UACAX;QACA;QACA;MACA;MACAU;QACAV;QACAC;QACAW;UACA;YACAF;cACAG;cACApB;gBACAO;gBACAC;gBACAa;cACA;cACAF;gBACAL;gBACAA;gBACAA;gBACAA;kBACAP;kBACAe;gBACA;cACA;cACAC;gBACAN;cACA;YACA;UACA;QACA;MACA;IACA;IACA;IACAO;MACA;MACAC;IACA;IACAC;MACAT;QACAG;QACAD;UAAA;UACA;UACAP;UACAa;UACA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC7HA;AAAA;AAAA;AAAA;AAAslD,CAAgB,27CAAG,EAAC,C;;;;;;;;;;;ACA1mD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uni_modules/uce-bbs/pages/submit/submit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js';\nimport Vue from 'vue'\nimport Page from './uni_modules/uce-bbs/pages/submit/submit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./submit.vue?vue&type=template&id=271b7bdd&scoped=true&\"\nvar renderjs\nimport script from \"./submit.vue?vue&type=script&lang=js&\"\nexport * from \"./submit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./submit.vue?vue&type=style&index=0&id=271b7bdd&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"271b7bdd\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"uni_modules/uce-bbs/pages/submit/submit.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submit.vue?vue&type=template&id=271b7bdd&scoped=true&\"","var components\ntry {\n components = {\n uToast: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-toast/u-toast\" */ \"uview-ui/components/u-toast/u-toast.vue\"\n )\n },\n uInput: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-input/u-input\" */ \"uview-ui/components/u-input/u-input.vue\"\n )\n },\n vkDataInputEditor: function () {\n return import(\n /* webpackChunkName: \"components/vk-data-input-editor/vk-data-input-editor\" */ \"@/components/vk-data-input-editor/vk-data-input-editor.vue\"\n )\n },\n uSelect: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-select/u-select\" */ \"uview-ui/components/u-select/u-select.vue\"\n )\n },\n uButton: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-button/u-button\" */ \"uview-ui/components/u-button/u-button.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.show = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submit.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<u-toast ref=\"uToast\" />\r\n\t\t<view class=\"make-question\">\r\n\t\t\t<view class=\"box\">\r\n\t\t\t\t<view class=\"selection\">\r\n\t\t\t\t\t撰写标题\r\n\t\t\t\t</view>\r\n\t\t\t\t<u-input v-model=\"title\" placeholder=\"请输入问题标题\" type=\"text\" :border=\"true\" />\r\n\t\t\t\t<view class=\"selection\">\r\n\t\t\t\t\t撰写问题\r\n\t\t\t\t</view>\r\n\t\t\t\t<vk-data-input-editor ref=\"vk_editor\" v-model=\"content\" placeholder=\"请输入问题内容\"></vk-data-input-editor>\r\n\r\n\t\t\t\t<view class=\"selection\">\r\n\t\t\t\t\t选择分类\r\n\t\t\t\t</view>\r\n\t\t\t\t<u-input v-model=\"value.label\" type=\"select\" :border=\"true\" @click=\"show = true\" />\r\n\t\t\t\t<u-select v-model=\"show\" :list=\"categories\" @confirm=\"actionSheetCallback\" value-name=\"_id\"\r\n\t\t\t\t\tlabel-name='name'></u-select>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"button-box\">\r\n\t\t\t\t<u-button type=\"primary\" :custom-style=\"btnCustomStyle\" @click=\"submit\">发布问答</u-button>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\tvar that\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tbtnCustomStyle: {\r\n\t\t\t\t\twidth: \"710rpx\",\r\n\t\t\t\t\theight: \"80rpx\",\r\n\t\t\t\t\tbackground: \"#1663ff\",\r\n\t\t\t\t\tborderRadius: \"8rpx\",\r\n\t\t\t\t\tletterSpacing: \"2rpx\"\r\n\t\t\t\t},\r\n\t\t\t\ttitle: \"\",\r\n\t\t\t\tcontent: \"\",\r\n\t\t\t\tvalue: {\r\n\t\t\t\t\tlabel: \"\"\r\n\t\t\t\t},\r\n\t\t\t\tshow: false,\r\n\t\t\t\tcategories: [],\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthat = this\r\n\t\t\tthis.getCategories()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tsubmit() {\r\n\t\t\t\tif (this.title.length < 2) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\ttitle: \"标题长度太短啦~\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (this.content.length < 10) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\ttitle: \"内容长度太短啦~\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tif (!this.value.value) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\ttitle: \"请选择分类\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: \"提示\",\r\n\t\t\t\t\tcontent: \"确认提交?\",\r\n\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tuni.vk.callFunction({\r\n\t\t\t\t\t\t\t\turl: 'client/bbs/kh/add',\r\n\t\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\t\ttitle: that.title,\r\n\t\t\t\t\t\t\t\t\tcontent: that.content,\r\n\t\t\t\t\t\t\t\t\tcategory_id: that.value.value\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tsuccess(data) {\r\n\t\t\t\t\t\t\t\t\tthat.content = \"\"\r\n\t\t\t\t\t\t\t\t\tthat.title = \"\"\r\n\t\t\t\t\t\t\t\t\tthat.$refs.vk_editor.clear()\r\n\t\t\t\t\t\t\t\t\tthat.$refs.uToast.show({\r\n\t\t\t\t\t\t\t\t\t\ttitle: '提交成功',\r\n\t\t\t\t\t\t\t\t\t\tback: true\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tfail(e) {\r\n\t\t\t\t\t\t\t\t\tuni.vk.alert(e.msg)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\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},\r\n\t\t\t// 点击actionSheet回调\r\n\t\t\tactionSheetCallback(e) {\r\n\t\t\t\tthis.value = e[0]\r\n\t\t\t\tconsole.log(e)\r\n\t\t\t},\r\n\t\t\tgetCategories() {\r\n\t\t\t\tuni.vk.callFunction({\r\n\t\t\t\t\turl: 'client/bbs/pub/categories',\r\n\t\t\t\t\tsuccess(data) {\r\n\t\t\t\t\t\tlet categories = [];\r\n\t\t\t\t\t\tcategories.push(...data.rows);\r\n\t\t\t\t\t\tconsole.log(categories)\r\n\t\t\t\t\t\tthat.categories.push(...categories);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.make-question {\r\n\t\tpadding: 20rpx;\r\n\r\n\t\t.box {\r\n\t\t\tbackground: #FFFFFF;\r\n\r\n\t\t\t.selection {\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t\tcolor: #333333;\r\n\t\t\t\tfont-size: 38rpx;\r\n\t\t\t\tpadding: 20rpx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.button-box {\r\n\t\t\tmargin-top: 40rpx;\r\n\t\t}\r\n\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submit.vue?vue&type=style&index=0&id=271b7bdd&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./submit.vue?vue&type=style&index=0&id=271b7bdd&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1712134300575\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|