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

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/life/addGoods/index"],{"06f6":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},r=[]},"1f1c":function(t,e,n){"use strict";n.r(e);var o=n("8413"),a=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},"31aa":function(t,e,n){"use strict";n.r(e);var o=n("06f6"),a=n("1f1c");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("a490");var u,i=n("f0c5"),c=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);e["default"]=c.exports},5629:function(t,e,n){"use strict";(function(t){n("ef82");o(n("66fd"));var e=o(n("31aa"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"824b":function(t,e,n){},8413:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{placeholder:"开始输入..."}},methods:{undo:function(){this.editorCtx.undo()},redo:function(){this.editorCtx.redo()},format:function(t){var e=t.target.dataset,n=e.name,o=e.value;n&&this.editorCtx.format(n,o)},oneditorready:function(){var e=this;t.createSelectorQuery().select("#editor").context((function(t){e.editorCtx=t.context})).exec()},insertImage:function(){var e=this;t.chooseImage({sizeType:["original","compressed"],sourceType:["album","camera"],success:function(n){console.log(n.tempFilePaths[0]),t.uploadFile({url:"http://0.0.0.0/file/upload-img",filePath:n.tempFilePaths[0],name:"img",header:{"Content-Type":"multipart/form-data"},success:function(t){var n=JSON.parse(t.data);e.editorCtx.insertImage({width:"100%",height:"auto",src:n.url,alt:"图像",success:function(){console.log("insert image success")}}),console.log(e.editorCtx)}})}})}}};e.default=n}).call(this,n("543d")["default"])},a490:function(t,e,n){"use strict";var o=n("824b"),a=n.n(o);a.a}},[["5629","common/runtime","common/vendor"]]]);