@@ -490,14 +490,7 @@ export default {
this.Ggreet = [];
this.onLoad();
// 授权
- getTicketFun([
- 'getLocation',
- 'startRecord',
- 'stopRecord',
- 'onVoiceRecordEnd',
- 'uploadVoice',
- 'vibrateShort',
- ]);
+ getTicketFun(['getLocation', 'startRecord', 'stopRecord', 'onVoiceRecordEnd', 'uploadVoice']);
},
methods: {
// 保存上一个播放audio
@@ -646,12 +639,8 @@ export default {
touchstart() {
// 按下录音震动效果
- this.wx.vibrateShort({
- type: 'heavy',
- complete: () => {
- this.startRecord();
- },
- });
+ navigator.vibrate(1500);
+ this.startRecord();
startRecord() {
this.tips = '松开 发送';