Commit 4a257202 by fairyly

fix: 修改接口

parent 88690615
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 13:53:23
* @LastEditTime : 2020-02-19 10:02:14
*/
module.exports = {
proxyList: {
......@@ -15,11 +15,11 @@ module.exports = {
'^/haoban-manage-web': ''
}
},
'/haoban-app-member-web/': {
target: 'https://www.gicdev.com/haoban-app-member-web/',
'/haoban-app-customer-web/': {
target: 'https://www.gicdev.com/haoban-app-customer-web/',
changeOrigin: true,
pathRewrite: {
'^/haoban-app-member-web': ''
'^/haoban-app-customer-web': ''
}
},
'/haoban-app-announcement-web/': {
......
<!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.6904ca9d9d5a09cd3f025b75e73f23c3.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.85f185019e13112e2c35.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.69c1d74aedf95870a803.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.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
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],{"Cy+y":function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("Cy+y")},"data-v-82648e34",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([14],{"Cy+y":function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("Cy+y")},"data-v-82648e34",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([14],{"0wxq":function(e,a){},odfG:function(e,a,t){"use strict";Object.defineProperty(a,"__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},topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},syncDate:""}},methods:{submit:Object(l.a)(function(e){this.setData(e)},500),setData:function(e){var a=this,t={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},l=void 0;"showFlag"!=e?(t[e]=a.myCustomData[e]?1:0,l="/haoban-web/customer/save-online-chat-setting","searchFlag"===e&&(l="/haoban-web/customer/save-customer-setting")):(t.mainStoreFlag=a.myCustomData.mainStoreFlag?1:0,t.minorStoreFlag=a.myCustomData.minorStoreFlag?1:0,t.openCardStoreFlag=a.myCustomData.openCardStoreFlag?1:0,t.clerkSeeOtherFlag=a.myCustomData.clerkSeeOtherFlag?1:0,t.allowGuideContact=a.myCustomData.allowGuideContact?1:0,t.allowGuideMobile=a.myCustomData.allowGuideMobile?1:0,t.allowGuideMessage=a.myCustomData.allowGuideMessage?1:0,t.allowGuideOnlineChat=a.myCustomData.allowGuideOnlineChat?1:0,t.isSeeAuthMember=a.myCustomData.isSeeAuthMember?1:0,t.chatFlag=a.myCustomData.chatFlag,t.isMessageRemind=a.myCustomData.isMessageRemind,t.messageRemindTime=a.myCustomData.messageRemindTime,t.isTemplateMessage=a.myCustomData.isTemplateMessage,t.isImgMessage=a.myCustomData.isImgMessage,t.isGoodMessage=a.myCustomData.isGoodMessage,t.isIntegralGoodMessage=a.myCustomData.isIntegralGoodMessage,l="/haoban-web/customer/save-member-show-setting"),Object(i.b)(l,t).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getShowSet:function(e){var a=this,t={brandId:e};Object(i.b)("/haoban-web/customer/find-member-show-setting",t).then(function(e){var t=e.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,a.myCustomData=t.result)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab","11"),this.getShowSet(this.brandId)},components:{}},r={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;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:e.myCustomData.mainStoreFlag,callback:function(a){e.$set(e.myCustomData,"mainStoreFlag",a)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),t("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(a){e.$set(e.myCustomData,"minorStoreFlag",a)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),t("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(a){e.$set(e.myCustomData,"openCardStoreFlag",a)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),t("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(a){e.$set(e.myCustomData,"isSeeAuthMember",a)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已开卡会员")]),e._v(" "),t("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员")]),e._v(" "),t("br"),e._v(" "),t("span",{staticClass:"p-l-199 font-14 color-909399"},[e._v("不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),e._v(" "),t("div",{staticClass:"m-b-20"},[t("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(a){e.$set(e.myCustomData,"clerkSeeOtherFlag",a)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),t("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),t("div",{staticClass:"m-b-20"},[t("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeAllowGuide},model:{value:e.myCustomData.allowGuideContact,callback:function(a){e.$set(e.myCustomData,"allowGuideContact",a)},expression:"myCustomData.allowGuideContact"}}),t("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("允许导购主动联系会员")]),t("span",{staticClass:"font-14 color-909399 p-l-38"},[e._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),e._v(" "),e.myCustomData.allowGuideContact?t("div",[t("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(a){e.$set(e.myCustomData,"allowGuideMobile",a)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),t("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(a){e.$set(e.myCustomData,"allowGuideMessage",a)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),t("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(a){e.$set(e.myCustomData,"allowGuideOnlineChat",a)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("消息")])],1):e._e(),e._v(" "),t("div",{staticClass:"m-t-46"},[t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submit("showFlag")}}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var u=t("VU/8")(n,r,!1,function(e){t("0wxq")},"data-v-7e34f40f",null);a.default=u.exports}});
\ 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
webpackJsonp([16],{Z3Aa:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("3E4D"),o=t("Ch4/"),i=t("PI0u"),n=t("P9l9"),r={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(i.a)(function(e){this.setData(e)},500),setData:function(e){var a=this,t={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},i=void 0;"showFlag"!=e?(t[e]=a.myCustomData[e]?1:0,i="/haoban-web/customer/save-online-chat-setting","searchFlag"===e&&(i="/haoban-web/customer/save-customer-setting")):(t.mainStoreFlag=a.myCustomData.mainStoreFlag?1:0,t.minorStoreFlag=a.myCustomData.minorStoreFlag?1:0,t.openCardStoreFlag=a.myCustomData.openCardStoreFlag?1:0,t.clerkSeeOtherFlag=a.myCustomData.clerkSeeOtherFlag?1:0,t.allowGuideContact=a.myCustomData.allowGuideContact?1:0,t.allowGuideMobile=a.myCustomData.allowGuideMobile?1:0,t.allowGuideMessage=a.myCustomData.allowGuideMessage?1:0,t.allowGuideOnlineChat=a.myCustomData.allowGuideOnlineChat?1:0,t.isSeeAuthMember=a.myCustomData.isSeeAuthMember?1:0,t.chatFlag=a.myCustomData.chatFlag,t.isMessageRemind=a.myCustomData.isMessageRemind,t.messageRemindTime=a.myCustomData.messageRemindTime,t.isTemplateMessage=a.myCustomData.isTemplateMessage,t.isImgMessage=a.myCustomData.isImgMessage,t.isGoodMessage=a.myCustomData.isGoodMessage,t.isIntegralGoodMessage=a.myCustomData.isIntegralGoodMessage,i="/haoban-web/customer/save-member-show-setting"),Object(n.b)(i,t).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var a=this,t={brandId:e};Object(n.b)("/haoban-web/customer/find-customer-setting",t).then(function(e){var t=e.data;1!=t.errorCode?o.a.errorMsg(t):t.result&&(a.myCustomData.searchFlag=!!t.result.searchFlag)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},m={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"app-detail-pane border-box p-20"},[t("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(a){e.$set(e.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),t("div",{staticClass:"m-t-46"},[t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submit("searchFlag")}}},[e._v("保 存")])],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(r,m,!1,function(e){t("hIOp")},"data-v-392e8106",null);a.default=u.exports},hIOp:function(e,a){}});
\ No newline at end of file
webpackJsonp([15],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,d,i,u=0,s=[];u<r.length;u++)d=r[u],t[d]&&s.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);s.length;)s.shift()();if(c)for(u=0;u<c.length;u++)i=a(a.s=c[u]);return i};var r={},t={21:0};function a(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,a),t.l=!0,t.exports}a.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,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+e+"."+{0:"0fcc671ed0af2b9ecfc9",1:"9a1776fdc262362d75b8",2:"68622a9ed4986b2b8923",3:"3201c6a17c59df472f26",4:"4740d3913fc2a140626e",5:"9a4a9a4fd418a3bd945f",6:"689a47e3c9b781d2fb24",7:"3b77345f789d55d5d92f",8:"729e6fa6fb32728e2c4d",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"fdcc4372b9269461ec37",12:"288e7cf25f3d193dec99",13:"62ea976ed1291d674248",14:"ffd9f2c15ee7655aa615",15:"b2964c8a20328a2a5e5f",16:"5a2c5aa7760e3a7528fe",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,o.appendChild(c),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.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:"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
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 17:21:32
* @LastEditors : 无尘
* @LastEditTime : 2020-02-11 09:24:13
* @LastEditTime : 2020-02-19 09:19:02
-->
<template>
<div class="navheader">
......@@ -40,7 +40,7 @@
<!-- href="javascript:void(0)" -->
</ul>
<a class="nav-user-name" slot="reference">
<span class="font-12 color-606266">{{ userInfo.name || '--' }}</span> <i class="el-icon-arrow-down arrowico"></i>
<span class="font-12 color-606266">{{ userInfo.name || '--' }}</span> <i class="iconfont iconxiala arrowico"></i>
</a>
</el-popover>
</div>
......@@ -277,8 +277,8 @@ export default {
watch: {
$route: {
handler: function(val, oldVal) {
const that = this;
that.getMenuDetail();
// const that = this;
// that.getMenuDetail();
},
// 深度观察监听
deep: true
......@@ -309,7 +309,7 @@ export default {
that.repProjectName = that.projectName || 'haoban-manage-web';
that.isCollapse = that.collapseFlag;
// 获取菜单
Promise.all([that.getHeaderMenu(), that.getMenuDetail()]);
// Promise.all([that.getHeaderMenu(), that.getMenuDetail()]);
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-01-14 10:06:35
* @LastEditTime : 2020-02-19 09:59:06
-->
<!--
......@@ -72,35 +72,18 @@ export default {
setData(type) {
const that = this;
let para = {
brandId: that.brandId,
enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
brandId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
};
let url;
if (type != 'showFlag') {
para[type] = !!that.myCustomData[type] ? 1 : 0;
url = '/haoban-web/customer/save-online-chat-setting';
url = '/haoban-app-customer-web/customer/save-online-chat-setting';
if (type === 'searchFlag') {
url = '/haoban-web/customer/save-customer-setting';
url = '/haoban-app-customer-web/customer/save-customer-setting';
}
} else {
para['mainStoreFlag'] = !!that.myCustomData['mainStoreFlag'] ? 1 : 0;
para['minorStoreFlag'] = !!that.myCustomData['minorStoreFlag'] ? 1 : 0;
para['openCardStoreFlag'] = !!that.myCustomData['openCardStoreFlag'] ? 1 : 0;
para['clerkSeeOtherFlag'] = !!that.myCustomData['clerkSeeOtherFlag'] ? 1 : 0;
para['allowGuideContact'] = !!that.myCustomData['allowGuideContact'] ? 1 : 0;
para['allowGuideMobile'] = !!that.myCustomData['allowGuideMobile'] ? 1 : 0;
para['allowGuideMessage'] = !!that.myCustomData['allowGuideMessage'] ? 1 : 0;
para['allowGuideOnlineChat'] = !!that.myCustomData['allowGuideOnlineChat'] ? 1 : 0;
para['isSeeAuthMember'] = !!that.myCustomData['isSeeAuthMember'] ? 1 : 0;
para.chatFlag = that.myCustomData.chatFlag; // 总的
para.isMessageRemind = that.myCustomData.isMessageRemind; // 短信
para.messageRemindTime = that.myCustomData.messageRemindTime;
para.isTemplateMessage = that.myCustomData.isTemplateMessage; // 模板消息
para.isImgMessage = that.myCustomData.isImgMessage; // 图文
para.isGoodMessage = that.myCustomData.isGoodMessage;
para.isIntegralGoodMessage = that.myCustomData.isIntegralGoodMessage;
url = '/haoban-web/customer/save-member-show-setting';
}
postRequest(url, para)
.then(res => {
let resData = res.data;
......@@ -145,7 +128,7 @@ export default {
let para = {
brandId: brandId
};
postRequest('/haoban-web/customer/find-customer-setting', para)
postRequest('/haoban-app-customer-web/customer/find-customer-setting', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-01-14 10:06:35
* @LastEditTime : 2020-02-19 10:20:58
-->
<!--
......@@ -92,36 +92,7 @@ export default {
allowGuideMobile: false,
allowGuideMessage: false,
allowGuideOnlineChat: false
},
topMenuData: [
{
id: '1',
name: '会员搜索设置'
}
],
activeId: '1',
overTimeSeeFlag: '',
// 会员分组设置
conditionObj: {
searchInput: '',
classifyName: '',
effectiveStatus: ''
},
groupListData: [], // 列表数据
classifyList: [], // 会员分组
currentPage: 1,
pageSize: 20,
total: 0,
// 门店选择
appScene: 2,
defaultStoreList: [],
storeTreeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false // 是否单选
},
// 最近同步时间
syncDate: ''
}
};
},
methods: {
......@@ -139,15 +110,15 @@ export default {
setData(type) {
const that = this;
let para = {
brandId: that.brandId,
enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
brandId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
};
let url;
if (type != 'showFlag') {
para[type] = !!that.myCustomData[type] ? 1 : 0;
url = '/haoban-web/customer/save-online-chat-setting';
url = '/haoban-app-customer-web/customer/save-online-chat-setting';
if (type === 'searchFlag') {
url = '/haoban-web/customer/save-customer-setting';
url = '/haoban-app-customer-web/customer/save-customer-setting';
}
} else {
para['mainStoreFlag'] = !!that.myCustomData['mainStoreFlag'] ? 1 : 0;
......@@ -166,7 +137,7 @@ export default {
para.isImgMessage = that.myCustomData.isImgMessage; // 图文
para.isGoodMessage = that.myCustomData.isGoodMessage;
para.isIntegralGoodMessage = that.myCustomData.isIntegralGoodMessage;
url = '/haoban-web/customer/save-member-show-setting';
url = '/haoban-app-customer-web/customer/save-member-show-setting';
}
postRequest(url, para)
.then(res => {
......@@ -213,7 +184,7 @@ export default {
let para = {
brandId: brandId
};
postRequest('/haoban-web/customer/find-member-show-setting', para)
postRequest('/haoban-app-customer-web/customer/find-member-show-setting', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
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