diff --git a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue index 0d526057..bb5ae64a 100644 --- a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue +++ b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue @@ -188,10 +188,8 @@ export default { function () { //设置定时器在动画时间后方可再次触发转盘动画 this.isStart = false; - }.bind(this), - duration - ); //此时用的普通函数,存在this指向问题,需要改变this指向 - this.animation.rotate(deg).step().rotate((this.awardNumber - 1) * -(360 / this.reword.length)).step({ + }.bind(this), duration); //此时用的普通函数,存在this指向问题,需要改变this指向 + this.animation.rotate(deg).step().rotate((this.awardNumber - 1) * -(360 / this.activeInfo.prizes.length)).step({ duration: 0, timingFunction: "linear", }); @@ -200,7 +198,7 @@ export default { //开始旋转 onStart() { //提前将要转的角度算好,再传入要转的时长即可转到自己想要的角度 - this.rotate( 360 + (360 - (this.awardNumber - 1) * (360 / this.reword.length)),this.duration); + this.rotate( 360 + (360 - (this.awardNumber - 1) * (360 / this.activeInfo.prizes.length)),this.duration); }, bindPhoneConfirm() { this.$refs.uModal.clearLoading() @@ -286,7 +284,7 @@ export default { return tel.replace(reg, "$1****$2"); }, share() { - console.log(123) + console.log(789) this.agentSign().then(() => { this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => { this.wxInvoke(['shareAppMessage', {