require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_course/components/turntableTwo"],{1109:function(e,t,n){"use strict";n.r(t);var i=n(1110),o=n(1112);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(1114);var s,u=n(34),c=Object(u["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"c705132e",null,!1,i["components"],s);c.options.__file="pages_course/components/turntableTwo.vue",t["default"]=c.exports},1110:function(e,t,n){"use strict";n.r(t);var i=n(1111);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},1111:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return i}));try{i={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,1087))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement;e._self._c},r=!1,s=[];o._withStripped=!0},1112:function(e,t,n){"use strict";n.r(t);var i=n(1113),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},1113:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(11)),r=n(913);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t1&&(this.timer=setInterval((function(){var e;do{e=t.availIdx[Math.floor(Math.random()*t.availIdx.length)]}while(e===n);n=e,t.light=e,t.stepAudio.stop(),t.stepAudio.play()}),this.speed)),this.$emit("sendRewardFun",4)}},endSuccess:function(t){var n=this;if(this.targetIdx=this.cells.findIndex((function(e){return e.code==t})),clearInterval(this.timer),this.timer=null,-1!=this.targetIdx){var i=100,o=10;this.speed=i;var r=Math.max(o,this.availIdx.length),s=0,u=-1,c=this;if(this.availIdx.length<=1)return this.light=this.targetIdx,this.stepAudio.stop(),this.winAudio.play(),this.running=!1,this.isReceive=1,void e.showModal({title:"恭喜,中奖",content:this.cells[this.targetIdx].name,showCancel:!1,success:function(e){e.confirm&&(c.stepAudio&&(c.stepAudio.stop(),c.stepAudio.destroy(),c.stepAudio=null),c.winAudio&&(c.winAudio.stop(),c.winAudio.destroy(),c.winAudio=null),c.$refs.turntablePopup.close(),c.$emit("openAppPop"))}});this.timer=setInterval((function(){var t;do{t=n.availIdx[Math.floor(Math.random()*n.availIdx.length)]}while(t===u);u=t,n.light=t,n.stepAudio.stop(),n.stepAudio.play(),s++,s>=r&&(clearInterval(n.timer),n.light=n.targetIdx,n.stepAudio.stop(),n.winAudio.play(),n.running=!1,n.isReceive=1,setTimeout((function(){e.showModal({title:"恭喜,中奖",content:n.cells[n.targetIdx].name,showCancel:!1,success:function(e){e.confirm&&(c.stepAudio&&(c.stepAudio.stop(),c.stepAudio.destroy(),c.stepAudio=null),c.winAudio&&(c.winAudio.stop(),c.winAudio.destroy(),c.winAudio=null),c.$refs.turntablePopup.close(),c.$emit("openAppPop"))}})}),500))}),this.speed)}else e.showToast({title:"抽奖失败",icon:"none"})}}};t.default=c}).call(this,n(2)["default"])},1114:function(e,t,n){"use strict";n.r(t);var i=n(1115),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},1115:function(e,t,n){}}]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_course/components/turntableTwo.js.map ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'pages_course/components/turntableTwo-create-component', { 'pages_course/components/turntableTwo-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('2')['createComponent'](__webpack_require__(1109)) }) }, [['pages_course/components/turntableTwo-create-component']] ]);