(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/template-msg/template-msg"],{"30d4":function(t,e,n){},"7bce":function(t,e,n){"use strict";(function(t){n("b8bc");a(n("66fd"));var e=a(n("e4d0"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"8bf5":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},9842:function(t,e,n){"use strict";n.r(e);var a=n("e8d0"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},a6ef:function(t,e,n){"use strict";var a=n("30d4"),i=n.n(a);i.a},e4d0:function(t,e,n){"use strict";n.r(e);var a=n("8bf5"),i=n("9842");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("a6ef");var s,c=n("f0c5"),u=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"ba2d438a",null,!1,a["a"],s);e["default"]=u.exports},e8d0: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.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"])}},[["7bce","common/runtime","common/vendor"]]]);