|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
|
|
<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
|
|
- <u-navbar title="创衡正念企业教练" bgColor="transparent" :titleStyle="{'font-size':'32rpx','font-weight':'bold'}">
|
|
|
|
|
|
+ <u-navbar title="创衡正念企业教练" bgColor="#FFFFFF" :titleStyle="{'font-size':'32rpx','font-weight':'bold'}">
|
|
<view class="u-nav-slot" slot="left" style="display: flex;background-color: transparent;">
|
|
<view class="u-nav-slot" slot="left" style="display: flex;background-color: transparent;">
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/ef50e3e8-d0f9-41dd-a4ec-546b157a1de9.png" style="width: 45rpx;height: 45rpx;" @tap="toBack"></image>
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/ef50e3e8-d0f9-41dd-a4ec-546b157a1de9.png" style="width: 45rpx;height: 45rpx;" @tap="toBack"></image>
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/e536bf8e-3b33-4ea8-b60b-7154c6353bec.png" style="width: 42rpx;height: 42rpx;margin-left: 40rpx;" @tap="startNewDialog"></image>
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/e536bf8e-3b33-4ea8-b60b-7154c6353bec.png" style="width: 42rpx;height: 42rpx;margin-left: 40rpx;" @tap="startNewDialog"></image>
|
|
@@ -32,7 +32,15 @@
|
|
<text>创衡正念企业教练</text>
|
|
<text>创衡正念企业教练</text>
|
|
</div>
|
|
</div>
|
|
<div class="da_content">
|
|
<div class="da_content">
|
|
- <u-parse :content="item.answer"></u-parse>
|
|
|
|
|
|
+ <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>
|
|
|
|
+ <text>正在思考中</text>
|
|
|
|
+ </view>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <u-parse :content="item.answer"></u-parse>
|
|
|
|
+ </template>
|
|
<div class="dc_btns adfacjb" v-if="item.answer">
|
|
<div class="dc_btns adfacjb" v-if="item.answer">
|
|
<div class="db_l">
|
|
<div class="db_l">
|
|
<image :src="item.copy?require('@/static/copy_active.png'):require('@/static/copy.png')" @tap="toCopy(item,index)"></image>
|
|
<image :src="item.copy?require('@/static/copy_active.png'):require('@/static/copy.png')" @tap="toCopy(item,index)"></image>
|
|
@@ -48,25 +56,29 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <div class="ask">
|
|
|
|
- <div class="a_inp">
|
|
|
|
- <u-textarea v-model="question" placeholder="请输入您的问题" autoHeight @confirm="sendQuestion"></u-textarea>
|
|
|
|
- </div>
|
|
|
|
- <div class="a_btn adfacjb">
|
|
|
|
- <div class="ab_l adfac">
|
|
|
|
- <div class="al_pre adfacjc">
|
|
|
|
- <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/451ac13c-5fdc-4d15-8f35-9f4d238e87c1.png"></image>
|
|
|
|
- <text>创衡增强</text>
|
|
|
|
|
|
+ <div class="ask_box">
|
|
|
|
+ <div class="ask">
|
|
|
|
+ <div class="a_inp">
|
|
|
|
+ <u-textarea v-model="question" placeholder="请输入您的问题" autoHeight @confirm="sendQuestion"></u-textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="a_btn adfacjb">
|
|
|
|
+ <div class="ab_l adfac">
|
|
|
|
+ <div class="al_pre adfacjc" :class="{'active':chzq}" @tap="changeChzq">
|
|
|
|
+ <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/451ac13c-5fdc-4d15-8f35-9f4d238e87c1.png" v-if="!chzq"></image>
|
|
|
|
+ <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/07/07/724764f9-3b36-4c90-89c9-cc51875c6767.png" v-else></image>
|
|
|
|
+ <text>创衡增强</text>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="al_pre adfacjc" :class="{'active':lwss}" @tap="changeLwss">
|
|
|
|
+ <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/d4668dcc-1d28-47ff-8bae-84dc6475794b.png" v-if="!lwss"></image>
|
|
|
|
+ <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/07/07/017f80b5-9421-4850-a659-38705e514e67.png" v-else></image>
|
|
|
|
+ <text>联网搜索</text>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="al_pre adfacjc">
|
|
|
|
- <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/d4668dcc-1d28-47ff-8bae-84dc6475794b.png"></image>
|
|
|
|
- <text>联网搜索</text>
|
|
|
|
|
|
+ <div class="ab_r">
|
|
|
|
+ <!-- <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/caf6075c-0967-4c99-a269-ea453537075c.png"></image> -->
|
|
|
|
+ <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>
|
|
- <div class="ab_r">
|
|
|
|
- <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/caf6075c-0967-4c99-a269-ea453537075c.png"></image>
|
|
|
|
- <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>
|
|
</div>
|
|
<u-modal :show="commentShow" title="评论" @confirm="commentConfirm" @cancel="commentCancel" @close="commentCancel" :showCancelButton="true">
|
|
<u-modal :show="commentShow" title="评论" @confirm="commentConfirm" @cancel="commentCancel" @close="commentCancel" :showCancelButton="true">
|
|
@@ -95,6 +107,8 @@
|
|
commentShow:false,
|
|
commentShow:false,
|
|
content:'',
|
|
content:'',
|
|
cindex:'',
|
|
cindex:'',
|
|
|
|
+ chzq:false,
|
|
|
|
+ lwss:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -173,9 +187,12 @@
|
|
this.$set(this.dialogList[this.dialogList.length-1],'task_id',nj.task_id);
|
|
this.$set(this.dialogList[this.dialogList.length-1],'task_id',nj.task_id);
|
|
this.$set(this.dialogList[this.dialogList.length-1],'message_id',nj.message_id);
|
|
this.$set(this.dialogList[this.dialogList.length-1],'message_id',nj.message_id);
|
|
this.$set(this.dialogList[this.dialogList.length-1],'conversation_id',nj.conversation_id);
|
|
this.$set(this.dialogList[this.dialogList.length-1],'conversation_id',nj.conversation_id);
|
|
- uni.pageScrollTo({ scrollTop: 99999, duration: 300});
|
|
|
|
|
|
+ this.$set(this.dialogList[this.dialogList.length-1],'think',false);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.scrollToBottom();
|
|
|
|
+ },100)
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
console.error('解析失败', e, '原始数据:', decodedString);
|
|
console.error('解析失败', e, '原始数据:', decodedString);
|
|
@@ -223,14 +240,26 @@
|
|
upvote:false,
|
|
upvote:false,
|
|
comment:'',
|
|
comment:'',
|
|
share:false,
|
|
share:false,
|
|
|
|
+ think:true
|
|
}
|
|
}
|
|
this.dialogList = [...this.dialogList,...[qa]];
|
|
this.dialogList = [...this.dialogList,...[qa]];
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
- uni.pageScrollTo({ scrollTop: 99999, duration: 300});
|
|
|
|
|
|
+ this.scrollToBottom();
|
|
this.sendRequestWithRetry();
|
|
this.sendRequestWithRetry();
|
|
this.question = '';
|
|
this.question = '';
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 滚动到底部
|
|
|
|
+ scrollToBottom() {
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ uni.pageScrollTo({
|
|
|
|
+ scrollTop:99999,
|
|
|
|
+ duration:300
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
toCopy(item,index){
|
|
toCopy(item,index){
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
data:item.answer,
|
|
data:item.answer,
|
|
@@ -260,6 +289,12 @@
|
|
this.content = '';
|
|
this.content = '';
|
|
this.commentShow = false;
|
|
this.commentShow = false;
|
|
},
|
|
},
|
|
|
|
+ changeChzq(){
|
|
|
|
+ this.chzq = !this.chzq;
|
|
|
|
+ },
|
|
|
|
+ changeLwss(){
|
|
|
|
+ this.lwss = !this.lwss;
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -306,7 +341,6 @@
|
|
|
|
|
|
.dialogs{
|
|
.dialogs{
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: calc(100vh - 282rpx);
|
|
|
|
padding-top: 34rpx;
|
|
padding-top: 34rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
@@ -334,6 +368,16 @@
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
border-radius: 4rpx 24rpx 24rpx 24rpx;
|
|
border-radius: 4rpx 24rpx 24rpx 24rpx;
|
|
|
|
+ .dac_think{
|
|
|
|
+ image{
|
|
|
|
+ width: 40rpx;
|
|
|
|
+ height: 40rpx;
|
|
|
|
+ }
|
|
|
|
+ text{
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ margin-left: 10rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.dc_btns{
|
|
.dc_btns{
|
|
margin-top: 44rpx;
|
|
margin-top: 44rpx;
|
|
image{
|
|
image{
|
|
@@ -365,16 +409,22 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .ask_box{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 282rpx;
|
|
|
|
+ background: linear-gradient( 227deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
|
|
|
|
+ padding: 0 30rpx 72rpx;
|
|
|
|
+ position: fixed;
|
|
|
|
+ left: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ }
|
|
|
|
|
|
.ask{
|
|
.ask{
|
|
- width: calc(100% - 60rpx);
|
|
|
|
height: 210rpx;
|
|
height: 210rpx;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
border-radius: 24rpx;
|
|
border-radius: 24rpx;
|
|
border: 2rpx solid #F0F2F8;
|
|
border: 2rpx solid #F0F2F8;
|
|
- position: fixed;
|
|
|
|
- left: 30rpx;
|
|
|
|
- bottom: 72rpx;
|
|
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
padding: 24rpx;
|
|
padding: 24rpx;
|
|
@@ -406,6 +456,14 @@
|
|
line-height: 22rpx;
|
|
line-height: 22rpx;
|
|
margin-left: 10rpx;
|
|
margin-left: 10rpx;
|
|
}
|
|
}
|
|
|
|
+ &.active{
|
|
|
|
+ background: rgba(118,30,106,0.06);
|
|
|
|
+ border-radius: 27px;
|
|
|
|
+ border: 1px solid #761E6A;
|
|
|
|
+ text{
|
|
|
|
+ color: #761E6A;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.ab_r{
|
|
.ab_r{
|