This commit is contained in:
liuye
2023-02-03 15:20:48 +08:00
parent 1f26a4b67d
commit 4cef6c671c

View File

@@ -188,10 +188,8 @@ export default {
function () { function () {
//设置定时器在动画时间后方可再次触发转盘动画 //设置定时器在动画时间后方可再次触发转盘动画
this.isStart = false; this.isStart = false;
}.bind(this), }.bind(this), duration); //此时用的普通函数存在this指向问题需要改变this指向
duration this.animation.rotate(deg).step().rotate((this.awardNumber - 1) * -(360 / this.activeInfo.prizes.length)).step({
); //此时用的普通函数存在this指向问题需要改变this指向
this.animation.rotate(deg).step().rotate((this.awardNumber - 1) * -(360 / this.reword.length)).step({
duration: 0, duration: 0,
timingFunction: "linear", timingFunction: "linear",
}); });
@@ -200,7 +198,7 @@ export default {
//开始旋转 //开始旋转
onStart() { 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() { bindPhoneConfirm() {
this.$refs.uModal.clearLoading() this.$refs.uModal.clearLoading()
@@ -286,7 +284,7 @@ export default {
return tel.replace(reg, "$1****$2"); return tel.replace(reg, "$1****$2");
}, },
share() { share() {
console.log(123) console.log(789)
this.agentSign().then(() => { this.agentSign().then(() => {
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => { this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
this.wxInvoke(['shareAppMessage', { this.wxInvoke(['shareAppMessage', {