<view v-if="inputType=='voice'" class="u-flex-1 chat-tabbar-input u-flex u-flex-items-center u-flex-center u-p-t-18 u-p-b-18" @longpress="startRecord" @touchstart="startRecord" @touchmove="recordMove" @touchend="endSpeech">
<view v-if="!isRecording" class="u-flex u-flex-items-center">
<image src="/static/images/icon/mic.png" class="input-icon u-m-r-15"></image>
<view class="input-title">按住说话</view>
</view>
<view v-if="isRecording" class="u-flex u-flex-items-center">
<image src="/static/images/icon/mic.png" class="input-icon u-m-r-15"></image>
<view class="input-title">松开发送</view>
</view>
</view>
1***@qq.com
- 发布:2025-02-06 12:27
- 更新:2025-11-20 10:33
- 阅读:324
你好,这个问题你解决了吗?
-
-
回复 DCloud_UNI_JBB: 大佬,我目前在做一个长按录音的功能,view上分别绑定了@touchstart,@touchmove,@touchend事件,目前的情况是第一次长按只执行touchstart事件,touchmove和touchend不执行,第二次长按就是正常执行,touchstart=>touchmove=>touchend。这是什么原因导致的啊?
2025-11-20 14:14
-
-
-
1***@qq.com (作者)
微信小程序
2025-02-07 09:07
爱豆豆
回复 1***@qq.com: 可以正常触发 测试视频:https://mp-f31011df-efe5-4e43-a4b4-0bb25f1edafe.cdn.bspapp.com/测试触摸-wx.mp4
2025-02-07 09:42