wangxia 3 weeks ago
commit 960836f402

@ -2078,12 +2078,17 @@
}, },
animate($type = "heavy") { animate($type = "heavy") {
const systemInfo = uni.getSystemInfoSync();
if(systemInfo.platform === 'ios'){
}else{
uni.vibrateShort({ uni.vibrateShort({
type: $type, type: $type,
fail(err) { fail(err) {
console.log('震动失败:',err) console.log("震动失败:", err);
} },
}); });
}
}, },
clearMsg() { clearMsg() {
this.sendMsg = ""; this.sendMsg = "";

Loading…
Cancel
Save