fix:修复扫雷的样式错误
This commit is contained in:
parent
83377543f8
commit
676035c5d0
@ -707,12 +707,13 @@ export default {
|
|||||||
this.addLog('system', endMsg);
|
this.addLog('system', endMsg);
|
||||||
|
|
||||||
// 添加震动反馈
|
// 添加震动反馈
|
||||||
|
// 微信小程序只支持 type: 'success' 或不传参数
|
||||||
if (winnerId === this.myUserId) {
|
if (winnerId === this.myUserId) {
|
||||||
uni.vibrateShort({ type: 'success' });
|
uni.vibrateShort({ type: 'success' });
|
||||||
} else if (winnerId === 'draw') {
|
} else if (winnerId === 'draw') {
|
||||||
uni.vibrateShort({ type: 'warning' });
|
uni.vibrateShort(); // 平局使用普通震动
|
||||||
} else {
|
} else {
|
||||||
uni.vibrateShort({ type: 'fail' });
|
uni.vibrateShort(); // 失败使用普通震动
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user