Commit 12435029 by 无尘

fix: 修改公共 footer

parent 89ec1499
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.0af35d8e4242330728345a53e1f82704.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.03.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.623c8ecd27015f593669.js></script><script type=text/javascript src=./static/js/vendor.8455def81090347f10ce.js></script><script type=text/javascript src=./static/js/app.cd37bb64acc000bd2918.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.c1e16675e6feec4dd571c42aecf891c1.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.b7ede7d98fa4613841c5.js></script><script type=text/javascript src=./static/js/vendor.8455def81090347f10ce.js></script><script type=text/javascript src=./static/js/app.cd37bb64acc000bd2918.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([3],{J3un:function(t,e){},PD7L:function(t,e){},Qg7P:function(t,e){},SKuv:function(t,e){},TQvf:function(t,e,a){
/*!
* clipboard.js v2.0.4
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
var i;i=function(){return function(t){var e={};function a(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),r=o(a(1)),s=o(a(3)),c=o(a(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(a),i.listenClick(t),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.default),n(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===i(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,c.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach(function(t){a=a&&!!document.queryCommandSupported(t)}),a}}]),e}();function d(t,e){var a="data-clipboard-"+t;if(e.hasAttribute(a))return e.getAttribute(a)}t.exports=l},function(t,e,a){"use strict";var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),s=a(2),c=(i=s)&&i.__esModule?i:{default:i};var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return r(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=a+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":n(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=o},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),n=document.createRange();n.selectNodeContents(t),i.removeAllRanges(),i.addRange(n),e=i.toString()}return e}},function(t,e){function a(){}a.prototype={on:function(t,e,a){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var i=this;function n(){i.off(t,n),e.apply(a,arguments)}return n._=e,this.on(t,n,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),i=0,n=a.length;i<n;i++)a[i].fn.apply(a[i].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),i=a[t],n=[];if(i&&e)for(var r=0,s=i.length;r<s;r++)i[r].fn!==e&&i[r].fn._!==e&&n.push(i[r]);return n.length?a[t]=n:delete a[t],this}},t.exports=a},function(t,e,a){var i=a(5),n=a(6);t.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(a))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(i.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,a)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,a)})}}}(t,e,a);if(i.string(t))return function(t,e,a){return n(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,a){var i=a(7);function n(t,e,a,n,r){var s=function(t,e,a,n){return function(a){a.delegateTarget=i(a.target,e),a.delegateTarget&&n.call(t,a)}}.apply(this,arguments);return t.addEventListener(a,s,r),{destroy:function(){t.removeEventListener(a,s,r)}}}t.exports=function(t,e,a,i,r){return"function"==typeof t.addEventListener?n.apply(null,arguments):"function"==typeof a?n.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return n(t,e,a,i,r)}))}},function(t,e){var a=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==a;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])},t.exports=i()},UCGX:function(t,e){},Vo6M:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA/VJREFUSA2VVt9rHFUU/s7Mzm5X22wbbNxsE2ljwWpoaSsqCAVFxT9A44OgLz70R9qkefBRGkFpn9okJYVW33yL+iqCVkUQBGmhSP2BMTVmk01qmiJtQpOdmeN3Np24zUw2kwu79557vnO/c849c2YEDUbniGbnpnEMii4FOkWRhWCcJl94Hob/PiZjDcwTVZK4y83281ryQ1xWxZ4kjAjucb+30iuXkvRr7SUS7h7S3LziKsmeWssw2nddvDR5Qr6J5PVmJwkwD7ydhsxsgxCnk85Yay+RECHvLe1QPFsc0GfSwmOEpYv6kAr2pj3AcLzPQ2nxMUJUWSQKN+0BhmP6UzsYI2Tpb90ImWEZYSGtTYwwUDyR1ngFx0fnhW81syI3WMQIGeGbDfCJKjaFJ0d/xsFE5arNGCHvb3YVJpUYuqikAcYJBR+wfc2kMY4wvMMPp7plIpIbzYmdpnVA+5ims40MIx3JxtnedkbyenM8QlpIHp/Qk1SpJWEqxyJHEiM0ZWlID2iIrxlpcwSOzYLLlR68IiLa36/OR80oaRXbeWguVFT5m2trQvnKYalGtmsSGqA4qKdYRP0RODY76Jrukc86zmhhIYv9dK5pNcZ1cC+o4trMu3LTdIkpjYyYrtFoHZsFP1ZO4POOi1qY93AoIjMCz8VvPLgWFZv7Jvat5+x1Z2c0JGR0L8aIbEPAdovj73O1sIADlFcyxTZXLvfKH07mwcfED7DXXnuJ3aHtY20O7uIUjd9JJAR+YmVeuQR9jJgt9RhmJaz55C/PkS4Mkb3r4PEVwrYRzYfTeJlRvUayN5iifARePTOcr2zPCsRyxO4UMJVTvgM/WMJt07mC2aoD9QJI6KBoqZUQj2RUVXYM4XhQwXv0druBU4x/DMNocjWsh78me+SXervxPrHOU+s+vL9bJHyajuYypfPoJdG5evB6axJtMoxmsWSl4fhoK55VcTwE/MyanToss7sG9NFFF9vUh1QVLYa3RyXDTL9uwkYGHew0vOdjbhFoDeg5xQ6WP9yAl8KmUQ3Rwqh2cg34tX9kBHMOtTuWxfT/JHy1a0TdLf+izDc1OeuGe79inf8r17RWTAUPY/ZYLN9DnU2KZcsPFRy53i9LOQfX6vGBj1JpWNtZlcX6/Yzi9+vdwkJlNdUr0q5Z+2dKg/r8jZMy4+VxNXrQmdCHg0Xsv5/mWmReDr9O9OFPO9si/JSk1G9wKDazCL5sHdS3ykdlMrcN37EKx5i6O47DYhLM884mCk34vtwto9ZvjYEYfsMP6+bbPvZR2sOGvYtG7bynImWrrmYitxKe55yhbolR2Ff3Hepvcj3BQy5MnZTas2nnNRr/AYSgULGfxss8AAAAAElFTkSuQmCC"},Y3tI:function(t,e){},ZnPx:function(t,e){},bIhT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),r=a("P9l9"),s=a("Ch4/"),c={name:"game-select",props:{value:{type:[String,Array,Object],default:function(){return[]}}},data:function(){return{caseValue:[],options:[{gameType:1,id:1,gameTypeName:"大转盘",label:"大转盘",children:[]},{gameType:2,id:2,gameTypeName:"刮刮卡",label:"刮刮卡",children:[]},{gameType:3,id:3,gameTypeName:"拼图游戏",label:"拼图游戏",children:[]},{gameType:4,id:4,gameTypeName:"找你马",label:"找你马",children:[]},{gameType:5,id:5,gameTypeName:"口令福利",label:"口令福利",children:[]}],props:{label:"label",children:"children",value:"id"}}},methods:{handleChange:function(t){var e=this;e.$emit("input",t),e.options.forEach(function(a){2==t.length&&t[0]==a.id&&a.children.forEach(function(a){t[1]==a.gameId&&e.$emit("changeGame",a.gameName,a.gameUrl)})})},expandChange:function(t){this.getContent(t[0])},getContent:function(t){var e=this,a={gameType:t};Object(r.a)("/sharing-core-web/list-game",a).then(function(a){var i=a.data;if(1==i.errorCode)return i.result&&i.result.length&&i.result.forEach(function(t){t.id=t.gameId,t.label=t.gameName}),e.options.forEach(function(e){e.id==t&&(e.children=i.result)}),void e.$forceUpdate();s.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{value:function(t,e){var a=this;a.caseValue=t,setTimeout(function(){t.length&&a.getContent(t[0])},500)}},mounted:function(){var t=this;t.caseValue=t.value,setTimeout(function(){t.value.length&&t.getContent(t.value[0])},500)}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-cascader",{attrs:{options:t.options,props:t.props},on:{change:t.handleChange,"expand-change":t.expandChange},model:{value:t.caseValue,callback:function(e){t.caseValue=e},expression:"caseValue"}})],1)},staticRenderFns:[]};var l=a("VU/8")(c,o,!1,function(t){a("SKuv")},null,null).exports,d=a("3E4D"),u={name:"active-select",components:{gameSelect:l},data:function(){return{firstGoal:{},firstData:[],secondGoal:{},secondData:[],thirdData:[],fourData:[],markingList:[],markingValue:"",activityMarketPageName:"",gameList:[],gameValue:[],gamePlanName:"",gamePlanUrl:"",cardList:[],cardValue:"",cardCoupName:"",pathNames:[],pathIds:[],disableCreate:!0}},methods:{selectFirst:function(t){this.firstGoal=t;var e=JSON.parse(n()(t.children));t.children&&t.children.length&&e.forEach(function(t){t.description=JSON.parse(t.description)}),this.secondData=JSON.parse(n()(e)),this.secondGoal={},this.thirdData=[],this.pathNames=[],this.pathIds=[],this.markingValue="",this.activityMarketPageName="",this.gameValue=[],this.gamePlanName="",this.cardValue="",this.cardCoupName=""},selectSecond:function(t){this.secondGoal=t,this.getThirdData(t.goalId),this.markingValue="",this.activityMarketPageName="",this.gameValue=[],this.gamePlanName="",this.cardValue="",this.cardCoupName=""},getThirdData:function(t){var e=this,a={goalId:t};e.pathNames=[],e.pathIds=[],Object(r.a)("/sharing-core-web/list-activity-dict-trans",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(t){t.check=!1,t.mustFlag&&(t.check=!0,e.pathNames.push(t.transName),e.pathIds.push(t.transId),e.getText(t.transId))}),e.thirdData=a.result||[],e.$nextTick(function(){e.checkDisable()}),!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectThird:function(t){var e=this;if(t.mustFlag)return!1;t.check=!t.check,console.log(t,t.check),e.pathIds=[],e.thirdData.forEach(function(t){t.check&&t.display&&e.pathIds.push(t.transId)}),e.thirdData.forEach(function(a){t.check&&a.mustCondition&&a.mustCondition.includes(t.transId)&&(a.mustFlag=1,a.check=!0,a.display=1),t.check||!a.mustCondition||!a.mustCondition.includes(t.transId)||e.thirdData[0].check||e.thirdData[1].check||(a.mustFlag=0,a.check=!1,a.display=0),t.check&&a.showCondition&&a.showCondition.includes(t.transId)&&(a.display=1),!t.check&&a.showCondition&&a.showCondition.includes(t.transId)&&!a.selectedConditions&&(a.display=0),!t.check&&a.canceCondition&&a.canceCondition.includes(t.transId)&&(a.check=!1),t.check&&(a.showCondition&&e.thirdData[0].check||a.showCondition&&e.thirdData[1].check)&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=1,a.check=!0),t.check&&a.showCondition&&!e.thirdData[0].check&&!e.thirdData[1].check&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=0,a.check=!0),!t.check&&a.showCondition&&!e.thirdData[0].check&&!e.thirdData[1].check&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=1,a.check=!1),t.check||4!=a.transId||e.thirdData[0].check||e.thirdData[1].check||!e.thirdData[3].check||(a.display=0,a.check=!0)}),e.getPathNameText()},getPathNameText:function(){var t=this,e=[],a=[];t.pathIds=[],t.thirdData.forEach(function(i){i.check&&i.display&&(a.push(i.transId),e.push(i.transName),t.pathIds.push(i.transId))}),t.pathNames=e,t.getText(a.join(",")),t.$nextTick(function(){t.checkDisable()})},checkDisable:function(){if(this.pathNames.includes("访问活动营销页")&&!this.markingValue||this.pathNames.includes("游戏参与")&&!this.gameValue.length||this.pathNames.includes("卡券领取")&&!this.cardValue)return this.disableCreate=!0,!1;var t=[];return this.thirdData.forEach(function(e){e.check&&e.display&&t.push({transId:e.transId,transName:e.transName})}),5==this.secondGoal.goalId&&1==t.length?(this.disableCreate=!0,!1):8==this.secondGoal.goalId&&(1==t.length||2==t.length&&t.map(function(t){return t.transId}).includes(4))?(this.disableCreate=!0,!1):10!=this.secondGoal.goalId&&11!=this.secondGoal.goalId||!(1==t.length||2==t.length&&(t.map(function(t){return t.transId}).includes(4)||t.map(function(t){return t.transId}).includes(16))||3==t.length&&t.map(function(t){return t.transId}).includes(4)&&t.map(function(t){return t.transId}).includes(16))?9==this.secondGoal.goalId&&(1==t.length||2==t.length&&(t.map(function(t){return t.transId}).includes(4)||t.map(function(t){return t.transId}).includes(16)))?(this.disableCreate=!0,!1):void(this.disableCreate=!1):(this.disableCreate=!0,!1)},changeMarking:function(){var t=this;t.$nextTick(function(){t.checkDisable()})},changeCard:function(){var t=this;t.$nextTick(function(){t.checkDisable()})},changeGame:function(t,e){var a=this;a.gamePlanName=t,a.gamePlanUrl=e,a.$nextTick(function(){a.checkDisable()})},toRedirectPage:function(t){if(window.location.origin.includes("gicdev"))return window.open(t.url),!1;"marking"==t.id&&window.open("/gic-web/#/custom"),"game"==t.id&&window.open("/marketing/#/game/dzp"),"card"==t.id&&window.open("/marketing/#/card/list")},toCreate:function(){var t=this;if(t.$store.dispatch("clearActiveData"),!t.firstGoal.hasOwnProperty("goalId"))return d.a.showmsg("请先选择活动目的","warning"),!1;if(!t.secondGoal.hasOwnProperty("goalId"))return d.a.showmsg("请先完善活动目的","warning"),!1;if(t.pathNames.includes("访问活动营销页")&&!t.markingValue||t.pathNames.includes("游戏参与")&&!t.gameValue.length||t.pathNames.includes("卡券领取")&&!t.cardValue)return d.a.showmsg("请先完善活动创建前准备工作","warning"),!1;t.pathNames.includes("访问活动营销页")&&t.markingValue&&t.markingList.forEach(function(e){t.markingValue==e.pageId&&(t.activityMarketPageName=e.name)}),t.pathNames.includes("卡券领取")&&t.cardValue&&t.cardList.forEach(function(e){t.cardValue==e.coupCardId&&(t.cardCoupName=e.cardName)});var e=[];if(t.thirdData.forEach(function(t){t.check&&t.display&&e.push({transId:t.transId,transName:t.transName})}),e.sort(function(t,e){return t.transId-e.transId}),5==t.secondGoal.goalId&&1==e.length)return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if(8==t.secondGoal.goalId&&(1==e.length||2==e.length&&e.map(function(t){return t.transId}).includes(4)))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if((10==t.secondGoal.goalId||11==t.secondGoal.goalId)&&(1==e.length||2==e.length&&(e.map(function(t){return t.transId}).includes(4)||e.map(function(t){return t.transId}).includes(16))||3==e.length&&e.map(function(t){return t.transId}).includes(4)&&e.map(function(t){return t.transId}).includes(16)))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if(9==t.secondGoal.goalId&&(1==e.length||2==e.length&&(e.map(function(t){return t.transId}).includes(4)||e.map(function(t){return t.transId}).includes(16))))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;var a={firstGoal:t.firstGoal,secondGoal:t.secondGoal,pathArr:e,markingValue:t.markingValue,activityMarketPageName:t.activityMarketPageName,gameValue:t.gameValue,gamePlanName:t.gamePlanName,gamePlanUrl:t.gamePlanUrl,cardValue:t.cardValue,cardCoupName:t.cardCoupName};t.judgeCreate(a)},getTwoList:function(){var t=this;Object(r.a)("/sharing-core-web/list-activity-dict",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.firstData=JSON.parse(n()(a.result))||[],t.getMarkingList(),t.getCardList(),!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getText:function(t){var e=this,a={transIds:t};Object(r.a)("/sharing-core-web/list-activity-dict-text",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.fourData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getMarkingList:function(){var t=this;Object(r.a)("/sharing-core-web/list-marking-page",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.markingList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGameList:function(){var t=this;Object(r.a)("/sharing-core-web/list-game",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.gameList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCardList:function(){var t=this;Object(r.a)("/sharing-core-web/list-card",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.cardList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},judgeCreate:function(t){var e=this;Object(r.a)("/sharing-core-web/can-create",{}).then(function(a){var i=a.data;if(1==i.errorCode)return console.log("indexObj:",t),e.$store.dispatch("saveIndexInfo",t),e.$router.push("/createActive"),!1;s.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTwoList()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"active-select border-box"},[a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600"},[t._v("请选择您的活动目的")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center"},[t._l(t.firstData,function(e,i){return[a("li",{key:i+"first",class:["li-cell flex-1 ",t.firstGoal.goalId==e.goalId?"li-cell-active":""],on:{click:function(a){return t.selectFirst(e)}}},[a("div",{staticClass:"li-cell-inner flex "},[a("div",{staticClass:"li-cell-left flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.firstGoal.goalId==e.goalId?e.selectedIconUrl:e.iconUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"li-cell-right border-box flex flex-column "},[a("div",{staticClass:"li-cell-active_name flex flex-align-center font-18 color-303133"},[t._v(t._s(e.goalName))]),t._v(" "),a("div",{staticClass:"li-cell-active_description flex flex-align-center font-14 color-606266"},[t._v(t._s(e.description))])])]),t._v(" "),t._m(0,!0)])]})],2),t._v(" "),t.firstGoal.goalId?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600"},[t._v("请进一步明确活动目的")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-48"},[t._l(t.secondData,function(e,i){return[a("li",{key:i+"second",class:["li-cell li-second-cell flex-1 ",t.secondGoal.goalId==e.goalId?"li-second-active":""],on:{click:function(a){return t.selectSecond(e)}}},[a("div",{staticClass:"li-cell-inner"},[a("div",{staticClass:"li-cell-top border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.secondGoal.goalId==e.goalId?e.selectedIconUrl:e.iconUrl,alt:""}}),a("span",{staticClass:"p-l-15 font-18 color-303133 font-w-700"},[t._v(t._s(e.goalName))])]),t._v(" "),a("div",{staticClass:"li-cell-bottom border-box"},[a("div",{staticClass:"li-cell-scene"},[a("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[t._v("适用场景")]),t._v(" "),a("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[t._v(t._s(e.description["适用场景"]))])]),t._v(" "),a("div",{staticClass:"li-cell-quality"},[a("div",{staticClass:"li-cell-quality_title font-14 color-303133"},[t._v("优劣分析")]),t._v(" "),a("div",{staticClass:"li-cell-quality_text font-14 color-606266"},[t._v(t._s(e.description["优劣分析"]))])])])]),t._v(" "),t._m(1,!0)])]})],2)]):t._e(),t._v(" "),t.secondGoal.goalId?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600 m-b-0"},[t._v("请配置受邀人的转化路径")]),t._v(" "),a("div",{staticClass:"active-select-subtitle font-14 color-606266"},[t._v("基于您的活动设计期望,配置受邀人的转化路径(即受邀人需要经历的交互步骤)。系统会根据您所选择的转化路径,自动配置服务号关注后回复、认证后卡券投放等营销脚本。您只需要根据自身需求选择路径,并选择相关的营销活动页、游戏计划或卡券。")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-50"},[t._l(t.thirdData,function(e,i){return[1==e.display?a("li",{key:i+"third",class:["li-cell li-third-cell flex-1 ",e.check?"li-third-active":"",e.mustFlag?"li-third-active-disable":""],on:{click:function(a){return t.selectThird(e)}}},[a("div",{staticClass:"li-cell-inner border-box"},[a("div",{staticClass:"li-cell-path_img flex flex-pack-center flex-pack--center"},[a("img",{attrs:{src:e.iconUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"li-cell-path_title font-16 color-303133 text-center"},[t._v(t._s(e.transName))]),t._v(" "),a("div",{staticClass:"li-cell-path_text font-14 color-606266"},[t._v(t._s(e.description))])]),t._v(" "),t._m(2,!0)]):t._e()]})],2)]):t._e(),t._v(" "),t.pathNames.includes("访问活动营销页")||t.pathNames.includes("游戏参与")||t.pathNames.includes("卡券领取")?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600 m-b-0"},[t._v("活动创建前准备工作")]),t._v(" "),a("div",{staticClass:"active-select-subtitle font-14 color-606266"},[t._v("根据您配置的转化路径,请确保完成以下工作,否则活动无法被正常执行。")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-50"},[t._l(t.fourData,function(e,i){return["marking"==e.id&&t.pathNames.includes("访问活动营销页")||"game"==e.id&&t.pathNames.includes("游戏参与")||"card"==e.id&&t.pathNames.includes("卡券领取")?a("li",{key:i+"four",staticClass:"li-four-cell flex-1 "},[a("div",{staticClass:"li-cell-inner border-box"},[a("div",{staticClass:"li-cell-title font-18 color-303133 font-w-600"},[t._v(t._s(e.title))]),t._v(" "),a("div",{staticClass:"li-cell-subtitle font-14 color-606266"},[t._v(t._s(e.text))]),t._v(" "),"marking"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建活动营销页,请立即前往创建。")]):t._e(),t._v(" "),"game"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建游戏计划,请立即前往创建。")]):t._e(),t._v(" "),"card"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建卡券,请立即前往创建。")]):t._e(),t._v(" "),"marking"==e.id?a("div",{staticClass:"li-cell-select"},[a("el-select",{attrs:{size:"large",placeholder:"请选择活动着陆页"},on:{change:t.changeMarking},model:{value:t.markingValue,callback:function(e){t.markingValue=e},expression:"markingValue"}},t._l(t.markingList,function(t){return a("el-option",{key:t.pageId,attrs:{label:t.name,value:t.pageId}})}),1)],1):t._e(),t._v(" "),"game"==e.id?a("div",{staticClass:"li-cell-select"},[a("game-select",{on:{changeGame:t.changeGame},model:{value:t.gameValue,callback:function(e){t.gameValue=e},expression:"gameValue"}})],1):t._e(),t._v(" "),"card"==e.id?a("div",{staticClass:"li-cell-select"},[a("el-select",{attrs:{size:"large",placeholder:"请选择卡券"},on:{change:t.changeCard},model:{value:t.cardValue,callback:function(e){t.cardValue=e},expression:"cardValue"}},t._l(t.cardList,function(t){return a("el-option",{key:t.coupCardId,attrs:{label:t.cardName,value:t.coupCardId}})}),1)],1):t._e(),t._v(" "),a("div",{staticClass:"li-cell-seperator"},[t._v("OR")]),t._v(" "),a("div",{staticClass:"li-cell-btn"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return t.toRedirectPage(e)}}},[t._v("立即前往创建")])],1)])]):t._e()]})],2)]):t._e(),t._v(" "),a("div",{staticClass:"to-active-config"},[a("div",{staticClass:"to-active-tip font-14 color-606266"},[t._v("确认完成了所有前期准备工作,即可前往活动配置。")]),t._v(" "),a("div",{staticClass:"to-active-btn"},[a("el-button",{attrs:{type:"primary",disabled:t.disableCreate},on:{click:t.toCreate}},[t._v("前往活动配置"),a("i",{staticClass:"el-icon-right"})])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])}]};var h=a("VU/8")(u,f,!1,function(t){a("Y3tI")},"data-v-a731dce0",null).exports,v=a("fZjL"),g=a.n(v),m={name:"bar-chart",props:{barChartData:{type:[Array,Object],default:function(){return{}}},charHeight:{type:String,default:function(){return"300px"}}},components:{},data:function(){return this.chartSettings={},this.colors=["#5B8FF9","#5AD8A6","#FF6383"],this.tooltip={trigger:"axis",formatter:function(t){var e=[t[0].axisValue+"日"];return t.forEach(function(t){e.push(t.marker+" "+t.seriesName+":"+t.data)}),e.join("<br>")},axisPointer:{type:"shadow"},textStyle:{color:"#fff"}},this.yAxis={type:"value",axisTick:{show:!1},axisLabel:{show:!0,textStyle:{color:"#404040",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#d9d9d9"],width:1,type:"dashed"}}},this.legend={x:"left",itemWidth:8,itemHeight:8},this.grid={bottom:"34px"},{}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bar-chart"},[a("ve-histogram",{attrs:{data:t.barChartData,settings:t.chartSettings,colors:t.colors,height:t.charHeight,tooltip:t.tooltip,yAxis:t.yAxis,legend:t.legend,grid:t.grid}}),t._v(" "),a("div",{staticClass:"chart-title font-12 color-000 text-center"},[t._v("- 近15天趋势图 -")])],1)},staticRenderFns:[]};var y=a("VU/8")(m,p,!1,function(t){a("ZnPx")},"data-v-398b2619",null).exports,b={name:"data-statistics",props:{activeData:{type:[Object,Array],default:function(){return{exposure:0,attend:0,invited:0,attendRate:0,spread:0}}},activityId:{type:String,default:function(){return""}},barChartData:{type:[Array,Object],default:function(){return{}}}},components:{barChart:y},data:function(){return{charHeight:"220px"}},methods:{diagram:function(t){for(var e=document.getElementsByClassName("blue"+this.activityId),a=0;a<e.length;a++)a+1<=t?e[a].style.width="17px":a+1==Math.ceil(t)?e[a].style.width=parseInt(10*t-10*parseInt(t))/10*17+"px":e[a].style.width="0px";this.$forceUpdate()}},watch:{activeData:function(t,e){var a=this;t&&a.$nextTick(function(){a.diagram(t.spread)})}},mounted:function(){var t=this;t.$nextTick(function(){t.activeData.hasOwnProperty("spread")&&t.diagram(t.activeData.spread)})}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-statistics"},[a("div",{staticClass:"data-statistics-body flex"},[a("div",{staticClass:"data-statistics-left"},[a("ul",{staticClass:"flex flex-column flex-pack-center flex-align-center"},[a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(0),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("活动曝光量")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.exposure)))])])]),t._v(" "),a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(1),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("参与人数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.attend)))])])]),t._v(" "),a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(2),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("受邀人数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.invited)))])])])])]),t._v(" "),a("div",{staticClass:"data-right-wrap"},[a("div",{staticClass:"data-right-top flex"},[a("div",{staticClass:"data-statistics-middle flex-1 border-box m-l-20"},[a("div",{staticClass:"font-14 color-606266"},[t._v("参与率")]),t._v(" "),a("div",{class:["font-22 color-303133 p-t-5 ",t.activeData.attendRate]},[t._v(t._s(t.activeData.attendRate?Number(100*Number(t.activeData.attendRate)).toFixed(2):0)+" %")]),t._v(" "),a("div",{staticClass:"data-percentage"},[a("div",{staticClass:"data-percentage-inner",style:{width:Number(100*Number(t.activeData.attendRate)).toFixed(2)+"%"}})])]),t._v(" "),a("div",{staticClass:"data-statistics-right flex-1 border-box m-l-20"},[a("div",{staticClass:"font-14 color-606266"},[t._v("传播系数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 p-t-5"},[t._v(t._s(t.activeData.spread))]),t._v(" "),a("ul",{staticClass:"spread-ul"},[a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})])])])]),t._v(" "),a("div",{staticClass:"data-right-bottom"},[a("bar-chart",{attrs:{barChartData:t.barChartData,charHeight:t.charHeight}})],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("gjBT"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("oj03"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("Vo6M"),alt:""}})])}]};var x=a("VU/8")(b,C,!1,function(t){a("J3un")},"data-v-56d4a684",null).exports,_={name:"funnel-chart",props:{funnelData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{router:[{transId:4,transName:"会员认证"},{transId:2,transName:"访问活动营销页"},{transId:1,transName:"服务号关注"}]}}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"funnel-chart"},[a("div",{staticClass:"funnel-chart-body flex"},[a("div",{staticClass:"chart-left"},[a("div",{staticClass:"trapezoid-bg flex flex-column"},[t._l(t.funnelData.router,function(e,i){return[a("div",{key:i,staticClass:"flex-1 flex flex-column"},[a("div",{staticClass:"flex-1 flex flex-pack-center font-12 color-606066 flex-align-center space-line r-60"}),t._v(" "),i!=t.funnelData.router.length-1?a("div",{staticClass:"flex-1 flex flex-pack-center font-12 color-606066 flex-align-center inner-bg bg-f5f7fa"},[t._v(t._s(e.rate?Number(100*Number(e.rate)).toFixed(2):0)+"%")]):t._e()])]})],2)]),t._v(" "),a("div",{staticClass:"chart-right"},[a("div",{staticClass:"chart-text flex flex-column"},[t._l(t.funnelData.router,function(e,i){return[a("div",{key:i,staticClass:"flex-1 flex flex-column"},[a("div",{staticClass:"flex-1 flex flex-align-center space-line p-l-98 font-12 color-606066"},[t._v(t._s(e.transName)+" "+t._s(e.countNumber)+" 人 "),32==e.transId?a("span",[t._v(", "+t._s(t._f("formatThousand")(e.countAmount))+" 元")]):t._e()]),t._v(" "),i!=t.funnelData.router.length-1?a("div",{staticClass:"flex-1 flex flex-align-center bg-f5f7fa"}):t._e()])]})],2)])]),t._v(" "),a("div",{staticClass:"funnel-chart-title font-12 color-000"},[t._v("- 响应转化漏斗 -")])])},staticRenderFns:[]};var w=a("VU/8")(_,k,!1,function(t){a("Qg7P")},"data-v-d8ad1dca",null).exports,I={name:"card-table",props:{barChartData:{type:[Array,Object],default:function(){return{}}},funnelData:{type:[Array,Object],default:function(){return{}}},activityId:{type:String,default:function(){return""}}},components:{funnelChart:w,dataStatisticsChild:x},data:function(){return{activeData:{exposure:0,attend:0,invited:0,attendRate:0,spread:0},itemId:this.activityId}},methods:{},watch:{funnelData:function(t,e){g()(t).length&&(this.activeData=JSON.parse(n()(t)))},activityId:function(t,e){t&&(this.itemId=t)}},mounted:function(){g()(this.funnelData).length&&(this.activeData=JSON.parse(n()(this.funnelData))),this.itemId=this.activityId}},D={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"out-date-active flex flex-space-between"},[e("data-statistics-child",{attrs:{activeData:this.activeData,barChartData:this.barChartData,activityId:this.itemId}}),this._v(" "),e("funnel-chart",{attrs:{funnelData:this.funnelData}})],1)},staticRenderFns:[]};var A=a("VU/8")(I,D,!1,function(t){a("PD7L")},"data-v-37089ce1",null).exports,S=a("TQvf"),E=a.n(S),T=a("PI0u"),N={name:"in-progress-active",components:{outDateActive:A},data:function(){return{funnelData:{},barChartData:{columns:["日期","新增参与人数","新增受邀人数"],rows:[]},index:"",selectItem:"",inProgressData:[]}},methods:{selectLi:Object(T.a)(function(t){this.selectItem=t.activityId,this.getActivityData(t.activityId)},100),getActivityData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/get-activity-data-summary",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.funnelData=a.result||{},a.result.trend&&a.result.trend.length&&a.result.trend.forEach(function(t){t["日期"]=t.date.split("-")[2],t["新增参与人数"]=t.inviteCount,t["新增受邀人数"]=t.invitedCount}),e.barChartData={columns:["日期","新增参与人数","新增受邀人数"],rows:a.result.trend||[]},!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/createActive?activityId="+e.activityId)},toDataList:function(t,e){this.$router.push("/dataDetail?activityId="+e.activityId)},handleCopy:function(t,e){var a=new E.a(".copy-tag",{text:function(){return e.activityUrl||"您复制的数据是空的!"}});a.on("success",function(t){d.a.showmsg("复制成功!","success"),a.destroy()}),a.on("error",function(t){d.a.showmsg("该浏览器不支持自动复制!","warning"),a.destroy()})},toDelList:function(t,e){var a=this;this.$confirm("是否要删除该活动?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delData(e.activityId)}).catch(function(){})},delData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/delete-activity",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),e.currentPage=1,window.location.reload(),!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(){var t=this;Object(r.a)("/sharing-core-web/page-activity",{type:4}).then(function(e){var a=e.data;if(1==a.errorCode)return t.inProgressData=a.result.result||[],a.result.result.length&&t.getActivityData(a.result.result[0].activityId),!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()}},O={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.inProgressData.length?a("div",[a("div",{staticClass:"separator-space"},[t._v("- 当前有计划中的活动,无法创建新的活动 -")]),t._v(" "),a("div",{staticClass:"in-progress-active border-box"},[a("ul",[t._l(t.inProgressData,function(e,i){return[a("li",{key:i+"data",class:["border-box",t.selectItem==e.activityId&&0!=i?"li-border":""]},[a("div",{staticClass:"in-progress-active-title flex flex-space-between border-box"},[a("div",{staticClass:"active-title-left",on:{click:function(a){return t.selectLi(e)}}},[a("div",{staticClass:"active-title-name font-18 color-303133 font-w-700"},[t._v(t._s(e.activityName)+" "),2==e.status?a("el-tag",{attrs:{type:"danger"}},[t._v("待完善")]):t._e(),t._v(" "),1==e.status&&e.startDate>(new Date).getTime()?a("el-tag",{attrs:{type:"danger"}},[t._v("未开始")]):t._e(),t._v(" "),1==e.status&&e.startDate<=(new Date).getTime()?a("el-tag",{attrs:{type:"success"}},[t._v("已开始")]):t._e()],1),t._v(" "),a("div",{staticClass:"active-title-date font-14 color-909399 m-t-7"},[t._v(t._s(t._f("formatTimeYmdHms")(e.startDate))+" - "+t._s(t._f("formatTimeYmdHms")(e.endDate)))])]),t._v(" "),a("div",{staticClass:"active-title-right"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toEdit(i,e)}}},[t._v("活动配置")]),t._v(" "),a("el-button",{staticClass:"copy-tag",attrs:{"data-clipboard-action":"copy","data-clipboard-text":e.activityUrl,type:"primary",plain:""},on:{click:function(a){return t.handleCopy(i,e)}}},[t._v("复制路径")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDataList(i,e)}}},[t._v("数据明细")]),t._v(" "),2==e.status?a("el-button",{attrs:{type:"danger",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDelList(i,e)}}},[t._v("删除")]):t._e()],1)]),t._v(" "),e.startDate<=(new Date).getTime()?a("div",{staticClass:"in-progress-active-body"},[a("out-date-active",{attrs:{barChartData:t.barChartData,funnelData:t.funnelData,activityId:e.activityId}})],1):t._e()])]})],2)])]):t._e()},staticRenderFns:[]};var P={name:"finished-active",components:{outDateActive:A},data:function(){return{funnelData:[],barChartData:{columns:["日期","访问用户","下单用户"],rows:[{"日期":"1/1","访问用户":1393,"下单用户":1093},{"日期":"1/2","访问用户":3530,"下单用户":3230},{"日期":"1/3","访问用户":2923,"下单用户":2623},{"日期":"1/4","访问用户":1723,"下单用户":1423},{"日期":"1/5","访问用户":3192,"下单用户":3192},{"日期":"1/6","访问用户":3593,"下单用户":3293}]},selectItem:"",finishedData:[],pageSize:20,currentPage:1,total:1}},methods:{selectLi:function(t){this.selectItem=t.activityId,this.getActivityData(t.activityId)},getActivityData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/get-activity-data-summary",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.funnelData=a.result,a.result.trend&&a.result.trend.length&&a.result.trend.forEach(function(t){t["日期"]=t.date.split("-")[2],t["新增参与人数"]=t.inviteCount,t["新增受邀人数"]=t.invitedCount}),e.barChartData={columns:["日期","新增参与人数","新增受邀人数"],rows:a.result.trend||[]},!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/createActive?activityId="+e.activityId+"&editFlag=show")},toDataList:function(t,e){this.$router.push("/dataDetail?activityId="+e.activityId)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this,e={pageNum:t.currentPage,pageSize:t.pageSize,type:3};Object(r.a)("/sharing-core-web/page-activity",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.finishedData=a.result.result||[],t.total=a.result.totalCount,!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()}},j={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.finishedData.length?a("div",{staticClass:"separator-space"},[t._v("- 以下为已结束活动 -")]):t._e(),t._v(" "),a("div",{staticClass:"finished-active border-box"},[a("ul",[t._l(t.finishedData,function(e,i){return[a("li",{key:i+"data",class:["border-box",t.selectItem==e.activityId&&0!=i?"li-border":""]},[a("div",{staticClass:"finished-active-title flex flex-space-between border-box",on:{click:function(a){return a.stopPropagation(),t.selectLi(e)}}},[a("div",{staticClass:"active-title-left"},[a("div",{staticClass:"active-title-name font-18 color-303133 font-w-700"},[t._v(t._s(e.activityName))]),t._v(" "),a("div",{staticClass:"active-title-date font-14 color-909399 m-t-7"},[t._v(t._s(t._f("formatTimeYmdHms")(e.startDate))+" - "+t._s(t._f("formatTimeYmdHms")(e.endDate)))])]),t._v(" "),a("div",{staticClass:"active-title-right"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toEdit(i,e)}}},[t._v("活动配置")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDataList(i,e)}}},[t._v("数据明细")])],1)]),t._v(" "),t.selectItem==e.activityId?a("div",{staticClass:"finished-active-body"},[a("out-date-active",{attrs:{barChartData:t.barChartData,funnelData:t.funnelData,activityId:e.activityId}})],1):t._e()])]})],2),t._v(" "),t.finishedData.length?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])])},staticRenderFns:[]};var M={name:"share-index",components:{activeSelect:h,inProgressActive:a("VU/8")(N,O,!1,function(t){a("h7RH")},"data-v-6494b5da",null).exports,finishedActive:a("VU/8")(P,j,!1,function(t){a("okqm")},"data-v-1a22b0d7",null).exports},data:function(){return{canCreate:!0}},methods:{judgeCreate:function(){var t=this;Object(r.a)("/sharing-core-web/can-create",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.canCreate=a.result,!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.judgeCreate()}},V={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"share-index common-wrap"},[e("div",{staticClass:"right-content border-box"},[this.canCreate?e("div",[e("div",{staticClass:"separator-space no-active"},[this._v("\n - 当前无进行中的活动,请创建活动,别让业绩白白流失!-\n ")]),this._v(" "),e("active-select")],1):this._e(),this._v(" "),e("div",[e("in-progress-active"),this._v(" "),e("finished-active")],1)]),this._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var L=a("VU/8")(M,V,!1,function(t){a("UCGX")},"data-v-497f0dd4",null);e.default=L.exports},gjBT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABKJJREFUSA2VVl1oHFUU/s7sbNImltJoNbtN6l8wFiHG30JiamvFB61gaEK1INYHKRg3kSoI1Yeg9K3VxG0qEZT2SVBbXyoK9ScJSkogKdZCqhGlJrvZJk3qT2iT7O69fnfobCazsxt7YZjz8517zj3nnjMj+B+r6l1docK4GQoVfMqUhRK+xdJII4QrKovLsDE1GcMlEdHFtpRiyuq4jqYzuEtrrCmGc3UhC/NKY2zyVVwo5Ligww3v6fqMRrW72fW8QwpjydflfJBNnsNIXD9YegPO2f9Cz2VwL/NzS5BhMRkdDlphrMtYqEnF5Csv1vIyVYf1Ztamf+FvjFyxcE9qnwxZJTgrIWS9uGK0ZWEx8RpmshqtksXxaLd+xIvPObw1rm/PZnCS9SrjqTbxIpyOdOn9e9swfqONAcvGX17DQjQdppz6CVq4z2oFnDR7u/icw0WFwwTc5CqgESZ/oLcbA3MK6/fO4sdQGGM5fQGiRCG18Yi+g4Hf50A01i4oxF2443BDl95BwJOu0Pum08aFLH76sAJ7kjE5HwYdC656MS4tgswLHZjOpNHiypy3xlORbt1saMchj/3OMkA+s0YpfMQUf6HKYUXK0B+yMeGHsWZTnSKKwbf6dczYfiOT6BFdqxYReIX9RjzBNGv0bCIm3xmd6dOMQh3rzYMDJWEMM5CS+QX8YXj/oq7WUhns8iuCeDo7VWqjznVmMOMxSYayPG0IM9SrO2cwRWc7g+yNTGex2xaFBtap8BKkLcGbiRgOBk2PiX1yVWs9WHkQ6/s6JVPZrVuYvsBF8UM2hNOkAIBRm1v5XLJdhqU9cA9HeC2QqWiPrmbGNhdC0s1Gzl9UBQF4qmMVNu4vF5wL0gfJmLKdDD5venmwGy3OdqfgOaHgH16M3ZFVeGkmjbfmND7I6VYilK8dfHjjy7TFbE4uOF1qoT4EDCXm8QPlbzDcZx7o1cuDyhksEebGakHDkiSQmrUI+pUqxXoduLsOTYsaDWmFM0zNw8aEPbUuOY/tgeYeYVatmE4YXzaLeMIK4e3yMgz/chYf08Hznn0cknU2jfy1X+7lidnGbFzyyvw0HfY5BTafJBb8EwJq/CDD8/QztXWo7NsmmSD99ciEPSSRbvxOo9uKGbLYTyQ68E30fRxilKuKYQvoRpMdErdND0W79CHO09xEDzJgOlqIPcXGrmHanw7CFJMxSGegO8M7shq9TNtwMQPqmls/1bzAOL4CLl8t+D7ZgRNG4dTQEJEevUlnMMjbudbwQYszczufM4tpXCRuxVYxe9DBrIRRn2yTccM7JzTEZJuM8rY+Zi6I4YOWZmP/+bJcZgM7X4sgzDKZIMUAt7rOjC7n0DDJV2TEBrYyrIuG9y/WublTa4tBfe7X+XliLtg2miZi8rNXl0upV1jVo2uyaRxlbzV65YYWG4/ypKNM6SQfU9P8JfiWfwV7Eu2S95FedkLXcqJNfmORm/hj+yIjXfZxZr+2pNplmtgBF+++Gf0IHe1KdcjjQc4MjhkMXtc+OUfZp8cicWzhRNrBv+pGbrrF6d04PqNlLfkx1rSfA//LiXYZCt5tSfofVt6aUjcV2t0AAAAASUVORK5CYII="},h7RH:function(t,e){},mvHQ:function(t,e,a){t.exports={default:a("qkKv"),__esModule:!0}},oj03:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAdCAYAAAC5UQwxAAAAAXNSR0IArs4c6QAABCxJREFUSA2tVl1oXEUU/mbu3d3au5uEVsyum6AkVWmLohSqqK2IL/7jg+2T+CI0VEmCpRSLfciLIIhFt5aY1/gg6Js+2BdFxL+gtrSk2J9IQ5LdVK3d/iT7k9x7j2eGvcvduXdTu/XCMnO++eZ883PmnBW4xW/XZ2T9UkTGJcjua1g6PSZW1nIp1hpca6z3PXKkhc0+kGvyJEi6WHSSmJ4ZEfUmHurcUPCuCcq5NWxRc6TE7/PDoqT6mwrUVfGw3SPcpuzwx7yVFGFq9k1xJYyrflvBvnHKuyv4mDnPgRo8ARKEYyKBodIbYp5FUxUfOz0f6yKOLSztyOG7z3cLLzwmw0bQzxVoh1fHNAs93xRTgyxMwDO+i+n8h/SkPjYXJ4J54ZY8pH9axEAYU/2I4NajlCYfk+y4xyQ3bUIX393kwAR1l/aLS7bApeZYqON5yIZM3Y0IXvZwkEfuNommTYS+Wg2HFM7bnjPHNY6Y+zWJ7OgFE2tnB1xnFdfiOJ6Aa+KRHXIU9ZmkdjYfu+bmqqjGcSwfZROPCDJh1iStYWvuTBcSJkcI+JkezJh4nOBxk9TOZqea6/twTI4tce7sa+K6iUcEpcARJkXO3pzIL9PjGC8onB96M9twAHmWhZMLo+J8ZI7immBxRJzke3zXxGPs9xeHxa/bJijhS2QtoM7PY16m8W1pVMzF8DXUNtNkC7SXV3uYI7Eli/Ax1vl3oDQi9O6yh2k7B09vIMBjLueWv1IW/rip1KYc9BdokPPSXhZ9VWccgU94J+PBcW0do+TlHjzCd9gdCIZbi7DwWD9OhdNb7A7zBVJORnjlL7KDloDgHVR4AV9ypThSGhY/qPL0YxH3c3nqD4sFfb7fq47EVFA9WgQfmCTn7zLGWeiVlhwazDZanvxpVwZDKhr5CraQi0GDok0Oon/2lPHz2Jjwm4KD43RHZQXHePUPxU1qiwmcSq3D07N7cDH/AR7lcrUhjpuwcEZdhRZUkVaq4RsWezyO/B+wqbTEEzUX0pPYydeRNOeoYNqYx9f6WRTrOHgLYsr3w8s+Di3sE1Xewawppmz2b5cXkRX5j2ij5+ICY5k44k1gy04KA/Uqrq9KPAU/WtyFxEXJ23/5fxBT63Kqdexu7PLP2IUSHMnF9tnYwQ5AEvx3hD+y4guyJCQ5deKeDnzHTuHnpH2t91CJI/g2rkg+6dvjBjvEtK9kPSrIiWI1aeO85OiJ1KwOxVSUaF/pHtQCH+o52DbmNtj4fu51UbaFjbe40HzFwusDUictO65xGjug5mbuBSXO4HjyKpa2DWBJ5dJiw6l++LmjtJkr4Nss+hLjLbmzwWvb6NwKfMEl/535UTHdltgY0IIBSWWcYhUPMngfO7qT86nDFdPhhehFMLbMWIXPbpmxkiVwtjeFE78NidXAx43afwGGeG0DzVSPiwAAAABJRU5ErkJggg=="},okqm:function(t,e){},qkKv:function(t,e,a){var i=a("FeBl"),n=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}}});
\ No newline at end of file
webpackJsonp([3],{J3un:function(t,e){},PD7L:function(t,e){},Qg7P:function(t,e){},SKuv:function(t,e){},TQvf:function(t,e,a){
/*!
* clipboard.js v2.0.4
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
var i;i=function(){return function(t){var e={};function a(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),r=o(a(1)),s=o(a(3)),c=o(a(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(a),i.listenClick(t),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.default),n(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===i(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,c.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach(function(t){a=a&&!!document.queryCommandSupported(t)}),a}}]),e}();function d(t,e){var a="data-clipboard-"+t;if(e.hasAttribute(a))return e.getAttribute(a)}t.exports=l},function(t,e,a){"use strict";var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),s=a(2),c=(i=s)&&i.__esModule?i:{default:i};var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return r(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=a+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":n(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=o},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),n=document.createRange();n.selectNodeContents(t),i.removeAllRanges(),i.addRange(n),e=i.toString()}return e}},function(t,e){function a(){}a.prototype={on:function(t,e,a){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var i=this;function n(){i.off(t,n),e.apply(a,arguments)}return n._=e,this.on(t,n,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),i=0,n=a.length;i<n;i++)a[i].fn.apply(a[i].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),i=a[t],n=[];if(i&&e)for(var r=0,s=i.length;r<s;r++)i[r].fn!==e&&i[r].fn._!==e&&n.push(i[r]);return n.length?a[t]=n:delete a[t],this}},t.exports=a},function(t,e,a){var i=a(5),n=a(6);t.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(a))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(i.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,a)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,a)})}}}(t,e,a);if(i.string(t))return function(t,e,a){return n(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,a){var i=a(7);function n(t,e,a,n,r){var s=function(t,e,a,n){return function(a){a.delegateTarget=i(a.target,e),a.delegateTarget&&n.call(t,a)}}.apply(this,arguments);return t.addEventListener(a,s,r),{destroy:function(){t.removeEventListener(a,s,r)}}}t.exports=function(t,e,a,i,r){return"function"==typeof t.addEventListener?n.apply(null,arguments):"function"==typeof a?n.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return n(t,e,a,i,r)}))}},function(t,e){var a=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==a;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])},t.exports=i()},UCGX:function(t,e){},UVYg:function(t,e){},Vo6M:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA/VJREFUSA2VVt9rHFUU/s7Mzm5X22wbbNxsE2ljwWpoaSsqCAVFxT9A44OgLz70R9qkefBRGkFpn9okJYVW33yL+iqCVkUQBGmhSP2BMTVmk01qmiJtQpOdmeN3Np24zUw2kwu79557vnO/c849c2YEDUbniGbnpnEMii4FOkWRhWCcJl94Hob/PiZjDcwTVZK4y83281ryQ1xWxZ4kjAjucb+30iuXkvRr7SUS7h7S3LziKsmeWssw2nddvDR5Qr6J5PVmJwkwD7ydhsxsgxCnk85Yay+RECHvLe1QPFsc0GfSwmOEpYv6kAr2pj3AcLzPQ2nxMUJUWSQKN+0BhmP6UzsYI2Tpb90ImWEZYSGtTYwwUDyR1ngFx0fnhW81syI3WMQIGeGbDfCJKjaFJ0d/xsFE5arNGCHvb3YVJpUYuqikAcYJBR+wfc2kMY4wvMMPp7plIpIbzYmdpnVA+5ims40MIx3JxtnedkbyenM8QlpIHp/Qk1SpJWEqxyJHEiM0ZWlID2iIrxlpcwSOzYLLlR68IiLa36/OR80oaRXbeWguVFT5m2trQvnKYalGtmsSGqA4qKdYRP0RODY76Jrukc86zmhhIYv9dK5pNcZ1cC+o4trMu3LTdIkpjYyYrtFoHZsFP1ZO4POOi1qY93AoIjMCz8VvPLgWFZv7Jvat5+x1Z2c0JGR0L8aIbEPAdovj73O1sIADlFcyxTZXLvfKH07mwcfED7DXXnuJ3aHtY20O7uIUjd9JJAR+YmVeuQR9jJgt9RhmJaz55C/PkS4Mkb3r4PEVwrYRzYfTeJlRvUayN5iifARePTOcr2zPCsRyxO4UMJVTvgM/WMJt07mC2aoD9QJI6KBoqZUQj2RUVXYM4XhQwXv0druBU4x/DMNocjWsh78me+SXervxPrHOU+s+vL9bJHyajuYypfPoJdG5evB6axJtMoxmsWSl4fhoK55VcTwE/MyanToss7sG9NFFF9vUh1QVLYa3RyXDTL9uwkYGHew0vOdjbhFoDeg5xQ6WP9yAl8KmUQ3Rwqh2cg34tX9kBHMOtTuWxfT/JHy1a0TdLf+izDc1OeuGe79inf8r17RWTAUPY/ZYLN9DnU2KZcsPFRy53i9LOQfX6vGBj1JpWNtZlcX6/Yzi9+vdwkJlNdUr0q5Z+2dKg/r8jZMy4+VxNXrQmdCHg0Xsv5/mWmReDr9O9OFPO9si/JSk1G9wKDazCL5sHdS3ykdlMrcN37EKx5i6O47DYhLM884mCk34vtwto9ZvjYEYfsMP6+bbPvZR2sOGvYtG7bynImWrrmYitxKe55yhbolR2Ff3Hepvcj3BQy5MnZTas2nnNRr/AYSgULGfxss8AAAAAElFTkSuQmCC"},Y3tI:function(t,e){},ZnPx:function(t,e){},bIhT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),r=a("P9l9"),s=a("Ch4/"),c={name:"game-select",props:{value:{type:[String,Array,Object],default:function(){return[]}}},data:function(){return{caseValue:[],options:[{gameType:1,id:1,gameTypeName:"大转盘",label:"大转盘",children:[]},{gameType:2,id:2,gameTypeName:"刮刮卡",label:"刮刮卡",children:[]},{gameType:3,id:3,gameTypeName:"拼图游戏",label:"拼图游戏",children:[]},{gameType:4,id:4,gameTypeName:"找你马",label:"找你马",children:[]},{gameType:5,id:5,gameTypeName:"口令福利",label:"口令福利",children:[]}],props:{label:"label",children:"children",value:"id"}}},methods:{handleChange:function(t){var e=this;e.$emit("input",t),e.options.forEach(function(a){2==t.length&&t[0]==a.id&&a.children.forEach(function(a){t[1]==a.gameId&&e.$emit("changeGame",a.gameName,a.gameUrl)})})},expandChange:function(t){this.getContent(t[0])},getContent:function(t){var e=this,a={gameType:t};Object(r.a)("/sharing-core-web/list-game",a).then(function(a){var i=a.data;if(1==i.errorCode)return i.result&&i.result.length&&i.result.forEach(function(t){t.id=t.gameId,t.label=t.gameName}),e.options.forEach(function(e){e.id==t&&(e.children=i.result)}),void e.$forceUpdate();s.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{value:function(t,e){var a=this;a.caseValue=t,setTimeout(function(){t.length&&a.getContent(t[0])},500)}},mounted:function(){var t=this;t.caseValue=t.value,setTimeout(function(){t.value.length&&t.getContent(t.value[0])},500)}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-cascader",{attrs:{options:t.options,props:t.props},on:{change:t.handleChange,"expand-change":t.expandChange},model:{value:t.caseValue,callback:function(e){t.caseValue=e},expression:"caseValue"}})],1)},staticRenderFns:[]};var l=a("VU/8")(c,o,!1,function(t){a("SKuv")},null,null).exports,d=a("3E4D"),u={name:"active-select",components:{gameSelect:l},data:function(){return{firstGoal:{},firstData:[],secondGoal:{},secondData:[],thirdData:[],fourData:[],markingList:[],markingValue:"",activityMarketPageName:"",gameList:[],gameValue:[],gamePlanName:"",gamePlanUrl:"",cardList:[],cardValue:"",cardCoupName:"",pathNames:[],pathIds:[],disableCreate:!0}},methods:{selectFirst:function(t){this.firstGoal=t;var e=JSON.parse(n()(t.children));t.children&&t.children.length&&e.forEach(function(t){t.description=JSON.parse(t.description)}),this.secondData=JSON.parse(n()(e)),this.secondGoal={},this.thirdData=[],this.pathNames=[],this.pathIds=[],this.markingValue="",this.activityMarketPageName="",this.gameValue=[],this.gamePlanName="",this.cardValue="",this.cardCoupName=""},selectSecond:function(t){this.secondGoal=t,this.getThirdData(t.goalId),this.markingValue="",this.activityMarketPageName="",this.gameValue=[],this.gamePlanName="",this.cardValue="",this.cardCoupName=""},getThirdData:function(t){var e=this,a={goalId:t};e.pathNames=[],e.pathIds=[],Object(r.a)("/sharing-core-web/list-activity-dict-trans",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(t){t.check=!1,t.mustFlag&&(t.check=!0,e.pathNames.push(t.transName),e.pathIds.push(t.transId),e.getText(t.transId))}),e.thirdData=a.result||[],e.$nextTick(function(){e.checkDisable()}),!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectThird:function(t){var e=this;if(t.mustFlag)return!1;t.check=!t.check,console.log(t,t.check),e.pathIds=[],e.thirdData.forEach(function(t){t.check&&t.display&&e.pathIds.push(t.transId)}),e.thirdData.forEach(function(a){t.check&&a.mustCondition&&a.mustCondition.includes(t.transId)&&(a.mustFlag=1,a.check=!0,a.display=1),t.check||!a.mustCondition||!a.mustCondition.includes(t.transId)||e.thirdData[0].check||e.thirdData[1].check||(a.mustFlag=0,a.check=!1,a.display=0),t.check&&a.showCondition&&a.showCondition.includes(t.transId)&&(a.display=1),!t.check&&a.showCondition&&a.showCondition.includes(t.transId)&&!a.selectedConditions&&(a.display=0),!t.check&&a.canceCondition&&a.canceCondition.includes(t.transId)&&(a.check=!1),t.check&&(a.showCondition&&e.thirdData[0].check||a.showCondition&&e.thirdData[1].check)&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=1,a.check=!0),t.check&&a.showCondition&&!e.thirdData[0].check&&!e.thirdData[1].check&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=0,a.check=!0),!t.check&&a.showCondition&&!e.thirdData[0].check&&!e.thirdData[1].check&&a.selectedConditions&&a.selectedConditions.includes(t.transId)&&(a.display=1,a.check=!1),t.check||4!=a.transId||e.thirdData[0].check||e.thirdData[1].check||!e.thirdData[3].check||(a.display=0,a.check=!0)}),e.getPathNameText()},getPathNameText:function(){var t=this,e=[],a=[];t.pathIds=[],t.thirdData.forEach(function(i){i.check&&i.display&&(a.push(i.transId),e.push(i.transName),t.pathIds.push(i.transId))}),t.pathNames=e,t.getText(a.join(",")),t.$nextTick(function(){t.checkDisable()})},checkDisable:function(){if(this.pathNames.includes("访问活动营销页")&&!this.markingValue||this.pathNames.includes("游戏参与")&&!this.gameValue.length||this.pathNames.includes("卡券领取")&&!this.cardValue)return this.disableCreate=!0,!1;var t=[];return this.thirdData.forEach(function(e){e.check&&e.display&&t.push({transId:e.transId,transName:e.transName})}),5==this.secondGoal.goalId&&1==t.length?(this.disableCreate=!0,!1):8==this.secondGoal.goalId&&(1==t.length||2==t.length&&t.map(function(t){return t.transId}).includes(4))?(this.disableCreate=!0,!1):10!=this.secondGoal.goalId&&11!=this.secondGoal.goalId||!(1==t.length||2==t.length&&(t.map(function(t){return t.transId}).includes(4)||t.map(function(t){return t.transId}).includes(16))||3==t.length&&t.map(function(t){return t.transId}).includes(4)&&t.map(function(t){return t.transId}).includes(16))?9==this.secondGoal.goalId&&(1==t.length||2==t.length&&(t.map(function(t){return t.transId}).includes(4)||t.map(function(t){return t.transId}).includes(16)))?(this.disableCreate=!0,!1):void(this.disableCreate=!1):(this.disableCreate=!0,!1)},changeMarking:function(){var t=this;t.$nextTick(function(){t.checkDisable()})},changeCard:function(){var t=this;t.$nextTick(function(){t.checkDisable()})},changeGame:function(t,e){var a=this;a.gamePlanName=t,a.gamePlanUrl=e,a.$nextTick(function(){a.checkDisable()})},toRedirectPage:function(t){if(window.location.origin.includes("gicdev"))return window.open(t.url),!1;"marking"==t.id&&window.open("/gic-web/#/custom"),"game"==t.id&&window.open("/marketing/#/game/dzp"),"card"==t.id&&window.open("/marketing/#/card/list")},toCreate:function(){var t=this;if(t.$store.dispatch("clearActiveData"),!t.firstGoal.hasOwnProperty("goalId"))return d.a.showmsg("请先选择活动目的","warning"),!1;if(!t.secondGoal.hasOwnProperty("goalId"))return d.a.showmsg("请先完善活动目的","warning"),!1;if(t.pathNames.includes("访问活动营销页")&&!t.markingValue||t.pathNames.includes("游戏参与")&&!t.gameValue.length||t.pathNames.includes("卡券领取")&&!t.cardValue)return d.a.showmsg("请先完善活动创建前准备工作","warning"),!1;t.pathNames.includes("访问活动营销页")&&t.markingValue&&t.markingList.forEach(function(e){t.markingValue==e.pageId&&(t.activityMarketPageName=e.name)}),t.pathNames.includes("卡券领取")&&t.cardValue&&t.cardList.forEach(function(e){t.cardValue==e.coupCardId&&(t.cardCoupName=e.cardName)});var e=[];if(t.thirdData.forEach(function(t){t.check&&t.display&&e.push({transId:t.transId,transName:t.transName})}),e.sort(function(t,e){return t.transId-e.transId}),5==t.secondGoal.goalId&&1==e.length)return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if(8==t.secondGoal.goalId&&(1==e.length||2==e.length&&e.map(function(t){return t.transId}).includes(4)))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if((10==t.secondGoal.goalId||11==t.secondGoal.goalId)&&(1==e.length||2==e.length&&(e.map(function(t){return t.transId}).includes(4)||e.map(function(t){return t.transId}).includes(16))||3==e.length&&e.map(function(t){return t.transId}).includes(4)&&e.map(function(t){return t.transId}).includes(16)))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;if(9==t.secondGoal.goalId&&(1==e.length||2==e.length&&(e.map(function(t){return t.transId}).includes(4)||e.map(function(t){return t.transId}).includes(16))))return d.a.showmsg("请在可选项中至少选择一项","warning"),!1;var a={firstGoal:t.firstGoal,secondGoal:t.secondGoal,pathArr:e,markingValue:t.markingValue,activityMarketPageName:t.activityMarketPageName,gameValue:t.gameValue,gamePlanName:t.gamePlanName,gamePlanUrl:t.gamePlanUrl,cardValue:t.cardValue,cardCoupName:t.cardCoupName};t.judgeCreate(a)},getTwoList:function(){var t=this;Object(r.a)("/sharing-core-web/list-activity-dict",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.firstData=JSON.parse(n()(a.result))||[],t.getMarkingList(),t.getCardList(),!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getText:function(t){var e=this,a={transIds:t};Object(r.a)("/sharing-core-web/list-activity-dict-text",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.fourData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getMarkingList:function(){var t=this;Object(r.a)("/sharing-core-web/list-marking-page",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.markingList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGameList:function(){var t=this;Object(r.a)("/sharing-core-web/list-game",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.gameList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCardList:function(){var t=this;Object(r.a)("/sharing-core-web/list-card",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.cardList=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},judgeCreate:function(t){var e=this;Object(r.a)("/sharing-core-web/can-create",{}).then(function(a){var i=a.data;if(1==i.errorCode)return console.log("indexObj:",t),e.$store.dispatch("saveIndexInfo",t),e.$router.push("/createActive"),!1;s.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTwoList()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"active-select border-box"},[a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600"},[t._v("请选择您的活动目的")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center"},[t._l(t.firstData,function(e,i){return[a("li",{key:i+"first",class:["li-cell flex-1 ",t.firstGoal.goalId==e.goalId?"li-cell-active":""],on:{click:function(a){return t.selectFirst(e)}}},[a("div",{staticClass:"li-cell-inner flex "},[a("div",{staticClass:"li-cell-left flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.firstGoal.goalId==e.goalId?e.selectedIconUrl:e.iconUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"li-cell-right border-box flex flex-column "},[a("div",{staticClass:"li-cell-active_name flex flex-align-center font-18 color-303133"},[t._v(t._s(e.goalName))]),t._v(" "),a("div",{staticClass:"li-cell-active_description flex flex-align-center font-14 color-606266"},[t._v(t._s(e.description))])])]),t._v(" "),t._m(0,!0)])]})],2),t._v(" "),t.firstGoal.goalId?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600"},[t._v("请进一步明确活动目的")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-48"},[t._l(t.secondData,function(e,i){return[a("li",{key:i+"second",class:["li-cell li-second-cell flex-1 ",t.secondGoal.goalId==e.goalId?"li-second-active":""],on:{click:function(a){return t.selectSecond(e)}}},[a("div",{staticClass:"li-cell-inner"},[a("div",{staticClass:"li-cell-top border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.secondGoal.goalId==e.goalId?e.selectedIconUrl:e.iconUrl,alt:""}}),a("span",{staticClass:"p-l-15 font-18 color-303133 font-w-700"},[t._v(t._s(e.goalName))])]),t._v(" "),a("div",{staticClass:"li-cell-bottom border-box"},[a("div",{staticClass:"li-cell-scene"},[a("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[t._v("适用场景")]),t._v(" "),a("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[t._v(t._s(e.description["适用场景"]))])]),t._v(" "),a("div",{staticClass:"li-cell-quality"},[a("div",{staticClass:"li-cell-quality_title font-14 color-303133"},[t._v("优劣分析")]),t._v(" "),a("div",{staticClass:"li-cell-quality_text font-14 color-606266"},[t._v(t._s(e.description["优劣分析"]))])])])]),t._v(" "),t._m(1,!0)])]})],2)]):t._e(),t._v(" "),t.secondGoal.goalId?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600 m-b-0"},[t._v("请配置受邀人的转化路径")]),t._v(" "),a("div",{staticClass:"active-select-subtitle font-14 color-606266"},[t._v("基于您的活动设计期望,配置受邀人的转化路径(即受邀人需要经历的交互步骤)。系统会根据您所选择的转化路径,自动配置服务号关注后回复、认证后卡券投放等营销脚本。您只需要根据自身需求选择路径,并选择相关的营销活动页、游戏计划或卡券。")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-50"},[t._l(t.thirdData,function(e,i){return[1==e.display?a("li",{key:i+"third",class:["li-cell li-third-cell flex-1 ",e.check?"li-third-active":"",e.mustFlag?"li-third-active-disable":""],on:{click:function(a){return t.selectThird(e)}}},[a("div",{staticClass:"li-cell-inner border-box"},[a("div",{staticClass:"li-cell-path_img flex flex-pack-center flex-pack--center"},[a("img",{attrs:{src:e.iconUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"li-cell-path_title font-16 color-303133 text-center"},[t._v(t._s(e.transName))]),t._v(" "),a("div",{staticClass:"li-cell-path_text font-14 color-606266"},[t._v(t._s(e.description))])]),t._v(" "),t._m(2,!0)]):t._e()]})],2)]):t._e(),t._v(" "),t.pathNames.includes("访问活动营销页")||t.pathNames.includes("游戏参与")||t.pathNames.includes("卡券领取")?a("div",[a("div",{staticClass:"active-select-next"}),t._v(" "),a("div",{staticClass:"active-select-title font-22 color-303133 font-w-600 m-b-0"},[t._v("活动创建前准备工作")]),t._v(" "),a("div",{staticClass:"active-select-subtitle font-14 color-606266"},[t._v("根据您配置的转化路径,请确保完成以下工作,否则活动无法被正常执行。")]),t._v(" "),a("ul",{staticClass:"flex flex-pack-center m-t-50"},[t._l(t.fourData,function(e,i){return["marking"==e.id&&t.pathNames.includes("访问活动营销页")||"game"==e.id&&t.pathNames.includes("游戏参与")||"card"==e.id&&t.pathNames.includes("卡券领取")?a("li",{key:i+"four",staticClass:"li-four-cell flex-1 "},[a("div",{staticClass:"li-cell-inner border-box"},[a("div",{staticClass:"li-cell-title font-18 color-303133 font-w-600"},[t._v(t._s(e.title))]),t._v(" "),a("div",{staticClass:"li-cell-subtitle font-14 color-606266"},[t._v(t._s(e.text))]),t._v(" "),"marking"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建活动营销页,请立即前往创建。")]):t._e(),t._v(" "),"game"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建游戏计划,请立即前往创建。")]):t._e(),t._v(" "),"card"==e.id?a("div",{staticClass:"li-cell-tip font-14 color-303133"},[t._v("如果您还没有创建卡券,请立即前往创建。")]):t._e(),t._v(" "),"marking"==e.id?a("div",{staticClass:"li-cell-select"},[a("el-select",{attrs:{size:"large",placeholder:"请选择活动着陆页"},on:{change:t.changeMarking},model:{value:t.markingValue,callback:function(e){t.markingValue=e},expression:"markingValue"}},t._l(t.markingList,function(t){return a("el-option",{key:t.pageId,attrs:{label:t.name,value:t.pageId}})}),1)],1):t._e(),t._v(" "),"game"==e.id?a("div",{staticClass:"li-cell-select"},[a("game-select",{on:{changeGame:t.changeGame},model:{value:t.gameValue,callback:function(e){t.gameValue=e},expression:"gameValue"}})],1):t._e(),t._v(" "),"card"==e.id?a("div",{staticClass:"li-cell-select"},[a("el-select",{attrs:{size:"large",placeholder:"请选择卡券"},on:{change:t.changeCard},model:{value:t.cardValue,callback:function(e){t.cardValue=e},expression:"cardValue"}},t._l(t.cardList,function(t){return a("el-option",{key:t.coupCardId,attrs:{label:t.cardName,value:t.coupCardId}})}),1)],1):t._e(),t._v(" "),a("div",{staticClass:"li-cell-seperator"},[t._v("OR")]),t._v(" "),a("div",{staticClass:"li-cell-btn"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return t.toRedirectPage(e)}}},[t._v("立即前往创建")])],1)])]):t._e()]})],2)]):t._e(),t._v(" "),a("div",{staticClass:"to-active-config"},[a("div",{staticClass:"to-active-tip font-14 color-606266"},[t._v("确认完成了所有前期准备工作,即可前往活动配置。")]),t._v(" "),a("div",{staticClass:"to-active-btn"},[a("el-button",{attrs:{type:"primary",disabled:t.disableCreate},on:{click:t.toCreate}},[t._v("前往活动配置"),a("i",{staticClass:"el-icon-right"})])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-cell-check"},[e("div",{staticClass:"common-cell-triangle"},[e("div",{staticClass:"common-cell-outer"},[e("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])}]};var h=a("VU/8")(u,f,!1,function(t){a("Y3tI")},"data-v-a731dce0",null).exports,v=a("fZjL"),g=a.n(v),m={name:"bar-chart",props:{barChartData:{type:[Array,Object],default:function(){return{}}},charHeight:{type:String,default:function(){return"300px"}}},components:{},data:function(){return this.chartSettings={},this.colors=["#5B8FF9","#5AD8A6","#FF6383"],this.tooltip={trigger:"axis",formatter:function(t){var e=[t[0].axisValue+"日"];return t.forEach(function(t){e.push(t.marker+" "+t.seriesName+":"+t.data)}),e.join("<br>")},axisPointer:{type:"shadow"},textStyle:{color:"#fff"}},this.yAxis={type:"value",axisTick:{show:!1},axisLabel:{show:!0,textStyle:{color:"#404040",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#d9d9d9"],width:1,type:"dashed"}}},this.legend={x:"left",itemWidth:8,itemHeight:8},this.grid={bottom:"34px"},{}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bar-chart"},[a("ve-histogram",{attrs:{data:t.barChartData,settings:t.chartSettings,colors:t.colors,height:t.charHeight,tooltip:t.tooltip,yAxis:t.yAxis,legend:t.legend,grid:t.grid}}),t._v(" "),a("div",{staticClass:"chart-title font-12 color-000 text-center"},[t._v("- 近15天趋势图 -")])],1)},staticRenderFns:[]};var y=a("VU/8")(m,p,!1,function(t){a("ZnPx")},"data-v-398b2619",null).exports,b={name:"data-statistics",props:{activeData:{type:[Object,Array],default:function(){return{exposure:0,attend:0,invited:0,attendRate:0,spread:0}}},activityId:{type:String,default:function(){return""}},barChartData:{type:[Array,Object],default:function(){return{}}}},components:{barChart:y},data:function(){return{charHeight:"220px"}},methods:{diagram:function(t){for(var e=document.getElementsByClassName("blue"+this.activityId),a=0;a<e.length;a++)a+1<=t?e[a].style.width="17px":a+1==Math.ceil(t)?e[a].style.width=parseInt(10*t-10*parseInt(t))/10*17+"px":e[a].style.width="0px";this.$forceUpdate()}},watch:{activeData:function(t,e){var a=this;t&&a.$nextTick(function(){a.diagram(t.spread)})}},mounted:function(){var t=this;t.$nextTick(function(){t.activeData.hasOwnProperty("spread")&&t.diagram(t.activeData.spread)})}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-statistics"},[a("div",{staticClass:"data-statistics-body flex"},[a("div",{staticClass:"data-statistics-left"},[a("ul",{staticClass:"flex flex-column flex-pack-center flex-align-center"},[a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(0),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("活动曝光量")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.exposure)))])])]),t._v(" "),a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(1),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("参与人数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.attend)))])])]),t._v(" "),a("li",{staticClass:"flex-1 flex flex-pack-center flex-align-center"},[t._m(2),t._v(" "),a("div",{staticClass:"data-statistics-txt flex flex-column"},[a("div",{staticClass:"font-14 color-606266 font-w-400"},[t._v("受邀人数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 font-w-600 p-t-10"},[t._v(t._s(t._f("formatThousand")(t.activeData.invited)))])])])])]),t._v(" "),a("div",{staticClass:"data-right-wrap"},[a("div",{staticClass:"data-right-top flex"},[a("div",{staticClass:"data-statistics-middle flex-1 border-box m-l-20"},[a("div",{staticClass:"font-14 color-606266"},[t._v("参与率")]),t._v(" "),a("div",{class:["font-22 color-303133 p-t-5 ",t.activeData.attendRate]},[t._v(t._s(t.activeData.attendRate?Number(100*Number(t.activeData.attendRate)).toFixed(2):0)+" %")]),t._v(" "),a("div",{staticClass:"data-percentage"},[a("div",{staticClass:"data-percentage-inner",style:{width:Number(100*Number(t.activeData.attendRate)).toFixed(2)+"%"}})])]),t._v(" "),a("div",{staticClass:"data-statistics-right flex-1 border-box m-l-20"},[a("div",{staticClass:"font-14 color-606266"},[t._v("传播系数")]),t._v(" "),a("div",{staticClass:"font-22 color-303133 p-t-5"},[t._v(t._s(t.activeData.spread))]),t._v(" "),a("ul",{staticClass:"spread-ul"},[a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})]),t._v(" "),a("li",[a("div",{staticClass:"gray"}),t._v(" "),a("div",{class:["blue","blue"+t.activityId],staticStyle:{width:"0px"}})])])])]),t._v(" "),a("div",{staticClass:"data-right-bottom"},[a("bar-chart",{attrs:{barChartData:t.barChartData,charHeight:t.charHeight}})],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("gjBT"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("oj03"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-statistics-icon"},[e("img",{attrs:{src:a("Vo6M"),alt:""}})])}]};var x=a("VU/8")(b,C,!1,function(t){a("J3un")},"data-v-56d4a684",null).exports,_={name:"funnel-chart",props:{funnelData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{router:[{transId:4,transName:"会员认证"},{transId:2,transName:"访问活动营销页"},{transId:1,transName:"服务号关注"}]}}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"funnel-chart"},[a("div",{staticClass:"funnel-chart-body flex"},[a("div",{staticClass:"chart-left"},[a("div",{staticClass:"trapezoid-bg flex flex-column"},[t._l(t.funnelData.router,function(e,i){return[a("div",{key:i,staticClass:"flex-1 flex flex-column"},[a("div",{staticClass:"flex-1 flex flex-pack-center font-12 color-606066 flex-align-center space-line r-60"}),t._v(" "),i!=t.funnelData.router.length-1?a("div",{staticClass:"flex-1 flex flex-pack-center font-12 color-606066 flex-align-center inner-bg bg-f5f7fa"},[t._v(t._s(e.rate?Number(100*Number(e.rate)).toFixed(2):0)+"%")]):t._e()])]})],2)]),t._v(" "),a("div",{staticClass:"chart-right"},[a("div",{staticClass:"chart-text flex flex-column"},[t._l(t.funnelData.router,function(e,i){return[a("div",{key:i,staticClass:"flex-1 flex flex-column"},[a("div",{staticClass:"flex-1 flex flex-align-center space-line p-l-98 font-12 color-606066"},[t._v(t._s(e.transName)+" "+t._s(e.countNumber)+" 人 "),32==e.transId?a("span",[t._v(", "+t._s(t._f("formatThousand")(e.countAmount))+" 元")]):t._e()]),t._v(" "),i!=t.funnelData.router.length-1?a("div",{staticClass:"flex-1 flex flex-align-center bg-f5f7fa"}):t._e()])]})],2)])]),t._v(" "),a("div",{staticClass:"funnel-chart-title font-12 color-000"},[t._v("- 响应转化漏斗 -")])])},staticRenderFns:[]};var w=a("VU/8")(_,k,!1,function(t){a("Qg7P")},"data-v-d8ad1dca",null).exports,I={name:"card-table",props:{barChartData:{type:[Array,Object],default:function(){return{}}},funnelData:{type:[Array,Object],default:function(){return{}}},activityId:{type:String,default:function(){return""}}},components:{funnelChart:w,dataStatisticsChild:x},data:function(){return{activeData:{exposure:0,attend:0,invited:0,attendRate:0,spread:0},itemId:this.activityId}},methods:{},watch:{funnelData:function(t,e){g()(t).length&&(this.activeData=JSON.parse(n()(t)))},activityId:function(t,e){t&&(this.itemId=t)}},mounted:function(){g()(this.funnelData).length&&(this.activeData=JSON.parse(n()(this.funnelData))),this.itemId=this.activityId}},D={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"out-date-active flex flex-space-between"},[e("data-statistics-child",{attrs:{activeData:this.activeData,barChartData:this.barChartData,activityId:this.itemId}}),this._v(" "),e("funnel-chart",{attrs:{funnelData:this.funnelData}})],1)},staticRenderFns:[]};var A=a("VU/8")(I,D,!1,function(t){a("PD7L")},"data-v-37089ce1",null).exports,S=a("TQvf"),E=a.n(S),T=a("PI0u"),N={name:"in-progress-active",components:{outDateActive:A},data:function(){return{funnelData:{},barChartData:{columns:["日期","新增参与人数","新增受邀人数"],rows:[]},index:"",selectItem:"",inProgressData:[]}},methods:{selectLi:Object(T.a)(function(t){this.selectItem=t.activityId,this.getActivityData(t.activityId)},100),getActivityData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/get-activity-data-summary",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.funnelData=a.result||{},a.result.trend&&a.result.trend.length&&a.result.trend.forEach(function(t){t["日期"]=t.date.split("-")[2],t["新增参与人数"]=t.inviteCount,t["新增受邀人数"]=t.invitedCount}),e.barChartData={columns:["日期","新增参与人数","新增受邀人数"],rows:a.result.trend||[]},!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/createActive?activityId="+e.activityId)},toDataList:function(t,e){this.$router.push("/dataDetail?activityId="+e.activityId)},handleCopy:function(t,e){var a=new E.a(".copy-tag",{text:function(){return e.activityUrl||"您复制的数据是空的!"}});a.on("success",function(t){d.a.showmsg("复制成功!","success"),a.destroy()}),a.on("error",function(t){d.a.showmsg("该浏览器不支持自动复制!","warning"),a.destroy()})},toDelList:function(t,e){var a=this;this.$confirm("是否要删除该活动?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delData(e.activityId)}).catch(function(){})},delData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/delete-activity",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),e.currentPage=1,window.location.reload(),!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(){var t=this;Object(r.a)("/sharing-core-web/page-activity",{type:4}).then(function(e){var a=e.data;if(1==a.errorCode)return t.inProgressData=a.result.result||[],a.result.result.length&&t.getActivityData(a.result.result[0].activityId),!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()}},O={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.inProgressData.length?a("div",[a("div",{staticClass:"separator-space"},[t._v("- 当前有计划中的活动,无法创建新的活动 -")]),t._v(" "),a("div",{staticClass:"in-progress-active border-box"},[a("ul",[t._l(t.inProgressData,function(e,i){return[a("li",{key:i+"data",class:["border-box",t.selectItem==e.activityId&&0!=i?"li-border":""]},[a("div",{staticClass:"in-progress-active-title flex flex-space-between border-box"},[a("div",{staticClass:"active-title-left",on:{click:function(a){return t.selectLi(e)}}},[a("div",{staticClass:"active-title-name font-18 color-303133 font-w-700"},[t._v(t._s(e.activityName)+" "),2==e.status?a("el-tag",{attrs:{type:"danger"}},[t._v("待完善")]):t._e(),t._v(" "),1==e.status&&e.startDate>(new Date).getTime()?a("el-tag",{attrs:{type:"danger"}},[t._v("未开始")]):t._e(),t._v(" "),1==e.status&&e.startDate<=(new Date).getTime()?a("el-tag",{attrs:{type:"success"}},[t._v("已开始")]):t._e()],1),t._v(" "),a("div",{staticClass:"active-title-date font-14 color-909399 m-t-7"},[t._v(t._s(t._f("formatTimeYmdHms")(e.startDate))+" - "+t._s(t._f("formatTimeYmdHms")(e.endDate)))])]),t._v(" "),a("div",{staticClass:"active-title-right"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toEdit(i,e)}}},[t._v("活动配置")]),t._v(" "),a("el-button",{staticClass:"copy-tag",attrs:{"data-clipboard-action":"copy","data-clipboard-text":e.activityUrl,type:"primary",plain:""},on:{click:function(a){return t.handleCopy(i,e)}}},[t._v("复制路径")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDataList(i,e)}}},[t._v("数据明细")]),t._v(" "),2==e.status?a("el-button",{attrs:{type:"danger",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDelList(i,e)}}},[t._v("删除")]):t._e()],1)]),t._v(" "),e.startDate<=(new Date).getTime()?a("div",{staticClass:"in-progress-active-body"},[a("out-date-active",{attrs:{barChartData:t.barChartData,funnelData:t.funnelData,activityId:e.activityId}})],1):t._e()])]})],2)])]):t._e()},staticRenderFns:[]};var P={name:"finished-active",components:{outDateActive:A},data:function(){return{funnelData:[],barChartData:{columns:["日期","访问用户","下单用户"],rows:[{"日期":"1/1","访问用户":1393,"下单用户":1093},{"日期":"1/2","访问用户":3530,"下单用户":3230},{"日期":"1/3","访问用户":2923,"下单用户":2623},{"日期":"1/4","访问用户":1723,"下单用户":1423},{"日期":"1/5","访问用户":3192,"下单用户":3192},{"日期":"1/6","访问用户":3593,"下单用户":3293}]},selectItem:"",finishedData:[],pageSize:20,currentPage:1,total:1}},methods:{selectLi:function(t){this.selectItem=t.activityId,this.getActivityData(t.activityId)},getActivityData:function(t){var e=this,a={activityId:t};Object(r.a)("/sharing-core-web/get-activity-data-summary",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.funnelData=a.result,a.result.trend&&a.result.trend.length&&a.result.trend.forEach(function(t){t["日期"]=t.date.split("-")[2],t["新增参与人数"]=t.inviteCount,t["新增受邀人数"]=t.invitedCount}),e.barChartData={columns:["日期","新增参与人数","新增受邀人数"],rows:a.result.trend||[]},!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/createActive?activityId="+e.activityId+"&editFlag=show")},toDataList:function(t,e){this.$router.push("/dataDetail?activityId="+e.activityId)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this,e={pageNum:t.currentPage,pageSize:t.pageSize,type:3};Object(r.a)("/sharing-core-web/page-activity",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.finishedData=a.result.result||[],t.total=a.result.totalCount,!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()}},j={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.finishedData.length?a("div",{staticClass:"separator-space"},[t._v("- 以下为已结束活动 -")]):t._e(),t._v(" "),a("div",{staticClass:"finished-active border-box"},[a("ul",[t._l(t.finishedData,function(e,i){return[a("li",{key:i+"data",class:["border-box",t.selectItem==e.activityId&&0!=i?"li-border":""]},[a("div",{staticClass:"finished-active-title flex flex-space-between border-box",on:{click:function(a){return a.stopPropagation(),t.selectLi(e)}}},[a("div",{staticClass:"active-title-left"},[a("div",{staticClass:"active-title-name font-18 color-303133 font-w-700"},[t._v(t._s(e.activityName))]),t._v(" "),a("div",{staticClass:"active-title-date font-14 color-909399 m-t-7"},[t._v(t._s(t._f("formatTimeYmdHms")(e.startDate))+" - "+t._s(t._f("formatTimeYmdHms")(e.endDate)))])]),t._v(" "),a("div",{staticClass:"active-title-right"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toEdit(i,e)}}},[t._v("活动配置")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){return a.stopPropagation(),t.toDataList(i,e)}}},[t._v("数据明细")])],1)]),t._v(" "),t.selectItem==e.activityId?a("div",{staticClass:"finished-active-body"},[a("out-date-active",{attrs:{barChartData:t.barChartData,funnelData:t.funnelData,activityId:e.activityId}})],1):t._e()])]})],2),t._v(" "),t.finishedData.length?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])])},staticRenderFns:[]};var V={name:"share-index",components:{activeSelect:h,inProgressActive:a("VU/8")(N,O,!1,function(t){a("UVYg")},"data-v-25718be9",null).exports,finishedActive:a("VU/8")(P,j,!1,function(t){a("okqm")},"data-v-1a22b0d7",null).exports},data:function(){return{canCreate:!0}},methods:{judgeCreate:function(){var t=this;Object(r.a)("/sharing-core-web/can-create",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.canCreate=a.result,!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.judgeCreate()}},M={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"share-index common-wrap"},[e("div",{staticClass:"right-content border-box"},[this.canCreate?e("div",[e("div",{staticClass:"separator-space no-active"},[this._v("\n - 当前无进行中的活动,请创建活动,别让业绩白白流失!-\n ")]),this._v(" "),e("active-select")],1):this._e(),this._v(" "),e("div",[e("in-progress-active"),this._v(" "),e("finished-active")],1)]),this._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var L=a("VU/8")(V,M,!1,function(t){a("UCGX")},"data-v-497f0dd4",null);e.default=L.exports},gjBT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABKJJREFUSA2VVl1oHFUU/s7sbNImltJoNbtN6l8wFiHG30JiamvFB61gaEK1INYHKRg3kSoI1Yeg9K3VxG0qEZT2SVBbXyoK9ScJSkogKdZCqhGlJrvZJk3qT2iT7O69fnfobCazsxt7YZjz8517zj3nnjMj+B+r6l1docK4GQoVfMqUhRK+xdJII4QrKovLsDE1GcMlEdHFtpRiyuq4jqYzuEtrrCmGc3UhC/NKY2zyVVwo5Ligww3v6fqMRrW72fW8QwpjydflfJBNnsNIXD9YegPO2f9Cz2VwL/NzS5BhMRkdDlphrMtYqEnF5Csv1vIyVYf1Ztamf+FvjFyxcE9qnwxZJTgrIWS9uGK0ZWEx8RpmshqtksXxaLd+xIvPObw1rm/PZnCS9SrjqTbxIpyOdOn9e9swfqONAcvGX17DQjQdppz6CVq4z2oFnDR7u/icw0WFwwTc5CqgESZ/oLcbA3MK6/fO4sdQGGM5fQGiRCG18Yi+g4Hf50A01i4oxF2443BDl95BwJOu0Pum08aFLH76sAJ7kjE5HwYdC656MS4tgswLHZjOpNHiypy3xlORbt1saMchj/3OMkA+s0YpfMQUf6HKYUXK0B+yMeGHsWZTnSKKwbf6dczYfiOT6BFdqxYReIX9RjzBNGv0bCIm3xmd6dOMQh3rzYMDJWEMM5CS+QX8YXj/oq7WUhns8iuCeDo7VWqjznVmMOMxSYayPG0IM9SrO2cwRWc7g+yNTGex2xaFBtap8BKkLcGbiRgOBk2PiX1yVWs9WHkQ6/s6JVPZrVuYvsBF8UM2hNOkAIBRm1v5XLJdhqU9cA9HeC2QqWiPrmbGNhdC0s1Gzl9UBQF4qmMVNu4vF5wL0gfJmLKdDD5venmwGy3OdqfgOaHgH16M3ZFVeGkmjbfmND7I6VYilK8dfHjjy7TFbE4uOF1qoT4EDCXm8QPlbzDcZx7o1cuDyhksEebGakHDkiSQmrUI+pUqxXoduLsOTYsaDWmFM0zNw8aEPbUuOY/tgeYeYVatmE4YXzaLeMIK4e3yMgz/chYf08Hznn0cknU2jfy1X+7lidnGbFzyyvw0HfY5BTafJBb8EwJq/CDD8/QztXWo7NsmmSD99ciEPSSRbvxOo9uKGbLYTyQ68E30fRxilKuKYQvoRpMdErdND0W79CHO09xEDzJgOlqIPcXGrmHanw7CFJMxSGegO8M7shq9TNtwMQPqmls/1bzAOL4CLl8t+D7ZgRNG4dTQEJEevUlnMMjbudbwQYszczufM4tpXCRuxVYxe9DBrIRRn2yTccM7JzTEZJuM8rY+Zi6I4YOWZmP/+bJcZgM7X4sgzDKZIMUAt7rOjC7n0DDJV2TEBrYyrIuG9y/WublTa4tBfe7X+XliLtg2miZi8rNXl0upV1jVo2uyaRxlbzV65YYWG4/ypKNM6SQfU9P8JfiWfwV7Eu2S95FedkLXcqJNfmORm/hj+yIjXfZxZr+2pNplmtgBF+++Gf0IHe1KdcjjQc4MjhkMXtc+OUfZp8cicWzhRNrBv+pGbrrF6d04PqNlLfkx1rSfA//LiXYZCt5tSfofVt6aUjcV2t0AAAAASUVORK5CYII="},mvHQ:function(t,e,a){t.exports={default:a("qkKv"),__esModule:!0}},oj03:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAdCAYAAAC5UQwxAAAAAXNSR0IArs4c6QAABCxJREFUSA2tVl1oXEUU/mbu3d3au5uEVsyum6AkVWmLohSqqK2IL/7jg+2T+CI0VEmCpRSLfciLIIhFt5aY1/gg6Js+2BdFxL+gtrSk2J9IQ5LdVK3d/iT7k9x7j2eGvcvduXdTu/XCMnO++eZ883PmnBW4xW/XZ2T9UkTGJcjua1g6PSZW1nIp1hpca6z3PXKkhc0+kGvyJEi6WHSSmJ4ZEfUmHurcUPCuCcq5NWxRc6TE7/PDoqT6mwrUVfGw3SPcpuzwx7yVFGFq9k1xJYyrflvBvnHKuyv4mDnPgRo8ARKEYyKBodIbYp5FUxUfOz0f6yKOLSztyOG7z3cLLzwmw0bQzxVoh1fHNAs93xRTgyxMwDO+i+n8h/SkPjYXJ4J54ZY8pH9axEAYU/2I4NajlCYfk+y4xyQ3bUIX393kwAR1l/aLS7bApeZYqON5yIZM3Y0IXvZwkEfuNommTYS+Wg2HFM7bnjPHNY6Y+zWJ7OgFE2tnB1xnFdfiOJ6Aa+KRHXIU9ZmkdjYfu+bmqqjGcSwfZROPCDJh1iStYWvuTBcSJkcI+JkezJh4nOBxk9TOZqea6/twTI4tce7sa+K6iUcEpcARJkXO3pzIL9PjGC8onB96M9twAHmWhZMLo+J8ZI7immBxRJzke3zXxGPs9xeHxa/bJijhS2QtoM7PY16m8W1pVMzF8DXUNtNkC7SXV3uYI7Eli/Ax1vl3oDQi9O6yh2k7B09vIMBjLueWv1IW/rip1KYc9BdokPPSXhZ9VWccgU94J+PBcW0do+TlHjzCd9gdCIZbi7DwWD9OhdNb7A7zBVJORnjlL7KDloDgHVR4AV9ypThSGhY/qPL0YxH3c3nqD4sFfb7fq47EVFA9WgQfmCTn7zLGWeiVlhwazDZanvxpVwZDKhr5CraQi0GDok0Oon/2lPHz2Jjwm4KD43RHZQXHePUPxU1qiwmcSq3D07N7cDH/AR7lcrUhjpuwcEZdhRZUkVaq4RsWezyO/B+wqbTEEzUX0pPYydeRNOeoYNqYx9f6WRTrOHgLYsr3w8s+Di3sE1Xewawppmz2b5cXkRX5j2ij5+ICY5k44k1gy04KA/Uqrq9KPAU/WtyFxEXJ23/5fxBT63Kqdexu7PLP2IUSHMnF9tnYwQ5AEvx3hD+y4guyJCQ5deKeDnzHTuHnpH2t91CJI/g2rkg+6dvjBjvEtK9kPSrIiWI1aeO85OiJ1KwOxVSUaF/pHtQCH+o52DbmNtj4fu51UbaFjbe40HzFwusDUictO65xGjug5mbuBSXO4HjyKpa2DWBJ5dJiw6l++LmjtJkr4Nss+hLjLbmzwWvb6NwKfMEl/535UTHdltgY0IIBSWWcYhUPMngfO7qT86nDFdPhhehFMLbMWIXPbpmxkiVwtjeFE78NidXAx43afwGGeG0DzVSPiwAAAABJRU5ErkJggg=="},okqm:function(t,e){},qkKv:function(t,e,a){var i=a("FeBl"),n=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],t[i]&&b.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={15:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"acd984b18aa7925b3036",1:"cd8911fae63b93bb26df",2:"1a6172bd52739de42ee7",3:"8bfe382f7321a807d952",4:"8bcfa0b5cbcb9317369e",5:"6292def4983145b5962d",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],t[i]&&b.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={15:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"acd984b18aa7925b3036",1:"cd8911fae63b93bb26df",2:"1a6172bd52739de42ee7",3:"35f4c410dfa15416f8df",4:"8bcfa0b5cbcb9317369e",5:"6292def4983145b5962d",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<script src="//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js"></script> <script src="//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js"></script>
<!-- 公共组件引用 cdn --> <!-- 公共组件引用 cdn -->
<script src="//web-1251519181.file.myqcloud.com/components/header.2.0.33.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/header.2.0.33.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.03.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js"></script>
<!-- 新版卡券门店选择器 --> <!-- 新版卡券门店选择器 -->
<script src="//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js"></script>
......
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