|
|
@@ -1,26 +1,26 @@
|
|
|
<template>
|
|
|
<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
|
|
|
- <cus-header title='对报告提问' bgColor="#FFFFFF"></cus-header>
|
|
|
- <div class="dialogs container" ref="messageContainer">
|
|
|
- <div class="d_pdf">
|
|
|
- <div class="dp_box">
|
|
|
- <div class="dq_text">{{ fileName||'' }}</div>
|
|
|
- <div class="dp_type adfac">
|
|
|
+ <cus-header title='对报告提问' bgColor="#E9F4F6"></cus-header>
|
|
|
+ <view class="dialogs container" ref="messageContainer">
|
|
|
+ <view class="d_pdf">
|
|
|
+ <view class="dp_box">
|
|
|
+ <view class="dq_text">{{ fileName||'' }}</view>
|
|
|
+ <view class="dp_type adfac">
|
|
|
<image src="@/static/pdf.png"></image>
|
|
|
<span>PDF</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div v-for="(item,index) in dialogList" :key="index">
|
|
|
- <div class="d_question">
|
|
|
- <div class="dq_text">{{ item.question }}</div>
|
|
|
- </div>
|
|
|
- <div class="d_answer">
|
|
|
- <div class="da_top adfac">
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-for="(item,index) in dialogList" :key="index">
|
|
|
+ <view class="d_question">
|
|
|
+ <view class="dq_text">{{ item.question }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="d_answer">
|
|
|
+ <view class="da_top adfac">
|
|
|
<image src="@/static/logo.png"></image>
|
|
|
<text>AI教练督导</text>
|
|
|
- </div>
|
|
|
- <div class="da_content">
|
|
|
+ </view>
|
|
|
+ <view class="da_content">
|
|
|
<template v-if="item.think">
|
|
|
<view class="dac_think adfac">
|
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/07/07/13c5dd16-2032-464a-8b1c-2722d201cfe2.gif"></image>
|
|
|
@@ -28,34 +28,37 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <u-parse :content="item.answer"></u-parse>
|
|
|
+ <view style="font-size: 28rpx;color: #002846;line-height: 54rpx;">
|
|
|
+ <u-parse :content="item.answer"></u-parse>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
- <div class="dc_btns adfacjb" v-if="item.answer">
|
|
|
- <div class="db_l">
|
|
|
+ <view class="dc_btns adfacjb" v-if="item.answer">
|
|
|
+ <view class="db_l">
|
|
|
<image :src="item.copy?require('@/static/copy_active.png'):require('@/static/copy.png')" @tap="toCopy(item,index)"></image>
|
|
|
<image :src="item.upvote?require('@/static/upvote_active.png'):require('@/static/upvote.png')" @tap="toUpvote(item,index)"></image>
|
|
|
- <image :src="item.comment?require('@/static/comment_active.png'):require('@/static/comment.png')" @tap="toComment(item,index)"></image>
|
|
|
- </div>
|
|
|
- <div class="db_r">
|
|
|
+ <!-- <image :src="item.comment?require('@/static/comment_active.png'):require('@/static/comment.png')" @tap="toComment(item,index)"></image> -->
|
|
|
+ </view>
|
|
|
+ <view class="db_r">
|
|
|
<!-- <image :src="item.share?require('@/static/share_active.png'):require('@/static/share.png')" @tap="toShare(item,index)"></image> -->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="ask_box" :style="{'bottom':fixBottom+'px'}">
|
|
|
- <div class="ask">
|
|
|
- <div class="a_inp">
|
|
|
- <div class="ai_l">
|
|
|
- <u-textarea v-model="question" placeholder="请输入您的问题" autoHeight :showConfirmBar="false" :adjustPosition="false" maxlength="999999"></u-textarea>
|
|
|
- </div>
|
|
|
- <div class="ai_r">
|
|
|
- <image @tap="sendQuestion" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/2429556b-54b7-4878-97c0-6b440b546ee4.png"></image>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="ask_box" :style="{'bottom':fixBottom+'px'}">
|
|
|
+ <view class="ask">
|
|
|
+ <view class="a_inp">
|
|
|
+ <view class="ai_l">
|
|
|
+ <u-textarea v-model="question" placeholder="请输入您的问题" placeholder-style="font-size:28rpx;color:#95A5B1;" @confirm="sendQuestion" autoHeight :showConfirmBar="false" :adjustPosition="false" maxlength="999999"></u-textarea>
|
|
|
+ </view>
|
|
|
+ <view class="ai_r">
|
|
|
+ <image @tap="sendQuestion" :src="imgBase+'dialog_send.png'"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="ask_memo">本服务为AI生成内容,结果仅供参考</view>
|
|
|
+ </view>
|
|
|
<u-modal :show="commentShow" title="评论" @confirm="commentConfirm" @cancel="commentCancel" @close="commentCancel" :showCancelButton="true">
|
|
|
<u-textarea v-model="content" placeholder="对于我们的回答您是否不满意,您有更好的答案建议吗?请在此输入."></u-textarea>
|
|
|
</u-modal>
|
|
|
@@ -281,8 +284,9 @@
|
|
|
}
|
|
|
|
|
|
.page{
|
|
|
- background: linear-gradient( 227deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
|
|
|
- padding: 0 30rpx 200rpx;
|
|
|
+ background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/dialog_bg.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ padding: 0 30rpx 240rpx;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.welcome{
|
|
|
@@ -369,7 +373,7 @@
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
.dq_text{
|
|
|
- background: #833478;
|
|
|
+ background: #33A7A7;
|
|
|
border-radius: 24rpx 4rpx 24rpx 24rpx;
|
|
|
font-family: PingFangSC, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
@@ -421,11 +425,21 @@
|
|
|
.ask_box{
|
|
|
width: 100%;
|
|
|
min-height: 176rpx;
|
|
|
- background: linear-gradient( 227deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
|
|
|
padding: 0 30rpx 60rpx;
|
|
|
position: fixed;
|
|
|
left: 0;
|
|
|
box-sizing: border-box;
|
|
|
+ background: #F6F6F6;
|
|
|
+
|
|
|
+ .ask_memo{
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #b1b1b1;
|
|
|
+ line-height: 34rpx;
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 16rpx;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.ask{
|