wangxia 3 weeks ago
commit 960836f402

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

Loading…
Cancel
Save