1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/common/vendor"],{1390:function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getLotteryData=function(t){return i.default.get("v2/lottery/info/".concat(t))},e.getLotteryList=function(t){return i.default.get("v2/lottery/record",t)},e.receiveLottery=function(t){return i.default.post("v2/lottery/receive",t)},e.startLottery=function(t){return i.default.post("v2/lottery",t)};var i=o(n("fb81"))},c641:function(t,e){function n(t,e){this.timer=null,this.startIndex=t.startIndex-1||0,this.count=0,this.winingIndex=t.winingIndex||0,this.totalCount=t.totalCount||6,this.speed=t.speed||100,this.domData=t.domData,this.rollFn(),this.callback=e}n.prototype={rollFn:function(){var t=this;this.startIndex++,this.startIndex>=this.domData.length-1&&(this.startIndex=0,this.count++),this.count>=this.totalCount&&this.startIndex===this.winingIndex?("function"===typeof this.callback&&setTimeout((function(){t.callback(t.startIndex,t.count)}),400),clearInterval(this.timer)):(this.count>=this.totalCount-1&&(this.speed+=30),this.timer=setTimeout((function(){t.callback(t.startIndex,t.count),t.rollFn()}),this.speed))}},t.exports=n}}]);
|