(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/notice-edit/notice-edit"],{"1ec3":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=c(e("7cc2"));function c(t){return t&&t.__esModule?t:{default:t}}var i={components:{},data:function(){var n=t.getStorageSync("notice");return n.fabulous=!0,n.messageFabulous=!0,{noticeInfo:n}},onLoad:function(){},onNavigationBarButtonTap:function(t){this.deleteArticle()},mounted:function(){},methods:{deleteArticle:function(){var n=this;t.showModal({title:"删除",content:"确认删除这篇文章？",success:function(e){e.confirm?o.default.post("/hs/deleteOne",{id:n.noticeInfo.id}).then((function(n){console.log("删除这篇文章",n),1===n.data&&(t.showToast({icon:"loading",title:"删除成功"}),setTimeout((function(){t.navigateBack({delta:1})}),1e3))}),(function(t){console.log("err",t)})):e.cancel&&console.log("用户点击取消")}})},preservation:function(){""===this.noticeInfo.title?t.showToast({icon:"none",title:"请输入文章标题"}):4!==this.noticeInfo.label.length?t.showToast({icon:"none",title:"文章标签只能4个字符哦"}):""===this.noticeInfo.content?t.showToast({icon:"none",title:"请输入文章内容"}):o.default.post("/hs/updateOneContent",{id:this.noticeInfo.id,label:this.noticeInfo.label,title:this.noticeInfo.title,content:this.noticeInfo.content}).then((function(n){console.log("保存文章",n),1===n.data&&(t.showToast({icon:"loading",title:"保存成功"}),setTimeout((function(){t.navigateBack({delta:1})}),1e3))}),(function(t){console.log("err",t)}))}}};n.default=i}).call(this,e("543d")["default"])},2887:function(t,n,e){"use strict";e.r(n);var o=e("1ec3"),c=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=c.a},"667f":function(t,n,e){"use strict";e.r(n);var o=e("c2bb"),c=e("2887");for(var i in c)"default"!==i&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("c744");var a,u=e("f0c5"),l=Object(u["a"])(c["default"],o["b"],o["c"],!1,null,"05b0598f",null,!1,o["a"],a);n["default"]=l.exports},9714:function(t,n,e){"use strict";(function(t){e("813a");o(e("66fd"));var n=o(e("667f"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},c2bb:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var c=function(){var t=this,n=t.$createElement;t._self._c},i=[]},c744:function(t,n,e){"use strict";var o=e("dbac"),c=e.n(o);c.a},dbac:function(t,n,e){}},[["9714","common/runtime","common/vendor"]]]);