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.
shipin/public/admin/system_static/js/chunk-589e9e25.f5fed40c.js

1 line
9.6 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-589e9e25"],{"277f":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return i})),n("99af");var a=n("6b6c");function r(t){return Object(a.a)({url:"setting/notification/index?type=".concat(t),method:"get"})}function c(t,e){return Object(a.a)({url:"setting/notification/info?id=".concat(t,"&type=").concat(e),method:"get"})}function u(t){return Object(a.a)({url:"setting/notification/save",method:"post",data:t})}function i(t,e,n){return Object(a.a)({url:"setting/notification/set_status/".concat(t,"/").concat(e,"/").concat(n),method:"put"})}},"37a9":function(t,e,n){"use strict";n("ad6a")},aa0a:function(t,e,n){"use strict";n.r(e),n("d3b7"),n("25f0"),n("b0c0"),n("14d9"),n("d81d");var a=n("277f"),r=n("b562"),c={data:function(){return{modalTitle:"",notificationModal:!1,headerList:[{label:"通知会员",value:"1"},{label:"通知平台",value:"2"}],levelLists:[],currentTab:"1",loading:!1,formData:{}}},created:function(){this.changeTab(this.currentTab)},methods:{changeSwitch:function(t,e,n){var r=this;Object(a.d)(n,e[n],e.id).then((function(t){r.$message.success(t.msg)})).catch((function(t){r.$message.error(t.msg)}))},changeTab:function(){var t=this;Object(a.b)(this.currentTab).then((function(e){t.levelLists=e.data}))},routineTemplate:function(){var t=this;Object(r.l)().then((function(e){t.$message.success(e.msg),t.changeTab(t.currentTab)})).catch((function(e){t.$message.error(e.msg)}))},wechatTemplate:function(){var t=this;Object(r.u)().then((function(e){t.$message.success(e.msg),t.changeTab(t.currentTab)})).catch((function(e){t.$message.error(e.msg)}))},changeStatus:function(){},notice:function(){},setting:function(t,e){this.$router.push({path:this.$routeProStr+"/setting/notification/notificationEdit?id="+e.id})},getData:function(t,e,n){var r=this;this.formData={},Object(a.a)(e.id,n).then((function(e){t.map((function(t,n){r.formData[t]=e.data[t]})),r.formData.type=n,r.notificationModal=!0}))}}};n("37a9"),n=n("2877"),n=Object(n.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"message"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[e("div",[e("el-tabs",{on:{"tab-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,n){return e("el-tab-pane",{key:n,attrs:{label:t.label,name:t.value.toString()}})})),1)],1),1==t.currentTab?e("el-row",{staticClass:"mb14"},[e("el-col",[e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["app-wechat-template-sync"],expression:"['app-wechat-template-sync']"}],attrs:{type:"primary"},on:{click:t.routineTemplate}},[t._v("同步小程序订阅消息")]),e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["app-wechat-template-sync"],expression:"['app-wechat-template-sync']"}],attrs:{type:"primary"},on:{click:t.wechatTemplate}},[t._v("同步微信模版消息")])],1)],1):t._e(),1==t.currentTab?e("el-alert",{attrs:{closable:""}},[e("template",{slot:"title"},[t._v("\n 公众号:登录微信公众号后台,基本设置,服务类目增加《生活服务> 百货/超市/便利店》"),e("br"),t._v("\n 小程序:登录微信小程序后台,基本设置,服务类目增加《生活服务> 百货/超市/便利店》\n ")])],2):t._e(),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.levelLists,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-table-column",{attrs:{label:"通知类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.name))])]}}])}),e("el-table-column",{attrs:{label:"<EFBFBD><EFBFBD>