(function(e){function n(n){for(var a,c,u=n[0],i=n[1],s=n[2],d=0,f=[];d1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",c={corpId:"wwd1cdbca7b8b2b6c4",agentId:"1000015",url:"http://139.155.48.151:8085"+e};return"post"==a?new Promise((function(e,r){i()({url:c.url,method:a,headers:t,data:n}).then((function(n){e(n.data)})).catch((function(e){r(e)}))})):"get"==a?new Promise((function(e,r){i()({url:c.url,method:a,headers:t,params:n}).then((function(n){e(n.data)})).catch((function(e){r(e)}))})):void 0}var d=t("4328"),f=t.n(d),p=t("8c4f"),l=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"main"},[t("div",{staticClass:"lists"},e._l(e.list.main,(function(n,a){return t("div",{key:a},[t("div",{staticClass:"list",on:{click:function(t){return e.listClick(n.redirect)}}},[t("div",[t("img",{staticClass:"list-logo",attrs:{src:n.logoUrl,alt:""}})]),t("div",{staticClass:"list-infos"},[t("div",{staticClass:"list-info-title"},[e._v(e._s(n.name))]),t("div",{staticClass:"list-info-dsc"},[e._v(e._s(n.dsc))])])])])})),0),t("div",{staticClass:"menus"},[t("div",{staticClass:"menu",on:{click:e.buttonMainMarketingClick}},[e._v("精准营销")]),t("div",{staticClass:"menu activeMenu",on:{click:e.buttonSingleMarketingClick}},[e._v("一对一营销侧边栏")])])])},h=[],g=(t("35bc"),{name:"home",data:function(){return{list:{main:[{name:"顾客画像",dsc:"亿百分会员画像,通过一方消费者数据结合三方数据为营业员展示顾客特点",redirect:"Discount",logoUrl:"/mainSale/test-city.png"},{name:"优惠券推送",dsc:"亿百分会员画像,通过一方消费者数据结合三方数据为营业员展示顾客特点",redirect:"Discount",logoUrl:"/mainSale/test-city.png"},{name:"爆品推送",dsc:"亿百分会员画像,通过一方消费者数据结合三方数据为营业员展示顾客特点",redirect:"Discount",logoUrl:"/mainSale/test-city.png"}]}}},methods:{listClick:function(e){this.$router.push(e)},buttonSingleMarketingClick:function(){},buttonMainMarketingClick:function(){this.$router.push("MainSale")},testButton:function(e){}}}),m=g,b=(t("e928"),t("c81e"),t("2877")),k=Object(b["a"])(m,l,h,!1,null,"f3bda6d2",null),v=k.exports;a["a"].use(p["a"]);var S=[{path:"/",name:"home",component:v},{path:"/turntableDetail",name:"turntableDetail",component:function(){return t.e("chunk-3c366aec").then(t.bind(null,"32cd"))}},{path:"/couponDetail",name:"couponDetail",component:function(){return t.e("chunk-0b12dd42").then(t.bind(null,"1f06"))}},{path:"/createActive",name:"createActive",component:function(){return t.e("chunk-4eedda26").then(t.bind(null,"339a"))}},{path:"/activeList",name:"activeList",component:function(){return t.e("chunk-0016fa9e").then(t.bind(null,"f0b1"))}},{path:"/createBigWheelActive",name:"createBigWheelActive",component:function(){return t.e("chunk-a9c17020").then(t.bind(null,"18e1"))}},{path:"/discount",name:"Discount",component:function(){return t.e("chunk-4433df89").then(t.bind(null,"2fa1"))}},{path:"/mainSale",name:"MainSale",component:function(){return t.e("chunk-514e6b69").then(t.bind(null,"200e"))}},{path:"/changeCounter",name:"changeCounter",component:function(){return t.e("chunk-0c48f230").then(t.bind(null,"a870"))}},{path:"/counterInfo",name:"counterInfo",component:function(){return t.e("chunk-24961c68").then(t.bind(null,"63f3"))}},{path:"/counterMaintain",name:"counterMaintain",component:function(){return t.e("chunk-99a0db7e").then(t.bind(null,"8f20"))}},{path:"/goodManage",name:"goodManage",component:function(){return t.e("chunk-c4b87bae").then(t.bind(null,"6cc5"))}},{path:"/goodGrounding",name:"goodGrounding",component:function(){return t.e("chunk-742154c9").then(t.bind(null,"5463"))}},{path:"/profitList",name:"profitList",component:function(){return t.e("chunk-0ff5dc65").then(t.bind(null,"0f14"))}},{path:"/actTemplate",name:"ActTemplate",component:function(){return t.e("chunk-562dd8f6").then(t.bind(null,"71fc"))}},{path:"/me",name:"Me",component:function(){return t.e("chunk-0f06fdd7").then(t.bind(null,"1a17"))}},{path:"/task",name:"Task",component:function(){return t.e("chunk-c06b45d6").then(t.bind(null,"0c1b"))}},{path:"/taskList",name:"taskList",component:function(){return t.e("chunk-1c6484f2").then(t.bind(null,"9678"))}},{path:"/newMemberTask",name:"newMemberTask",component:function(){return t.e("chunk-1e6d1184").then(t.bind(null,"4261"))}},{path:"/case",name:"case",component:function(){return t.e("chunk-2f667172").then(t.bind(null,"1154"))}},{path:"/caseDetail",name:"caseDetail",component:function(){return t.e("chunk-c9cb2a0e").then(t.bind(null,"c21b"))}},{path:"/newInfo",name:"newInfo",component:function(){return t.e("chunk-50696e1c").then(t.bind(null,"f01a"))}}],y=new p["a"]({mode:"history",base:"/",routes:S}),w=y,C={corpId:"wwd1cdbca7b8b2b6c4",agentId:"1000015"};function A(){return M.apply(this,arguments)}function M(){return M=Object(o["a"])(regeneratorRuntime.mark((function e(){var n,t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={corpId:C.corpId,agentId:C.agentId},e.next=3,s("/workWx/common/getToken",f.a.stringify(n)).then((function(e){"success"==e.result?sessionStorage.setItem("XToken",e.data):t.$message({message:e.errorMsg,type:"error"})})).catch((function(e){console.log("!==>getXToken: err:",e)}));case 3:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}a["a"].prototype.getAgentAuth=function(){var e=this,n={pageUrl:encodeURIComponent(location.href.split("#")[0])},t={token:sessionStorage.getItem("XToken"),corpId:C.corpId,agentId:C.agentId};s("/workWx/auth/base/getJsSdkSignature",f.a.stringify(n),t).then((function(n){if("success"==n.result){var a=n.data;wx.config({beta:!0,debug:!1,appId:a.jsApiSignature.appId,timestamp:a.jsApiSignature.timestamp,nonceStr:a.jsApiSignature.nonceStr,signature:a.jsApiSignature.signature,jsApiList:["agentConfig"]}),wx.ready((function(){wx.error((function(e){alert("JS-SDK配置信息验证失败 \r\n"+JSON.stringify(e))})),wx.checkJsApi({jsApiList:["agentConfig","sendChatMessage"],success:function(e){if("checkJsApi:ok"!=e.errMsg)return alert("JS-SDK接口检测失败:"+JSON.stringify(e)),!1;s("/workWx/auth/base/getAgentJsSdkSignature",f.a.stringify(data),t).then((function(e){if("success"==e.result){var n=e.data;wx.agentConfig({corpid:n.agentJsApiSignature.appId,agentid:n.agentId,timestamp:n.agentJsApiSignature.timestamp,nonceStr:n.agentJsApiSignature.nonceStr,signature:n.agentJsApiSignature.signature,jsApiList:["sendChatMessage"],success:function(e){},fail:function(e){e.errMsg.indexOf("is not a function")>-1&&alert('版本过低请升级')}})}}))}})}))}else e.$message({type:"error",message:n.errorMsg})})).catch((function(e){console.log(e,"err")}))},A();var j={name:"App"},I=j,O=(t("5c0b"),Object(b["a"])(I,c,r,!1,null,null,null)),x=O.exports,U=t("2f62");a["a"].use(U["a"]);var J=new U["a"].Store({state:{},mutations:{},actions:{},modules:{}}),_=(t("60d9"),t("b970"));t("157a");a["a"].config.productionTip=!1,a["a"].use(_["a"]);var D=p["a"].prototype.push;p["a"].prototype.push=function(e){return D.call(this,e).catch((function(e){return e}))},new a["a"]({router:w,store:J,render:function(e){return e(x)}}).$mount("#app")},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),c=t.n(a);c.a},"60d9":function(e,n){var t=32;function a(){var e=document.documentElement.clientWidth/375;document.documentElement.style.fontSize=t*Math.min(e,2)+"px"}a(),window.onresize=function(){a()}},"8c7d":function(e,n,t){},"9a6d":function(e,n,t){},"9c0c":function(e,n,t){},a1ec:function(e,n,t){"use strict";t("99af"),t("fb6a"),t("d3b7");var a=t("bc3a"),c=t.n(a),r=t("8237"),o=t.n(r),u="/api",i=(console.log.bind(console),function(e,n){var t=e.appUser,a=e.appCode,c=e.ts,r=JSON.parse(JSON.stringify(e.args)),o=n,u="";for(var i in r)u+=encodeURIComponent(i)+"%3D"+encodeURIComponent(r[i])+"%26";return u=u.slice(0,-3),u+="&appUser=".concat(t,"&appCode=").concat(a,"&").concat(c).concat(o),u}),s={appUser:"YBF001",ver:"v2.17",appSecret:"t04yYm6gjsuHeehxOxojtmiwlYfXY8Zkdowf"},d=c.a.create({baseURL:u,timeout:2e4});d.interceptors.request.use((function(e){var n=e.method;if("post"===n){var t=JSON.parse(JSON.stringify(e.data)),a={appUser:s.appUser,appCode:t.args.appCode,ts:"1563355520",ver:s.ver,args:t.args};delete a.args.appCode;var c={appUser:a.appUser,appCode:a.appCode,ts:a.ts,sign:o()(i(a,s.appSecret)),ver:a.ver,args:a.args};e.data=c}if("get"===n){var r=JSON.parse(JSON.stringify(e.params)),u={appUser:s.appUser,appCode:r.args.appCode,ts:String(Date.parse(new Date)),ver:s.ver,args:r.args};delete u.args.appCode;var d={appUser:u.appUser,appCode:u.appCode,ts:u.ts,sign:o()(i(u,s.appSecret)),ver:u.ver,args:u.args};e.params=d}return e}),(function(e){Promise.reject(e)})),d.interceptors.response.use((function(e){var n=e.data;return n}),(function(e){return Promise.reject(e)})),n["a"]=d},c81e:function(e,n,t){"use strict";var a=t("9a6d"),c=t.n(a);c.a},e928:function(e,n,t){"use strict";var a=t("8c7d"),c=t.n(a);c.a}}); //# sourceMappingURL=app.28085eaa.js.map