SanHQin 1 gadu atpakaļ
vecāks
revīzija
ff7733f8b1

+ 44 - 8
src/components/classRoomHelper/component/searchArea.vue

@@ -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(() => {

+ 4 - 3
src/components/classRoomHelper/index.vue

@@ -10,7 +10,7 @@
 				<div>
 					<img :src="require('../../assets/icon/course/return.png')" alt="">
 				</div>
-				<div>
+				<div @click="$emit('refresh')">
 					<img :src="require('../../assets/icon/course/refresh.png')" alt="">
 				</div>
 				<div>
@@ -38,10 +38,10 @@
 				</div>
 			</div>
 			<div class="ch_nav_box_bottom">
-				<div>
+				<div @click.stop="$emit('goStep',0)">
 					<img :src="require('../../assets/icon/course/last.png')">
 				</div>
-				<div>
+				<div @click.stop="$emit('goStep',1)">
 					<img :src="require('../../assets/icon/course/next.png')">
 				</div>
 				<div @click="openSetting">
@@ -59,6 +59,7 @@ import searchArea from './component/searchArea.vue';
 import taskArea from './component/taskArea.vue';
 import dialogArea from './component/dialogArea.vue';
 export default {
+	emits:["refresh","goStep"],
 	components:{
 		searchArea,
 		taskArea,

+ 1 - 3
src/components/studyStudent.vue

@@ -8037,7 +8037,7 @@
           </div>
         </el-dialog>
       </div>
-      <classRoomHelper ref="classRoomHelperRef" @setWidth="setClassRoomHelperWidth"></classRoomHelper>
+      <classRoomHelper ref="classRoomHelperRef" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps"></classRoomHelper>
     </div>
     <div
       class="pButton"
@@ -19858,8 +19858,6 @@ export default {
       };
     },
 		commentRight(){
-			console.log("👇👇👇👇👇👇👇👇👇")
-			console.log(this.$refs["classRoomHelperRef"].type)
 			if(this.$refs["classRoomHelperRef"].type==0){
 				return "100px";
 			}else if(this.$refs["classRoomHelperRef"].type==1){