You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.9 KiB

4 years ago
{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/codewhy/src/views/moment/childComps/CreateMoment.vue?vue&type=style&index=0&id=17dc9edc&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/src/views/moment/childComps/CreateMoment.vue","mtime":1616164321238},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKLmJhY2sgaW1nIHsKICBtYXJnaW4tdG9wOiAxMnB4Owp9Ci5uYXYtYmFyIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMjQ1LCAyNDMsIDI0Myk7CiAgZm9udC13ZWlnaHQ6IDUwMHB4OwogIGNvbG9yOiByZ2JhKDU0LCA1MywgNTMsIDAuNzMzKTsKfQo="},{"version":3,"sources":["CreateMoment.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"CreateMoment.vue","sourceRoot":"src/views/moment/childComps","sourcesContent":["<template>\n <div>\n <NavBar class=\"nav-bar\">\n <div slot=\"left\" class=\"back\" @click=\"backClick\">\n <img src=\"~assets/img/common/back.svg\" alt=\"\" />\n </div>\n <div slot=\"center\" class=\"title\">发表动态</div>\n </NavBar>\n <!-- 动态内容 -->\n <el-form\n ref=\"createmoment\"\n label-width=\"0px\"\n :model=\"moment\"\n :rules=\"momentRules\"\n preview-image:true\n >\n <el-form-item prop=\"content\">\n <el-input\n type=\"textarea\"\n :rows=\"2\"\n placeholder=\"输入你此刻的想法\"\n v-model=\"moment.content\"\n >\n </el-input>\n </el-form-item>\n <!-- 图片上传部分 -->\n <van-uploader\n :after-read=\"afterRead\"\n preview-size=\"60px\"\n v-model=\"fileList\"\n :max-count=\"3\"\n :deletable=\"false\"\n :multiple=\"true\"\n accept=\"image/png,image/jpeg,image/jpg,image/svg,image/gif\"\n >\n </van-uploader>\n\n <el-form-item class=\"btns\" >\n <el-row >\n <el-button type=\"primary\" @click=\"createmoment\" :disabled=\"this.isbtn\" >发表</el-button>\n </el-row>\n </el-form-item>\n </el-form>\n </div>\n</template>\n\n<script>\nimport NavBar from \"@/components/common/navbar/NavBar\";\nimport { createMoment1, createMoment2 } from \"@/network/createMoment.js\";\nexport default {\n name: \"CreateMoment\",\n components: {\n NavBar\n },\n data() {\n return {\n moment: {\n content: \"\",\n formdata: \"\"\n },\n momentRules: {\n //验证用户名是否合法\n content: [\n { required: true, message: \"请输入内容\", trigger: \"blur\" },\n {\n min: 4,\n max: 100,\n message: \"长度在 4 到 100 个字符\",\n trigger: \"blur\"\n }\n ]\n },\n fileList: [],\n isbtn:false\n };\n },\n created() {\n this.formdata = new FormData();\n this.isbtn=false;\n },\n methods: {\n backClick() {\n this.$router.push(\"/moment\");\n },\n createmoment() {\n this.$refs.createmoment.validate(async valid => {\n //判断是否符号输入条件\n if (!valid) retur