feat(mobile): restore two old-H5 interaction loops in chat form
旧 H5 vs uniapp 逐功能盘点(客户要求'html 版本逻辑保持')后确认的 两个交互缺口,以会话形态补齐: 1. 学练闭环:总结卡底部新增「去练一遍」(旧版'开始跟读'), 关卡后直达练页预习视图,学完话术立刻练。 2. 建议采用:老师傅提示气泡新增「用这句话回复」(旧版'建议回复' 的真实数据版),ChatComposer 暴露 setDraft(text)——填入输入框并 切键盘模式,员工可修改后发送;对打字困难的老年员工是关键路径。 盘点其余结论:旧版功能全部已迁移或被更优实现替代; 团队短板热力图为写死演示数据,真实版记 P2(需后端维度聚合); 演示角色切换/假数据脚手架确认不迁。 验证:本地+生产 E2E——总结卡→去练一遍→预习视图; 对练→老师傅提示→用这句话回复→输入框回填→发送进入下一轮。 发布备份 h5-before-$TS。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -238,7 +238,15 @@ const teardown = () => {
|
||||
recording.value = false;
|
||||
};
|
||||
|
||||
defineExpose({ teardown });
|
||||
/** Fill the text input from outside (e.g. adopt a coach suggestion) and
|
||||
* switch to keyboard mode so the user can edit before sending. */
|
||||
const setDraft = (text: string) => {
|
||||
voiceMode.value = false;
|
||||
panelOpen.value = false;
|
||||
draft.value = text;
|
||||
};
|
||||
|
||||
defineExpose({ teardown, setDraft });
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user