app.28085eaa.js 14 KB
(function(e){function n(n){for(var a,c,u=n[0],i=n[1],s=n[2],d=0,f=[];d<u.length;d++)c=u[d],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&f.push(r[c][0]),r[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);p&&p(n);while(f.length)f.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],a=!0,c=1;c<t.length;c++){var u=t[c];0!==r[u]&&(a=!1)}a&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var a={},c={app:0},r={app:0},o=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0016fa9e":"2aa0bb10","chunk-0b12dd42":"febed585","chunk-0c48f230":"32053df9","chunk-0f06fdd7":"ab7d605a","chunk-0ff5dc65":"b51a5b19","chunk-1c6484f2":"ddee01ae","chunk-1e6d1184":"39f566e8","chunk-24961c68":"45c21114","chunk-2f667172":"23ce31e3","chunk-3c366aec":"0f02b1a0","chunk-4433df89":"4fa21ae7","chunk-4eedda26":"721e68aa","chunk-50696e1c":"9fd7eda4","chunk-514e6b69":"4f714332","chunk-562dd8f6":"fecec649","chunk-742154c9":"076238bf","chunk-99a0db7e":"6e2abbbd","chunk-a9c17020":"1e106f77","chunk-c06b45d6":"a37939d2","chunk-c4b87bae":"22944b59","chunk-c9cb2a0e":"608c11f5"}[e]+".js"}function i(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-0016fa9e":1,"chunk-0b12dd42":1,"chunk-0c48f230":1,"chunk-0f06fdd7":1,"chunk-0ff5dc65":1,"chunk-1c6484f2":1,"chunk-1e6d1184":1,"chunk-24961c68":1,"chunk-2f667172":1,"chunk-3c366aec":1,"chunk-4433df89":1,"chunk-4eedda26":1,"chunk-50696e1c":1,"chunk-514e6b69":1,"chunk-562dd8f6":1,"chunk-742154c9":1,"chunk-99a0db7e":1,"chunk-a9c17020":1,"chunk-c06b45d6":1,"chunk-c4b87bae":1,"chunk-c9cb2a0e":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var a="css/"+({}[e]||e)+"."+{"chunk-0016fa9e":"259d320c","chunk-0b12dd42":"616099c3","chunk-0c48f230":"a9ab2fa7","chunk-0f06fdd7":"364c9329","chunk-0ff5dc65":"370fa892","chunk-1c6484f2":"1cb60e98","chunk-1e6d1184":"88c0a8ab","chunk-24961c68":"b9b15a63","chunk-2f667172":"900bf025","chunk-3c366aec":"80225d9e","chunk-4433df89":"aa9c18b4","chunk-4eedda26":"ecf61d31","chunk-50696e1c":"3f820666","chunk-514e6b69":"266754c9","chunk-562dd8f6":"6511fc89","chunk-742154c9":"ee4c9754","chunk-99a0db7e":"2b86d7c0","chunk-a9c17020":"31bbf709","chunk-c06b45d6":"dbd51de7","chunk-c4b87bae":"62959be1","chunk-c9cb2a0e":"579f4419"}[e]+".css",r=i.p+a,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===a||d===r))return n()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){s=f[u],d=s.getAttribute("data-href");if(d===a||d===r)return n()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=n,p.onerror=function(n){var a=n&&n.target&&n.target.src||r,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=a,delete c[e],p.parentNode.removeChild(p),t(o)},p.href=r;var l=document.getElementsByTagName("head")[0];l.appendChild(p)})).then((function(){c[e]=0})));var a=r[e];if(0!==a)if(a)n.push(a[2]);else{var o=new Promise((function(n,t){a=r[e]=[n,t]}));n.push(a[2]=o);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=u(e);var f=new Error;s=function(n){d.onerror=d.onload=null,clearTimeout(p);var t=r[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",f.name="ChunkLoadError",f.type=a,f.request=c,t[1](f)}r[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(n)},i.m=e,i.c=a,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)i.d(t,a,function(n){return e[n]}.bind(null,a));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=n,s=s.slice();for(var f=0;f<s.length;f++)n(s[f]);var p=d;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"35bc":function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var a=t("a1ec");function c(e){var n={args:e};return Object(a["a"])({url:"",method:"post",data:n})}},"56d7":function(e,n,t){"use strict";t.r(n);t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("2b0e"),c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},r=[],o=(t("c975"),t("ac1f"),t("466d"),t("1276"),t("96cf"),t("1da1")),u=(t("d3b7"),t("bc3a")),i=t.n(u);function s(e){var n=arguments.length>1&&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('<i class="weui-icon-warn">版本过低请升级</i>')}})}}))}})}))}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