HHSLinkSLink/HSLink-wx/unpackage/dist/build/mp-weixin/pages/tabbar/release/release.js

1 line
2.5 KiB
JavaScript
Raw Permalink Normal View History

2020-12-19 12:13:27 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/release/release"],{"391e":function(t,n,e){"use strict";(function(t){e("813a");o(e("66fd"));var n=o(e("e0fa"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"3d20":function(t,n,e){},"8fdc":function(t,n,e){"use strict";var o=e("3d20"),i=e.n(o);i.a},b0ac:function(t,n,e){"use strict";e.r(n);var o=e("ee82"),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},e0fa:function(t,n,e){"use strict";e.r(n);var o=e("f8d0"),i=e("b0ac");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("8fdc");var c,u=e("f0c5"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"33e26264",null,!1,o["a"],c);n["default"]=r.exports},ee82:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("7cc2"));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"])},f8d0: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=[]}},[["391e","common/runtime","common/vendor"]]]);