Commit 59ac6cc7 by chenxin

fix: build

parent 445dbfcf
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.f4ec0add.css rel=prefetch><link href=/welfare/css/card-package~gic-card.78656863.css rel=prefetch><link href=/welfare/css/chunk-06bca770.c6118485.css rel=prefetch><link href=/welfare/css/chunk-08d82f95.4f59cbfb.css rel=prefetch><link href=/welfare/css/chunk-2896889d.074b78c5.css rel=prefetch><link href=/welfare/css/chunk-29caaa4b.221c4879.css rel=prefetch><link href=/welfare/css/chunk-422e5436.fc75a5d1.css rel=prefetch><link href=/welfare/css/chunk-4a3bda1e.e7f7b512.css rel=prefetch><link href=/welfare/css/chunk-4ce6396a.6670dfff.css rel=prefetch><link href=/welfare/css/chunk-5d5e8338.f5656323.css rel=prefetch><link href=/welfare/css/chunk-7f083f49.6bc0e84f.css rel=prefetch><link href=/welfare/css/chunk-7f6e53d4.9908b7cb.css rel=prefetch><link href=/welfare/css/chunk-858d08a4.4bcfd2a9.css rel=prefetch><link href=/welfare/css/chunk-f95812e2.e8ee9ba9.css rel=prefetch><link href=/welfare/css/gic-card.6ac11866.css rel=prefetch><link href=/welfare/js/card-package.be4b1df7.js rel=prefetch><link href=/welfare/js/card-package~gic-card.39be7d42.js rel=prefetch><link href=/welfare/js/chunk-06bca770.65fdcf59.js rel=prefetch><link href=/welfare/js/chunk-08d82f95.59a1a5de.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.7657b211.js rel=prefetch><link href=/welfare/js/chunk-2896889d.3623ee51.js rel=prefetch><link href=/welfare/js/chunk-29caaa4b.879253a4.js rel=prefetch><link href=/welfare/js/chunk-34bff564.88c35966.js rel=prefetch><link href=/welfare/js/chunk-422e5436.faec4584.js rel=prefetch><link href=/welfare/js/chunk-4a3bda1e.f8f59006.js rel=prefetch><link href=/welfare/js/chunk-4ce6396a.47f7be7b.js rel=prefetch><link href=/welfare/js/chunk-5d5e8338.6068764d.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.1aadcc25.js rel=prefetch><link href=/welfare/js/chunk-7f083f49.5ac2aab8.js rel=prefetch><link href=/welfare/js/chunk-7f6e53d4.c8549143.js rel=prefetch><link href=/welfare/js/chunk-858d08a4.e4401e85.js rel=prefetch><link href=/welfare/js/chunk-ad95361e.c9d31476.js rel=prefetch><link href=/welfare/js/chunk-f95812e2.b668ce3c.js rel=prefetch><link href=/welfare/js/gic-card.851891c3.js rel=prefetch><link href=/welfare/css/app.86e82f25.css rel=preload as=style><link href=/welfare/js/app.722f426a.js rel=preload as=script><link href=/welfare/js/chunk-vendors.a6adec24.js rel=preload as=script><link href=/welfare/css/app.86e82f25.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/people-selector.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.78.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.12.js></script><script src=/welfare/js/chunk-vendors.a6adec24.js></script><script src=/welfare/js/app.722f426a.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.f4ec0add.css rel=prefetch><link href=/welfare/css/card-package~gic-card.78656863.css rel=prefetch><link href=/welfare/css/chunk-06bca770.c6118485.css rel=prefetch><link href=/welfare/css/chunk-08d82f95.4f59cbfb.css rel=prefetch><link href=/welfare/css/chunk-2896889d.074b78c5.css rel=prefetch><link href=/welfare/css/chunk-29caaa4b.221c4879.css rel=prefetch><link href=/welfare/css/chunk-422e5436.fc75a5d1.css rel=prefetch><link href=/welfare/css/chunk-4a3bda1e.e7f7b512.css rel=prefetch><link href=/welfare/css/chunk-4ce6396a.6670dfff.css rel=prefetch><link href=/welfare/css/chunk-5d5e8338.f5656323.css rel=prefetch><link href=/welfare/css/chunk-7f083f49.6bc0e84f.css rel=prefetch><link href=/welfare/css/chunk-7f6e53d4.9908b7cb.css rel=prefetch><link href=/welfare/css/chunk-858d08a4.4bcfd2a9.css rel=prefetch><link href=/welfare/css/chunk-f95812e2.e8ee9ba9.css rel=prefetch><link href=/welfare/css/gic-card.6ac11866.css rel=prefetch><link href=/welfare/js/card-package.be4b1df7.js rel=prefetch><link href=/welfare/js/card-package~gic-card.39be7d42.js rel=prefetch><link href=/welfare/js/chunk-06bca770.65fdcf59.js rel=prefetch><link href=/welfare/js/chunk-08d82f95.59a1a5de.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.7657b211.js rel=prefetch><link href=/welfare/js/chunk-2896889d.3623ee51.js rel=prefetch><link href=/welfare/js/chunk-29caaa4b.879253a4.js rel=prefetch><link href=/welfare/js/chunk-34bff564.88c35966.js rel=prefetch><link href=/welfare/js/chunk-422e5436.faec4584.js rel=prefetch><link href=/welfare/js/chunk-4a3bda1e.f8f59006.js rel=prefetch><link href=/welfare/js/chunk-4ce6396a.47f7be7b.js rel=prefetch><link href=/welfare/js/chunk-5d5e8338.6068764d.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.1aadcc25.js rel=prefetch><link href=/welfare/js/chunk-7f083f49.5ac2aab8.js rel=prefetch><link href=/welfare/js/chunk-7f6e53d4.c8549143.js rel=prefetch><link href=/welfare/js/chunk-858d08a4.e4401e85.js rel=prefetch><link href=/welfare/js/chunk-ad95361e.c9d31476.js rel=prefetch><link href=/welfare/js/chunk-f95812e2.b668ce3c.js rel=prefetch><link href=/welfare/js/gic-card.e6a89d3f.js rel=prefetch><link href=/welfare/css/app.86e82f25.css rel=preload as=style><link href=/welfare/js/app.9e96396a.js rel=preload as=script><link href=/welfare/js/chunk-vendors.a6adec24.js rel=preload as=script><link href=/welfare/css/app.86e82f25.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/people-selector.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.78.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.12.js></script><script src=/welfare/js/chunk-vendors.a6adec24.js></script><script src=/welfare/js/app.9e96396a.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],d=0,l=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&l.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"39be7d42","card-package":"be4b1df7","gic-card":"851891c3","chunk-08d82f95":"59a1a5de","chunk-0d4ebdfa":"7657b211","chunk-2896889d":"3623ee51","chunk-29caaa4b":"879253a4","chunk-06bca770":"65fdcf59","chunk-4a3bda1e":"f8f59006","chunk-34bff564":"88c35966","chunk-422e5436":"faec4584","chunk-4ce6396a":"47f7be7b","chunk-5d5e8338":"6068764d","chunk-6287d3af":"1aadcc25","chunk-7f083f49":"5ac2aab8","chunk-7f6e53d4":"c8549143","chunk-858d08a4":"e4401e85","chunk-ad95361e":"c9d31476","chunk-f95812e2":"b668ce3c"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-08d82f95":1,"chunk-2896889d":1,"chunk-29caaa4b":1,"chunk-06bca770":1,"chunk-4a3bda1e":1,"chunk-422e5436":1,"chunk-4ce6396a":1,"chunk-5d5e8338":1,"chunk-7f083f49":1,"chunk-7f6e53d4":1,"chunk-858d08a4":1,"chunk-f95812e2":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"78656863","card-package":"f4ec0add","gic-card":"6ac11866","chunk-08d82f95":"4f59cbfb","chunk-0d4ebdfa":"31d6cfe0","chunk-2896889d":"074b78c5","chunk-29caaa4b":"221c4879","chunk-06bca770":"c6118485","chunk-4a3bda1e":"e7f7b512","chunk-34bff564":"31d6cfe0","chunk-422e5436":"fc75a5d1","chunk-4ce6396a":"6670dfff","chunk-5d5e8338":"f5656323","chunk-6287d3af":"31d6cfe0","chunk-7f083f49":"6bc0e84f","chunk-7f6e53d4":"9908b7cb","chunk-858d08a4":"4bcfd2a9","chunk-ad95361e":"31d6cfe0","chunk-f95812e2":"e8ee9ba9"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){s=l[o],d=s.getAttribute("data-href");if(d===r||d===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=o(e);var l=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}c[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(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"1b26":function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0}},d={getRelationId:"/notice-widget/generate-relation-id",getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),d=Object(a["a"])(d,c["d"]),t["a"]=o(o(o({},u),d),s);c["d"]},"3ba8":function(e,t,n){},"3f0c":function(e,t,n){e.exports=n.p+"img/w-card-package.31146dff.svg"},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[]},mutations:{updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"46f7":function(e,t,n){e.exports=n.p+"img/w-virtual-gifts.99089b8c.svg"},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.f14bcf5b.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},d=[],l=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=l,f=n("2877"),h=Object(f["a"])(p,s,d,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},S=[],x={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},P=x,C=Object(f["a"])(P,j,S,!1,null,null,null),A=C.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],E={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},D=E,L=(n("89c4"),Object(f["a"])(D,I,_,!1,null,"e0d88100",null)),$=L.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},M=[],T={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},F=T,U=Object(f["a"])(F,N,M,!1,null,null,null),H=U.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],q=[],J={},W=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){q=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){J=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){q=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){J=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=q.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==q.length?window.location.href="".concat(W,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:q[0]}),n(q[0]))}function ae(e){return!!J[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,d=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(q=q.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(d.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},"5a97":function(e,t,n){},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},7769:function(e,t,n){var r={"./more.svg":"bf71","./w-card-package.svg":"3f0c","./w-gic-card.svg":"903e","./w-real-gifts.svg":"4c57","./w-virtual-gifts.svg":"46f7"};function a(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=c,e.exports=a,a.id="7769"},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.fbf4ef92.svg"},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){}a.a.defaults.baseURL=u["e"];var d=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var d={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(d=Object.assign(d,e),e.export)d.params=t.listParams,d.data=t.excel;else switch(d.useFormData&&(t=i.a.stringify(t)),d.method.toLowerCase()){case"get":d.params=t;break;case"post":d.data=t;break;default:d.data=t;break}return new Promise((function(e,t){a()(d).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(d.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1eaea93a.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,l=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;l&&(i+=" show-title"),a["MessageBox"].confirm(e,l,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(d(d({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=d({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(l.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a},b=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();return r>=10&&(r="0"+r),n+":"+r}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible,"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:e.toAppCenter}},[e._v(" 返回应用中心")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},d=[];n("7514"),n("a481");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,d,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("el-popover",{attrs:{placement:"left-end",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",e._l(e.wfTypes,(function(t,a){return r("ul",{key:a,staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:"w-"+e.project!=t.code,expression:"('w-' + project) != item.code"}]},[r("router-link",{attrs:{to:t.target}},[r("img",{attrs:{src:n("7769")("./"+t.code+".svg"),width:"16"}}),e._v(e._s(t.title))])],1)])})),0),r("div",{staticClass:"switch-page",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]):e._e()},y=[],w=n("f9e4"),k={name:"SwitchPage",data:function(){return{wfTypes:w["b"]}},computed:{project:function(){return this.$store.state.project}}},O=k,j=(n("fac9"),n("87d1"),Object(m["a"])(O,v,y,!1,null,"40388a5c",null)),S=j.exports,x=n("cf45"),P=n("2934");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=P["a"].getSubappList,_={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{toAppCenter:function(){window.location.href="/app-center/applyIndex"},handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,I();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(x["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:A(A({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}})},E=_,D=(n("d701"),Object(m["a"])(E,a,c,!1,null,"59bd0752",null)),L=D.exports,$=[{path:"/gic-card",component:L,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"f483"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"0b1f"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"773f"))},meta:{path:"/gic-card/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f9"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"afae"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"afae"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"125f"))}}]}],N=[{path:"/card-package",component:L,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"9922"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"6de5"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"6de5"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"5a8b"))}}]}],M=[{path:"/gift-manage",component:L,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return Promise.all([n.e("chunk-29caaa4b"),n.e("chunk-06bca770")]).then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-422e5436").then(n.bind(null,"ffec"))}}]}],T=[{path:"/gift-manage",component:L,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return Promise.all([n.e("chunk-29caaa4b"),n.e("chunk-4a3bda1e")]).then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-4ce6396a").then(n.bind(null,"a0f2"))}}]}],F=[{path:"/gift-manage",component:L,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-7f083f49").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:L,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/settinge/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/settinge/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-ad95361e").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-f95812e2").then(n.bind(null,"1420"))},meta:{type:"add",path:"/settinge/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-f95812e2").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/settinge/pickup-list"}}]}],U=[{path:"/performance",component:L,redirect:"/performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-2896889d").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-08d82f95").then(n.bind(null,"de2d"))}},{path:"refund",component:function(){return n.e("chunk-5d5e8338").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-858d08a4").then(n.bind(null,"0035"))}}]}],H=[].concat(Object(r["a"])($),Object(r["a"])(N),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(U)),B=[{path:"/",component:L,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-7f6e53d4").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],R=[].concat(B,Object(r["a"])(H))},d701:function(e,t,n){"use strict";n("1b26")},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(d){return n?{y:e,h:""}:e}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f8f5:function(e,t,n){},f9e4:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));n("6c7b"),Array(31).fill().map((function(e,t){return{label:"".concat(t+1,"号"),value:"".concat(t+1)}})),Array(28).fill().map((function(e,t){return{label:"".concat(t+1,"号"),value:"".concat(t+1)}})).concat({label:"月底",value:"0"}),Array(12).fill().map((function(e,t){return{label:"".concat(t+1,"月"),value:"".concat(t+1)}}));var r=[{title:"实物礼品",desc:"文案描述文案描述文案描述",target:"/gift-manage/real-gift",code:"w-real-gifts"},{title:"虚拟礼品",desc:"文案描述文案描述文案描述",target:"/gift-manage/virtual-gift",code:"w-virtual-gifts"},{title:"GIC 卡券",desc:"文案描述文案描述文案描述",target:"/gic-card/list",code:"w-gic-card"},{title:"GIC 卡券包",desc:"文案描述文案描述文案描述",target:"/card-package/list",code:"w-card-package"}],a={1:"增加",2:"减少"}},fac9:function(e,t,n){"use strict";n("5a97")}});
\ No newline at end of file
(function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],d=0,l=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&l.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"39be7d42","card-package":"be4b1df7","gic-card":"e6a89d3f","chunk-08d82f95":"59a1a5de","chunk-0d4ebdfa":"7657b211","chunk-2896889d":"3623ee51","chunk-29caaa4b":"879253a4","chunk-06bca770":"65fdcf59","chunk-4a3bda1e":"f8f59006","chunk-34bff564":"88c35966","chunk-422e5436":"faec4584","chunk-4ce6396a":"47f7be7b","chunk-5d5e8338":"6068764d","chunk-6287d3af":"1aadcc25","chunk-7f083f49":"5ac2aab8","chunk-7f6e53d4":"c8549143","chunk-858d08a4":"e4401e85","chunk-ad95361e":"c9d31476","chunk-f95812e2":"b668ce3c"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-08d82f95":1,"chunk-2896889d":1,"chunk-29caaa4b":1,"chunk-06bca770":1,"chunk-4a3bda1e":1,"chunk-422e5436":1,"chunk-4ce6396a":1,"chunk-5d5e8338":1,"chunk-7f083f49":1,"chunk-7f6e53d4":1,"chunk-858d08a4":1,"chunk-f95812e2":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"78656863","card-package":"f4ec0add","gic-card":"6ac11866","chunk-08d82f95":"4f59cbfb","chunk-0d4ebdfa":"31d6cfe0","chunk-2896889d":"074b78c5","chunk-29caaa4b":"221c4879","chunk-06bca770":"c6118485","chunk-4a3bda1e":"e7f7b512","chunk-34bff564":"31d6cfe0","chunk-422e5436":"fc75a5d1","chunk-4ce6396a":"6670dfff","chunk-5d5e8338":"f5656323","chunk-6287d3af":"31d6cfe0","chunk-7f083f49":"6bc0e84f","chunk-7f6e53d4":"9908b7cb","chunk-858d08a4":"4bcfd2a9","chunk-ad95361e":"31d6cfe0","chunk-f95812e2":"e8ee9ba9"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){s=l[o],d=s.getAttribute("data-href");if(d===r||d===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=o(e);var l=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}c[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(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"1b26":function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0}},d={getRelationId:"/notice-widget/generate-relation-id",getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),d=Object(a["a"])(d,c["d"]),t["a"]=o(o(o({},u),d),s);c["d"]},"3ba8":function(e,t,n){},"3f0c":function(e,t,n){e.exports=n.p+"img/w-card-package.31146dff.svg"},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[]},mutations:{updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"46f7":function(e,t,n){e.exports=n.p+"img/w-virtual-gifts.99089b8c.svg"},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.f14bcf5b.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},d=[],l=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=l,f=n("2877"),h=Object(f["a"])(p,s,d,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},S=[],x={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},P=x,C=Object(f["a"])(P,j,S,!1,null,null,null),A=C.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],E={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},D=E,L=(n("89c4"),Object(f["a"])(D,I,_,!1,null,"e0d88100",null)),$=L.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},M=[],T={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},F=T,U=Object(f["a"])(F,N,M,!1,null,null,null),H=U.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],q=[],J={},W=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){q=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){J=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){q=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){J=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=q.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==q.length?window.location.href="".concat(W,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:q[0]}),n(q[0]))}function ae(e){return!!J[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,d=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(q=q.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(d.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},"5a97":function(e,t,n){},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},7769:function(e,t,n){var r={"./more.svg":"bf71","./w-card-package.svg":"3f0c","./w-gic-card.svg":"903e","./w-real-gifts.svg":"4c57","./w-virtual-gifts.svg":"46f7"};function a(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=c,e.exports=a,a.id="7769"},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.fbf4ef92.svg"},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){}a.a.defaults.baseURL=u["e"];var d=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var d={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(d=Object.assign(d,e),e.export)d.params=t.listParams,d.data=t.excel;else switch(d.useFormData&&(t=i.a.stringify(t)),d.method.toLowerCase()){case"get":d.params=t;break;case"post":d.data=t;break;default:d.data=t;break}return new Promise((function(e,t){a()(d).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(d.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1eaea93a.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,l=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;l&&(i+=" show-title"),a["MessageBox"].confirm(e,l,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(d(d({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=d({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(l.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a},b=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();return r>=10&&(r="0"+r),n+":"+r}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible,"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:e.toAppCenter}},[e._v(" 返回应用中心")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},d=[];n("7514"),n("a481");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,d,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("el-popover",{attrs:{placement:"left-end",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",e._l(e.wfTypes,(function(t,a){return r("ul",{key:a,staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:"w-"+e.project!=t.code,expression:"('w-' + project) != item.code"}]},[r("router-link",{attrs:{to:t.target}},[r("img",{attrs:{src:n("7769")("./"+t.code+".svg"),width:"16"}}),e._v(e._s(t.title))])],1)])})),0),r("div",{staticClass:"switch-page",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]):e._e()},y=[],w=n("f9e4"),k={name:"SwitchPage",data:function(){return{wfTypes:w["b"]}},computed:{project:function(){return this.$store.state.project}}},O=k,j=(n("fac9"),n("87d1"),Object(m["a"])(O,v,y,!1,null,"40388a5c",null)),S=j.exports,x=n("cf45"),P=n("2934");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=P["a"].getSubappList,_={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{toAppCenter:function(){window.location.href="/app-center/applyIndex"},handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,I();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(x["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:A(A({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}})},E=_,D=(n("d701"),Object(m["a"])(E,a,c,!1,null,"59bd0752",null)),L=D.exports,$=[{path:"/gic-card",component:L,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"f483"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"0b1f"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"773f"))},meta:{path:"/gic-card/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f9"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"5450"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"afae"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"afae"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"125f"))}}]}],N=[{path:"/card-package",component:L,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"9922"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"6de5"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"6de5"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"5a8b"))}}]}],M=[{path:"/gift-manage",component:L,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return Promise.all([n.e("chunk-29caaa4b"),n.e("chunk-06bca770")]).then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-422e5436").then(n.bind(null,"ffec"))}}]}],T=[{path:"/gift-manage",component:L,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return Promise.all([n.e("chunk-29caaa4b"),n.e("chunk-4a3bda1e")]).then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-4ce6396a").then(n.bind(null,"a0f2"))}}]}],F=[{path:"/gift-manage",component:L,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-7f083f49").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:L,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/settinge/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/settinge/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-ad95361e").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-f95812e2").then(n.bind(null,"1420"))},meta:{type:"add",path:"/settinge/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-f95812e2").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/settinge/pickup-list"}}]}],U=[{path:"/performance",component:L,redirect:"/performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-2896889d").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-08d82f95").then(n.bind(null,"de2d"))}},{path:"refund",component:function(){return n.e("chunk-5d5e8338").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-858d08a4").then(n.bind(null,"0035"))}}]}],H=[].concat(Object(r["a"])($),Object(r["a"])(N),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(U)),B=[{path:"/",component:L,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-7f6e53d4").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],R=[].concat(B,Object(r["a"])(H))},d701:function(e,t,n){"use strict";n("1b26")},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(d){return n?{y:e,h:""}:e}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f8f5:function(e,t,n){},f9e4:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));n("6c7b"),Array(31).fill().map((function(e,t){return{label:"".concat(t+1,"号"),value:"".concat(t+1)}})),Array(28).fill().map((function(e,t){return{label:"".concat(t+1,"号"),value:"".concat(t+1)}})).concat({label:"月底",value:"0"}),Array(12).fill().map((function(e,t){return{label:"".concat(t+1,"月"),value:"".concat(t+1)}}));var r=[{title:"实物礼品",desc:"文案描述文案描述文案描述",target:"/gift-manage/real-gift",code:"w-real-gifts"},{title:"虚拟礼品",desc:"文案描述文案描述文案描述",target:"/gift-manage/virtual-gift",code:"w-virtual-gifts"},{title:"GIC 卡券",desc:"文案描述文案描述文案描述",target:"/gic-card/list",code:"w-gic-card"},{title:"GIC 卡券包",desc:"文案描述文案描述文案描述",target:"/card-package/list",code:"w-card-package"}],a={1:"增加",2:"减少"}},fac9:function(e,t,n){"use strict";n("5a97")}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -29,10 +29,11 @@ let card = {
couponLogPage: '/coupon/coupon-log-page', // 卡券领取列表
giveLogList: '/coupon-log/coupon-give-log-page', // 卡券转赠记录
checkDemoCode: {
// 根据demo code TODO:
// 根据demo code
url: '/coupon/check-demo-code',
alertError: false
},
getMallShopList: '/area/all-mall-shop', // 获取微盟店铺
couponlogList: {
// 会员领取记录
url: '/coupon-log/coupon-log-page',
......
import { reRreshRoute, formatDateTimeByType, deepClone } from '@/utils';
import api from '@/api/gic-card';
import commonApi from '@/api/common';
import { isEmpty } from '@/utils/index';
import { showConfirm } from '@/utils/common';
import { predefineColors, startDayOptionsDay, startDayOptionsMonth } from '@/config/mapping/gic-card';
......@@ -10,8 +9,7 @@ import sendPreview from './module/send-preview';
import importCode from './module/import-code';
import commomApi from '@/api/common.js';
const { uploadUrl } = commomApi;
const { addCard, copyCard, checkDemoCode } = api;
const { getMallShopList } = commonApi;
const { addCard, copyCard, checkDemoCode, getMallShopList } = api;
// 禁止回车
const preventEnter = function(e) {
......
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