启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-c36a5d5c.151daefb.js

1 lines
6.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c36a5d5c"],{"0d83":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[t.headeNum.length>0?n("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableForm.type,callback:function(e){t.$set(t.tableForm,"type",e)},expression:"tableForm.type"}},t._l(t.headeNum,(function(t,e){return n("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.title}})})),1):t._e(),t._v(" "),n("div",[n("el-form",{attrs:{size:"small"}},[n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-s-tools"},on:{click:t.syncApplet}},[t._v("同步小程序订阅消息")]),t._v(" "),n("el-button",{attrs:{type:"success",icon:"el-icon-s-tools"},on:{click:t.syncPublic}},[t._v("同步公众号模板消息")])],1),t._v(" "),n("el-form-item",[n("div",{staticClass:"message-box"},[n("div",{staticStyle:{"font-weight":"bold","font-size":"14px"}},[t._v("小程序订阅消息")]),t._v(" "),n("div",[t._v("登录微信小程序后台,基本设置,服务类目增加《生活服务 > 百货/超市/便利店》 "),n("span",{staticStyle:{color:"#FF9400"}},[t._v("(否则同步小程序订阅消息会报错)")])]),t._v(" "),n("div",[t._v("同步小程序订阅消息 是在小程序后台未添加订阅消息模板的前提下使用的,会新增一个模板消息并把信息同步过来,如果小程序后台已经添加过的,会跳过不会更新本项目数据库。")]),t._v(" "),n("div",{staticStyle:{"font-weight":"bold","font-size":"14px","margin-top":"20px"}},[t._v("微信模板消息")]),t._v(" "),n("div",[t._v("登录微信公众号后台,选择模板消息,将模板消息的所在行业修改副行业为《生活服务 > 百货/超市/便利店》"),n("span",{staticStyle:{color:"#FF9400"}},[t._v("(否则同步模板消息不成功)")])]),t._v(" "),n("div",[t._v("同步公众号模板消息 同步公众号模板会删除公众号后台现有的模板,并重新添加新的模板,然后同步信息到数据库,如果多个项目使用同一个公众号的模板,请谨慎操作。")])])])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"ID",prop:"notice_config_id","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"notice_title",label:"通知类型","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"notice_info",label:"通知场景说明","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"公众号模板","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.notice_wechat||1==e.row.notice_wechat?n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭",width:55},nativeOn:{click:function(n){return t.onchangeIsShow(e.row,"notice_wechat")}},model:{value:e.row.notice_wechat,callback:function(n){t.$set(e.row,"notice_wechat",n)},expression:"scope.row.notice_wechat"}}):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"小程序订阅","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.notice_routine||1==e.row.notice_routine?n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭",width:55},nativeOn:{click:function(n){return t.onchangeIsShow(e.row,"notice_routine")}},model:{value:e.row.notice_routine,callback:function(n){t.$set(e.row,"notice_routine",n)},expression:"scope.row.notice_routine"}}):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发送短信","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.notice_sms||1==e.row.notice_sms?n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭",width:55},nativeOn:{click:function(n){return t.onchangeIsShow(e.row,"notice_sms")}},model:{value:e.row.notice_sms,callback:function(n){t.$set(e.row,"notice_sms",n)},expression:"scope.row.notice_sms"}}):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onChange(e.row.notice_config_id)}}},[t._v("设置")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableForm.limit,"current-page":t.tableForm.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],o=n("90e7"),c=n("8593"),s=n("83d6"),l={name:"Notification",data:function(){return{loading:!1,roterPre:s["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableForm:{page:1,limit:20,type:"0"},ruleForm:{status:"0"},headeNum:[{type:0,title:"通知会员"},{type:1,title:"通知商户"}],noticeConfig:{sms_use_type:0},activeName:1}},computed:{},mounted:function(){this.getList("")},methods:{add:function(){var t=this;this.$modalForm(Object(o["a"])()).then((function(){return t.getList()}))},onSet:function(t){var e=this;this.$modalForm(Object(o["F"])(t)).then((function(){return e.getList()}))},onChange:function(t){var e=this;this.$modalForm(Object(o["D"])(t)).then((function(){return e.getList()}))},getList:function(t){var e=this;this.listLoading=!0,this.tableForm.page=t||this.tableForm.page,Object(c["p"])().then((function(t){e.noticeConfig=t.data})),Object(o["E"])(this.tableForm).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},syncApplet:function(){var t=this;Object(o["cb"])().then((function(e){var n=e.message;t.$message.success(n)})).catch((function(e){var n=e.message;t.$message.error(n)}))},syncPublic:function(){var t=this;Object(o["db"])().then((function(e){var n=e.message;t.$message.success(n)})).catch((function(e){var n=e.message;t.$message.error(n)}))},onchangeIsShow:function(t,e){var n=this,a={status:t[e],key:e};Object(o["G"])(t.notice_config_id,a).then((function(t){var e=t.message;n.$message.success(e),n.getList("")})).catch((function(t){var e=t.message;n.$message.error(e)}))},pageChange:function(t){this.tableForm.page=t,this.getList("")},handleSizeChange:function(t){this.tableForm.limit=t,this.getList("")}}},r=l,u=(n("439a"),n("2877")),m=Object(u["a"])(r,a,i,!1,null,"15e7a1ce",null);e["default"]=m.exports},"439a":function(t,e,n){"use strict";n("67db")},"67db":function(t,e,n){}}]);