require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["work/pages/news/secureadd"],{"0dce":function(t,e,n){"use strict";n.r(e);var i=n("bbab"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},2261:function(t,e,n){"use strict";n.r(e);var i=n("c31c"),o=n("0dce");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("77b1");var s=n("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"1dff16bc",null,!1,i["a"],void 0);e["default"]=r.exports},"77b1":function(t,e,n){"use strict";var i=n("9d41"),o=n.n(i);o.a},"9d41":function(t,e,n){},bbab:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("1efe")),a=n("ee5c"),s=n("4d10"),r=n("1214"),c=o.default.baseUrl,u={data:function(){return{rimg:n("4443"),addimg:n("2135"),readOnly:!1,formats:{},safeList:[],lxindex:0,fmfile:[],count:1,infoTypeZi:"",baseUrl:"",datainfo:{infoType:2,infoTypeZi:"",infoTitle:"",infoPhoto:"",infoContent:""},rules:{infoTypeZi:{rules:[{required:!0,errorMessage:"请选择文章类型"}]},infoTitle:{rules:[{required:!0,errorMessage:"请输入文章标题"}]}}}},onLoad:function(){this.init(),this.baseUrl=c},methods:{init:function(){var t=this;(0,a.getDictionaryFn)("infotypezi").then((function(e){200==e.code&&e.data&&e.data.length&&(t.safeList=e.data.map((function(t){return{dictLabel:t.dictLabel,dictValue:t.dictValue}})))}))},bindDateChangea:function(t){var e=t.detail.value;this.datainfo.infoTypeZi=this.safeList[e].dictValue,this.infoTypeZi=this.safeList[e].dictLabel},getSubmit:function(){var e=this,n=this;this.$refs.form.validate().then((function(i){var o="";e.editorCtx.getContents({success:function(t){var e=t.html;o=e.replace(/\o)t.showToast({title:"最多上传"+o+"张图片",icon:"none",duration:2e3});else{var s=e.tempFilePaths.length;(0,r.uploadmore)("/common/upload",a,0,0,0,s,[],(function(t){n.fmfile=n.fmfile.concat(t),n.datainfo.infoPhoto=n.fmfile.join(",")}))}}})},readOnlyChange:function(){this.readOnly=!this.readOnly},onEditorReady:function(){var e=this;t.createSelectorQuery().select("#editor").context((function(t){e.editorCtx=t.context})).exec()},undo:function(){this.editorCtx.undo()},redo:function(){this.editorCtx.redo()},format:function(t){var e=t.target.dataset,n=e.name,i=e.value;n&&this.editorCtx.format(n,i)},onStatusChange:function(t){var e=t.detail;this.formats=e},insertDivider:function(){this.editorCtx.insertDivider({success:function(){console.log("insert divider success")}})},clear:function(){this.editorCtx.clear({success:function(t){console.log("clear success")}})},removeFormat:function(){this.editorCtx.removeFormat()},insertDate:function(){var t=new Date,e="".concat(t.getFullYear(),"/").concat(t.getMonth()+1,"/").concat(t.getDate());this.editorCtx.insertText({text:e})},insertImage:function(){var e=this;t.chooseImage({count:1,success:function(t){var n=t.tempFilePaths,i=t.tempFilePaths.length;(0,r.uploadmore)("/common/upload",n,0,0,0,i,[],(function(t){e.editorCtx.insertImage({src:c+t[0],alt:"图像",success:function(){console.log("insert image success")}})}))}})}}};e.default=u}).call(this,n("543d")["default"])},c31c:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniForms:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(n.bind(null,"6a99"))},uniFormsItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(n.bind(null,"3b57"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"5426"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.fmfile.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},ecac:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("11d3"),n("5c17");i(n("66fd"));var o=i(n("2261"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["ecac","common/runtime","common/vendor","work/common/vendor"]]]);