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