(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/template-msg/template-msg"],{"21f8":function(t,e,n){"use strict";n.r(e);var a=n("a6920"),o=n("e2cc");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("8798");var c,s=n("f0c5"),u=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"7e22a8e5",null,!1,a["a"],c);e["default"]=u.exports},"77e0":function(t,e,n){},8798:function(t,e,n){"use strict";var a=n("77e0"),o=n.n(a);o.a},a6920:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c},i=[]},e2cc:function(t,e,n){"use strict";n.r(e);var a=n("fe7d"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},fe20:function(t,e,n){"use strict";(function(t){n("2d0a");a(n("66fd"));var e=a(n("21f8"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},fe7d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"template-msg",data:function(){return{list:[]}},onLoad:function(t){this.$commonLoad.onload(t),this.loadData()},methods:{loadData:function(){var e=this;this.$showLoading(),this.$request({url:this.$api.template.template}).then((function(n){e.$hideLoading(),0==n.code?e.list=n.data.list:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},subscribe:function(e){var n=this.list[e];this.$subscribe([n.tpl_id]).then((function(e){"accept"==e[n.tpl_id]?t.showModal({title:"提示",content:"订阅成功",showCancel:!1}):t.showModal({title:"提示",content:"取消订阅",showCancel:!1})}))},send:function(e){var n=this;this.$showLoading({text:"发送中"}),this.$request({url:this.$api.template.template,method:"post",data:{templateTpl:this.list[e].tpl_name}}).then((function(e){n.$hideLoading(),0==e.code?t.showModal({title:"提示",content:e.data.msg,showCancel:!1}):(n.$hideLoading(),t.showToast({title:e.msg,icon:"none",duration:1e3}))}))}}};e.default=n}).call(this,n("543d")["default"])}},[["fe20","common/runtime","common/vendor"]]]);