|
@@ -51,8 +51,12 @@
|
|
|
<div class="s_bottom">
|
|
|
<div class="s_b_btnArea">
|
|
|
<!-- <div class="s_b_ba-item" @click.stop="choiceRole()">选择角色</div> -->
|
|
|
- <div class="s_b_ba-item" @click.stop="sendImage()">图片</div>
|
|
|
- <div class="s_b_ba-item" @click.stop="sendVideo()">视频</div>
|
|
|
+ <div class="s_b_ba-item">
|
|
|
+ <el-checkbox style="display: flex;" v-model="imageCheck">图片</el-checkbox>
|
|
|
+ </div>
|
|
|
+ <div class="s_b_ba-item">
|
|
|
+ <el-checkbox style="display: flex;" v-model="videoCheck">视频</el-checkbox>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="s_b_inputArea">
|
|
|
<div class="s_b_tape" @click="goTape()"></div>
|
|
@@ -76,6 +80,8 @@
|
|
|
return{
|
|
|
text:"",
|
|
|
loading:false,
|
|
|
+ imageCheck:false,
|
|
|
+ videoCheck:false,
|
|
|
chatList:[
|
|
|
{
|
|
|
role:"ai",
|
|
@@ -140,12 +146,42 @@ https://www.bilibili.com/video/BV1ZD4y1U7H7/ `;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- this.chatList.push({
|
|
|
- role:"ai",
|
|
|
- content:aiContent,
|
|
|
- type:type,
|
|
|
- time:new Date().toLocaleString().replace(/\//ig,'-')
|
|
|
- })
|
|
|
+ if(this.imageCheck){
|
|
|
+ aiContent = ['https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721713253471000.png','https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8731713253488299.png','https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8741713253506303.png','https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8751713253523152.png'];
|
|
|
+ type = 1;
|
|
|
+ this.chatList.push({
|
|
|
+ role:"ai",
|
|
|
+ content:aiContent,
|
|
|
+ type:type,
|
|
|
+ time:new Date().toLocaleString().replace(/\//ig,'-')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(this.videoCheck){
|
|
|
+ aiContent = `当然,以下是关于垃圾处理的一些B站视频链接:
|
|
|
+ 1.【科普短视频】垃圾会被怎么处理? - 这个视频通过简短的内容向观众展示垃圾处理的过程。
|
|
|
+ https://www.bilibili.com/video/BV1UD4y1U71a
|
|
|
+
|
|
|
+ 2.垃圾分类,就是这么简单- 这个视频以科普的形式,向观众介绍了垃圾分类的基本知识。
|
|
|
+ https://www.bilibili.com/video/BV1bt41157wH
|
|
|
+
|
|
|
+ 3.【环保短片】震撼环保公益短片《致我们的地球》- 这部短片通过震撼的画面和内容,强调了环保问题的重要性。
|
|
|
+ https://www.bilibili.com/video/BV1ZD4y1U7H7/ `;
|
|
|
+ type = 0;
|
|
|
+ this.chatList.push({
|
|
|
+ role:"ai",
|
|
|
+ content:aiContent,
|
|
|
+ type:type,
|
|
|
+ time:new Date().toLocaleString().replace(/\//ig,'-')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(!this.imageCheck&&!this.videoCheck){
|
|
|
+ this.chatList.push({
|
|
|
+ role:"ai",
|
|
|
+ content:aiContent,
|
|
|
+ type:type,
|
|
|
+ time:new Date().toLocaleString().replace(/\//ig,'-')
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
this.text = "";
|
|
|
this.$nextTick(() => {
|