Commit 5e005143 by fairyly

fix: 修改接口

parent 4a257202
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.a63ceb13775b0d2a22c8051b5613af65.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.bd4fd4689360cea54685.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.84b99e415d2f288981ed.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.5f7d42b1165bd7709902dae158ca7ecd.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.987724a256251e2efc0c.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.4ed3b75554c71a3c047c.js></script></body></html>
\ No newline at end of file
webpackJsonp([12],{"B+d7":function(a,e){},odfG:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=t("3E4D"),o=t("Ch4/"),l=t("PI0u"),i=t("P9l9"),n={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1}}},methods:{submit:Object(l.a)(function(a){this.setData(a)},500),setData:function(a){var e=this,t={brandId:e.brandId},l=void 0;"showFlag"!=a?(t[a]=e.myCustomData[a]?1:0,l="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===a&&(l="/haoban-app-customer-web/customer/save-customer-setting")):(t.mainStoreFlag=e.myCustomData.mainStoreFlag?1:0,t.minorStoreFlag=e.myCustomData.minorStoreFlag?1:0,t.openCardStoreFlag=e.myCustomData.openCardStoreFlag?1:0,t.clerkSeeOtherFlag=e.myCustomData.clerkSeeOtherFlag?1:0,t.allowGuideContact=e.myCustomData.allowGuideContact?1:0,t.allowGuideMobile=e.myCustomData.allowGuideMobile?1:0,t.allowGuideMessage=e.myCustomData.allowGuideMessage?1:0,t.allowGuideOnlineChat=e.myCustomData.allowGuideOnlineChat?1:0,t.isSeeAuthMember=e.myCustomData.isSeeAuthMember?1:0,t.chatFlag=e.myCustomData.chatFlag,t.isMessageRemind=e.myCustomData.isMessageRemind,t.messageRemindTime=e.myCustomData.messageRemindTime,t.isTemplateMessage=e.myCustomData.isTemplateMessage,t.isImgMessage=e.myCustomData.isImgMessage,t.isGoodMessage=e.myCustomData.isGoodMessage,t.isIntegralGoodMessage=e.myCustomData.isIntegralGoodMessage,l="/haoban-app-customer-web/customer/save-member-show-setting"),Object(i.b)(l,t).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeAllowGuide:function(a){this.myCustomData.allowGuideMobile=a,this.myCustomData.allowGuideMessage=a,this.myCustomData.allowGuideOnlineChat=a},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getShowSet:function(a){var e=this,t={brandId:a};Object(i.b)("/haoban-app-customer-web/customer/find-member-show-setting",t).then(function(a){var t=a.data;1!=t.errorCode?o.a.errorMsg(t):t.result&&(t.result.mainStoreFlag=1==t.result.mainStoreFlag,t.result.minorStoreFlag=1==t.result.minorStoreFlag,t.result.openCardStoreFlag=1==t.result.openCardStoreFlag,t.result.clerkSeeOtherFlag=1==t.result.clerkSeeOtherFlag,t.result.allowGuideContact=1==t.result.allowGuideContact,t.result.allowGuideMobile=1==t.result.allowGuideMobile,t.result.allowGuideMessage=1==t.result.allowGuideMessage,t.result.allowGuideOnlineChat=1==t.result.allowGuideOnlineChat,t.result.isSeeAuthMember=1==t.result.isSeeAuthMember,t.result.searchFlag=1==t.result.searchFlag,e.myCustomData=t.result)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{},mounted:function(){this.$emit("showTab","11"),this.getShowSet(this.brandId)},components:{}},u={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"app-detail-pane border-box p-20"},[t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.mainStoreFlag,callback:function(e){a.$set(a.myCustomData,"mainStoreFlag",e)},expression:"myCustomData.mainStoreFlag"}},[a._v("展示服务门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.minorStoreFlag,callback:function(e){a.$set(a.myCustomData,"minorStoreFlag",e)},expression:"myCustomData.minorStoreFlag"}},[a._v("展示协管门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.openCardStoreFlag,callback:function(e){a.$set(a.myCustomData,"openCardStoreFlag",e)},expression:"myCustomData.openCardStoreFlag"}},[a._v("展示开卡门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.isSeeAuthMember,callback:function(e){a.$set(a.myCustomData,"isSeeAuthMember",e)},expression:"myCustomData.isSeeAuthMember"}},[a._v("展示已开卡会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员")]),a._v(" "),t("br"),a._v(" "),t("span",{staticClass:"p-l-199 font-14 color-909399"},[a._v("不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.clerkSeeOtherFlag,callback:function(e){a.$set(a.myCustomData,"clerkSeeOtherFlag",e)},expression:"myCustomData.clerkSeeOtherFlag"}},[a._v("允许导购查看其他导购会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:a.changeAllowGuide},model:{value:a.myCustomData.allowGuideContact,callback:function(e){a.$set(a.myCustomData,"allowGuideContact",e)},expression:"myCustomData.allowGuideContact"}}),t("span",{staticClass:"font-14 color-606266 p-l-10"},[a._v("允许导购主动联系会员")]),t("span",{staticClass:"font-14 color-909399 p-l-38"},[a._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),a._v(" "),a.myCustomData.allowGuideContact?t("div",[t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideMobile,callback:function(e){a.$set(a.myCustomData,"allowGuideMobile",e)},expression:"myCustomData.allowGuideMobile"}},[a._v("电话")]),a._v(" "),t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideMessage,callback:function(e){a.$set(a.myCustomData,"allowGuideMessage",e)},expression:"myCustomData.allowGuideMessage"}},[a._v("短信")]),a._v(" "),t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideOnlineChat,callback:function(e){a.$set(a.myCustomData,"allowGuideOnlineChat",e)},expression:"myCustomData.allowGuideOnlineChat"}},[a._v("消息")])],1):a._e(),a._v(" "),t("div",{staticClass:"m-t-46"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.submit("showFlag")}}},[a._v("保 存")])],1)])])},staticRenderFns:[]};var m=t("VU/8")(n,u,!1,function(a){t("B+d7")},"data-v-fa1c4ebe",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([13],{Zhg7:function(a,e){},odfG:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=t("3E4D"),o=t("Ch4/"),l=t("PI0u"),i=t("P9l9"),n={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1}}},methods:{submit:Object(l.a)(function(a){this.setData(a)},500),setData:function(a){var e=this,t={wxEnterpriseRelatedId:e.brandId},l=void 0;"showFlag"!=a?(t[a]=e.myCustomData[a]?1:0,l="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===a&&(l="/haoban-app-customer-web/customer/save-customer-setting")):(t.mainStoreFlag=e.myCustomData.mainStoreFlag?1:0,t.minorStoreFlag=e.myCustomData.minorStoreFlag?1:0,t.openCardStoreFlag=e.myCustomData.openCardStoreFlag?1:0,t.clerkSeeOtherFlag=e.myCustomData.clerkSeeOtherFlag?1:0,t.allowGuideContact=e.myCustomData.allowGuideContact?1:0,t.allowGuideMobile=e.myCustomData.allowGuideMobile?1:0,t.allowGuideMessage=e.myCustomData.allowGuideMessage?1:0,t.allowGuideOnlineChat=e.myCustomData.allowGuideOnlineChat?1:0,t.isSeeAuthMember=e.myCustomData.isSeeAuthMember?1:0,t.chatFlag=e.myCustomData.chatFlag,t.isMessageRemind=e.myCustomData.isMessageRemind,t.messageRemindTime=e.myCustomData.messageRemindTime,t.isTemplateMessage=e.myCustomData.isTemplateMessage,t.isImgMessage=e.myCustomData.isImgMessage,t.isGoodMessage=e.myCustomData.isGoodMessage,t.isIntegralGoodMessage=e.myCustomData.isIntegralGoodMessage,l="/haoban-app-customer-web/customer/save-member-show-setting"),Object(i.b)(l,t).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeAllowGuide:function(a){this.myCustomData.allowGuideMobile=a,this.myCustomData.allowGuideMessage=a,this.myCustomData.allowGuideOnlineChat=a},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getShowSet:function(a){var e=this,t={wxEnterpriseRelatedId:a};Object(i.b)("/haoban-app-customer-web/customer/find-member-show-setting",t).then(function(a){var t=a.data;1!=t.errorCode?o.a.errorMsg(t):t.result&&(t.result.mainStoreFlag=1==t.result.mainStoreFlag,t.result.minorStoreFlag=1==t.result.minorStoreFlag,t.result.openCardStoreFlag=1==t.result.openCardStoreFlag,t.result.clerkSeeOtherFlag=1==t.result.clerkSeeOtherFlag,t.result.allowGuideContact=1==t.result.allowGuideContact,t.result.allowGuideMobile=1==t.result.allowGuideMobile,t.result.allowGuideMessage=1==t.result.allowGuideMessage,t.result.allowGuideOnlineChat=1==t.result.allowGuideOnlineChat,t.result.isSeeAuthMember=1==t.result.isSeeAuthMember,t.result.searchFlag=1==t.result.searchFlag,e.myCustomData=t.result)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{},mounted:function(){this.$emit("showTab","11"),this.getShowSet(this.brandId)},components:{}},u={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"app-detail-pane border-box p-20"},[t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.mainStoreFlag,callback:function(e){a.$set(a.myCustomData,"mainStoreFlag",e)},expression:"myCustomData.mainStoreFlag"}},[a._v("展示服务门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.minorStoreFlag,callback:function(e){a.$set(a.myCustomData,"minorStoreFlag",e)},expression:"myCustomData.minorStoreFlag"}},[a._v("展示协管门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.openCardStoreFlag,callback:function(e){a.$set(a.myCustomData,"openCardStoreFlag",e)},expression:"myCustomData.openCardStoreFlag"}},[a._v("展示开卡门店会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.isSeeAuthMember,callback:function(e){a.$set(a.myCustomData,"isSeeAuthMember",e)},expression:"myCustomData.isSeeAuthMember"}},[a._v("展示已开卡会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员")]),a._v(" "),t("br"),a._v(" "),t("span",{staticClass:"p-l-199 font-14 color-909399"},[a._v("不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:a.myCustomData.clerkSeeOtherFlag,callback:function(e){a.$set(a.myCustomData,"clerkSeeOtherFlag",e)},expression:"myCustomData.clerkSeeOtherFlag"}},[a._v("允许导购查看其他导购会员")]),a._v(" "),t("span",{staticClass:"font-14 color-909399"},[a._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),a._v(" "),t("div",{staticClass:"m-b-20"},[t("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:a.changeAllowGuide},model:{value:a.myCustomData.allowGuideContact,callback:function(e){a.$set(a.myCustomData,"allowGuideContact",e)},expression:"myCustomData.allowGuideContact"}}),t("span",{staticClass:"font-14 color-606266 p-l-10"},[a._v("允许导购主动联系会员")]),t("span",{staticClass:"font-14 color-909399 p-l-38"},[a._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),a._v(" "),a.myCustomData.allowGuideContact?t("div",[t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideMobile,callback:function(e){a.$set(a.myCustomData,"allowGuideMobile",e)},expression:"myCustomData.allowGuideMobile"}},[a._v("电话")]),a._v(" "),t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideMessage,callback:function(e){a.$set(a.myCustomData,"allowGuideMessage",e)},expression:"myCustomData.allowGuideMessage"}},[a._v("短信")]),a._v(" "),t("el-checkbox",{on:{change:a.changeContact},model:{value:a.myCustomData.allowGuideOnlineChat,callback:function(e){a.$set(a.myCustomData,"allowGuideOnlineChat",e)},expression:"myCustomData.allowGuideOnlineChat"}},[a._v("消息")])],1):a._e(),a._v(" "),t("div",{staticClass:"m-t-46"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.submit("showFlag")}}},[a._v("保 存")])],1)])])},staticRenderFns:[]};var m=t("VU/8")(n,u,!1,function(a){t("Zhg7")},"data-v-9acc563e",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([15],{Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),r=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={wxEnterpriseRelatedId:e.brandId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(r.b)(n,a).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={wxEnterpriseRelatedId:t};Object(r.b)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("quv1")},"data-v-7f259169",null);e.default=c.exports},quv1:function(t,e){}});
\ No newline at end of file
webpackJsonp([15],{Z3Aa:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),n=e("Ch4/"),o=e("PI0u"),r=e("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(o.a)(function(t){this.setData(t)},500),setData:function(t){var a=this,e={brandId:a.brandId},o=void 0;"showFlag"!=t&&(e[t]=a.myCustomData[t]?1:0,o="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(o="/haoban-app-customer-web/customer/save-customer-setting")),Object(r.b)(o,e).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var a=this,e={brandId:t};Object(r.b)("/haoban-app-customer-web/customer/find-customer-setting",e).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&(a.myCustomData.searchFlag=!!e.result.searchFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(a){t.$set(t.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=e("VU/8")(i,u,!1,function(t){e("g+qn")},"data-v-52e059e9",null);a.default=c.exports},"g+qn":function(t,a){}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=o(o.s=a[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"035ea7021e33c0dd73b9",1:"9a1776fdc262362d75b8",2:"68622a9ed4986b2b8923",3:"dc51a05b01654b321fd7",4:"406e326cc4f6339d0e14",5:"9a4a9a4fd418a3bd945f",6:"689a47e3c9b781d2fb24",7:"3b77345f789d55d5d92f",8:"729e6fa6fb32728e2c4d",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"fdcc4372b9269461ec37",12:"1c5eeb0921158c02c45a",13:"a01250dadbd84757b3a6",14:"514595e3ac537ff30ee1",15:"e9753df42a35e2fd1bb0",16:"ceb943561fcf2e88bc01",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=o(o.s=a[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"035ea7021e33c0dd73b9",1:"9a1776fdc262362d75b8",2:"68622a9ed4986b2b8923",3:"dc51a05b01654b321fd7",4:"8744c290d4aba887e920",5:"9a4a9a4fd418a3bd945f",6:"689a47e3c9b781d2fb24",7:"3b77345f789d55d5d92f",8:"729e6fa6fb32728e2c4d",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"fdcc4372b9269461ec37",12:"288e7cf25f3d193dec99",13:"de2c04dc62e537a62efd",14:"514595e3ac537ff30ee1",15:"0e87506abaec36ad9960",16:"ceb943561fcf2e88bc01",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-02-19 10:59:53
* @LastEditTime : 2020-02-19 11:18:54
-->
<!--
......@@ -123,7 +123,6 @@ export default {
allowGuideMessage: false,
allowGuideOnlineChat: false
},
activeId: '1',
overTimeSeeFlag: false,
// 会员分组设置
conditionObj: {
......@@ -136,14 +135,6 @@ export default {
currentPage: 1,
pageSize: 20,
total: 0,
// 门店选择
appScene: 2,
defaultStoreList: [],
storeTreeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false // 是否单选
},
// 最近同步时间
syncDate: ''
};
......@@ -164,7 +155,7 @@ export default {
getSyncDate(brandId) {
const that = this;
let para = {
brandId: that.brandId || brandId
wxEnterpriseRelatedId: that.brandId || brandId
};
postRequest('/haoban-app-customer-web/memberGroup/get-group_last_syn_time', para)
.then(res => {
......@@ -188,7 +179,7 @@ export default {
toSync: _debounce(function() {
const that = this;
let para = {
brandId: that.brandId
wxEnterpriseRelatedId: that.brandId
};
postRequest('/haoban-app-customer-web/memberGroup/syn-group', para)
.then(res => {
......@@ -226,7 +217,7 @@ export default {
getGroupClassSet(brandId) {
const that = this;
let para = {
brandId: brandId
wxEnterpriseRelatedId: brandId
};
postRequest('/haoban-app-customer-web/memberGroup/get-member-group-setting', para)
.then(res => {
......@@ -250,7 +241,7 @@ export default {
saveGroupSet() {
const that = this;
let para = {
brandId: that.brandId,
wxEnterpriseRelatedId: that.brandId,
overTimeSeeFlag: that.overTimeSeeFlag == true ? 1 : 0
};
postRequest('/haoban-app-customer-web/memberGroup/save-member-group-setting', para)
......@@ -294,7 +285,7 @@ export default {
getGroupClassify(brandId) {
const that = this;
let para = {
brandId: brandId
wxEnterpriseRelatedId: brandId
};
postRequest('/haoban-app-customer-web/memberGroup/get-member-class-list', para)
.then(res => {
......@@ -314,98 +305,13 @@ export default {
},
/**
* 编辑分组可见范围
*
*/
toEditGroup(index, row) {
const that = this;
that.memberTagGroupId = row.memberTagGroupId;
that.getGroupSet();
},
getGroupSet() {
const that = this;
let para = {
brandId: that.brandId,
memberTagGroupId: that.memberTagGroupId
};
postRequest('/haoban-app-customer-web/memberGroup/find-gorup-see-range', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result && resData.result.length) {
resData.result.forEach(ele => {
if (Number.parseInt(ele.type) === 2) {
ele.groupId = ele.id;
}
ele.label = ele.name;
});
}
that.defaultStoreList = resData.result || [];
that.storeTreeSet = {
dialogVisible: true,
isSingle: false,
isSelectPerson: false
};
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
handleSelectedList(data) {
console.log(data);
const that = this;
that.defaultStoreList = data || [];
that.saveGorupRange();
},
saveGorupRange() {
const that = this;
let storeGroups = [];
let filterStoreIds = [];
that.defaultStoreList.forEach(ele => {
if (ele.type == 2) {
storeGroups.push(ele.groupId);
}
if (ele.type == 3) {
filterStoreIds.push(ele.storeId);
}
});
let para = {
brandId: that.brandId,
memberTagGroupId: that.memberTagGroupId,
groupList: storeGroups || [],
storeList: filterStoreIds || []
};
postRequest('/haoban-app-customer-web/memberGroup/save-gorup-see-range', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('编辑成功', 'success');
that.defaultStoreList = [];
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 模板消息设置
*/
toChangeTemp(e, index, row) {
const that = this;
console.log(e, index, row);
let para = {
brandId: that.brandId,
wxEnterpriseRelatedId: that.brandId,
memberTagGroupId: row.memberTagGroupId,
isSendTemplate: row.isSendTemplate == true ? 1 : 0
};
......@@ -454,7 +360,7 @@ export default {
getGroupList(brandId) {
const that = this;
let para = {
brandId: brandId,
wxEnterpriseRelatedId: brandId,
memberGroupName: that.conditionObj.searchInput,
classifyName: that.conditionObj.classifyName,
effectiveStatus: that.conditionObj.effectiveStatus,
......
......@@ -72,7 +72,7 @@ export default {
setData(type) {
const that = this;
let para = {
brandId: that.brandId
wxEnterpriseRelatedId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
};
let url;
......@@ -126,7 +126,7 @@ export default {
getCustomerSet(brandId) {
const that = this;
let para = {
brandId: brandId
wxEnterpriseRelatedId: brandId
};
postRequest('/haoban-app-customer-web/customer/find-customer-setting', para)
.then(res => {
......
......@@ -110,7 +110,7 @@ export default {
setData(type) {
const that = this;
let para = {
brandId: that.brandId
wxEnterpriseRelatedId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
};
let url;
......@@ -182,7 +182,7 @@ export default {
getShowSet(brandId) {
const that = this;
let para = {
brandId: brandId
wxEnterpriseRelatedId: brandId
};
postRequest('/haoban-app-customer-web/customer/find-member-show-setting', para)
.then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment