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> <!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 \ 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],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-web/application-list",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.dataOverview=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("Qld8")},"data-v-9c1bc86a",null);e.default=p.exports},Qld8:function(t,e){}}); webpackJsonp([12],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-web/application-list",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.dataOverview=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("Qld8")},"data-v-9c1bc86a",null);e.default=p.exports},Qld8:function(t,e){}});
\ No newline at end of file \ 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
webpackJsonp([4],{"1H6C":function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r("HhN8"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},"8sHD":function(e,t,r){var n=r("kM2E"),o=r("KpO7");n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},HhN8:function(e,t){!function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=w;var p="suspendedStart",f="suspendedYield",d="executing",h="completed",g={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(k([])));b&&b!==n&&o.call(b,i)&&(m=b);var y=I.prototype=_.prototype=Object.create(m);x.prototype=y.constructor=I,I.constructor=x,I[u]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,I):(e.__proto__=I,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(y),e},l.awrap=function(e){return{__await:e}},G(L.prototype),L.prototype[s]=function(){return this},l.AsyncIterator=L,l.async=function(e,t,r,n){var o=new L(w(e,t,r,n));return l.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},G(y),y[u]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=k,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}}}function w(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new j(n||[]);return a._invoke=function(e,t,r){var n=p;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=C(i,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=S(e,t,r);if("normal"===u.type){if(n=r.done?h:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,i),a}function S(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function _(){}function x(){}function I(){}function G(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function L(e){var t;this._invoke=function(r,n){function a(){return new Promise(function(t,a){!function t(r,n,a,i){var s=S(e[r],e,n);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(c).then(function(e){u.value=e,a(u)},i)}i(s.arg)}(r,n,t,a)})}return t=t?t.then(a,a):a()}}function C(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=S(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:E}}function E(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},JuNN:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("gBtx"),o=r.n(n),a=r("Xxa5"),i=r.n(a),s=r("exGp"),u=r.n(s),c=r("3E4D"),l=r("Ch4/"),p=r("PI0u"),f=r("P9l9"),d={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},activeId:"1",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,r={brandId:t.brandId||e};Object(f.b)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",r).then(function(e){var r=e.data;1!=r.errorCode?l.a.errorMsg(r):t.syncDate=r.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(p.a)(function(){var e=this,t={brandId:e.brandId};Object(f.b)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var r=t.data;if(1==r.errorCode)return c.a.showmsg("同步成功","success"),void e.getSyncDate();l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var r=this;return u()(i.a.mark(function t(){var n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r,"first"!=e.name){t.next=5;break}n.getCustomerSet(n.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}n.getShowSet(n.brandId),t.next=15;break;case 9:return t.next=11,n.getGroupClassSet(n.brandId);case 11:return t.next=13,n.getGroupClassify(n.brandId);case 13:return t.next=15,n.getGroupList(n.brandId);case 15:case"end":return t.stop()}},t,r)}))()},getGroupClassSet:function(e){var t=this,r={brandId:e};Object(f.b)("/haoban-app-customer-web/memberGroup/get-member-group-setting",r).then(function(e){var r=e.data;1!=r.errorCode?l.a.errorMsg(r):t.overTimeSeeFlag=0!=r.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={brandId:e.brandId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(f.b)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return c.a.showmsg("设置成功","success"),!1;l.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(p.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,r={brandId:e};Object(f.b)("/haoban-app-customer-web/memberGroup/get-member-class-list",r).then(function(e){var r=e.data;1!=r.errorCode?l.a.errorMsg(r):t.classifyList=r.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEditGroup:function(e,t){this.memberTagGroupId=t.memberTagGroupId,this.getGroupSet()},getGroupSet:function(){var e=this,t={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId};Object(f.b)("/haoban-app-customer-web/memberGroup/find-gorup-see-range",t).then(function(t){var r=t.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.label=e.name}),e.defaultStoreList=r.result||[],void(e.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1});l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelectedList:function(e){console.log(e);this.defaultStoreList=e||[],this.saveGorupRange()},saveGorupRange:function(){var e=this,t=[],r=[];e.defaultStoreList.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&r.push(e.storeId)});var n={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId,groupList:t||[],storeList:r||[]};Object(f.b)("/haoban-app-customer-web/memberGroup/save-gorup-see-range",n).then(function(t){var r=t.data;if(1==r.errorCode)return c.a.showmsg("编辑成功","success"),void(e.defaultStoreList=[]);l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(e,t,r){var n=this;console.log(e,t,r);var o={brandId:n.brandId,memberTagGroupId:r.memberTagGroupId,isSendTemplate:1==r.isSendTemplate?1:0};Object(f.b)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return c.a.showmsg("操作成功","success"),n.pageNum=1,void n.getGroupList(n.brandId);r.isSendTemplate=!1,l.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,r={brandId:e,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(f.b)("/haoban-app-customer-web/memberGroup/member-tag-group-list",r).then(function(e){var r=e.data;if(1==r.errorCode)return r.result.list&&r.result.list.length&&r.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=r.result.list||[],void(t.total=r.result.pageInfo.total);l.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab","12"),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)},components:{}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap"},[r("div",{staticClass:"app-detail-pane border-box p-20"},[r("div",{staticClass:"condition-wrap flex flex-space-between"},[r("div",[r("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return r=t,e.toInput(r,e.conditionObj.searchInput);var r}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),e._v(" "),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[r("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})],2),e._v(" "),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[r("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),r("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),r("div",[r("el-checkbox",{on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员分组到期后不展示")])]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")]),e._v(" "),e.syncDate?r("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),r("div",{staticClass:"m-t-20"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),r("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?r("div",{staticClass:"block common-wrap__page text-right m-t-24"},[r("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},staticRenderFns:[]};var g=r("VU/8")(d,h,!1,function(e){r("r/mj")},"data-v-d5c9d898",null);t.default=g.exports},KpO7:function(e,t,r){var n=r("7KvD").parseInt,o=r("mnVu").trim,a=r("hyta"),i=/^[-+]?0[xX]/;e.exports=8!==n(a+"08")||22!==n(a+"0x16")?function(e,t){var r=o(String(e),3);return n(r,t>>>0||(i.test(r)?16:10))}:n},Xxa5:function(e,t,r){e.exports=r("1H6C")},exGp:function(e,t,r){"use strict";t.__esModule=!0;var n,o=r("//Fk"),a=(n=o)&&n.__esModule?n:{default:n};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function n(o,i){try{var s=t[o](i),u=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}("next")})}}},gBtx:function(e,t,r){e.exports={default:r("qrpI"),__esModule:!0}},hyta:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},mnVu:function(e,t,r){var n=r("kM2E"),o=r("52gC"),a=r("S82l"),i=r("hyta"),s="["+i+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,r){var o={},s=a(function(){return!!i[e]()||"​…"!="​…"[e]()}),u=o[e]=s?t(p):i[e];r&&(o[r]=u),n(n.P+n.F*s,"String",o)},p=l.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},qrpI:function(e,t,r){r("8sHD"),e.exports=r("FeBl").Number.parseInt},"r/mj":function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{"1H6C":function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("HhN8"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},HhN8:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=w;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",m={},g={};g[i]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(T([])));b&&b!==n&&o.call(b,i)&&(g=b);var y=C.prototype=x.prototype=Object.create(g);S.prototype=y.constructor=C,C.constructor=S,C[c]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(y),t},l.awrap=function(t){return{__await:t}},I(G.prototype),G.prototype[s]=function(){return this},l.AsyncIterator=G,l.async=function(t,e,r,n){var o=new G(w(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},I(y),y[c]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=T,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}}}function w(t,e,r,n){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new k(n||[]);return a._invoke=function(t,e,r){var n=p;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=L(i,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=_(t,e,r);if("normal"===c.type){if(n=r.done?d:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function _(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function S(){}function C(){}function I(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function G(t){var e;this._invoke=function(r,n){function a(){return new Promise(function(e,a){!function e(r,n,a,i){var s=_(t[r],t,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(u).then(function(t){c.value=t,a(c)},i)}i(s.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function L(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=_(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:E}}function E(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},JuNN:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r("Xxa5"),o=r.n(n),a=r("exGp"),i=r.n(a),s=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),l=r("P9l9"),p={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},overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,syncDate:""}},beforeMount:function(){var t=window.location.origin;-1!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{getSyncDate:function(t){var e=this,r={wxEnterpriseRelatedId:e.brandId||t};Object(l.b)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",r).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):e.syncDate=r.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toSync:Object(u.a)(function(){var t=this,e={wxEnterpriseRelatedId:t.brandId};Object(l.b)("/haoban-app-customer-web/memberGroup/syn-group",e).then(function(e){var r=e.data;if(1==r.errorCode)return s.a.showmsg("同步成功","success"),void t.getSyncDate();c.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},500),handleTabClick:function(t,e){var r=this;return i()(o.a.mark(function e(){var n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r,"first"!=t.name){e.next=5;break}n.getCustomerSet(n.brandId),e.next=15;break;case 5:if("second"!=t.name){e.next=9;break}n.getShowSet(n.brandId),e.next=15;break;case 9:return e.next=11,n.getGroupClassSet(n.brandId);case 11:return e.next=13,n.getGroupClassify(n.brandId);case 13:return e.next=15,n.getGroupList(n.brandId);case 15:case"end":return e.stop()}},e,r)}))()},getGroupClassSet:function(t){var e=this,r={wxEnterpriseRelatedId:t};Object(l.b)("/haoban-app-customer-web/memberGroup/get-member-group-setting",r).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):e.overTimeSeeFlag=0!=r.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},saveGroupSet:function(){var t=this,e={wxEnterpriseRelatedId:t.brandId,overTimeSeeFlag:1==t.overTimeSeeFlag?1:0};Object(l.b)("/haoban-app-customer-web/memberGroup/save-member-group-setting",e).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("设置成功","success"),!1;c.a.errorMsg(e)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(u.a)(function(t,e){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(t){var e=this,r={wxEnterpriseRelatedId:t};Object(l.b)("/haoban-app-customer-web/memberGroup/get-member-class-list",r).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):e.classifyList=r.result.list||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(t,e,r){var n=this;console.log(t,e,r);var o={wxEnterpriseRelatedId:n.brandId,memberTagGroupId:r.memberTagGroupId,isSendTemplate:1==r.isSendTemplate?1:0};Object(l.b)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",o).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("操作成功","success"),n.pageNum=1,void n.getGroupList(n.brandId);r.isSendTemplate=!1,c.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getGroupList(this.brandId)},handleCurrentChange:function(t){this.currentPage=t,this.getGroupList(this.brandId)},getGroupList:function(t){var e=this,r={wxEnterpriseRelatedId:t,memberGroupName:e.conditionObj.searchInput,classifyName:e.conditionObj.classifyName,effectiveStatus:e.conditionObj.effectiveStatus,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-app-customer-web/memberGroup/member-tag-group-list",r).then(function(t){var r=t.data;if(1==r.errorCode)return r.result.list&&r.result.list.length&&r.result.list.forEach(function(t){t.isSendTemplate=1==t.isSendTemplate}),e.groupListData=r.result.list||[],void(e.total=r.result.pageInfo.total);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","12"),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)},components:{}},f={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-detail-wrap"},[r("div",{staticClass:"app-detail-pane border-box p-20"},[r("div",{staticClass:"condition-wrap flex flex-space-between"},[r("div",[r("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return r=e,t.toInput(r,t.conditionObj.searchInput);var r}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:t.changeCondition},model:{value:t.conditionObj.classifyName,callback:function(e){t.$set(t.conditionObj,"classifyName",e)},expression:"conditionObj.classifyName"}},[r("el-option",{attrs:{label:"全部分类",value:""}}),t._v(" "),t._l(t.classifyList,function(t){return r("el-option",{key:t,attrs:{label:t,value:t}})})],2),t._v(" "),r("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:t.changeCondition},model:{value:t.conditionObj.effectiveStatus,callback:function(e){t.$set(t.conditionObj,"effectiveStatus",e)},expression:"conditionObj.effectiveStatus"}},[r("el-option",{attrs:{label:"全部状态",value:""}}),t._v(" "),r("el-option",{attrs:{label:"有效",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),t._v(" "),r("div",[r("el-checkbox",{on:{change:t.saveGroupSet},model:{value:t.overTimeSeeFlag,callback:function(e){t.overTimeSeeFlag=e},expression:"overTimeSeeFlag"}}),t._v(" "),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员分组到期后不展示")])]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.toSync}},[t._v("立即同步")]),t._v(" "),t.syncDate?r("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("最近一次同步时间:"+t._s(t._f("formatTimeStamp")(t.syncDate)))]):t._e()],1)]),t._v(" "),r("div",{staticClass:"m-t-20"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.groupListData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.groupName))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.memberTagGroupClassifyName))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.isRealTime?"是":"否"))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.updateType?"每日":2==e.row.updateType?"每周":3==e.row.updateType?"每月":"-")+" "+t._s(1==e.row.updateType?"一次":2==e.row.updateType?"周"+e.row.updateDay:3==e.row.updateType?e.row.updateDay+"号":"-")+" ")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s("1"==e.row.effectiveStatus?"有效":"失效"))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.memberCount||0)+"人")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate)))]),t._v(" "),r("div",[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate)))])]}}])})],1),t._v(" "),0!=t.groupListData.length?r("div",{staticClass:"block common-wrap__page text-right m-t-24"},[r("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)])])},staticRenderFns:[]};var h=r("VU/8")(p,f,!1,function(t){r("OikW")},"data-v-12abb932",null);e.default=h.exports},OikW:function(t,e){},Xxa5:function(t,e,r){t.exports=r("1H6C")},exGp:function(t,e,r){"use strict";e.__esModule=!0;var n,o=r("//Fk"),a=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){return function(){var e=t.apply(this,arguments);return new a.default(function(t,r){return function n(o,i){try{var s=e[o](i),c=s.value}catch(t){return void r(t)}if(!s.done)return a.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}}});
\ No newline at end of file
webpackJsonp([20],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},AmOA:function(e,t){},LP53:function(e,t,n){"use strict";function o(e,t,n,o,r,a,i,s,u,c){"boolean"!=typeof i&&(u=s,s=i,i=!1);const p="function"==typeof n?n.options:n;let m;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,r&&(p.functional=!0)),o&&(p._scopeId=o),a?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=m):t&&(m=i?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),m)if(p.functional){const e=p.render;p.render=function(t,n){return m.call(n),e(t,n)}}else{const e=p.beforeCreate;p.beforeCreate=e?[].concat(e,m):[m]}return n}n.d(t,"a",function(){return o});"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("fZjL"),r=n.n(o),a=(n("j1ja"),n("hKoQ")),i=n.n(a),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),p=n.n(c),m=n("pRNm"),g=n.n(m),d=n("5tgt"),l=n.n(d);p.a.use(g.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var h,v=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"index",component:l()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:l()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:l()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:l()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:l()("business","recycle")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:l()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:l()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:l()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:l()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:l()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:l()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:l()("apps/customerApp","memberSearchSet")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:l()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],S=new g.a({routes:v,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),b=n.n(w),x=n("Rf8U"),A=n.n(x),V=n("mtWM"),M=n.n(V),y=n("bOdI"),R=n.n(y),D=n("SJI6"),_=n.n(D);p.a.use(_.a);var T=new _.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(h={},R()(h,"login",function(e,t){sessionStorage.token=t,e.token=t}),R()(h,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),R()(h,"title",function(e,t){e.title=t}),R()(h,"show",function(e,t){e.show=t}),h)}),E=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),o={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[r]:("00"+o[r]).substr((""+o[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+o+" "+a+":"+i+":"+s}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+o+" "+a+":"+i+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""}}),O=n("TUaa"),P=n.n(O),H=n("tyqE"),j=n.n(H),k=n("pRVe"),C=n.n(k),I=n("XsK6"),L=n.n(I),N=n("QRL9"),$=n.n(N),F=n("eMjc"),G=n.n(F),U=n("l9mu"),X=n.n(U),Y={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,r=n/592.28*841.89,a=o,i=0,s=592.28/n*o,u=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(a<r)c.addImage(u,"JPEG",0,0,595.28,s);else for(;a>0;)c.addImage(u,"JPEG",0,i,595.28,s),i-=841.89,(a-=r)>0&&c.addPage();c.save(e+".pdf")})}}},J=n("/IwO"),K=n.n(J),q=n("iUJ9");n("AmOA");i.a.polyfill(),Vue.use(q.a),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Y),Vue.use(L.a),Vue.use($.a),Vue.use(C.a),Vue.use(j.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(b.a,{size:"large"}),Vue.use(A.a,M.a),Vue.axios.defaults.withCredentials=!0,r()(E).forEach(function(e){Vue.filter(e,E[e])}),S.beforeEach(function(e,t,n){var o=window.location.origin;o.indexOf("localhost"),localStorage.getItem("userInfo"),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:S,store:T,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var o={"./apps/customerApp/index.vue":["QHTa",0,7],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,4],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,15],"./apps/customerApp/memberShowSet.vue":["odfG",0,12],"./apps/index.vue":["K1Vb",0,16],"./business/contacts.vue":["/W60",0,3],"./business/index.vue":["jPcV",0,18],"./business/orgStructSet.vue":["OI5V",0,2],"./business/recycle.vue":["K8Yn",0,11],"./errorPage/403.vue":["6XGN",9],"./errorPage/404.vue":["AejC",10],"./errorPage/500.vue":["FskK",6],"./errorPage/gic-error.vue":["Q3j/",8],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,13],"./login/index.vue":["T+/8",0,5],"./overstore/index.vue":["Y55K",0,17],"./overstore/overStoreList.vue":["vuAV",0,14]};function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(o)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]); webpackJsonp([20],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},AmOA:function(e,t){},LP53:function(e,t,n){"use strict";function o(e,t,n,o,r,a,i,s,u,c){"boolean"!=typeof i&&(u=s,s=i,i=!1);const p="function"==typeof n?n.options:n;let m;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,r&&(p.functional=!0)),o&&(p._scopeId=o),a?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=m):t&&(m=i?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),m)if(p.functional){const e=p.render;p.render=function(t,n){return m.call(n),e(t,n)}}else{const e=p.beforeCreate;p.beforeCreate=e?[].concat(e,m):[m]}return n}n.d(t,"a",function(){return o});"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("fZjL"),r=n.n(o),a=(n("j1ja"),n("hKoQ")),i=n.n(a),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),p=n.n(c),m=n("pRNm"),g=n.n(m),d=n("5tgt"),l=n.n(d);p.a.use(g.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var h,v=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"index",component:l()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:l()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:l()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:l()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:l()("business","recycle")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:l()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:l()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:l()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:l()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:l()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:l()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:l()("apps/customerApp","memberSearchSet")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:l()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],S=new g.a({routes:v,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),b=n.n(w),x=n("Rf8U"),A=n.n(x),V=n("mtWM"),M=n.n(V),y=n("bOdI"),R=n.n(y),D=n("SJI6"),_=n.n(D);p.a.use(_.a);var T=new _.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(h={},R()(h,"login",function(e,t){sessionStorage.token=t,e.token=t}),R()(h,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),R()(h,"title",function(e,t){e.title=t}),R()(h,"show",function(e,t){e.show=t}),h)}),E=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),o={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[r]:("00"+o[r]).substr((""+o[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+o+" "+a+":"+i+":"+s}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+o+" "+a+":"+i+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""}}),O=n("TUaa"),P=n.n(O),H=n("tyqE"),j=n.n(H),k=n("pRVe"),C=n.n(k),I=n("XsK6"),L=n.n(I),N=n("QRL9"),$=n.n(N),F=n("eMjc"),G=n.n(F),U=n("l9mu"),X=n.n(U),Y={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,r=n/592.28*841.89,a=o,i=0,s=592.28/n*o,u=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(a<r)c.addImage(u,"JPEG",0,0,595.28,s);else for(;a>0;)c.addImage(u,"JPEG",0,i,595.28,s),i-=841.89,(a-=r)>0&&c.addPage();c.save(e+".pdf")})}}},J=n("/IwO"),K=n.n(J),q=n("iUJ9");n("AmOA");i.a.polyfill(),Vue.use(q.a),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Y),Vue.use(L.a),Vue.use($.a),Vue.use(C.a),Vue.use(j.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(b.a,{size:"large"}),Vue.use(A.a,M.a),Vue.axios.defaults.withCredentials=!0,r()(E).forEach(function(e){Vue.filter(e,E[e])}),S.beforeEach(function(e,t,n){var o=window.location.origin;o.indexOf("localhost"),localStorage.getItem("userInfo"),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:S,store:T,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var o={"./apps/customerApp/index.vue":["QHTa",0,7],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,4],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,15],"./apps/customerApp/memberShowSet.vue":["odfG",0,13],"./apps/index.vue":["K1Vb",0,16],"./business/contacts.vue":["/W60",0,3],"./business/index.vue":["jPcV",0,18],"./business/orgStructSet.vue":["OI5V",0,2],"./business/recycle.vue":["K8Yn",0,11],"./errorPage/403.vue":["6XGN",9],"./errorPage/404.vue":["AejC",10],"./errorPage/500.vue":["FskK",6],"./errorPage/gic-error.vue":["Q3j/",8],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,12],"./login/index.vue":["T+/8",0,5],"./overstore/index.vue":["Y55K",0,17],"./overstore/overStoreList.vue":["vuAV",0,14]};function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(o)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file \ 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}}([]); !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 \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2020-02-19 10:59:53 * @LastEditTime : 2020-02-19 11:18:54
--> -->
<!-- <!--
...@@ -123,7 +123,6 @@ export default { ...@@ -123,7 +123,6 @@ export default {
allowGuideMessage: false, allowGuideMessage: false,
allowGuideOnlineChat: false allowGuideOnlineChat: false
}, },
activeId: '1',
overTimeSeeFlag: false, overTimeSeeFlag: false,
// 会员分组设置 // 会员分组设置
conditionObj: { conditionObj: {
...@@ -136,14 +135,6 @@ export default { ...@@ -136,14 +135,6 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
total: 0, total: 0,
// 门店选择
appScene: 2,
defaultStoreList: [],
storeTreeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false // 是否单选
},
// 最近同步时间 // 最近同步时间
syncDate: '' syncDate: ''
}; };
...@@ -164,7 +155,7 @@ export default { ...@@ -164,7 +155,7 @@ export default {
getSyncDate(brandId) { getSyncDate(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId || brandId wxEnterpriseRelatedId: that.brandId || brandId
}; };
postRequest('/haoban-app-customer-web/memberGroup/get-group_last_syn_time', para) postRequest('/haoban-app-customer-web/memberGroup/get-group_last_syn_time', para)
.then(res => { .then(res => {
...@@ -188,7 +179,7 @@ export default { ...@@ -188,7 +179,7 @@ export default {
toSync: _debounce(function() { toSync: _debounce(function() {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId wxEnterpriseRelatedId: that.brandId
}; };
postRequest('/haoban-app-customer-web/memberGroup/syn-group', para) postRequest('/haoban-app-customer-web/memberGroup/syn-group', para)
.then(res => { .then(res => {
...@@ -226,7 +217,7 @@ export default { ...@@ -226,7 +217,7 @@ export default {
getGroupClassSet(brandId) { getGroupClassSet(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: brandId wxEnterpriseRelatedId: brandId
}; };
postRequest('/haoban-app-customer-web/memberGroup/get-member-group-setting', para) postRequest('/haoban-app-customer-web/memberGroup/get-member-group-setting', para)
.then(res => { .then(res => {
...@@ -250,7 +241,7 @@ export default { ...@@ -250,7 +241,7 @@ export default {
saveGroupSet() { saveGroupSet() {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId, wxEnterpriseRelatedId: that.brandId,
overTimeSeeFlag: that.overTimeSeeFlag == true ? 1 : 0 overTimeSeeFlag: that.overTimeSeeFlag == true ? 1 : 0
}; };
postRequest('/haoban-app-customer-web/memberGroup/save-member-group-setting', para) postRequest('/haoban-app-customer-web/memberGroup/save-member-group-setting', para)
...@@ -294,7 +285,7 @@ export default { ...@@ -294,7 +285,7 @@ export default {
getGroupClassify(brandId) { getGroupClassify(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: brandId wxEnterpriseRelatedId: brandId
}; };
postRequest('/haoban-app-customer-web/memberGroup/get-member-class-list', para) postRequest('/haoban-app-customer-web/memberGroup/get-member-class-list', para)
.then(res => { .then(res => {
...@@ -314,98 +305,13 @@ export default { ...@@ -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) { toChangeTemp(e, index, row) {
const that = this; const that = this;
console.log(e, index, row); console.log(e, index, row);
let para = { let para = {
brandId: that.brandId, wxEnterpriseRelatedId: that.brandId,
memberTagGroupId: row.memberTagGroupId, memberTagGroupId: row.memberTagGroupId,
isSendTemplate: row.isSendTemplate == true ? 1 : 0 isSendTemplate: row.isSendTemplate == true ? 1 : 0
}; };
...@@ -454,7 +360,7 @@ export default { ...@@ -454,7 +360,7 @@ export default {
getGroupList(brandId) { getGroupList(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: brandId, wxEnterpriseRelatedId: brandId,
memberGroupName: that.conditionObj.searchInput, memberGroupName: that.conditionObj.searchInput,
classifyName: that.conditionObj.classifyName, classifyName: that.conditionObj.classifyName,
effectiveStatus: that.conditionObj.effectiveStatus, effectiveStatus: that.conditionObj.effectiveStatus,
......
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
setData(type) { setData(type) {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId wxEnterpriseRelatedId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId // enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
}; };
let url; let url;
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
getCustomerSet(brandId) { getCustomerSet(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: brandId wxEnterpriseRelatedId: brandId
}; };
postRequest('/haoban-app-customer-web/customer/find-customer-setting', para) postRequest('/haoban-app-customer-web/customer/find-customer-setting', para)
.then(res => { .then(res => {
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
setData(type) { setData(type) {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId wxEnterpriseRelatedId: that.brandId
// enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId // enterpriseId: JSON.parse(localStorage.getItem('userInfo')).enterpriseId
}; };
let url; let url;
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
getShowSet(brandId) { getShowSet(brandId) {
const that = this; const that = this;
let para = { let para = {
brandId: brandId wxEnterpriseRelatedId: brandId
}; };
postRequest('/haoban-app-customer-web/customer/find-member-show-setting', para) postRequest('/haoban-app-customer-web/customer/find-member-show-setting', para)
.then(res => { .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