text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setup-wechatRemind"],{afdd:function(l,t,s){"use strict";s.r(t);var a=function(){var l=this,t=l.$createElement,s=l._self._c||t;return s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:l.loading,expression:"loading"}],staticClass:"le-matter le-form",attrs:{"label-width":"130px",model:l.form},nativeOn:{submit:function(l){l.preventDefault()}}},[s("div",{staticClass:"le-header le-card"},[l._v(" 温馨提示：请确保您有公众号订阅通知的使用权限，且订阅通知中无任何已存数据。订阅通知添加完成后，请不要删除订阅通知，否则将影响消息的正常发送。"),s("br"),l._v(" 使用说明："),s("br"),l._v(" 1.请前往微信公众平台，将【商家自营>服装/鞋/箱包】类目添加至您的服务类目，否则将影响订阅通知的正常发送。"),s("span",{directives:[{name:"popup",rawName:"v-popup.messageGuide",value:"wechat",expression:"'wechat'",modifiers:{messageGuide:!0}}],staticClass:"le-header-button",attrs:{module:"setup",sure_btn:"我知道了",width:"680",hide_cancel:!0,title:"订阅通知模板ID获取指引"}},[l._v("查看指引")]),s("br"),l._v(" 2.查找订阅通知并选用，调整关键词的顺序后，复制模板ID，粘贴在此页面对应的模板ID输入框中"),s("br"),l._v(" 3.您可使用一键添加订阅通知功能，快速获取模板ID  "),s("button",{staticClass:"le-header-btn",on:{click:l.onceAdd}},[l._v("一键添加订阅通知")])]),s("div",{staticClass:"le-body flex"},[s("div",{staticClass:"flex-sub"},[s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("付款成功通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.order_pay,callback:function(t){l.$set(l.form,"order_pay",t)},expression:"form.order_pay"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【付款成功通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("付款金额、付款时间、商家名称、订单编号")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("售后状态通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.order_sale_verify,callback:function(t){l.$set(l.form,"order_sale_verify",t)},expression:"form.order_sale_verify"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【售后状态通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("审核结果、订单编号、订单金额")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("优惠券到期通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.coupon_expire,callback:function(t){l.$set(l.form,"coupon_expire",t)},expression:"form.coupon_expire"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【优惠券到期通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("优惠券名称、过期时间、商家名称、温馨提示")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("分销商申请结果通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.promoter_verify,callback:function(t){l.$set(l.form,"promoter_verify",t)},expression:"form.promoter_verify"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【分销商申请结果通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("申请结果、申请人、申请时间")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("提现成功通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.promoter_withdrawal_success,callback:function(t){l.$set(l.form,"promoter_withdrawal_success",t)},expression:"form.promoter_withdrawal_success"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【提现成功通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("提现金额、手续费、打款方式")])])])])],1)]),s("div",{staticClass:"flex-sub"},[s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("订单发货通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.order_send,callback:function(t){l.$set(l.form,"order_send",t)},expression:"form.order_send"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【订单发货通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("快递公司、快递单号、收货地址、订单号")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("退款成功通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.order_refund_tpl,callback:function(t){l.$set(l.form,"order_refund_tpl",t)},expression:"form.order_refund_tpl"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【退款成功通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("退款金额、订单编号、商品名称、申请时间")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("积分变更提醒")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.task_refund_tpl,callback:function(t){l.$set(l.form,"task_refund_tpl",t)},expression:"form.task_refund_tpl"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【积分变更提醒】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("变更数量、积分余额、变动时间、变更原因")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("分销商升级通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.level_change,callback:function(t){l.$set(l.form,"level_change",t)},expression:"form.level_change"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【分销商升级通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("当前等级、原始等级、变动时间")])])])])],1),s("div",{staticClass:"le-card"},[s("div",{staticClass:"le-card-title"},[l._v("提现失败通知")]),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板ID")]),s("el-input",{attrs:{placeholder:"请输入模板ID"},model:{value:l.form.promoter_withdrawal_error,callback:function(t){l.$set(l.form,"promoter_withdrawal_error",t)},expression:"form.promoter_withdrawal_error"}})],1),s("el-form-item",[s("span",{staticClass:"le-form-item__label",attrs:{slot:"label"},slot:"label"},[l._v("模板提示")]),s("div",{staticClass:"le-form-item__content"},[s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("模板标题")]),s("span",{staticClass:"le-value"},[l._v("【提现失败通知】")])]),s("div",{staticClass:"le-tip-item"},[s("span",{staticClass:"le-label"},[l._v("关键词及顺序")]),s("span",{staticClass:"le-value"},[l._v("提现金额、备注、申请时间")])])])])],1)])]),s("div",{staticClass:"le-cardpin"},[s("el-button",{attrs:{type:"primary",disabled:l.loading},on:{click:l.submit}},[l._v("保存")])],1)])},e=[],i={name:"wechatRemind",data:function(){return{loading:!1,form:{order_sale_verify:"",order_refund_tpl:"",coupon_expire:"",order_pay:"",order_send:"",promoter_verify:"",level_change:"",promoter_withdrawal_success:"",promoter_withdrawal_error:""}}},methods:{submit:function(){this.loading=!0;var l=this;this.$heshop.subscribe("post",{platform:"wechat",behavior:"save"},this.form).then((function(){l.loading=!1,l.$message.success("保存成功")})).catch((function(t){l.loading=!1,l.$message.error(t.data.message)}))},obtain:function(){this.loading=!0;var l=this;this.$heshop.subscribe("get",{platform:"wechat"}).then((function(t){l.form=t.form,l.loading=!1})).catch((function(t){l.loading=!1,l.$message.error(t.data.message)}))},onceAdd:function(){var l=this;this.loading=!0,this.$heshop.subscribe("post",{platform:"wechat"},{}).then((function(t){for(var s=0;s<t.length;s++)l.form[t[s].tpl_name]=t[s].tpl_id;l.$message.success("一键添加成功"),l.loading=!1})).catch((function(t){l.loading=!1,l.$message.error(t.data.message)}))}},mounted:function(){this.obtain()}},r=i,o=(s("da8e"),s("4ac2")),c=Object(o["a"])(r,a,e,!1,null,"2cec6b11",null);t["default"]=c.exports},d643:function(l,t,s){},da8e:function(l,t,s){"use strict";s("d643")}}]);