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 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?782b","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?3758","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?658c","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?c50c","uni-app:///pages/shijie/edit.vue","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?690a","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/shijie/edit.vue?84b3"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","title","image","image1","isClick","methods","toDel","uploadImg","uni","count","sizeType","sourceType","success","console","name","header","userToken","url","filePath","that","fail","toSubmit","icon","code","msg","setTimeout","delta"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;AACsC;;;AAGzF;AACkL;AAClL,gBAAgB,sLAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;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,+TAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;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;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAA4qB,CAAgB,2pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCsBhsB;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MAAA;MACA;MACAC;QACAC;QACAC;QAAA;QACAC;QACAC;UACAC;UACAA;UACA;YACAL;cACAM;cACAC;gBACAC;cACA;cACAC;cACAC;cACAN;gBACA;gBACAO;gBACAA;cACA;cACAC;gBACAP;gBACAA;cACA;YACA;UACA;QACA;QACAO;UACAP;QACA;MACA;IAEA;IACA;IACAQ;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,IACA;kBAAA;kBAAA;gBAAA;gBACAb;kBACAc;kBACArB;gBACA;gBAAA;cAAA;gBAAA,MAGA;kBAAA;kBAAA;gBAAA;gBACAO;kBACAc;kBACArB;gBACA;gBAAA;cAAA;gBAAA;gBAAA,OAGA;kBACAA;kBACAC;gBACA;cAAA;gBAAA;gBAHAqB;gBAAAC;gBAIA;kBACAhB;oBACAP;kBACA;kBACAO;kBACAiB;oBACAjB;sBACAkB;oBACA;kBACA;gBACA;kBACAlB;oBACAc;oBACArB;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC/GA;AAAA;AAAA;AAAA;AAA2yC,CAAgB,ssCAAG,EAAC,C;;;;;;;;;;;ACA/zC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/shijie/edit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/shijie/edit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./edit.vue?vue&type=template&id=711974be&scoped=true&\"\nvar renderjs\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=711974be&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../ruanjian/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 \"711974be\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/shijie/edit.vue\"\nexport default component.exports","export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=template&id=711974be&scoped=true&\"","var components\ntry {\n components = {\n \"u-Textarea\": function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u--textarea/u--textarea\" */ \"@/uni_modules/uview-ui/components/u--textarea/u--textarea.vue\"\n )\n },\n uIcon: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-icon/u-icon\" */ \"@/uni_modules/uview-ui/components/u-icon/u-icon.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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"release\">\n\t\t<view class=\"release-hd\">\n\t\t\t<view class=\"a\">\n\t\t\t\t<u--textarea v-model=\"title\" placeholder=\"请输入内容\" ></u--textarea>\n\t\t\t</view>\n\t\t\t<view class=\"b\">\n\t\t\t\t<view class=\"pic\" v-for=\"(a,i) in image1\" :key=\"i\">\n\t\t\t\t\t<image class=\"img\" :src=\"a\"></image>\n\t\t\t\t\t<view class=\"del\" @click.stop=\"toDel(i)\">\n\t\t\t\t\t\t<u-icon name=\"trash\"></u-icon>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"pic\" @click=\"uploadImg()\">\n\t\t\t\t\t<image class=\"img\" src=\"/static/release-upload.png\"></image>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"release-fd\" @click=\"toSubmit()\">提交</view>\n\t</view>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\ttitle: \"\",\n\t\t\t\timage: [],\n\t\t\t\timage1: [],\n\t\t\t\tisClick: true\n\t\t\t};\n\t\t},\n\t\tmethods: {\n\t\t\t//删除图片\n\t\t\ttoDel(i){\n\t\t\t\tthis.image.splice(i,1);\n\t\t\t\tthis.image1.splice(i,1);\n\t\t\t},\n\t\t\t//上传图片\n\t\t\tuploadImg() {\n\t\t\t\tconst that = this\n\t\t\t\t\tuni.chooseImage({\n\t\t\t\t\t\tcount: 9-that.image.length,\n\t\t\t\t\t\tsizeType: [\"original\"], //可以指定是原图还是压缩图,默认二者都有\n\t\t\t\t\t\tsourceType: [\"album\", \"camera\"],\n\t\t\t\t\t\tsuccess: (res) => {\n\t\t\t\t\t\t\tconsole.log(res)\n\t\t\t\t\t\t\tconsole.log(res.tempFilePaths)\n\t\t\t\t\t\t\tfor(var i = 0; i<res.tempFilePaths.length;i++){\n\t\t\t\t\t\t\t\tuni.uploadFile({\n\t\t\t\t\t\t\t\t\tname: 'file',\n\t\t\t\t\t\t\t\t\theader: {\n\t\t\t\t\t\t\t\t\t\tuserToken: uni.getStorageSync('userToken')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\turl: this.$baseUrl+'api/upload',\n\t\t\t\t\t\t\t\t\tfilePath: res.tempFilePaths[i],\n\t\t\t\t\t\t\t\t\tsuccess: (upRes) => {\n\t\t\t\t\t\t\t\t\t\tlet end = JSON.parse(upRes.data)\n\t\t\t\t\t\t\t\t\t\tthat.image.push(end.data.name)\n\t\t\t\t\t\t\t\t\t\tthat.image1.push(end.data.url)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tfail: (err) => {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"toUpload err\",err)\n\t\t\t\t\t\t\t\t\t\tconsole.log(err)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfail(err){\n\t\t\t\t\t\t\tconsole.log(\"fail\",err)\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t},\n\t\t\t//状态\n\t\t\tasync toSubmit() {\n\t\t\t\tif(!this.title){\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ticon: \"none\",\n\t\t\t\t\t\ttitle: \"内容不能为空!\"\n\t\t\t\t\t})\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tif(this.image.length == 0){\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ticon: \"none\",\n\t\t\t\t\t\ttitle: \"请上传图片\"\n\t\t\t\t\t})\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tconst {code, msg} = await this.$api.addCircle({\n\t\t\t\t\ttitle: this.title,\n\t\t\t\t\timage: this.image.join(\",\")\n\t\t\t\t})\n\t\t\t\tif(code == 200){\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: \"提交成功\"\n\t\t\t\t\t})\n\t\t\t\t\tuni.$emit(\"reloadQuanzi\",\"111\")\n\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t\t})\n\t\t\t\t\t},2000)\n\t\t\t\t}else{\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ticon: \"none\",\n\t\t\t\t\t\ttitle: msg\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n.release {\n\twidth: 100%;\n\tpadding: 25rpx;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n\t&-hd{\n\t\tpadding: 20rpx;\n\t\toverflow: hidden;\n\t\tbackground-color: #fff;\n\t\tborder-radius: 20rpx;\n\t\t.b{\n\t\t\twidth: 110%;\n\t\t\toverflow: hidden;\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: flex-start;\n\t\t\tmargin-top: 30rpx;\n\t\t\t.pic{\n\t\t\t\twidth: 206rpx;\n\t\t\t\theight: 206rpx;\n\t\t\t\toverflow: hidden;\n\t\t\t\tposition: relative;\n\t\t\t\tmargin-right: 20rpx;\n\t\t\t\tmargin-bottom: 20rpx;\n\t\t\t\tborder: 1px solid #f6f6f6;\n\t\t\t\t.img{\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tborder-radius: 5rpx;\n\t\t\t\t}\n\t\t\t\t.del{\n\t\t\t\t\twidth: 50rpx;\n\t\t\t\t\theight: 50rpx;\n\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tright: 0;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tz-index: 2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t&-fd{\n\t\twidth: 320rpx;\n\t\tline-height: 98rpx;\n\t\tbackground: linear-gradient(-90deg, #3399EA, #38BCFF);\n\t\tborder-radius: 98rpx;\n\t\tfont-size: 30rpx;\n\t\tfont-weight: 400;\n\t\tcolor: #FFFFFF;\n\t\ttext-align: center;\n\t\tmargin: 0 auto;\n\t\tmargin-top: 50rpx;\n\t}\n}\n</style>","import mod from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=style&index=0&id=711974be&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=style&index=0&id=711974be&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1729238326916\n var cssReload = require(\"D:/ruanjian/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":""} |