(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4292889c"],{"1da1":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("d3b7");function r(t,e,a,r,i,n,s){try{var o=t[n](s),c=o.value}catch(l){return void a(l)}o.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,a=arguments;return new Promise((function(i,n){var s=t.apply(e,a);function o(t){r(s,i,n,o,c,"next",t)}function c(t){r(s,i,n,o,c,"throw",t)}o(void 0)}))}}},"1ef6":function(t,e,a){t.exports=a.p+"img/once.35224244.png"},"367e":function(t,e,a){},4291:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"activity"},[r("footer",[r("div",{directives:[{name:"show",rawName:"v-show",value:t.introduce_popup,expression:"introduce_popup"}],staticClass:"introduce_popup"},[r("div",{staticClass:"introduce_box"},[r("img",{staticClass:"arrBack",attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/close.png",alt:""},on:{click:t.arrBack}}),r("h3",[t._v("一箭穿心游戏规则")]),t._m(0)])]),r("div",{staticClass:"arrProblem",on:{click:t.arrProblem}},[r("img",{attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/wenhao.png",alt:""}})]),t.user?r("div",{staticClass:"glod"},[t._v(" 余额: "),r("span",{attrs:{id:"coin"}},[t._v(t._s(t.user.userCoin))])]):t._e(),t._m(1),r("div",{directives:[{name:"show",rawName:"v-show",value:t.game,expression:"game"}],staticClass:"foot"},[t.gamePirceList?r("div",{staticClass:"footChoose flex"},[t.gamePirceList[0]?r("aside",{staticClass:"aszw",class:{aszwbg:t.aszwSelected},on:{click:function(e){t.selectedAszw(t.gamePirceList[0].id)}}},[r("img",{attrs:{src:a("defa"),alt:""}}),r("div",{directives:[{name:"show",rawName:"v-show",value:t.aszwSelected,expression:"aszwSelected"}],staticClass:"sanjiao"}),r("article",[r("p",[t._v("爱神箭")]),t.gamePirceList[0]?r("p",[t._v(t._s(t.gamePirceList[0].priceCoin)+"金币/次")]):t._e()])]):t._e(),t.gamePirceList[1]?r("aside",{staticClass:"aszj",class:{aszjbg:t.aszjSelected},on:{click:function(e){return t.selectedAszj(t.gamePirceList[1].id)}}},[r("img",{attrs:{src:a("8333"),alt:""}}),r("div",{directives:[{name:"show",rawName:"v-show",value:t.aszjSelected,expression:"aszjSelected"}],staticClass:"sanjiao"}),r("article",[r("p",[t._v("爱河箭")]),t.gamePirceList[1]?r("p",[t._v(t._s(t.gamePirceList[1].priceCoin)+"金币/次")]):t._e()])]):t._e()]):t._e(),r("div",{staticClass:"footTimes flex"},[r("div",{on:{click:function(e){return t.startGame(1)}}},[r("img",{attrs:{src:a("1ef6"),alt:""}}),r("span",[t._v("1次")])]),r("div",{staticStyle:{margin:"0 .5rem"},on:{click:function(e){return t.startGame(5)}}},[r("img",{attrs:{src:a("1ef6"),alt:""}}),r("span",[t._v("5次")])]),r("div",{on:{click:function(e){return t.startGame(10)}}},[r("img",{attrs:{src:a("1ef6"),alt:""}}),r("span",[t._v("10次")])])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.gaming,expression:"gaming"}],staticClass:"gameStart"},[r("div",{staticClass:"gameboy",class:{gameboyani:t.gaming}},[r("img",{directives:[{name:"show",rawName:"v-show",value:t.aszwSelected,expression:"aszwSelected"}],attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/aszj.png"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:t.aszjSelected,expression:"aszjSelected"}],attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/aszw.png",alt:""}})]),t.gamePirceList.length>0?r("div",{directives:[{name:"show",rawName:"v-show",value:t.aszwSelected,expression:"aszwSelected"}],staticClass:"gameBox gift_aszw",class:{anima1:1==t.anima,anima2:2==t.anima,anima3:3==t.anima,anima4:4==t.anima,anima5:5==t.anima,anima6:6==t.anima,anima7:7==t.anima,anima8:8==t.anima,anima9:9==t.anima}},[t._l(t.gamePirceList[0].gamePrizeList,(function(t,e){return r("p",{key:e},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])})),t._l(t.gamePirceList[0].gamePrizeList,(function(t,e){return r("p",{key:e+Math.random()},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])})),t._l(t.gamePirceList[0].gamePrizeList,(function(t,e){return r("p",{key:2*e+Math.random()},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])}))],2):t._e(),t.gamePirceList.length>0?r("div",{directives:[{name:"show",rawName:"v-show",value:t.aszjSelected,expression:"aszjSelected"}],staticClass:"gameBox gift_aszj",class:{anima1:1==t.anima,anima2:2==t.anima,anima3:3==t.anima,anima4:4==t.anima,anima5:5==t.anima,anima6:6==t.anima,anima7:7==t.anima,anima8:8==t.anima,anima9:9==t.anima}},[t._l(t.gamePirceList[1].gamePrizeList,(function(t,e){return r("p",{key:e},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])})),t._l(t.gamePirceList[1].gamePrizeList,(function(t,e){return r("p",{key:e+Math.random()},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])})),t._l(t.gamePirceList[1].gamePrizeList,(function(t,e){return r("p",{key:2*e+Math.random()},[r("img",{attrs:{src:a("705d"),alt:""}}),r("img",{attrs:{src:t.prizeIcon,alt:""}})])}))],2):t._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.gamed,expression:"gamed"}],staticClass:"lovePopup"},[r("div",{staticClass:"lovepopbox"},[r("img",{staticClass:"closepop",attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/closepop.png",alt:""},on:{click:t.closepop}}),r("div",{staticClass:"giftlist"},t._l(t.gameGiftList,(function(e){return r("p",{key:e.id},[r("img",{attrs:{src:e.giftIcon,alt:""}}),r("span",{staticStyle:{"vertical-align":"middle"}},[t._v(t._s(e.giftName)+"*"+t._s(e.giftNumber))])])})),0),r("div",{staticClass:"agagame"},[r("img",{staticClass:"agagameimg",attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/again.png",alt:""},on:{click:t.keepGame}})])])])])])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"introduce_txt"},[a("pre",{staticStyle:{"text-align":"left","padding-left":"10px","letter-spacing":"0.05rem","word-break":"break-all","white-space":"pre-wrap","font-size":".25rem"}},[t._v("1、爱河箭：500金币/次、爱神箭：2000金币/次；\r\n2、游戏礼物：帝王套、仙子、海豚喷泉等礼物；\r\n如有疑问，请联系哎呀客服；\r\n游戏解释权归同好")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"close"},[a("img",{attrs:{src:"http://aiyazb-images.aiyashequ.cn/activity/loveArrow/imgs/close.png",alt:""}})])}],n=(a("96cf"),a("1da1")),s={data:function(){return{liveInfo:{},gameId:0,gamePriceId:0,showToast:!1,aszwSelected:!0,aszjSelected:!1,gaming:!1,introduce_popup:!1,game:!0,gamed:!1,gameNumber:1,anima:0,giftList:!1,gameStartOpcity:{opcity:1},anchorUserId:0,user:{},gamePirceList:[],gameGiftList:[]}},beforeCreate:function(){var t=this;window.getData=function(){return t.getData.apply(t,arguments)},this.global.globalAnchorUserInfo||this.getGlobalAnchorUserInfo(5001)},mounted:function(){var t=this;setTimeout((function(){console.log("mounted:"+t.global.globalAnchorUserInfo)}),500),this.gameId=this.$route.query.gameId,this.gameInfo()},methods:{selectedAszw:function(t){this.gamePriceId=t,this.asSeleted(!0,!1)},selectedAszj:function(t){this.gamePriceId=t,this.asSeleted(!1,!0)},asSeleted:function(t,e){this.aszwSelected=t,this.aszjSelected=e},gameInfo:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("/user/game/game",{params:{gameId:t.gameId}});case 2:a=e.sent,r=a.data,t.user=r.data.user,t.gamePirceList=r.data.gamePriceList,t.$forceUpdate(),t.gamePriceId=t.gamePirceList[0].id,console.log("gamePriceId:"+t.gamePriceId);case 9:case"end":return e.stop()}}),e)})))()},startGame:function(t){var e=this;this.liveInfo=this.global.globalAnchorUserInfo,this.userCoin=this.liveInfo.anchorUserId,this.gameNumber=t,console.log("start game:"+this.global.globalAnchorUserInfo);var a=0;this.$http.post("/user/game/startLoveArrow",{anchorUserId:this.anchorUserId,gameNumbers:t,gameId:this.gameId,gamePriceId:this.gamePriceId}).then((function(t){console.log(t.data),2e4==t.data.code?(e.user.userCoin=t.data.data.userCoin,e.gameGiftList=t.data.data.rewardGift,a=t.data.data.giftIndex+1):(console.log(t.data.message),e.$dialog.alert({message:t.data.message})),e.game=!1,e.gaming=!0,e.gameFinish(a)}))},keepGame:function(){this.gamed=!1,this.startGame(this.gameNumber)},gameFinish:function(t){var e=this;setTimeout((function(){e.anima=t,setTimeout((function(){e.gaming=!1,e.anima=0,e.gameStartOpcity={opcity:0},e.gamed=!0,e.giftList=!0}),9600)}),300)},arrBack:function(){this.introduce_popup=!1},arrProblem:function(){this.introduce_popup=!0},closepop:function(){this.game=!0,this.gamed=!1,this.gameList=!1,console.log("gaming:"+this.gaming+" game:"+this.game)}}},o=s,c=(a("66b7"),a("2877")),l=Object(c["a"])(o,r,i,!1,null,"8cc85a4a",null);e["default"]=l.exports},"66b7":function(t,e,a){"use strict";a("367e")},"705d":function(t,e,a){t.exports=a.p+"img/giftbord.96d8d5c1.png"},8333:function(t,e,a){t.exports=a.p+"img/20200509174010_8e6ce881aa1f68a6ce1e6fe681dad7a0.9f1ed1eb.png"},"96cf":function(t,e,a){var r=function(t){"use strict";var e,a=Object.prototype,r=a.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function c(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,a){return t[e]=a}}function l(t,e,a,r){var i=e&&e.prototype instanceof p?e:p,n=Object.create(i.prototype),s=new S(r||[]);return n._invoke=P(t,a,s),n}function u(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var m="suspendedStart",g="suspendedYield",h="executing",f="completed",d={};function p(){}function v(){}function y(){}var w={};w[n]=function(){return this};var _=Object.getPrototypeOf,b=_&&_(_(j([])));b&&b!==a&&r.call(b,n)&&(w=b);var L=y.prototype=p.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function z(t,e){function a(i,n,s,o){var c=u(t[i],t,n);if("throw"!==c.type){var l=c.arg,m=l.value;return m&&"object"===typeof m&&r.call(m,"__await")?e.resolve(m.__await).then((function(t){a("next",t,s,o)}),(function(t){a("throw",t,s,o)})):e.resolve(m).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,o)}))}o(c.arg)}var i;function n(t,r){function n(){return new e((function(e,i){a(t,r,e,i)}))}return i=i?i.then(n,n):n()}this._invoke=n}function P(t,e,a){var r=m;return function(i,n){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw n;return E()}a.method=i,a.arg=n;while(1){var s=a.delegate;if(s){var o=I(s,a);if(o){if(o===d)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=h;var c=u(t,e,a);if("normal"===c.type){if(r=a.done?f:g,c.arg===d)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=f,a.method="throw",a.arg=c.arg)}}}function I(t,a){var r=t.iterator[a.method];if(r===e){if(a.delegate=null,"throw"===a.method){if(t.iterator["return"]&&(a.method="return",a.arg=e,I(t,a),"throw"===a.method))return d;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=u(r,t.iterator,a.arg);if("throw"===i.type)return a.method="throw",a.arg=i.arg,a.delegate=null,d;var n=i.arg;return n?n.done?(a[t.resultName]=n.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,d):n:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var a=t[n];if(a)return a.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function a(){while(++i<t.length)if(r.call(t,i))return a.value=t[i],a.done=!1,a;return a.value=e,a.done=!0,a};return s.next=s}}return{next:E}}function E(){return{value:e,done:!0}}return v.prototype=L.constructor=y,y.constructor=v,v.displayName=c(y,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,o,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},x(z.prototype),z.prototype[s]=function(){return this},t.AsyncIterator=z,t.async=function(e,a,r,i,n){void 0===n&&(n=Promise);var s=new z(l(e,a,r,i),n);return t.isGeneratorFunction(a)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(L),c(L,o,"Generator"),L[n]=function(){return this},L.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function a(){while(e.length){var r=e.pop();if(r in t)return a.value=r,a.done=!1,a}return a.done=!0,a}},t.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var a in this)"t"===a.charAt(0)&&r.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function i(r,i){return o.type="throw",o.arg=t,a.next=r,i&&(a.method="next",a.arg=e),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var s=n?n.completion:{};return s.type=t,s.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),C(a),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var r=a.completion;if("throw"===r.type){var i=r.arg;C(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,r){return this.delegate={iterator:j(t),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},defa:function(t,e,a){t.exports=a.p+"img/20200509174024_31fc4432c735433573e99739fe4d67b6.58689c26.png"}}]);