chat.wxml
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!--packageEquity/pages/aiCheck/chat/chat.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="chat-bar" showBack="{{false}}" navStyle="{{navStyle}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">驻店延保</view>
<view class="end-btn" bindtap="toResult">
<gl-image class="icon" src="/aiCheck/end-icon.png"></gl-image>
结束
</view>
</view>
</navigation-bar>
<view class="bg-box"></view>
<view class="chat-section">
<view class="chat-list">
<scroll-view scroll-y="true" scroll-x="false" style="height:100%" scroll-top="{{scrollTop}}">
<view class="chat-item">
<view class="chat-left">
<image class="avatar-icon" src="{{avatar}}"></image>
<view class="chat-box">
<view class="content-box">你已选择:<text class="font-b">{{roleName}}、{{stage}}</text></view>
<view class="operation" wx:if="{{!objection_id}}">
<view class="operation-top">
<gl-image class="suggest-icon" src="/aiCheck/suggest-icon.png"></gl-image>
对练建议
</view>
<view class="content">{{roleDesc}}</view>
</view>
</view>
</view>
</view>
<audio-tts objection_id="{{objection_id}}" wx:if="{{roleName}}" isDemo="{{isDemo}}" showSpeechPopup="{{showSpeechPopup}}" roleName="{{roleName}}"
chatList="{{chatList}}" voice="{{voice}}" avatar="{{avatar}}" id="audioBox"></audio-tts>
</scroll-view>
</view>
<view class="control-box" style="{{controlBoxStyle}}">
<view class="inspiration-btn {{popType == 'inspiration' ? 'active' : ''}}" bindtap="openPopup"
data-type="inspiration">
<gl-image class="icon"
src="/aiCheck/{{popType == 'inspiration' ? 'inspiration-icon-white' : 'inspiration-icon'}}.png"></gl-image>
</view>
<view wx:if="{{!objection_id}}" class="inspiration-btn {{popType == 'script' ? 'active' : ''}}" bindtap="handleScript" data-type="script">
<gl-image class="icon" src="/aiCheck/{{popType == 'script' ? 'script-icon-white' : 'script-icon'}}.png">
</gl-image>
</view>
<view class="speak-btn" bindtap="handleSpeak">
<gl-image class="icon" src="/aiCheck/speech-icon.png"></gl-image>点击说话
</view>
</view>
</view>
<!-- 弹窗组件 -->
<scene-popup avatar="{{avatar}}" bind:handleMask="handleMask" popType="{{popType}}" show="{{showScenePopup}}"
inspirationContent="{{inspirationContent}}" scriptList="{{scriptList}}" bindcancel="cancel"
bind:handleScript="handleScript" bindscene="handleScene"></scene-popup>
<speech-popup bindsend="send" show="{{showSpeechPopup}}" inspirationContent="{{inspirationContent}}"
bindclose="closeSpeechPopup"></speech-popup>
<view class="wrapper-pop" wx:if="{{isVisible}}">
<view class="wrapper-content">
<gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image>
<view class="title">温馨提示</view>
<view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒!</view>
<view class="footer">
<view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn sure" bind:tap="handleSure">确定</view>
</view>
</view>
</view>