(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/template/template"],{6638:function(t,e,n){"use strict";n.r(e);var a=n("bdff"),i=n("710f");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("f641");var c,u=n("f0c5"),s=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"b60ca04e",null,!1,a["a"],c);e["default"]=s.exports},"710f":function(t,e,n){"use strict";n.r(e);var a=n("e5fe"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},bdff: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=[]},cf73:function(t,e,n){"use strict";(function(t){n("3447");a(n("66fd"));var e=a(n("6638"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},e5fe:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"template",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"])},e767:function(t,e,n){},f641:function(t,e,n){"use strict";var a=n("e767"),i=n.n(a);i.a}},[["cf73","common/runtime","common/vendor"]]]);