Commit 296bb5ed by 曾经

已中止 文案提示

parent 95b9f934
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>game-h5</title><link rel="stylesheet" href="//at.alicdn.com/t/font_2844902_uelk5f2sikk.css"><link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"><link href="css/chunk-09aa8c08.404f8202.css" rel="prefetch"><link href="css/chunk-09d0db87.c04481f2.css" rel="prefetch"><link href="css/chunk-19f41208.93bdc1c9.css" rel="prefetch"><link href="css/chunk-390246b3.da21bd50.css" rel="prefetch"><link href="css/chunk-405ced3c.56427343.css" rel="prefetch"><link href="css/chunk-4b1efb49.432dbb80.css" rel="prefetch"><link href="css/chunk-5bb0cafd.6e7ac050.css" rel="prefetch"><link href="css/chunk-5ea88b5e.c37924f6.css" rel="prefetch"><link href="css/chunk-71639305.f21c9ef5.css" rel="prefetch"><link href="css/chunk-724568a8.00555196.css" rel="prefetch"><link href="css/chunk-7335cd0c.375d042e.css" rel="prefetch"><link href="css/chunk-7925f179.79a37ec6.css" rel="prefetch"><link href="css/chunk-d289896c.93b3d2aa.css" rel="prefetch"><link href="js/chunk-09aa8c08.84f5e2cf.js" rel="prefetch"><link href="js/chunk-09d0db87.a448d57a.js" rel="prefetch"><link href="js/chunk-19f41208.64f37e0c.js" rel="prefetch"><link href="js/chunk-3566c97c.3f1cfa5e.js" rel="prefetch"><link href="js/chunk-390246b3.22a54d49.js" rel="prefetch"><link href="js/chunk-405ced3c.8c70b0b9.js" rel="prefetch"><link href="js/chunk-4aa552e1.221177b9.js" rel="prefetch"><link href="js/chunk-4b1efb49.5c467034.js" rel="prefetch"><link href="js/chunk-5bb0cafd.c7cf5bf3.js" rel="prefetch"><link href="js/chunk-5ea88b5e.9fc6b0b4.js" rel="prefetch"><link href="js/chunk-71639305.5785be32.js" rel="prefetch"><link href="js/chunk-724568a8.4803c6db.js" rel="prefetch"><link href="js/chunk-72be1171.dce6850f.js" rel="prefetch"><link href="js/chunk-7335cd0c.ff79e635.js" rel="prefetch"><link href="js/chunk-7925f179.162144d1.js" rel="prefetch"><link href="js/chunk-d289896c.08a53e49.js" rel="prefetch"><link href="js/app.3471895a.js" rel="preload" as="script"><link href="js/chunk-vendors.37f2d3ab.js" rel="preload" as="script"></head><body><noscript><strong>We're sorry but game-h5 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/axios/0.18.0/index.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js"></script><script src="https://unpkg.com/element-ui/lib/index.js"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script><script src="js/chunk-vendors.37f2d3ab.js"></script><script src="js/app.3471895a.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>game-h5</title><link rel="stylesheet" href="//at.alicdn.com/t/font_2844902_uelk5f2sikk.css"><link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"><link href="css/chunk-09aa8c08.404f8202.css" rel="prefetch"><link href="css/chunk-09d0db87.c04481f2.css" rel="prefetch"><link href="css/chunk-19f41208.93bdc1c9.css" rel="prefetch"><link href="css/chunk-390246b3.da21bd50.css" rel="prefetch"><link href="css/chunk-405ced3c.56427343.css" rel="prefetch"><link href="css/chunk-4b1efb49.432dbb80.css" rel="prefetch"><link href="css/chunk-5bb0cafd.6e7ac050.css" rel="prefetch"><link href="css/chunk-5ea88b5e.c37924f6.css" rel="prefetch"><link href="css/chunk-71639305.f21c9ef5.css" rel="prefetch"><link href="css/chunk-724568a8.00555196.css" rel="prefetch"><link href="css/chunk-7335cd0c.375d042e.css" rel="prefetch"><link href="css/chunk-7925f179.79a37ec6.css" rel="prefetch"><link href="css/chunk-d289896c.93b3d2aa.css" rel="prefetch"><link href="js/chunk-09aa8c08.84f5e2cf.js" rel="prefetch"><link href="js/chunk-09d0db87.a448d57a.js" rel="prefetch"><link href="js/chunk-19f41208.8191604a.js" rel="prefetch"><link href="js/chunk-3566c97c.3f1cfa5e.js" rel="prefetch"><link href="js/chunk-390246b3.16f8b2c2.js" rel="prefetch"><link href="js/chunk-405ced3c.8c70b0b9.js" rel="prefetch"><link href="js/chunk-4aa552e1.221177b9.js" rel="prefetch"><link href="js/chunk-4b1efb49.bba8497b.js" rel="prefetch"><link href="js/chunk-5bb0cafd.7a8715f7.js" rel="prefetch"><link href="js/chunk-5ea88b5e.9fc6b0b4.js" rel="prefetch"><link href="js/chunk-71639305.fa04035a.js" rel="prefetch"><link href="js/chunk-724568a8.4803c6db.js" rel="prefetch"><link href="js/chunk-72be1171.dce6850f.js" rel="prefetch"><link href="js/chunk-7335cd0c.0c1eae0b.js" rel="prefetch"><link href="js/chunk-7925f179.162144d1.js" rel="prefetch"><link href="js/chunk-d289896c.a72e933a.js" rel="prefetch"><link href="js/app.ef5a59cf.js" rel="preload" as="script"><link href="js/chunk-vendors.37f2d3ab.js" rel="preload" as="script"></head><body><noscript><strong>We're sorry but game-h5 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/axios/0.18.0/index.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js"></script><script src="https://unpkg.com/element-ui/lib/index.js"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script><script src="js/chunk-vendors.37f2d3ab.js"></script><script src="js/app.ef5a59cf.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function n(n){for(var t,u,o=n[0],h=n[1],i=n[2],l=0,f=[];l<o.length;l++)u=o[l],Object.prototype.hasOwnProperty.call(r,u)&&r[u]&&f.push(r[u][0]),r[u]=0;for(t in h)Object.prototype.hasOwnProperty.call(h,t)&&(e[t]=h[t]);d&&d(n);while(f.length)f.shift()();return a.push.apply(a,i||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],t=!0,u=1;u<c.length;u++){var o=c[u];0!==r[o]&&(t=!1)}t&&(a.splice(n--,1),e=h(h.s=c[0]))}return e}var t={},u={app:0},r={app:0},a=[];function o(e){return h.p+"js/"+({}[e]||e)+"."+{"chunk-3566c97c":"3f1cfa5e","chunk-4aa552e1":"221177b9","chunk-72be1171":"dce6850f","chunk-09d0db87":"a448d57a","chunk-19f41208":"64f37e0c","chunk-390246b3":"22a54d49","chunk-4b1efb49":"5c467034","chunk-5bb0cafd":"c7cf5bf3","chunk-5ea88b5e":"9fc6b0b4","chunk-71639305":"5785be32","chunk-09aa8c08":"84f5e2cf","chunk-405ced3c":"8c70b0b9","chunk-7925f179":"162144d1","chunk-724568a8":"4803c6db","chunk-7335cd0c":"ff79e635","chunk-d289896c":"08a53e49"}[e]+".js"}function h(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,h),c.l=!0,c.exports}h.e=function(e){var n=[],c={"chunk-09d0db87":1,"chunk-19f41208":1,"chunk-390246b3":1,"chunk-4b1efb49":1,"chunk-5bb0cafd":1,"chunk-5ea88b5e":1,"chunk-71639305":1,"chunk-09aa8c08":1,"chunk-405ced3c":1,"chunk-7925f179":1,"chunk-724568a8":1,"chunk-7335cd0c":1,"chunk-d289896c":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="css/"+({}[e]||e)+"."+{"chunk-3566c97c":"31d6cfe0","chunk-4aa552e1":"31d6cfe0","chunk-72be1171":"31d6cfe0","chunk-09d0db87":"c04481f2","chunk-19f41208":"93bdc1c9","chunk-390246b3":"da21bd50","chunk-4b1efb49":"432dbb80","chunk-5bb0cafd":"6e7ac050","chunk-5ea88b5e":"c37924f6","chunk-71639305":"f21c9ef5","chunk-09aa8c08":"404f8202","chunk-405ced3c":"56427343","chunk-7925f179":"79a37ec6","chunk-724568a8":"00555196","chunk-7335cd0c":"375d042e","chunk-d289896c":"93b3d2aa"}[e]+".css",r=h.p+t,a=document.getElementsByTagName("link"),o=0;o<a.length;o++){var i=a[o],l=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(l===t||l===r))return n()}var f=document.getElementsByTagName("style");for(o=0;o<f.length;o++){i=f[o],l=i.getAttribute("data-href");if(l===t||l===r)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var t=n&&n.target&&n.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=t,delete u[e],d.parentNode.removeChild(d),c(a)},d.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=a);var i,l=document.createElement("script");l.charset="utf-8",l.timeout=120,h.nc&&l.setAttribute("nonce",h.nc),l.src=o(e);var f=new Error;i=function(n){l.onerror=l.onload=null,clearTimeout(d);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+t+": "+u+")",f.name="ChunkLoadError",f.type=t,f.request=u,c[1](f)}r[e]=void 0}};var d=setTimeout((function(){i({type:"timeout",target:l})}),12e4);l.onerror=l.onload=i,document.head.appendChild(l)}return Promise.all(n)},h.m=e,h.c=t,h.d=function(e,n,c){h.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},h.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.t=function(e,n){if(1&n&&(e=h(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(h.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)h.d(c,t,function(n){return e[n]}.bind(null,t));return c},h.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return h.d(n,"a",n),n},h.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},h.p="",h.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var f=0;f<i.length;f++)n(i[f]);var d=l;a.push([0,"chunk-vendors"]),c()})({0:function(e,n,c){e.exports=c("56d7")},"56d7":function(e,n,c){"use strict";c.r(n);c("e260"),c("e6cf"),c("cca6"),c("a79d");var t=c("8bbf"),u=c.n(t),r=function(){var e=this,n=e.$createElement,c=e._self._c||n;return c("div",{attrs:{id:"app"}},[c("router-view")],1)},a=[],o={name:"App"},h=o,i=c("2877"),l=Object(i["a"])(h,r,a,!1,null,null,null),f=l.exports,d=c("cebe"),p=c.n(d),b=(c("d3b7"),c("3ca3"),c("ddb0"),c("6389")),s=c.n(b);u.a.use(s.a);var k=[{path:"/",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-4aa552e1")]).then(c.bind(null,"6e78"))}},{path:"/cmh/1",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-405ced3c")]).then(c.bind(null,"28b8"))}},{path:"/cmh/1/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-09d0db87")]).then(c.bind(null,"e214"))},name:"游戏规则"},{path:"/cmh/1/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-390246b3")]).then(c.bind(null,"393a"))},name:"我的奖品"},{path:"/cmh/1/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-d289896c")]).then(c.bind(null,"95c8"))},name:"助力拆盲盒"},{path:"/cmh/2",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-7925f179")]).then(c.bind(null,"a893"))}},{path:"/cmh/2/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-724568a8")]).then(c.bind(null,"0f3e"))},name:"游戏规则"},{path:"/cmh/2/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-19f41208")]).then(c.bind(null,"415c"))},name:"我的奖品"},{path:"/cmh/2/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-7335cd0c")]).then(c.bind(null,"5f60"))},name:"助力拆盲盒"},{path:"/cmh/3",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-09aa8c08")]).then(c.bind(null,"c2c8"))}},{path:"/cmh/3/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-5ea88b5e")]).then(c.bind(null,"3b16"))},name:"游戏规则"},{path:"/cmh/3/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-4b1efb49")]).then(c.bind(null,"14ab"))},name:"我的奖品"},{path:"/cmh/3/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-5bb0cafd")]).then(c.bind(null,"a4fa"))},name:"助力拆盲盒"}],m=new s.a({base:"/",routes:k}),v=m;u.a.config.productionTip=!1,u.a.prototype.axios=p.a,u.a.prototype.axios.defaults.withCredentials=!0,new u.a({router:v,render:function(e){return e(f)}}).$mount("#app")},6389:function(e,n){e.exports=VueRouter},"8bbf":function(e,n){e.exports=Vue},cebe:function(e,n){e.exports=axios}}); (function(e){function n(n){for(var t,u,o=n[0],h=n[1],i=n[2],l=0,f=[];l<o.length;l++)u=o[l],Object.prototype.hasOwnProperty.call(r,u)&&r[u]&&f.push(r[u][0]),r[u]=0;for(t in h)Object.prototype.hasOwnProperty.call(h,t)&&(e[t]=h[t]);d&&d(n);while(f.length)f.shift()();return a.push.apply(a,i||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],t=!0,u=1;u<c.length;u++){var o=c[u];0!==r[o]&&(t=!1)}t&&(a.splice(n--,1),e=h(h.s=c[0]))}return e}var t={},u={app:0},r={app:0},a=[];function o(e){return h.p+"js/"+({}[e]||e)+"."+{"chunk-3566c97c":"3f1cfa5e","chunk-4aa552e1":"221177b9","chunk-72be1171":"dce6850f","chunk-09d0db87":"a448d57a","chunk-19f41208":"8191604a","chunk-390246b3":"16f8b2c2","chunk-4b1efb49":"bba8497b","chunk-5bb0cafd":"7a8715f7","chunk-5ea88b5e":"9fc6b0b4","chunk-71639305":"fa04035a","chunk-09aa8c08":"84f5e2cf","chunk-405ced3c":"8c70b0b9","chunk-7925f179":"162144d1","chunk-724568a8":"4803c6db","chunk-7335cd0c":"0c1eae0b","chunk-d289896c":"a72e933a"}[e]+".js"}function h(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,h),c.l=!0,c.exports}h.e=function(e){var n=[],c={"chunk-09d0db87":1,"chunk-19f41208":1,"chunk-390246b3":1,"chunk-4b1efb49":1,"chunk-5bb0cafd":1,"chunk-5ea88b5e":1,"chunk-71639305":1,"chunk-09aa8c08":1,"chunk-405ced3c":1,"chunk-7925f179":1,"chunk-724568a8":1,"chunk-7335cd0c":1,"chunk-d289896c":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="css/"+({}[e]||e)+"."+{"chunk-3566c97c":"31d6cfe0","chunk-4aa552e1":"31d6cfe0","chunk-72be1171":"31d6cfe0","chunk-09d0db87":"c04481f2","chunk-19f41208":"93bdc1c9","chunk-390246b3":"da21bd50","chunk-4b1efb49":"432dbb80","chunk-5bb0cafd":"6e7ac050","chunk-5ea88b5e":"c37924f6","chunk-71639305":"f21c9ef5","chunk-09aa8c08":"404f8202","chunk-405ced3c":"56427343","chunk-7925f179":"79a37ec6","chunk-724568a8":"00555196","chunk-7335cd0c":"375d042e","chunk-d289896c":"93b3d2aa"}[e]+".css",r=h.p+t,a=document.getElementsByTagName("link"),o=0;o<a.length;o++){var i=a[o],l=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(l===t||l===r))return n()}var f=document.getElementsByTagName("style");for(o=0;o<f.length;o++){i=f[o],l=i.getAttribute("data-href");if(l===t||l===r)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var t=n&&n.target&&n.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=t,delete u[e],d.parentNode.removeChild(d),c(a)},d.href=r;var b=document.getElementsByTagName("head")[0];b.appendChild(d)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=a);var i,l=document.createElement("script");l.charset="utf-8",l.timeout=120,h.nc&&l.setAttribute("nonce",h.nc),l.src=o(e);var f=new Error;i=function(n){l.onerror=l.onload=null,clearTimeout(d);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+t+": "+u+")",f.name="ChunkLoadError",f.type=t,f.request=u,c[1](f)}r[e]=void 0}};var d=setTimeout((function(){i({type:"timeout",target:l})}),12e4);l.onerror=l.onload=i,document.head.appendChild(l)}return Promise.all(n)},h.m=e,h.c=t,h.d=function(e,n,c){h.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},h.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.t=function(e,n){if(1&n&&(e=h(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(h.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)h.d(c,t,function(n){return e[n]}.bind(null,t));return c},h.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return h.d(n,"a",n),n},h.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},h.p="",h.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var f=0;f<i.length;f++)n(i[f]);var d=l;a.push([0,"chunk-vendors"]),c()})({0:function(e,n,c){e.exports=c("56d7")},"56d7":function(e,n,c){"use strict";c.r(n);c("e260"),c("e6cf"),c("cca6"),c("a79d");var t=c("8bbf"),u=c.n(t),r=function(){var e=this,n=e.$createElement,c=e._self._c||n;return c("div",{attrs:{id:"app"}},[c("router-view")],1)},a=[],o={name:"App"},h=o,i=c("2877"),l=Object(i["a"])(h,r,a,!1,null,null,null),f=l.exports,d=c("cebe"),b=c.n(d),p=(c("d3b7"),c("3ca3"),c("ddb0"),c("6389")),s=c.n(p);u.a.use(s.a);var k=[{path:"/",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-4aa552e1")]).then(c.bind(null,"6e78"))}},{path:"/cmh/1",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-405ced3c")]).then(c.bind(null,"28b8"))}},{path:"/cmh/1/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-09d0db87")]).then(c.bind(null,"e214"))},name:"游戏规则"},{path:"/cmh/1/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-390246b3")]).then(c.bind(null,"393a"))},name:"我的奖品"},{path:"/cmh/1/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-d289896c")]).then(c.bind(null,"95c8"))},name:"助力拆盲盒"},{path:"/cmh/2",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-7925f179")]).then(c.bind(null,"a893"))}},{path:"/cmh/2/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-724568a8")]).then(c.bind(null,"0f3e"))},name:"游戏规则"},{path:"/cmh/2/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-19f41208")]).then(c.bind(null,"415c"))},name:"我的奖品"},{path:"/cmh/2/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-7335cd0c")]).then(c.bind(null,"5f60"))},name:"助力拆盲盒"},{path:"/cmh/3",name:"猜盲盒",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-71639305"),c.e("chunk-09aa8c08")]).then(c.bind(null,"c2c8"))}},{path:"/cmh/3/rule",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-5ea88b5e")]).then(c.bind(null,"3b16"))},name:"游戏规则"},{path:"/cmh/3/my-reward",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-4b1efb49")]).then(c.bind(null,"14ab"))},name:"我的奖品"},{path:"/cmh/3/support",component:function(){return Promise.all([c.e("chunk-3566c97c"),c.e("chunk-72be1171"),c.e("chunk-5bb0cafd")]).then(c.bind(null,"a4fa"))},name:"助力拆盲盒"}],m=new s.a({base:"/",routes:k}),v=m;u.a.config.productionTip=!1,u.a.prototype.axios=b.a,u.a.prototype.axios.defaults.withCredentials=!0,new u.a({router:v,render:function(e){return e(f)}}).$mount("#app")},6389:function(e,n){e.exports=VueRouter},"8bbf":function(e,n){e.exports=Vue},cebe:function(e,n){e.exports=axios}});
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19f41208"],{"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),a=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):a(i(t))}},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),a=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=i(l),p=u),c(d,p,(function(i,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>h){var d=a(f/10);return 0===d?i:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):i}u=r[f-1]}return void 0===u?"":u}))}},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),a=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(a)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");t.exports=a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"415c":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("51cf"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v("还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧!")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("93c4"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],a=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(a["a"])(Object(a["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,i=t.list||[],i=1==t.currentPage?r.result||[]:i.concat(r.result||[]),t.currentPage++,t.list=i;case 12:case"end":return e.stop()}}),e)})))()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("f979"),n("2877")),b=Object(d["a"])(l,r,i,!1,null,"6e0420c2",null);e["default"]=b.exports},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),a=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=a(t),u=i(e,r),f=i(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,a=n("1dde"),o=a("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"51cf":function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=a([].concat),O=a([].push),P=a("".indexOf),C=a("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=b(this),a=void 0==t?void 0:p(t,w);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=s(this),c=d(t);if("string"==typeof i&&-1===P(i,a)&&-1===P(i,"$<")){var b=n(e,o,c,i);if(b.done)return b.value}var p=u(i);p||(i=d(i));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(i,void 0,M))}else F=v(R,c,L,T,q,i);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),a=n("b622"),o=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=a("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),i=n("4930"),a=n("d039"),o=n("7418"),c=n("7b0b"),s=!i||a((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"746f":function(t,e,n){var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},"93c4":function(t,e,n){t.exports=n.p+"img/rulebg.66e4432e.png"},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=i.TypeError,w=h>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,i,a,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],x(a)){if(i=u(a),d+i>v)throw g(m);for(n=0;n<i;n++,d++)n in a&&f(c,d,a[n])}else{if(d>=v)throw g(m);f(c,d++,a)}return c.length=d,c}})},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),a=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(a(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,f[n]=e,n}})},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),a=n("df75"),o=n("d039"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return a(i(t))}})},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),a=i["a"].validGame,o=i["a"].getGameRule,c=i["a"].gamePlay,s=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var i=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){i({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:a="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){a(e.$route.query).then(t).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",a="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:a="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:a="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(a||r)&&i({show:!0,title:a,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var i=e.$route.query;o({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(a=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==a.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==a.type?+r.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==a.type&&e.shareFwh(a);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),a=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(u,t))return u[t]}})},c962:function(t,e,n){},d9f5:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=i.Symbol,W=U&&U[G],B=i.TypeError,Q=i.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,it=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,at=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),it(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!a(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=a(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var i=Y(n,r);return!i||!l(tt,r)||l(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&a(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),it(this,e,m(1,t))};return s&&rt&&it(H,e,{configurable:!0,set:n}),at(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return at(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return at(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),a=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),i=c.f,u=a(r),f={},l=0;while(u.length>l)n=i(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),a=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=i((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},f979:function(t,e,n){"use strict";n("c962")}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19f41208"],{"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),a=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):a(i(t))}},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),a=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=i(l),p=u),c(d,p,(function(i,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>h){var d=a(f/10);return 0===d?i:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):i}u=r[f-1]}return void 0===u?"":u}))}},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),a=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(a)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");t.exports=a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"415c":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("51cf"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v("还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧!")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("93c4"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],a=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(a["a"])(Object(a["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,i=t.list||[],i=1==t.currentPage?r.result||[]:i.concat(r.result||[]),t.currentPage++,t.list=i;case 12:case"end":return e.stop()}}),e)})))()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("f979"),n("2877")),b=Object(d["a"])(l,r,i,!1,null,"6e0420c2",null);e["default"]=b.exports},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),a=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=a(t),u=i(e,r),f=i(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,a=n("1dde"),o=a("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"51cf":function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=a([].concat),O=a([].push),P=a("".indexOf),C=a("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=b(this),a=void 0==t?void 0:p(t,w);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=s(this),c=d(t);if("string"==typeof i&&-1===P(i,a)&&-1===P(i,"$<")){var b=n(e,o,c,i);if(b.done)return b.value}var p=u(i);p||(i=d(i));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(i,void 0,M))}else F=v(R,c,L,T,q,i);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),a=n("b622"),o=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=a("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),i=n("4930"),a=n("d039"),o=n("7418"),c=n("7b0b"),s=!i||a((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"746f":function(t,e,n){var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},"93c4":function(t,e,n){t.exports=n.p+"img/rulebg.66e4432e.png"},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=i.TypeError,w=h>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,i,a,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],x(a)){if(i=u(a),d+i>v)throw g(m);for(n=0;n<i;n++,d++)n in a&&f(c,d,a[n])}else{if(d>=v)throw g(m);f(c,d++,a)}return c.length=d,c}})},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),a=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(a(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,f[n]=e,n}})},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),a=n("df75"),o=n("d039"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return a(i(t))}})},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),a=i["a"].validGame,o=i["a"].getGameRule,c=i["a"].gamePlay,s=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var i=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){i({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:a="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){a(e.$route.query).then(t).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",a="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:a="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:a="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(a||r)&&i({show:!0,title:a,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var i=e.$route.query;o({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(a=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==a.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==a.type?+r.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==a.type&&e.shareFwh(a);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),a=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(u,t))return u[t]}})},c962:function(t,e,n){},d9f5:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=i.Symbol,W=U&&U[G],B=i.TypeError,Q=i.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,it=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,at=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),it(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!a(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=a(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var i=Y(n,r);return!i||!l(tt,r)||l(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&a(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),it(this,e,m(1,t))};return s&&rt&&it(H,e,{configurable:!0,set:n}),at(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return at(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return at(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),a=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),i=c.f,u=a(r),f={},l=0;while(u.length>l)n=i(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),a=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=i((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},f979:function(t,e,n){"use strict";n("c962")}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-390246b3"],{"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),a=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):a(i(t))}},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),a=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=i(l),p=u),c(d,p,(function(i,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>h){var d=a(f/10);return 0===d?i:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):i}u=r[f-1]}return void 0===u?"":u}))}},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),a=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(a)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");t.exports=a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"393a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("736f"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v(" 还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧! ")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("4de3"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],a=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(a["a"])(Object(a["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,i=t.list||[],i=1==t.currentPage?r.result||[]:i.concat(r.result||[]),t.currentPage++,t.list=i;case 12:case"end":return e.stop()}}),e)})))()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("f9fa"),n("2877")),b=Object(d["a"])(l,r,i,!1,null,"4125f473",null);e["default"]=b.exports},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),a=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=a(t),u=i(e,r),f=i(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de3":function(t,e,n){t.exports=n.p+"img/rulebg.c076f3ae.png"},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,a=n("1dde"),o=a("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=a([].concat),O=a([].push),P=a("".indexOf),C=a("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=b(this),a=void 0==t?void 0:p(t,w);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=s(this),c=d(t);if("string"==typeof i&&-1===P(i,a)&&-1===P(i,"$<")){var b=n(e,o,c,i);if(b.done)return b.value}var p=u(i);p||(i=d(i));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(i,void 0,M))}else F=v(R,c,L,T,q,i);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),a=n("b622"),o=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=a("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),i=n("4930"),a=n("d039"),o=n("7418"),c=n("7b0b"),s=!i||a((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"736f":function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},"746f":function(t,e,n){var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=i.TypeError,w=h>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,i,a,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],x(a)){if(i=u(a),d+i>v)throw g(m);for(n=0;n<i;n++,d++)n in a&&f(c,d,a[n])}else{if(d>=v)throw g(m);f(c,d++,a)}return c.length=d,c}})},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),a=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(a(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,f[n]=e,n}})},b50b:function(t,e,n){},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),a=n("df75"),o=n("d039"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return a(i(t))}})},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),a=i["a"].validGame,o=i["a"].getGameRule,c=i["a"].gamePlay,s=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var i=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){i({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:a="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){a(e.$route.query).then(t).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",a="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:a="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:a="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(a||r)&&i({show:!0,title:a,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var i=e.$route.query;o({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(a=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==a.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==a.type?+r.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==a.type&&e.shareFwh(a);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),a=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(u,t))return u[t]}})},d9f5:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=i.Symbol,W=U&&U[G],B=i.TypeError,Q=i.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,it=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,at=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),it(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!a(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=a(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var i=Y(n,r);return!i||!l(tt,r)||l(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&a(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),it(this,e,m(1,t))};return s&&rt&&it(H,e,{configurable:!0,set:n}),at(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return at(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return at(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),a=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),i=c.f,u=a(r),f={},l=0;while(u.length>l)n=i(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),a=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=i((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},f9fa:function(t,e,n){"use strict";n("b50b")}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-390246b3"],{"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),a=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):a(i(t))}},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),a=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=i(l),p=u),c(d,p,(function(i,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>h){var d=a(f/10);return 0===d?i:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):i}u=r[f-1]}return void 0===u?"":u}))}},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),a=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(a)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");t.exports=a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"393a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("736f"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v(" 还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧! ")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("4de3"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],a=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(a["a"])(Object(a["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,i=t.list||[],i=1==t.currentPage?r.result||[]:i.concat(r.result||[]),t.currentPage++,t.list=i;case 12:case"end":return e.stop()}}),e)})))()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("f9fa"),n("2877")),b=Object(d["a"])(l,r,i,!1,null,"4125f473",null);e["default"]=b.exports},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),a=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=a(t),u=i(e,r),f=i(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de3":function(t,e,n){t.exports=n.p+"img/rulebg.c076f3ae.png"},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,a=n("1dde"),o=a("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=a([].concat),O=a([].push),P=a("".indexOf),C=a("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=b(this),a=void 0==t?void 0:p(t,w);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=s(this),c=d(t);if("string"==typeof i&&-1===P(i,a)&&-1===P(i,"$<")){var b=n(e,o,c,i);if(b.done)return b.value}var p=u(i);p||(i=d(i));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(i,void 0,M))}else F=v(R,c,L,T,q,i);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),a=n("b622"),o=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=a("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),i=n("4930"),a=n("d039"),o=n("7418"),c=n("7b0b"),s=!i||a((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"736f":function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},"746f":function(t,e,n){var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=i.TypeError,w=h>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,i,a,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],x(a)){if(i=u(a),d+i>v)throw g(m);for(n=0;n<i;n++,d++)n in a&&f(c,d,a[n])}else{if(d>=v)throw g(m);f(c,d++,a)}return c.length=d,c}})},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),a=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(a(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,f[n]=e,n}})},b50b:function(t,e,n){},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),a=n("df75"),o=n("d039"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return a(i(t))}})},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),a=i["a"].validGame,o=i["a"].getGameRule,c=i["a"].gamePlay,s=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var i=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){i({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:a="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){a(e.$route.query).then(t).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",a="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:a="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:a="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(a||r)&&i({show:!0,title:a,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,a="无法参与游戏";switch(+r.status){case 0:a="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),i({show:!0,content:a,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var i=e.$route.query;o({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(a=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==a.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==a.type?+r.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==a.type&&e.shareFwh(a);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),a=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(u,t))return u[t]}})},d9f5:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=i.Symbol,W=U&&U[G],B=i.TypeError,Q=i.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,it=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,at=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),it(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!a(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=a(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var i=Y(n,r);return!i||!l(tt,r)||l(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&a(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),it(this,e,m(1,t))};return s&&rt&&it(H,e,{configurable:!0,set:n}),at(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return at(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return at(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),a=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),i=c.f,u=a(r),f={},l=0;while(u.length>l)n=i(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),a=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=i((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},f9fa:function(t,e,n){"use strict";n("b50b")}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b1efb49"],{"057f":function(t,e,n){var r=n("c6b6"),a=n("fc6a"),i=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):i(a(t))}},"0cb2":function(t,e,n){var r=n("e330"),a=n("7b0b"),i=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=a(l),p=u),c(d,p,(function(a,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return a;if(f>h){var d=i(f/10);return 0===d?a:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):a}u=r[f-1]}return void 0===u?"":u}))}},"14ab":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("b6c2"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v("还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧!")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("df55"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],i=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(i["a"])(Object(i["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,a=t.list||[],a=1==t.currentPage?r.result||[]:a.concat(r.result||[]),t.currentPage++,t.list=a;case 12:case"end":return e.stop()}}),e)})))()},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("a30a"),n("2877")),b=Object(d["a"])(l,r,a,!1,null,"2b63207a",null);e["default"]=b.exports},"159b":function(t,e,n){var r=n("da84"),a=n("fdbc"),i=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in a)a[u]&&s(r[u]&&r[u].prototype);s(i)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,a=n("a640"),i=a("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),a=n("23cb"),i=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=i(t),u=a(e,r),f=a(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),a=n("b727").filter,i=n("1dde"),o=i("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,n){"use strict";var r=n("2ba4"),a=n("c65b"),i=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=i([].concat),O=i([].push),P=i("".indexOf),C=i("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var i=S?"$":"$0";return[function(t,n){var r=b(this),i=void 0==t?void 0:p(t,w);return i?a(i,t,r,n):a(e,d(r),t,n)},function(t,a){var o=s(this),c=d(t);if("string"==typeof a&&-1===P(a,i)&&-1===P(a,"$<")){var b=n(e,o,c,a);if(b.done)return b.value}var p=u(a);p||(a=d(a));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(a,void 0,M))}else F=v(R,c,L,T,q,a);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),a=n("d066"),i=n("b622"),o=n("cb2d");t.exports=function(){var t=a("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),a=n("4930"),i=n("d039"),o=n("7418"),c=n("7b0b"),s=!a||i((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"746f":function(t,e,n){var r=n("428f"),a=n("1a2d"),i=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});a(e,t)||o(e,t,{value:i.f(t)})}},"99af":function(t,e,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=a.TypeError,w=h>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,a,i,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?o:arguments[e],x(i)){if(a=u(i),d+a>v)throw g(m);for(n=0;n<a;n++,d++)n in i&&f(c,d,i[n])}else{if(d>=v)throw g(m);f(c,d++,i)}return c.length=d,c}})},a30a:function(t,e,n){"use strict";n("a862")},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a862:function(t,e,n){},b4f8:function(t,e,n){var r=n("23e7"),a=n("d066"),i=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(i(u,e))return u[e];var n=a("Symbol")(e);return u[e]=n,f[n]=e,n}})},b64b:function(t,e,n){var r=n("23e7"),a=n("7b0b"),i=n("df75"),o=n("d039"),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return i(a(t))}})},b6c2:function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),a=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),i=a["a"].validGame,o=a["a"].getGameRule,c=a["a"].gamePlay,s=a["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var a=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){a({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),a({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,i="无法参与游戏";switch(+r.status){case 0:i="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:i="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:i="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),a({show:!0,content:i,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){i(e.$route.query).then(t).catch((function(){a({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",i="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:i="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:i="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(i||r)&&a({show:!0,title:i,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,i="无法参与游戏";switch(+r.status){case 0:i="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),a({show:!0,content:i,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var a=e.$route.query;o({gameId:a.gameId,enterpriseId:a.enterpriseId}).then((function(n){var a=n.gameRuleConditionList||[];a.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return a({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(i=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return a({show:!0,title:"",content:"很遗憾你已".concat(12==i.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==i.type?+r.isAttest?a({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):a({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==i.type&&e.shareFwh(i);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),a=n("1a2d"),i=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!i(t))throw TypeError(o(t)+" is not a symbol");if(a(u,t))return u[t]}})},d9f5:function(t,e,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=a.Symbol,W=U&&U[G],B=a.TypeError,Q=a.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,at=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,it=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),at(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!i(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=i(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var a=Y(n,r);return!a||!l(tt,r)||l(n,F)&&n[F][r]||(a.enumerable=!0),a}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&i(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),at(this,e,m(1,t))};return s&&rt&&at(H,e,{configurable:!0,set:n}),it(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return it(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return it(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),a=n("83ab"),i=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),a=c.f,u=i(r),f={},l=0;while(u.length>l)n=a(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},df55:function(t,e,n){t.exports=n.p+"img/rulebg.bb315b1e.png"},e439:function(t,e,n){var r=n("23e7"),a=n("d039"),i=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=a((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(i(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b1efb49"],{"057f":function(t,e,n){var r=n("c6b6"),a=n("fc6a"),i=n("241c").f,o=n("4dae"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return o(c)}};t.exports.f=function(t){return c&&"Window"==r(t)?s(t):i(a(t))}},"0cb2":function(t,e,n){var r=n("e330"),a=n("7b0b"),i=Math.floor,o=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var b=n+t.length,h=r.length,p=f;return void 0!==l&&(l=a(l),p=u),c(d,p,(function(a,c){var u;switch(o(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,b);case"<":u=l[s(c,1,-1)];break;default:var f=+c;if(0===f)return a;if(f>h){var d=i(f/10);return 0===d?a:d<=h?void 0===r[d-1]?o(c,1):r[d-1]+o(c,1):a}u=r[f-1]}return void 0===u?"":u}))}},"14ab":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"box"},[t._m(0),r("div",{staticClass:"content"},[r("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?r("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(e){return r("div",{key:e,staticClass:"reward-item-box"},[r("div",{staticClass:"reward-item",on:{click:function(n){return t.toRewardDetail(e)}}},[r("div",{staticClass:"reward-img-box"},[r("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),r("div",{staticClass:"reward-info"},[r("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),r("div",{staticClass:"reward-condition"},[t._v(t._s(e.prizeDesc||""))]),r("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(e.prizeTime)))])])])])})),0):t.haveLoad?r("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[r("img",{staticClass:"empty-img",attrs:{src:n("b6c2"),mode:"widthFix"}}),r("div",{staticClass:"title"},[t._v("这里空空如也")]),r("div",{staticClass:"subtitle"},[t._v("还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧!")]),r("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-bg"},[r("img",{staticClass:"bg-img",attrs:{src:n("df55"),mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[t._v("我的奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],i=n("5530"),o=n("1da1"),c=(n("96cf"),n("99af"),n("ac1f"),n("5319"),n("2934")),s=n("b843"),u=c["a"].getMyReward,f={components:{},data:function(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created:function(){document.title="我的奖品",this.manager=new s["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},toRewardDetail:function(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},loadData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.list.length>=t.totalCount&&0!=t.totalCount)){e.next=2;break}return e.abrupt("return");case 2:return n=t.$route.query,e.next=5,u(Object(i["a"])(Object(i["a"])({},n),{},{currentPage:t.currentPage,pageSize:t.pageSize}));case 5:r=e.sent,t.haveLoad=!0,t.totalCount=r.totalCount,a=t.list||[],a=1==t.currentPage?r.result||[]:a.concat(r.result||[]),t.currentPage++,t.list=a;case 12:case"end":return e.stop()}}),e)})))()},toPlay:function(){this.$router.replace({path:"/",query:this.$route.query})}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},l=f,d=(n("a30a"),n("2877")),b=Object(d["a"])(l,r,a,!1,null,"2b63207a",null);e["default"]=b.exports},"159b":function(t,e,n){var r=n("da84"),a=n("fdbc"),i=n("785a"),o=n("17c2"),c=n("9112"),s=function(t){if(t&&t.forEach!==o)try{c(t,"forEach",o)}catch(e){t.forEach=o}};for(var u in a)a[u]&&s(r[u]&&r[u].prototype);s(i)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,a=n("a640"),i=a("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"3d87":function(t,e,n){var r=n("4930");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4dae":function(t,e,n){var r=n("da84"),a=n("23cb"),i=n("07fa"),o=n("8418"),c=r.Array,s=Math.max;t.exports=function(t,e,n){for(var r=i(t),u=a(e,r),f=a(void 0===n?r:n,r),l=c(s(f-u,0)),d=0;u<f;u++,d++)o(l,d,t[u]);return l.length=d,l}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),a=n("b727").filter,i=n("1dde"),o=i("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,n){"use strict";var r=n("2ba4"),a=n("c65b"),i=n("e330"),o=n("d784"),c=n("d039"),s=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),d=n("577e"),b=n("1d80"),h=n("8aa5"),p=n("dc4a"),v=n("0cb2"),m=n("14c3"),g=n("b622"),w=g("replace"),y=Math.max,x=Math.min,k=i([].concat),O=i([].push),P=i("".indexOf),C=i("".slice),j=function(t){return void 0===t?t:String(t)},I=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,n){var i=S?"$":"$0";return[function(t,n){var r=b(this),i=void 0==t?void 0:p(t,w);return i?a(i,t,r,n):a(e,d(r),t,n)},function(t,a){var o=s(this),c=d(t);if("string"==typeof a&&-1===P(a,i)&&-1===P(a,"$<")){var b=n(e,o,c,a);if(b.done)return b.value}var p=u(a);p||(a=d(a));var g=o.global;if(g){var w=o.unicode;o.lastIndex=0}var I=[];while(1){var S=m(o,c);if(null===S)break;if(O(I,S),!g)break;var $=d(S[0]);""===$&&(o.lastIndex=h(c,l(o.lastIndex),w))}for(var _="",D=0,E=0;E<I.length;E++){S=I[E];for(var R=d(S[0]),L=y(x(f(S.index),c.length),0),T=[],N=1;N<S.length;N++)O(T,j(S[N]));var q=S.groups;if(p){var M=k([R],T,L,c);void 0!==q&&O(M,q);var F=d(r(a,void 0,M))}else F=v(R,c,L,T,q,a);L>=D&&(_+=C(c,D,L)+F,D=L+R.length)}return _+C(c,D)}]}),!$||!I||S)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"57b9":function(t,e,n){var r=n("c65b"),a=n("d066"),i=n("b622"),o=n("cb2d");t.exports=function(){var t=a("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&o(e,c,(function(t){return r(n,this)}),{arity:1})}},"5a47":function(t,e,n){var r=n("23e7"),a=n("4930"),i=n("d039"),o=n("7418"),c=n("7b0b"),s=!a||i((function(){o.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(c(t)):[]}})},"746f":function(t,e,n){var r=n("428f"),a=n("1a2d"),i=n("e538"),o=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});a(e,t)||o(e,t,{value:i.f(t)})}},"99af":function(t,e,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("d039"),o=n("e8b5"),c=n("861d"),s=n("7b0b"),u=n("07fa"),f=n("8418"),l=n("65f0"),d=n("1dde"),b=n("b622"),h=n("2d00"),p=b("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=a.TypeError,w=h>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=d("concat"),x=function(t){if(!c(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},k=!w||!y;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,a,i,o=s(this),c=l(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?o:arguments[e],x(i)){if(a=u(i),d+a>v)throw g(m);for(n=0;n<a;n++,d++)n in i&&f(c,d,i[n])}else{if(d>=v)throw g(m);f(c,d++,i)}return c.length=d,c}})},a30a:function(t,e,n){"use strict";n("a862")},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a862:function(t,e,n){},b4f8:function(t,e,n){var r=n("23e7"),a=n("d066"),i=n("1a2d"),o=n("577e"),c=n("5692"),s=n("3d87"),u=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=o(t);if(i(u,e))return u[e];var n=a("Symbol")(e);return u[e]=n,f[n]=e,n}})},b64b:function(t,e,n){var r=n("23e7"),a=n("7b0b"),i=n("df75"),o=n("d039"),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return i(a(t))}})},b6c2:function(t,e,n){t.exports=n.p+"img/mould_01_fail_pic.c6ecf7b9.png"},b843:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("1da1"),a=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),i=a["a"].validGame,o=a["a"].getGameRule,c=a["a"].gamePlay,s=a["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",f="/pages/game/game-h5",l="/pages/open-card/open-card/open-card",d="/pages/access-2-h5/h5-share/h5-share",b="/pages/points-mall/points-detail/points-detail",h="/pages/member-center/coupon/coupon-list/coupon-list";function p(t){var e,n=this;t&&(e=t),this.init=function(t){e=t};var a=function(t){e.alertOptions=t},p=function(){e.alertOptions={}};this.showTips=function(t){a({show:!0,content:t,cancel:function(){p()}})};var v=function(){return new Promise((function(t,n){var r=e.$route.query;+r.isAttest?t():(n(),a({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){p(),k()}}],cancel:function(){p()}}))}))},m=function(){return new Promise((function(t,n){var r=e.game,i="无法参与游戏";switch(+r.status){case 0:i="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void t();case 2:i="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:i="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),a({show:!0,content:i,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})}))},g=function(){return new Promise((function(t){i(e.$route.query).then(t).catch((function(){a({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){p(),e.toGameRule()}}],cancel:function(){p()}})}))}))},w=!1,y=function(){return new Promise((function(t,n){w?n():(w=!0,c(e.$route.query).then((function(e){setTimeout((function(){w=!1}),300),t(e)})).catch((function(t){w=!1,n(t);var r="",i="",o=[{text:"前往会员中心",click:function(){p(),O()}}];switch(+t.code){case 2001:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:r="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:i="很遗憾",r="您暂无权限参加本次游戏,\n详情请查看游戏规则",o=[{text:"查看规则",click:function(){p(),e.toGameRule()}}];break;case 2004:r="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:i="游戏剩余次数已用完",r="每邀请".concat(e.shareConditionObj.inviteNum,"位好友助力即可获得").concat(e.shareConditionObj.value,"次游戏机会哦~"),o=[{text:"分享好友",click:function(){e.shareWx(),p()}},{text:"分享朋友圈",click:function(){e.sharePyq(),p()}}];break;case 2006:r="积分不足,\n先去获取些积分吧~",o=[{text:"立即获取积分",click:function(){p(),window.wx.miniProgram.navigateTo({url:"/"+e.rule.dumpPath})}}];break;case 2007:r="今日免费次数已用完,\n明早继续";break;case 2008:r="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:r=t.message||"系统异常",o=[];break}(i||r)&&a({show:!0,title:i,content:r,buttonList:o,cancel:function(){p()}})})))}))};this.checkMyReward=function(){return new Promise((function(t,n){var r=e.game,i="无法参与游戏";switch(+r.status){case 0:i="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void t()}n(),a({show:!0,content:i,buttonList:[{text:"前往会员中心",click:function(){p(),O()}}],cancel:function(){p()}})})).then(v)},this.checkPlay=function(){return m().then(v).then(g)},this.play=function(){return n.checkPlay().then((function(){return y()}))};var x,k=function(){var t=e.$route.query,n=l,r={type:2,data:{path:"".concat(f,"?gameId=").concat(t.gameId,"&enterpriseId=").concat(t.enterpriseId,"&shareMemberId=").concat(t.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(r)),window.wx.miniProgram.navigateTo({url:n})},O=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(t){var e="".concat(d,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(t)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:e})},this.getConditionObj=function(){return new Promise((function(t,n){var r=e.conditionObj;if(r&&r.gameId)t(r);else{var a=e.$route.query;o({gameId:a.gameId,enterpriseId:a.enterpriseId}).then((function(n){var a=n.gameRuleConditionList||[];a.map((function(t){var e=JSON.parse(t.conditionJson);11!=+e.type&&12!=+e.type||(r=e)})),e.conditionObj=r,t(r)})).catch(n)}}))},this.support=Object(r["a"])(regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.$route.query,r.memberId!=r.shareMemberId){t.next=4;break}return a({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){p(),e.clickShareBtn()}}],cancel:function(){p()}}),t.abrupt("return");case 4:return t.next=6,n.getConditionObj();case 6:if(i=t.sent,3!=e.helpDetail.helpStatus){t.next=10;break}return a({show:!0,title:"",content:"很遗憾你已".concat(12==i.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}),t.abrupt("return");case 10:11==i.type?+r.isAttest?a({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){p(),e.toPlayGame()}}],cancel:function(){p()}}):a({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){p(),k()}}],cancel:function(){p()}}):12==i.type&&e.shareFwh(i);case 11:case"end":return t.stop()}}),t)})));var P=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,s({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:r=t.sent,e.playNumberObj.playNumber=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.startPolling=function(){x=setInterval((function(){P()}),1e4)},this.stopPolling=function(){clearInterval(x)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:b})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:h})},this}},c513:function(t,e,n){var r=n("23e7"),a=n("1a2d"),i=n("d9b5"),o=n("0d51"),c=n("5692"),s=n("3d87"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!i(t))throw TypeError(o(t)+" is not a symbol");if(a(u,t))return u[t]}})},d9f5:function(t,e,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("c65b"),o=n("e330"),c=n("c430"),s=n("83ab"),u=n("4930"),f=n("d039"),l=n("1a2d"),d=n("3a9b"),b=n("825a"),h=n("fc6a"),p=n("a04b"),v=n("577e"),m=n("5c6c"),g=n("7c73"),w=n("df75"),y=n("241c"),x=n("057f"),k=n("7418"),O=n("06cf"),P=n("9bf2"),C=n("37e8"),j=n("d1e7"),I=n("cb2d"),S=n("5692"),$=n("f772"),_=n("d012"),D=n("90e3"),E=n("b622"),R=n("e538"),L=n("746f"),T=n("57b9"),N=n("d44e"),q=n("69f3"),M=n("b727").forEach,F=$("hidden"),z="Symbol",G="prototype",A=q.set,J=q.getterFor(z),H=Object[G],U=a.Symbol,W=U&&U[G],B=a.TypeError,Q=a.QObject,Y=O.f,K=P.f,V=x.f,X=j.f,Z=o([].push),tt=S("symbols"),et=S("op-symbols"),nt=S("wks"),rt=!Q||!Q[G]||!Q[G].findChild,at=s&&f((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,it=function(t,e){var n=tt[t]=g(W);return A(n,{type:z,tag:t,description:e}),s||(n.description=e),n},ot=function(t,e,n){t===H&&ot(et,e,n),b(t);var r=p(e);return b(n),l(tt,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(l(t,F)||K(t,F,m(1,{})),t[F][r]=!0),at(t,r,n)):K(t,r,n)},ct=function(t,e){b(t);var n=h(e),r=w(n).concat(dt(n));return M(r,(function(e){s&&!i(ut,n,e)||ot(t,e,n[e])})),t},st=function(t,e){return void 0===e?g(t):ct(g(t),e)},ut=function(t){var e=p(t),n=i(X,this,e);return!(this===H&&l(tt,e)&&!l(et,e))&&(!(n||!l(this,e)||!l(tt,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=h(t),r=p(e);if(n!==H||!l(tt,r)||l(et,r)){var a=Y(n,r);return!a||!l(tt,r)||l(n,F)&&n[F][r]||(a.enumerable=!0),a}},lt=function(t){var e=V(h(t)),n=[];return M(e,(function(t){l(tt,t)||l(_,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=V(e?et:h(t)),r=[];return M(n,(function(t){!l(tt,t)||e&&!l(H,t)||Z(r,tt[t])})),r};u||(U=function(){if(d(W,this))throw B("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=D(t),n=function(t){this===H&&i(n,et,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),at(this,e,m(1,t))};return s&&rt&&at(H,e,{configurable:!0,set:n}),it(e,t)},W=U[G],I(W,"toString",(function(){return J(this).tag})),I(U,"withoutSetter",(function(t){return it(D(t),t)})),j.f=ut,P.f=ot,C.f=ct,O.f=ft,y.f=x.f=lt,k.f=dt,R.f=function(t){return it(E(t),t)},s&&(K(W,"description",{configurable:!0,get:function(){return J(this).description}}),c||I(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),M(w(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:st,defineProperty:ot,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),T(),N(U,z),_[F]=!0},dbb4:function(t,e,n){var r=n("23e7"),a=n("83ab"),i=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),a=c.f,u=i(r),f={},l=0;while(u.length>l)n=a(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},df55:function(t,e,n){t.exports=n.p+"img/rulebg.bb315b1e.png"},e439:function(t,e,n){var r=n("23e7"),a=n("d039"),i=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=a((function(){o(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(i(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bb0cafd"],{"02ea":function(e,t,n){"use strict";n("fd03")},"04bc":function(e,t,n){"use strict";n("c131")},"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},R=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=S?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var R=[];while(1){var S=v(s,c);if(null===S)break;if(y(R,S),!b)break;var $=h(S[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<R.length;P++){S=R[P];for(var j=h(S[0]),G=I(C(l(S.index),c.length),0),U=[],L=1;L<S.length;L++)y(U,O(S[L]));var M=S.groups;if(f){var T=x([j],U,G,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,G,U,M,i);G>=D&&(q+=_(c,D,G)+E,D=G+j.length)}return q+_(c,D)}]}),!$||!R||S)},"5d81":function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},"6da4":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.options.cancel()}}},s=r,c=(n("04bc"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"1f2405fc",null);t["a"]=o.exports},7609:function(e,t,n){},"7b8f":function(e,t,n){"use strict";n("7609")},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},"90bc":function(e,t,n){},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},"9bbb":function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},a04c:function(e,t,n){},a4fa:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v("我已助力")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("6da4"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("02ea"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"1cdd08b5",null),g=m.exports,f=n("c595"),p=n("f657"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("b4ca"),Object(h["a"])(_,a,i,!1,null,"89874d18",null));t["default"]=O.exports},b4ca:function(e,t,n){"use strict";n("a04c")},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},c131:function(e,t,n){},c595:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("5d81"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("9bbb"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},count:100,pageSize:20,currentPage:1,list:[]}},created:function(){this.loadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData(),this.getGameRule()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}}},u=o,l=(n("ced1"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"7a6fd88a",null);t["a"]=d.exports},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},ced1:function(e,t,n){"use strict";n("90bc")},f657:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("7b8f"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"dc8e74e8",null);t["a"]=o.exports},fd03:function(e,t,n){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bb0cafd"],{"02ea":function(e,t,n){"use strict";n("fd03")},"04bc":function(e,t,n){"use strict";n("c131")},"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},R=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=S?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var R=[];while(1){var S=v(s,c);if(null===S)break;if(y(R,S),!b)break;var $=h(S[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<R.length;P++){S=R[P];for(var j=h(S[0]),G=I(C(l(S.index),c.length),0),U=[],L=1;L<S.length;L++)y(U,O(S[L]));var M=S.groups;if(f){var T=x([j],U,G,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,G,U,M,i);G>=D&&(q+=_(c,D,G)+E,D=G+j.length)}return q+_(c,D)}]}),!$||!R||S)},"5d81":function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},"6da4":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.options.cancel()}}},s=r,c=(n("04bc"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"1f2405fc",null);t["a"]=o.exports},7609:function(e,t,n){},"7b8f":function(e,t,n){"use strict";n("7609")},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},"90bc":function(e,t,n){},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},"9bbb":function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},a04c:function(e,t,n){},a4fa:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v("我已助力")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("6da4"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("02ea"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"1cdd08b5",null),g=m.exports,f=n("c595"),p=n("f657"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("b4ca"),Object(h["a"])(_,a,i,!1,null,"89874d18",null));t["default"]=O.exports},b4ca:function(e,t,n){"use strict";n("a04c")},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},c131:function(e,t,n){},c595:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("5d81"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("9bbb"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},count:100,pageSize:20,currentPage:1,list:[]}},created:function(){this.loadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData(),this.getGameRule()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}}},u=o,l=(n("ced1"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"7a6fd88a",null);t["a"]=d.exports},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},ced1:function(e,t,n){"use strict";n("90bc")},f657:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("7b8f"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"dc8e74e8",null);t["a"]=o.exports},fd03:function(e,t,n){}}]);
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7335cd0c"],{"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},"0df4":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.options.cancel()}}},s=r,c=(n("ff76"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"35ecab59",null);t["a"]=o.exports},2071:function(e,t,n){"use strict";n("552c")},"230c":function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},"3d90":function(e,t,n){},5165:function(e,t,n){},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},R=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=S?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var R=[];while(1){var S=v(s,c);if(null===S)break;if(y(R,S),!b)break;var $=h(S[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<R.length;P++){S=R[P];for(var j=h(S[0]),G=I(C(l(S.index),c.length),0),U=[],L=1;L<S.length;L++)y(U,O(S[L]));var M=S.groups;if(f){var T=x([j],U,G,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,G,U,M,i);G>=D&&(q+=_(c,D,G)+E,D=G+j.length)}return q+_(c,D)}]}),!$||!R||S)},"552c":function(e,t,n){},"5f60":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v("我已助力")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("0df4"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("2071"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"c773ba64",null),g=m.exports,f=n("98d3"),p=n("e76a"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("6191"),Object(h["a"])(_,a,i,!1,null,"3f3e57a2",null));t["default"]=O.exports},6031:function(e,t,n){"use strict";n("5165")},6191:function(e,t,n){"use strict";n("cd29")},"682e":function(e,t,n){"use strict";n("3d90")},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},"98d3":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("ae3b"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("230c"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},count:100,pageSize:20,currentPage:1,list:[]}},created:function(){this.loadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData(),this.getGameRule()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}}},u=o,l=(n("6031"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"9ef917d2",null);t["a"]=d.exports},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},a291:function(e,t,n){},ae3b:function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},cd29:function(e,t,n){},e76a:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("682e"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"7445e36a",null);t["a"]=o.exports},ff76:function(e,t,n){"use strict";n("a291")}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7335cd0c"],{"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},"0df4":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.options.cancel()}}},s=r,c=(n("ff76"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"35ecab59",null);t["a"]=o.exports},2071:function(e,t,n){"use strict";n("552c")},"230c":function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},"3d90":function(e,t,n){},5165:function(e,t,n){},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},R=function(){return"$0"==="a".replace(/./,"$0")}(),S=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=S?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var R=[];while(1){var S=v(s,c);if(null===S)break;if(y(R,S),!b)break;var $=h(S[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<R.length;P++){S=R[P];for(var j=h(S[0]),G=I(C(l(S.index),c.length),0),U=[],L=1;L<S.length;L++)y(U,O(S[L]));var M=S.groups;if(f){var T=x([j],U,G,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,G,U,M,i);G>=D&&(q+=_(c,D,G)+E,D=G+j.length)}return q+_(c,D)}]}),!$||!R||S)},"552c":function(e,t,n){},"5f60":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v("我已助力")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("0df4"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("2071"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"c773ba64",null),g=m.exports,f=n("98d3"),p=n("e76a"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("6191"),Object(h["a"])(_,a,i,!1,null,"3f3e57a2",null));t["default"]=O.exports},6031:function(e,t,n){"use strict";n("5165")},6191:function(e,t,n){"use strict";n("cd29")},"682e":function(e,t,n){"use strict";n("3d90")},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},"98d3":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("ae3b"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("230c"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},count:100,pageSize:20,currentPage:1,list:[]}},created:function(){this.loadData()},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData(),this.getGameRule()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}}},u=o,l=(n("6031"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"9ef917d2",null);t["a"]=d.exports},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},a291:function(e,t,n){},ae3b:function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},cd29:function(e,t,n){},e76a:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("682e"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"7445e36a",null);t["a"]=o.exports},ff76:function(e,t,n){"use strict";n("a291")}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d289896c"],{"00b3":function(e,t,n){},"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},2954:function(e,t,n){},4184:function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},4335:function(e,t,n){},4402:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.cancel&&this.cancel()}}},s=r,c=(n("e045"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"321e0db8",null);t["a"]=o.exports},"4a42":function(e,t,n){},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},S=function(){return"$0"==="a".replace(/./,"$0")}(),R=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=R?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var S=[];while(1){var R=v(s,c);if(null===R)break;if(y(S,R),!b)break;var $=h(R[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<S.length;P++){R=S[P];for(var j=h(R[0]),U=I(C(l(R.index),c.length),0),G=[],L=1;L<R.length;L++)y(G,O(R[L]));var M=R.groups;if(f){var T=x([j],G,U,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,U,G,M,i);U>=D&&(q+=_(c,D,U)+E,D=U+j.length)}return q+_(c,D)}]}),!$||!S||R)},"5d8c":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("4184"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("aa87"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},totalCount:0,pageSize:20,currentPage:1,list:[]}},created:function(){},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}},watch:{show:function(e){console.log("show----------\x3e",e),e&&this.reloadData()}}},u=o,l=(n("ff17"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"aae9755a",null);t["a"]=d.exports},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},9102:function(e,t,n){},"95c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v(" 我已助力 ")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("4402"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("a7ad"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"0abf333f",null),g=m.exports,f=n("5d8c"),p=n("a8c8"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("dfc4"),Object(h["a"])(_,a,i,!1,null,"57148a0d",null));t["default"]=O.exports},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},a7ad:function(e,t,n){"use strict";n("00b3")},a8c8:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("e6d6"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"0bfd51ec",null);t["a"]=o.exports},aa87:function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已下架,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},dfc4:function(e,t,n){"use strict";n("4a42")},e045:function(e,t,n){"use strict";n("2954")},e6d6:function(e,t,n){"use strict";n("9102")},ff17:function(e,t,n){"use strict";n("4335")}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d289896c"],{"00b3":function(e,t,n){},"0cb2":function(e,t,n){var a=n("e330"),i=n("7b0b"),r=Math.floor,s=a("".charAt),c=a("".replace),o=a("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,a,d,h){var m=n+e.length,g=a.length,f=l;return void 0!==d&&(d=i(d),f=u),c(h,f,(function(i,c){var u;switch(s(c,0)){case"$":return"$";case"&":return e;case"`":return o(t,0,n);case"'":return o(t,m);case"<":u=d[o(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>g){var h=r(l/10);return 0===h?i:h<=g?void 0===a[h-1]?s(c,1):a[h-1]+s(c,1):i}u=a[l-1]}return void 0===u?"":u}))}},2954:function(e,t,n){},4184:function(e,t,n){e.exports=n.p+"img/wx_icon.efbdeb71.png"},4335:function(e,t,n){},4402:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&(e.title||e.content||e.buttonList&&e.buttonList.length)?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[e.title?n("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e.content?n("div",{staticClass:"subtitle"},[e._v(e._s(e.content))]):e._e(),e.buttonList&&e.buttonList.length?n("div",{staticClass:"handle-btn-box"},e._l(e.buttonList,(function(t){return n("div",{key:t,staticClass:"handle-btn",on:{click:function(e){return t.click()}}},[e._v(" "+e._s(t.text)+" ")])})),0):e._e()])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r={props:{show:Boolean,title:{type:String,default:"提示"},content:{type:String,default:"提示内容"},buttonList:{type:Object,default:function(){return[]}},cancel:{type:Function,default:function(){console.log("cancel")}}},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1),this.cancel&&this.cancel()}}},s=r,c=(n("e045"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"321e0db8",null);t["a"]=o.exports},"4a42":function(e,t,n){},5319:function(e,t,n){"use strict";var a=n("2ba4"),i=n("c65b"),r=n("e330"),s=n("d784"),c=n("d039"),o=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),m=n("1d80"),g=n("8aa5"),f=n("dc4a"),p=n("0cb2"),v=n("14c3"),b=n("b622"),w=b("replace"),I=Math.max,C=Math.min,x=r([].concat),y=r([].push),k=r("".indexOf),_=r("".slice),O=function(e){return void 0===e?e:String(e)},S=function(){return"$0"==="a".replace(/./,"$0")}(),R=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),$=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=R?"$":"$0";return[function(e,n){var a=m(this),r=void 0==e?void 0:f(e,w);return r?i(r,e,a,n):i(t,h(a),e,n)},function(e,i){var s=o(this),c=h(e);if("string"==typeof i&&-1===k(i,r)&&-1===k(i,"$<")){var m=n(t,s,c,i);if(m.done)return m.value}var f=u(i);f||(i=h(i));var b=s.global;if(b){var w=s.unicode;s.lastIndex=0}var S=[];while(1){var R=v(s,c);if(null===R)break;if(y(S,R),!b)break;var $=h(R[0]);""===$&&(s.lastIndex=g(c,d(s.lastIndex),w))}for(var q="",D=0,P=0;P<S.length;P++){R=S[P];for(var j=h(R[0]),U=I(C(l(R.index),c.length),0),G=[],L=1;L<R.length;L++)y(G,O(R[L]));var M=R.groups;if(f){var T=x([j],G,U,c);void 0!==M&&y(T,M);var E=h(a(i,void 0,T))}else E=p(j,c,U,G,M,i);U>=D&&(q+=_(c,D,U)+E,D=U+j.length)}return q+_(c,D)}]}),!$||!S||R)},"5d8c":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog-bg",class:e.show?"show":"hidden",on:{click:e.close}},[a("div",{staticClass:"content",on:{click:function(t){return t.stopPropagation(),e.tap.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[e._v("邀请好友助力")]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})]),a("div",{staticClass:"cell"},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("分享至微信/朋友圈")]),a("div",{staticClass:"subtitle"},[e._v(" 每邀请"+e._s(e.shareConditionObj.inviteNum)+"位好友助力增加"+e._s(e.shareConditionObj.value)+"次,被邀请用户进入分享页"+e._s(11==e.shareConditionObj.type?"会员注册":"关注服务号")+"完成助力。 ")]),a("div",{staticClass:"share-type-box"},[a("div",{staticClass:"share-type-item",on:{click:e.shareWx}},[a("img",{attrs:{src:n("4184"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("微信")])]),a("div",{staticClass:"share-type-item",on:{click:e.sharePyq}},[a("img",{attrs:{src:n("aa87"),mode:"aspectFit"}}),a("div",{staticClass:"share-type-name"},[e._v("朋友圈")])])])])]),e.list&&e.list.length?a("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadData,expression:"loadData"}],staticClass:"cell",attrs:{"infinite-scroll-distance":"10"}},[a("div",{staticClass:"iconfont icon-duobianxing"}),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[e._v("助力成功记录")]),a("div",{staticClass:"record-list"},e._l(e.list,(function(t){return a("div",{key:t,staticClass:"record-item"},[a("div",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.createTime)))]),a("div",{staticClass:"text"},[e._v(e._s(t.helpMemberName||t.helpMemberNick)+" 助力成功")])])})),0)])]):e._e()])])},i=[],r=n("1da1"),s=(n("96cf"),n("99af"),n("2934")),c=s["a"].getReportRecord,o={props:{memberId:String,enterpriseId:String,gameId:String,show:Boolean,shareConditionObj:{type:Object,default:function(){return{}}}},data:function(){return{conditionObj:{},totalCount:0,pageSize:20,currentPage:1,list:[]}},created:function(){},methods:{reloadData:function(){this.currentPage=1,this.totalCount=0,this.loadData()},loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.length>=e.totalCount&&0!=e.totalCount)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,c({memberId:e.memberId||"",enterpriseId:e.enterpriseId||"",gameId:e.gameId||"",currentPage:e.currentPage,pageSize:e.pageSize});case 4:n=t.sent,e.totalCount=n.totalCount,a=e.list||[],a=1==e.currentPage?n.result||[]:a.concat(n.result||[]),e.currentPage++,e.list=a;case 10:case"end":return t.stop()}}),t)})))()},again:function(){this.$emit("again"),this.close()},close:function(){var e=this;this.show=!1,setTimeout((function(){e.$emit("update:show",!1)}),200)},tap:function(){},shareWx:function(){this.$emit("shareWx",this.conditionObj)},sharePyq:function(){this.$emit("sharePyq",this.conditionObj)}},filters:{formatDate:function(e){if(!e)return"--";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()}},watch:{show:function(e){console.log("show----------\x3e",e),e&&this.reloadData()}}},u=o,l=(n("ff17"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"aae9755a",null);t["a"]=d.exports},"81d5":function(e,t,n){"use strict";var a=n("7b0b"),i=n("23cb"),r=n("07fa");e.exports=function(e){var t=a(this),n=r(t),s=arguments.length,c=i(s>1?arguments[1]:void 0,n),o=s>2?arguments[2]:void 0,u=void 0===o?n:i(o,n);while(u>c)t[c++]=e;return t}},9102:function(e,t,n){},"95c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[e.game&&e.game.gameExt&&e.game.gameExt.bgHelpUrl?n("div",{staticClass:"page-bg"},[n("img",{staticClass:"bg-img",attrs:{src:e.game.gameExt.bgHelpUrl,mode:"widthFix"}})]):e._e(),n("div",{staticClass:"content"},[n("div",{staticClass:"content-top"},[e.game&&e.game.gameExt&&e.game.gameExt.bgBannerHelpUrl?n("img",{staticClass:"top-img",attrs:{src:e.game.gameExt.bgBannerHelpUrl,mode:"widthFix"}}):e._e(),e._m(0)]),n("div",{staticClass:"content-cell"},[n("div",{staticClass:"header-img-box"},[n("img",{staticClass:"header-img",attrs:{src:e.helpDetail.shareMemberImage}})]),n("div",{staticClass:"friend-name"},[e._v("你的好友 "+e._s(e.helpDetail.shareMemberName))]),n("div",{staticClass:"tip-text"},[e._v("正在请求您的助力")]),2==e.helpDetail.helpStatus?n("div",{staticClass:"handle-btn disable"},[e._v(" 我已助力 ")]):n("div",{staticClass:"handle-btn red",on:{click:e.support}},[e._v("为好友助力")]),n("div",{staticClass:"handle-btn blue",on:{click:e.toPlayGame}},[e._v("我要参加游戏")])]),e.gameReward&&e.gameReward.length?n("div",{staticClass:"content-cell"},[e._m(1),n("div",{staticClass:"reward-box"},e._l(e.gameReward,(function(t){return n("div",{key:t,staticClass:"reward-item-box"},[n("div",{staticClass:"reward-item-detail"},[n("div",{staticClass:"img-box"},[n("img",{staticClass:"reward-img",attrs:{src:t.prizeImageUrl,mode:"scaleToFit"}})]),n("div",{staticClass:"reward-name"},[e._v(e._s(t.prizeName))]),n("div",{staticClass:"reward-des"},[e._v(e._s(t.prizeDesc))])])])})),0)]):e._e()]),n("alert-dialog",e._b({},"alert-dialog",e.alertOptions,!1,!0)),n("fwh-qrcode-dialog",e._b({},"fwh-qrcode-dialog",e.fwhQrcodeOptions,!1,!0)),n("share-select-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showShareSelectDialog,expression:"showShareSelectDialog"}],attrs:{show:e.showShareSelectDialog,memberId:e.memberId,enterpriseId:e.enterpriseId,gameId:e.gameId,shareConditionObj:e.shareConditionObj},on:{"update:show":function(t){e.showShareSelectDialog=t},shareWx:e.shareWx,sharePyq:e.sharePyq}}),n("share-img-dialog",e._b({attrs:{show:e.showShareImgDialog},on:{"update:show":function(t){e.showShareImgDialog=t}}},"share-img-dialog",e.pyqOptions,!1))],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-tip-box"},[n("div",{staticClass:"line left"}),n("div",{staticClass:"title"},[e._v("助力好友你也可以参加")]),n("div",{staticClass:"line right"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cell-top"},[n("div",{staticClass:"iconfont icon-duobianxing"}),n("div",{staticClass:"title"},[e._v("游戏奖品")]),n("div",{staticClass:"iconfont icon-duobianxing"})])}],r=n("1da1"),s=(n("d81d"),n("ac1f"),n("5319"),n("96cf"),n("2934")),c=n("4402"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"dialog-bg"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-detail-bg"},[n("div",{staticClass:"content-detail"},[n("div",{staticClass:"title"},[e._v("您还未关注服务号")]),n("div",{staticClass:"subtitle"},[e._v("关注服务号,助力赢好礼")]),n("div",{staticClass:"qrcode-box"},[n("div",{staticClass:"image-box"},[n("img",{staticClass:"qrcode-img",attrs:{src:e.qrcodeUrl}})]),n("div",{staticClass:"tips"},[e._v("长按保存/识别二维码")])])])]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},u=[],l={props:{show:Boolean,qrcodeUrl:String},data:function(){return{}},methods:{close:function(){this.$emit("update:show",!1)}}},d=l,h=(n("a7ad"),n("2877")),m=Object(h["a"])(d,o,u,!1,null,"0abf333f",null),g=m.exports,f=n("5d8c"),p=n("a8c8"),v=n("b843"),b=s["a"].getHelpDetail,w=s["a"].getGameReward,I=s["a"].getGameInfo,C=s["a"].saveGameShare,x=s["a"].getGameShareQrCodeUrl,y=s["a"].getGameRule,k={components:{AlertDialog:c["a"],ShareSelectDialog:f["a"],ShareImgDialog:p["a"],FwhQrcodeDialog:g},data:function(){return{alertOptions:{},game:{},helpDetail:{},fwhQrcodeOptions:{show:!1,qrcodeUrl:""},gameReward:[],showShareSelectDialog:!1,showShareImgDialog:!1,pyqOptions:{},memberId:"",enterpriseId:"",gameId:"",shareConditionObj:{}}},created:function(){document.title="游戏助力",this.manager=new v["a"](this),this.loadData()},methods:{loadData:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route.query,e.memberId=n.memberId,e.enterpriseId=n.enterpriseId,e.gameId=n.gameId,e.getGameInfo(),e.getGameRule(),e.getGameReward(),e.getHelpDetail();case 8:case"end":return t.stop()}}),t)})))()},getGameInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,I({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.game=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getGameReward:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,w({enterpriseId:n.enterpriseId,gameId:n.gameId});case 3:e.gameReward=t.sent;case 4:case"end":return t.stop()}}),t)})))()},getHelpDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$route.query,t.next=3,b({enterpriseId:n.enterpriseId,shareMemberId:n.shareMemberId,gameId:n.gameId,helpMemberId:n.memberId||""});case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0={};case 6:e.helpDetail=t.t0;case 7:case"end":return t.stop()}}),t)})))()},getGameRule:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y({gameId:e.gameId,enterpriseId:e.enterpriseId});case 2:n=t.sent,a=n.gameRuleConditionList||[],a.map((function(t){var n=JSON.parse(t.conditionJson);11!=+n.type&&12!=+n.type||(e.shareConditionObj=n)})),e.rule=n,window.wx.miniProgram.postMessage({data:{shareTitle:n.shareRuleDesc,shareImage:n.shareImageUrl}});case 7:case"end":return t.stop()}}),t)})))()},toPlayGame:function(){var e=this.$route.query;this.$router.replace({path:"/cmh/1",query:{gameId:e.gameId,memberId:e.memberId||"",enterpriseId:e.enterpriseId,isAttest:e.isAttest}})},support:function(){this.manager.support()},shareWx:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){var a=t.linkId;e.showShareSelectDialog=!1,e.manager.shareWx({title:n.shareTitle,imageUrl:n.shareCard,path:"/pages/page-transit/page-transit-qy?scene=".concat(a)})})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},sharePyq:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.shareConditionObj,a=e.$route.query,i={gameId:a.gameId,enterpriseId:a.enterpriseId,memberId:a.shareMemberId,shareType:12==n.type?2:1},t.next=5,C(i).catch((function(){}));case 5:x(i).then((function(t){e.pyqOptions={bgImage:n.shareReport,qrcodeUrl:t.qrCodeUrl},e.showShareSelectDialog=!1,e.showShareImgDialog=!0})).catch((function(t){e.manager.showTips(t.message)}));case 6:case"end":return t.stop()}}),t)})))()},clickShareBtn:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.manager.checkPlay();case 2:e.showShareSelectDialog=!0;case 3:case"end":return t.stop()}}),t)})))()},shareFwh:function(){var e=this,t=this.$route.query;x({gameId:t.gameId,enterpriseId:t.enterpriseId,memberId:t.shareMemberId,shareType:2}).then((function(t){e.fwhQrcodeOptions={show:!0,qrcodeUrl:t.qrCodeUrl}})).catch((function(t){e.manager.showTips(t.message)}))}}},_=k,O=(n("dfc4"),Object(h["a"])(_,a,i,!1,null,"57148a0d",null));t["default"]=O.exports},"99af":function(e,t,n){"use strict";var a=n("23e7"),i=n("da84"),r=n("d039"),s=n("e8b5"),c=n("861d"),o=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),m=n("b622"),g=n("2d00"),f=m("isConcatSpreadable"),p=9007199254740991,v="Maximum allowed index exceeded",b=i.TypeError,w=g>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),I=h("concat"),C=function(e){if(!c(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},x=!w||!I;a({target:"Array",proto:!0,arity:1,forced:x},{concat:function(e){var t,n,a,i,r,s=o(this),c=d(s,0),h=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],C(r)){if(i=u(r),h+i>p)throw b(v);for(n=0;n<i;n++,h++)n in r&&l(c,h,r[n])}else{if(h>=p)throw b(v);l(c,h++,r)}return c.length=h,c}})},a7ad:function(e,t,n){"use strict";n("00b3")},a8c8:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show&&e.bgImage&&e.qrcodeUrl?n("div",{staticClass:"dialog-bg"},[n("canvas",{staticClass:"img-canvas",attrs:{id:"canvas",width:"560",height:"996"}}),n("div",{staticClass:"content"},[n("img",{staticClass:"box-img",attrs:{mode:"widthFix",id:"shareImage"}}),n("div",{staticClass:"tips"},[e._v("长按保存至相册,打开朋友圈选取海报转发")]),n("div",{staticClass:"iconfont icon-guanbi",on:{click:e.close}})])]):e._e()},i=[],r=(n("cb29"),{props:{bgImage:String,qrcodeUrl:String,show:Boolean},data:function(){return{}},created:function(){},methods:{drawImage:function(){var e=this,t=560,n=996,a=document.createElement("canvas");a.width=t,a.height=n;var i=a.getContext("2d");i.rect(0,0,a.width,a.height),i.fillStyle="#fff",i.fill();var r=new Image;r.width=t,r.height=n,r.crossOrigin="Anonymous",r.src=this.bgImage,r.onload=function(){i.drawImage(r,0,0,t,n);var s=new Image;s.src=e.qrcodeUrl,s.width=120,s.height=120,s.crossOrigin="Anonymous",s.onload=function(){i.drawImage(s,371,793,136,136);var e=a.toDataURL("image/png"),t=document.getElementById("shareImage");t.src=e}}},again:function(){this.$emit("again"),this.close()},close:function(){this.$emit("update:show",!1)}},watch:{show:function(e){e&&this.drawImage()}}}),s=r,c=(n("e6d6"),n("2877")),o=Object(c["a"])(s,a,i,!1,null,"0bfd51ec",null);t["a"]=o.exports},aa87:function(e,t,n){e.exports=n.p+"img/pyq_icon.ceae3dcf.png"},b843:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("1da1"),i=(n("96cf"),n("d3b7"),n("99af"),n("e9c4"),n("d81d"),n("2934")),r=i["a"].validGame,s=i["a"].getGameRule,c=i["a"].gamePlay,o=i["a"].getGameNumberPolling,u="/pages/member-center/member-center/member-center-index",l="/pages/game/game-h5",d="/pages/open-card/open-card/open-card",h="/pages/access-2-h5/h5-share/h5-share",m="/pages/points-mall/points-detail/points-detail",g="/pages/member-center/coupon/coupon-list/coupon-list";function f(e){var t,n=this;e&&(t=e),this.init=function(e){t=e};var i=function(e){t.alertOptions=e},f=function(){t.alertOptions={}};this.showTips=function(e){i({show:!0,content:e,cancel:function(){f()}})};var p=function(){return new Promise((function(e,n){var a=t.$route.query;+a.isAttest?e():(n(),i({show:!0,content:"成为会员才可参与游戏哦~\n快认证成为会员赢好礼吧!",buttonList:[{text:"立即认证",click:function(){f(),x()}}],cancel:function(){f()}}))}))},v=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;case 1:return void e();case 2:r="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 3:r="来晚一步,游戏已结束,\n去其它地方看看吧~";break;default:break}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})}))},b=function(){return new Promise((function(e){r(t.$route.query).then(e).catch((function(){i({show:!0,title:"很遗憾",content:"您暂无权限参加本次游戏,详情请查看游戏规则",buttonList:[{text:"查看规则",click:function(){f(),t.toGameRule()}}],cancel:function(){f()}})}))}))},w=!1,I=function(){return new Promise((function(e,n){w?n():(w=!0,c(t.$route.query).then((function(t){setTimeout((function(){w=!1}),300),e(t)})).catch((function(e){w=!1,n(e);var a="",r="",s=[{text:"前往会员中心",click:function(){f(),y()}}];switch(+e.code){case 2001:a="来晚一步,游戏已结束,\n去其他地方看看吧~";break;case 2002:a="游戏还没开始,请耐心等待,\n去其他地方看看吧~";break;case 2003:r="很遗憾",a="您暂无权限参加本次游戏,\n详情请查看游戏规则",s=[{text:"查看规则",click:function(){f(),t.toGameRule()}}];break;case 2004:a="游戏次数已达上限,\n去其他地方看看吧~";break;case 2005:r="游戏剩余次数已用完",a="每邀请".concat(t.shareConditionObj.inviteNum,"位好友助力即可获得").concat(t.shareConditionObj.value,"次游戏机会哦~"),s=[{text:"分享好友",click:function(){t.shareWx(),f()}},{text:"分享朋友圈",click:function(){t.sharePyq(),f()}}];break;case 2006:a="积分不足,\n先去获取些积分吧~",s=[{text:"立即获取积分",click:function(){f(),window.wx.miniProgram.navigateTo({url:"/"+t.rule.dumpPath})}}];break;case 2007:a="今日免费次数已用完,\n明早继续";break;case 2008:a="免费游戏次数已达上限,\n去其他地方看看吧~";break;default:a=e.message||"系统异常",s=[];break}(r||a)&&i({show:!0,title:r,content:a,buttonList:s,cancel:function(){f()}})})))}))};this.checkMyReward=function(){return new Promise((function(e,n){var a=t.game,r="无法参与游戏";switch(+a.status){case 0:r="游戏还没开始,请耐心等待,\n去其他地方先逛逛吧~";break;default:return void e()}n(),i({show:!0,content:r,buttonList:[{text:"前往会员中心",click:function(){f(),y()}}],cancel:function(){f()}})})).then(p)},this.checkPlay=function(){return v().then(p).then(b)},this.play=function(){return n.checkPlay().then((function(){return I()}))};var C,x=function(){var e=t.$route.query,n=d,a={type:2,data:{path:"".concat(l,"?gameId=").concat(e.gameId,"&enterpriseId=").concat(e.enterpriseId,"&shareMemberId=").concat(e.shareMemberId||"","&isFrom=openCard")}};n+="?intent="+encodeURIComponent(JSON.stringify(a)),window.wx.miniProgram.navigateTo({url:n})},y=function(){window.wx.miniProgram.reLaunch({url:u})};this.shareWx=function(e){var t="".concat(h,"?shareOptions=").concat(encodeURIComponent(JSON.stringify(e)),"&content=邀好友助力加参与游戏次数,赢好礼&confirmText=立即分享");window.wx.miniProgram.navigateTo({url:t})},this.getConditionObj=function(){return new Promise((function(e,n){var a=t.conditionObj;if(a&&a.gameId)e(a);else{var i=t.$route.query;s({gameId:i.gameId,enterpriseId:i.enterpriseId}).then((function(n){var i=n.gameRuleConditionList||[];i.map((function(e){var t=JSON.parse(e.conditionJson);11!=+t.type&&12!=+t.type||(a=t)})),t.conditionObj=a,e(a)})).catch(n)}}))},this.support=Object(a["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.$route.query,a.memberId!=a.shareMemberId){e.next=4;break}return i({show:!0,content:"无法为自己助力,赶快邀请好友助力",buttonList:[{text:"邀请好友助力",click:function(){f(),t.clickShareBtn()}}],cancel:function(){f()}}),e.abrupt("return");case 4:return e.next=6,n.getConditionObj();case 6:if(r=e.sent,3!=t.helpDetail.helpStatus){e.next=10;break}return i({show:!0,title:"",content:"很遗憾你已".concat(12==r.type?"关注服务号":"认证",",无法助力好友 可立即参与游戏,赢取好礼"),buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}),e.abrupt("return");case 10:11==r.type?+a.isAttest?i({show:!0,content:"很遗憾,您已成为会员,无法助力好友,可立即参与游戏,赢取好礼",buttonList:[{text:"参与游戏赢好礼",click:function(){f(),t.toPlayGame()}}],cancel:function(){f()}}):i({show:!0,content:"仅差一步,您当前还不是会员,无法助力,立即认证成为会员,助力赢取好礼",buttonList:[{text:"立即认证会员",click:function(){f(),x()}}],cancel:function(){f()}}):12==r.type&&t.shareFwh(r);case 11:case"end":return e.stop()}}),e)})));var k=function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$route.query,e.next=3,o({gameId:n.gameId,enterpriseId:n.enterpriseId,memberId:n.memberId});case 3:a=e.sent,t.playNumberObj.playNumber=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return this.startPolling=function(){C=setInterval((function(){k()}),1e4)},this.stopPolling=function(){clearInterval(C)},this.toIntegralDetail=function(){window.wx.miniProgram.navigateTo({url:m})},this.toCouponList=function(){window.wx.miniProgram.navigateTo({url:g})},this}},cb29:function(e,t,n){var a=n("23e7"),i=n("81d5"),r=n("44d2");a({target:"Array",proto:!0},{fill:i}),r("fill")},dfc4:function(e,t,n){"use strict";n("4a42")},e045:function(e,t,n){"use strict";n("2954")},e6d6:function(e,t,n){"use strict";n("9102")},ff17:function(e,t,n){"use strict";n("4335")}}]);
\ No newline at end of file \ No newline at end of file
...@@ -88,7 +88,7 @@ export function Manager(component) { ...@@ -88,7 +88,7 @@ export function Manager(component) {
content = "来晚一步,游戏已结束,\n去其他地方看看吧~"; content = "来晚一步,游戏已结束,\n去其他地方看看吧~";
break; break;
case 3: case 3:
content = "来晚一步,游戏已下架\n去其它地方看看吧~"; content = "来晚一步,游戏已结束\n去其它地方看看吧~";
break; break;
default: default:
break; break;
......
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