1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/release/release"],{"4f31":function(t,n,e){"use strict";var o=e("80b2"),i=e.n(o);i.a},"62d9":function(t,n,e){"use strict";e.r(n);var o=e("c421"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"6ab5":function(t,n,e){"use strict";e.r(n);var o=e("7864"),i=e("62d9");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("4f31");var c,u=e("f0c5"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"5d26b5da",null,!1,o["a"],c);n["default"]=r.exports},7864:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},"80b2":function(t,n,e){},"9cfe":function(t,n,e){"use strict";(function(t){e("481f");o(e("66fd"));var n=o(e("6ab5"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},c421:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("1da1"));function i(t){return t&&t.__esModule?t:{default:t}}var a={components:{},data:function(){return{noticeInfo:{title:"",label:"",content:""}}},onShow:function(){},mounted:function(){this.noticeInfo={title:"",label:"",content:""}},onPullDownRefresh:function(){t.startPullDownRefresh()},onNavigationBarButtonTap:function(){this.preservation()},methods:{clear:function(){this.noticeInfo={title:"",label:"",content:""}},preservation:function(){var n={"学生":"学生想法","家长":"家长建议","教师":"校园通知"};""===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/addArticle",{id:this.noticeInfo.id,label:this.noticeInfo.label,title:this.noticeInfo.title,content:this.noticeInfo.content,release_id:t.getStorageSync("userInfo").user_id,type:n[t.getStorageSync("userInfo").user_type]}).then((function(n){console.log("发表文章",n),1===n.data&&(t.showToast({icon:"loading",title:"发表成功"}),setTimeout((function(){t.switchTab({url:"/pages/tabbar/homepage/homepage"})}),1e3))}),(function(t){console.log("err",t)}))}}};n.default=a}).call(this,e("543d")["default"])}},[["9cfe","common/runtime","common/vendor"]]]); |