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
13 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?f3de","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?d2dd","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?78c9","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?bf2e","uni-app:///pages/life/addGoods/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?ec98","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?60e1"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,qG;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAizB,CAAgB,i0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoBr0B;AACA,MADA,kBACA;AACA;AACA,4BADA;;AAGA,GALA;AAMA;AACA;AACA,QAFA,kBAEA;AACA;AACA,KAJA;;AAMA,QANA,kBAMA;AACA;AACA,KARA;;AAUA,UAVA,kBAUA,CAVA,EAUA;;;;AAIA,sBAJA,CAEA,IAFA,qBAEA,IAFA,CAGA,KAHA,qBAGA,KAHA;AAKA;AACA;AACA;AACA,KAlBA;;AAoBA,iBApBA,2BAoBA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KAxBA;;AA0BA,eA1BA,yBA0BA;AACA;AACA;AACA,4CADA;AAEA,uCAFA;AAGA,eAHA,mBAGA,GAHA,EAGA;AACA;AACA;AACA,iDADA,EACA;AACA,0CAFA,EAEA;AACA,uBAHA,EAGA;AACA;AACA,mDADA,EAJA;;AAOA,mBAPA,mBAOA,GAPA,EAOA;AACA;AACA;AACA,6BADA,EACA;AACA,8BAFA;AAGA,6BAHA,EAGA;AACA,yBAJA;AAKA;AACA;AACA,iBAPA;;AASA;AACA,aAnBA;;AAqBA,SA1BA;;AA4BA,KAxDA,EANA,E;;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAAupC,CAAgB,0oCAAG,EAAC,C;;;;;;;;;;;ACA3qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/life/addGoods/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/life/addGoods/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=29697c82&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/life/addGoods/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=29697c82&\"","var components\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 \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t\t<div class=\"content\">\r\n\t\t\t<div class='toolbar' @tap=\"format\">\r\n\t\t\t\t<div :class=\"formats.bold ? 'ql-active' : ''\" class=\"iconfont icon-zitijiacu\" data-name=\"bold\"></div>\r\n\t\t\t\t<div :class=\"formats.italic ? 'ql-active' : ''\" class=\"iconfont icon-zitixieti\" data-name=\"italic\"></div>\r\n\t\t\t\t<div :class=\"formats.underline ? 'ql-active' : ''\" class=\"iconfont icon-zitixiahuaxian\" data-name=\"underline\"></div>\r\n\t\t\t\t<div :class=\"formats.strike ? 'ql-active' : ''\" class=\"iconfont icon-zitishanchuxian\" data-name=\"strike\"></div>\r\n\t\t\t\t<div :class=\"formats.align === 'left' ? 'ql-active' : ''\" class=\"iconfont icon-zuoduiqi\" data-name=\"align\"\r\n\t\t\t\t data-value=\"left\"></div>\r\n\t\t\t\t<div :class=\"formats.align === 'center' ? 'ql-active' : ''\" class=\"iconfont icon-juzhongduiqi\" data-name=\"align\"\r\n\t\t\t\t data-value=\"center\"></div>\r\n\t\t\r\n\t\t\t\t<div class=\"iconfont icon-fengexian\" @tap=\"insertdivider\"></div>\r\n\t\t\t\t<div class=\"iconfont icon-charutupian\" @tap=\"insertimage\"></div>\r\n\t\t\t</div>\r\n\t\t\t<editor id=\"editor\" class=\"ql-container\" :placeholder=\"placeholder\" @ready=\"oneditorready\" @statuschange=\"onstatuschange\"></editor>\r\n\t\t</div>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tplaceholder: '开始输入...'\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t//撤销、重做这些不需要可以不写\r\n\t\t\t\tundo() {\r\n\t\t\t\t\tthis.editorCtx.undo()\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\tredo() {\r\n\t\t\t\t\tthis.editorCtx.redo()\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\tformat(e) {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t\tvalue\r\n\t\t\t\t\t} = e.target.dataset\r\n\t\t\t\t\tif (!name) return\r\n\t\t\t\t\t// console.log('format', name, value)\r\n\t\t\t\t\tthis.editorCtx.format(name, value)\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\toneditorready() {\r\n\t\t\t\t\tuni.createSelectorQuery().select('#editor').context((res) => {\r\n\t\t\t\t\t\tthis.editorCtx = res.context\r\n\t\t\t\t\t}).exec()\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\tinsertImage() {\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tuni.chooseImage({ \r\n\t\t\t\t\tsizeType: ['original', 'compressed'], \r\n\t\t\t\t\tsourceType: ['album', 'camera'], \r\n\t\t\t\t\tsuccess(res) { \r\n\t\t\t\t\t\tconsole.log(res.tempFilePaths[0])\r\n\t\t\t\t\t\tuni.uploadFile({ \r\n\t\t\t\t\t\t\turl: 'http://0.0.0.0/file/upload-img', //域名+上传文件的请求接口 (根据你实际的接口来) \r\n\t\t\t\t\t\t\tfilePath: res.tempFilePaths[0], // tempFilePath可以作为img标签的src属性显示图片 服务器图片的路径 \r\n\t\t\t\t\t\t\tname: 'img', //上传到服务器的参数,自定义\r\n\t\t\t\t\t\t\theader: {\r\n\t\t\t\t\t\t\t\t\"Content-Type\": \"multipart/form-data\"\r\n\t\t\t\t\t\t\t}, \r\n\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\tvar data = JSON.parse(res.data)\r\n\t\t\t\t\t\t\t\tthat.editorCtx.insertImage({\r\n\t\t\t\t\t\t\t\t\twidth: '100%', //设置宽度为100%防止宽度溢出手机屏幕\r\n\t\t\t\t\t\t\t\t\theight: 'auto',\r\n\t\t\t\t\t\t\t\t\tsrc: data.url, //服务端返回的url\r\n\t\t\t\t\t\t\t\t\talt: '图像',\r\n\t\t\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log('insert image success')\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\tconsole.log(that.editorCtx)\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}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.ql-container {\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 12px 15px;\r\n\t\twidth: 100%;\r\n\t\tmin-height: 30vh;\r\n\t\theight: auto;\r\n\t\tbackground: #fff;\r\n\t\tfont-size: 16px;\r\n\t\tline-height: 1.5;\r\n\t}\r\n\t\r\n\t.ql-active {\r\n\t\tcolor: #06c;\r\n\t}\r\n\t\r\n\t.iconfont {\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tpadding: 8px 8px;\r\n\t\t\twidth: 24px;\r\n\t\t\theight: 24px;\r\n\t\t\tcursor: pointer;\r\n\t\t\tfont-size: 20px;\r\n\t}\r\n\t\t\r\n\t.toolbar {\r\n\t\tbox-sizing: border-box;\r\n\t\tborder-bottom: 0;\r\n\t\tfont-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\r\n\t}\r\n</style>\n","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1634713229756\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/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":""}