Parcourir la source

AI参谋页面优化-按下录音震动效果

zhujindu il y a 1 an
Parent
commit
e6bb04cd78
1 fichiers modifiés avec 3 ajouts et 14 suppressions
  1. 3 14
      src/views/intelligence/index.vue

+ 3 - 14
src/views/intelligence/index.vue

@@ -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 = '松开 发送';