chat.wxml 3.3 KB
<!--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>