1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a58f1ec"],{"1c34":function(t,e,a){"use strict";a("3fb3")},"23e3":function(t,e,a){t.exports=a.p+"static/img/character4.77b292f6.png"},"2e45":function(t,e,a){t.exports=a.p+"static/img/character1.992e7559.png"},"3fb3":function(t,e,a){},"415f":function(t,e,a){"use strict";a("cd58")},"689e":function(t,e,a){t.exports=a.p+"static/img/character3.0756447c.png"},7961:function(t,e,a){t.exports=a.p+"static/img/character6.530bea01.png"},8883:function(t,e,a){},b886:function(t,e,a){"use strict";a("8883")},bc9b:function(t,e,a){"use strict";a.r(e);a("ac1f"),a("841c"),a("7db0"),a("d3b7"),a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pocAiClass"},[e("div",{staticClass:"pac_head"},[t._m(0),e("div",{staticClass:"pac_h_right"},[e("div",{staticClass:"p_h_r_box"},[e("div",[e("span",{on:{click:function(e){return e.stopPropagation(),t.settings()}}},[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.07817 8.26844C0.973943 8.10465 0.973943 7.89535 1.07817 7.73156L4.57817 2.23156C4.66995 2.08734 4.82905 2 5 2L11 2C11.1709 2 11.3301 2.08734 11.4218 2.23156L14.9218 7.73156C15.0261 7.89535 15.0261 8.10465 14.9218 8.26844L11.4218 13.7684C11.3301 13.9127 11.1709 14 11 14L5 14C4.82905 14 4.66995 13.9127 4.57817 13.7684L1.07817 8.26844ZM5.27447 13L10.7255 13L13.9073 8L10.7255 3L5.27447 3L2.09265 8L5.27447 13Z",fill:"black"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 6.5C7.17157 6.5 6.5 7.17157 6.5 8C6.5 8.82843 7.17157 9.5 8 9.5C8.82843 9.5 9.5 8.82843 9.5 8C9.5 7.17157 8.82843 6.5 8 6.5ZM5.5 8C5.5 6.61929 6.61929 5.5 8 5.5C9.38071 5.5 10.5 6.61929 10.5 8C10.5 9.38071 9.38071 10.5 8 10.5C6.61929 10.5 5.5 9.38071 5.5 8Z",fill:"black"}})])])])])])]),e("div",{staticClass:"pac_screen"},[e("el-select",{staticClass:"pac_s_select",staticStyle:{width:"48%"},attrs:{size:"medium",placeholder:"请选择学科"},model:{value:t.subject,callback:function(e){t.subject=e},expression:"subject"}},[e("el-option",{attrs:{label:"全部学科",value:""}}),t._l(t.subjectList,(function(t,a){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],2),e("el-select",{staticClass:"pac_s_select",staticStyle:{width:"48%"},attrs:{size:"medium",placeholder:"请选择版本"},model:{value:t.edition,callback:function(e){t.edition=e},expression:"edition"}},[e("el-option",{attrs:{label:"全部版本",value:""}}),t._l(t.editionList,(function(t,a){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],2),e("el-input",{staticClass:"pac_s_select",staticStyle:{width:"80%"},attrs:{placeholder:"搜索"},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[e("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(e){return e.stopPropagation(),t.search()}},slot:"suffix"})]),e("span",{staticClass:"pac_s_reset",on:{click:function(e){return e.stopPropagation(),t.reset()}}},[t._v("重置")])],1),e("div",{staticClass:"pac_box"},t._l(t.classList,(function(a,s){return e("chapterCard",{key:s,attrs:{data:a,subjectList:t.subjectList}})})),1),t.showDialog?e("div",{staticClass:"pac_footDialog"},[e("div",{staticClass:"pac_fd_closeArea"}),e("div",{staticClass:"pac_fd_bottom"},[e("div",{staticClass:"pac_fd_b_left"},[e("img",{attrs:{src:t.characterList.find((function(e){return t.userInfo.choseCharacter===e.index})).image}})]),e("div",{staticClass:"pac_fd_b_right"},[e("span",{staticClass:"pac_fd_b_r_characterName"},[t._v(t._s(t.characterList.find((function(e){return t.userInfo.choseCharacter===e.index}))?t.characterList.find((function(e){return t.userInfo.choseCharacter===e.index})).name:"AI"))]),e("span",{staticClass:"pac_fd_b_r_closeIcon",on:{click:function(e){e.stopPropagation(),t.showDialog=!1}}},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M7 0C3.14049 0 0 3.14001 0 7C0 10.86 3.14001 14 7 14C10.8595 14 14 10.86 14 7C14 3.14001 10.86 0 7 0ZM9.8555 9.156C10.0505 9.352 10.05 9.668 9.85451 9.863C9.75702 9.96 9.62951 10.009 9.50152 10.009C9.37301 10.009 9.24502 9.96001 9.14751 9.86201L6.9975 7.7055L4.84051 9.83951C4.74302 9.93552 4.61599 9.98401 4.48899 9.98401C4.36001 9.98401 4.2315 9.9345 4.1335 9.83551C3.9395 9.639 3.941 9.32299 4.13751 9.1285L6.292 6.9975L4.14549 4.844C3.95049 4.64849 3.951 4.332 4.14649 4.137C4.342 3.94149 4.65798 3.94251 4.85349 4.13799L7.00298 6.29399L9.15998 4.16001C9.35597 3.96552 9.67297 3.9675 9.86698 4.16401C10.0615 4.36052 10.0595 4.67701 9.86298 4.87101L7.70851 7.00199L9.8555 9.156Z",fill:"#E0EAFB"}})])]),e("div",{staticClass:"pac_fd_b_r_message"},[t._v(" Hi,"+t._s(t.userInfo.userName)+"同学,欢迎回来!你是否开始下一节课的学习,学习"),e("span",[t._v("【运动的快慢】")]),t._v("? ")]),e("div",{staticClass:"pac_fd_b_r_btnArea"},[e("span",{staticClass:"pac_fd_b_r_ba_btn1",on:{click:function(e){return e.stopPropagation(),t.dialogBtn(3)}}},[t._v("我想聊聊天")]),e("span",{staticClass:"pac_fd_b_r_ba_btn2",on:{click:function(e){return e.stopPropagation(),t.dialogBtn(2)}}},[t._v("复习上一课")]),e("span",{staticClass:"pac_fd_b_r_ba_btn3",on:{click:function(e){return e.stopPropagation(),t.dialogBtn(1)}}},[t._v("学习新内容")])])])])]):t._e(),e("settingsDialog",{ref:"settingsDialogRef",attrs:{gradeList:t.gradeList,characterList:t.characterList},on:{changeUserInfo:t.changeUserInfo,changeCharacterInfo:t.changeCharacterInfo}})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pac_h_left"},[e("span",[t._v("筛选")])])}],c=(a("14d9"),a("caad"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"chapterCard"},[e("div",{staticClass:"cc_title"},[t._v(t._s(t.data.title))]),e("div",{staticClass:"cc_box"},t._l(t.data.allClass,(function(s,i){return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.handleClickOutside,expression:"handleClickOutside"}],key:i,staticClass:"cc_b_item",on:{click:function(e){e.stopPropagation(),t.showBtnAreaIndex=i}}},[e("div",{staticClass:"cc_b_i_image"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:a("efaf")}}),e("span",{domProps:{textContent:t._s(s.title)}})],1),e("div",{staticClass:"cc_b_i_message"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showBtnAreaIndex!==i,expression:"showBtnAreaIndex!==index"}]},[s.isComplete?e("span",[t._v("✅已完成")]):e("span",[t._v("🏷️待完成")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showBtnAreaIndex!==i,expression:"showBtnAreaIndex!==index"}]},[e("div",[t._v(" "+t._s(t.subjectList.find((function(t){return t.value===s.subject})).label)+" ")])])]),t.showBtnAreaIndex===i?e("div",{staticClass:"cc_b_i_btnArea"},[[0].includes(s.type)?e("span",{staticClass:"cc_b_i_ba_goClass",on:{click:function(e){return e.stopPropagation(),t.goClass(s)}}},[t._v("去上课")]):t._e(),[0,1].includes(s.type)?e("span",{staticClass:"cc_b_i_ba_doWorks",on:{click:function(e){return e.stopPropagation(),t.goWorks(s)}}},[t._v("做练习")]):t._e()]):t._e()])})),0)])}),n=[],r=(a("99af"),{bind:function(t,e){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||e.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.removeEventListener("click",t.clickOutsideEvent)}}),o={props:{data:{type:Object,default:function(){}},subjectList:{type:Array,default:function(){return[]}}},directives:{"click-outside":r},data:function(){return{userId:this.$route.query.userid,org:this.$route.query.org,oid:this.$route.query.oid,showBtnAreaIndex:""}},methods:{goClass:function(t){this.$router.push("/pocClass?userid=".concat(this.userId,"&org=").concat(this.org,"&oid=").concat(this.oid))},goWorks:function(t){this.$router.push("/pocDoTask?userid=".concat(this.userId,"&org=").concat(this.org,"&oid=").concat(this.oid))},handleClickOutside:function(){this.showBtnAreaIndex=""}}},l=o,u=(a("1c34"),a("2877")),p=Object(u["a"])(l,c,n,!1,null,"618656c0",null),d=p.exports,h=function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{staticClass:"settingsDialog",attrs:{center:!0,visible:t.show,"close-on-click-modal":!0,width:"95vw"},on:{"update:visible":function(e){t.show=e}}},[e("div",{staticClass:"sd_top"},[e("div",{staticClass:"sd_t_topTit"},[t._v("设置")]),e("div",{staticClass:"sd_t_right"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.close()}}},[t._v("×")])])]),e("div",{staticClass:"sd_box"},[e("div",{staticClass:"sd_b_head"},[e("span",{class:[0==t.showType?"sd_b_h_active":""],on:{click:function(e){return e.stopPropagation(),t.changeShowType(0)}}},[t._v("个人信息")]),e("span",{class:[1==t.showType?"sd_b_h_active":""],on:{click:function(e){return e.stopPropagation(),t.changeShowType(1)}}},[t._v("学伴资料 ")])]),e("div",{staticClass:"sd_b_main"},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.showType,expression:"showType == 0"}],staticClass:"sd_b_m_type"},[e("div",{staticClass:"sd_b_m_t_avatarArea"},[e("el-image",{staticClass:"sd_b_m_t1_avatar",attrs:{src:t.form.avatar,fit:"cover"}})],1),e("div",{staticClass:"sd_b_m_t_formArea"},[e("div",{staticClass:"sd_b_m_t_fa_item"},[e("span",{staticClass:"sd_b_m_t_fa_i_inputLabel"},[t._v("姓名")]),e("div",{staticClass:"sd_b_m_t_fa_i_inputArea"},[e("el-input",{staticClass:"sd_b_m_t_fa_i_input",attrs:{placeholder:"请输入姓名"},model:{value:t.form.userName,callback:function(e){t.$set(t.form,"userName",e)},expression:"form.userName"}})],1)]),e("div",{staticClass:"sd_b_m_t_fa_item"},[e("span",{staticClass:"sd_b_m_t_fa_i_inputLabel"},[t._v("年级")]),e("div",{staticClass:"sd_b_m_t_fa_i_inputArea"},[e("el-select",{staticClass:"sd_b_m_t_fa_i_input",attrs:{placeholder:"请选择年级"},model:{value:t.form.grade,callback:function(e){t.$set(t.form,"grade",e)},expression:"form.grade"}},t._l(t.gradeList,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],1)])]),e("div",{staticClass:"sd_b_m_t_bottomArea"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.saveSefMessage()}}},[t._v("保存修改")])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.showType,expression:"showType == 1"}],staticClass:"sd_b_m_type"},[e("div",{staticClass:"sd_b_m_t_avatarArea"},[e("div",{staticClass:"sd_b_m_t_characterList"},[e("el-carousel",{attrs:{interval:4e3,type:"card",height:"150px",autoplay:!1,"initial-index":t.form.characterIndex,"indicator-position":"none"},on:{change:t.changeCharacter}},t._l(t.characterList,(function(t,a){return e("el-carousel-item",{key:a},[e("div",{staticClass:"characterCard"},[e("el-image",{staticClass:"cc_image",staticStyle:{height:"100%"},attrs:{src:t.image}})],1)])})),1)],1)]),e("div",{staticClass:"sd_b_m_t_formArea"},[e("div",{staticClass:"sd_b_m_t_fa_item"},[e("span",{staticClass:"sd_b_m_t_fa_i_inputLabel"},[t._v("昵称")]),e("div",{staticClass:"sd_b_m_t_fa_i_inputArea"},[e("div",[t._v(t._s(t.form.characterName))])])]),e("div",{staticClass:"sd_b_m_t2_fa_item"},[e("span",{staticClass:"sd_b_m_t_fa_i_inputLabel"},[t._v("性格")]),e("div",{staticClass:"sd_b_m_t2_fa_i_inputArea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.personality,expression:"form.personality"}],attrs:{disabled:""},domProps:{value:t.form.personality},on:{input:function(e){e.target.composing||t.$set(t.form,"personality",e.target.value)}}})])])]),e("div",{staticClass:"sd_b_m_t_bottomArea"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.updateCharacter()}}},[t._v("更新学伴设置")])])])])])])],1)},_=[],m={props:{gradeList:{type:Array,default:function(){return[]}},characterList:{type:Array,default:function(){return[]}}},data:function(){return{show:!1,showType:0,form:{avatar:a("e8e8"),userName:"科科",grade:7,characterIndex:0,characterName:"迷人的大反派",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心"}}},methods:{open:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.form.userName=t.userName,this.form.grade=t.grade,this.form.characterIndex=t.choseCharacter,this.form.personality=t.personality;var a=this.characterList.find((function(e){return e.index==t.choseCharacter}));this.form.characterName=a.name,this.form.personality=a.personality,this.showType=e,this.show=!0},close:function(){this.show=!1,this.init()},init:function(){var t=this;this.$nextTick((function(){t.form={avatar:a("e8e8"),userName:"",grade:0,characterIndex:0,characterName:"",personality:""}}))},changeShowType:function(t){this.showType=t},saveSefMessage:function(){this.$emit("changeUserInfo",{avatar:this.form.avatar,userName:this.form.userName,grade:this.form.grade})},updateCharacter:function(){this.$emit("changeCharacterInfo",{index:this.form.characterIndex,name:this.form.characterName,personality:this.form.personality})},changeCharacter:function(t){this.form.characterIndex=t,this.form.characterName=this.characterList[t].name,this.form.personality=this.characterList[t].personality}}},f=m,g=(a("b886"),Object(u["a"])(f,h,_,!1,null,"15d38a27",null)),v=g.exports,b={components:{chapterCard:d,settingsDialog:v},data:function(){return{userId:this.$store.state.user.userinfo.userid,org:this.$store.state.user.userinfo.org,oid:this.$store.state.user.userinfo.organizeid,subject:"",edition:"",searchValue:"",grade:7,showDialog:!0,userInfo:{userName:"科科",grade:7,userAvatar:a("e8e8"),choseCharacter:0},characterList:[{index:0,image:a("2e45"),name:"圆鼓鼓的大胖鱼",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心"},{index:1,image:a("d20a"),name:"迷人的大反派2",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心2"},{index:2,image:a("689e"),name:"迷人的大反派3",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心3"},{index:3,image:a("23e3"),name:"迷人的大反派4",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心4"},{index:4,image:a("fabe"),name:"迷人的大反派5",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心5"},{index:5,image:a("7961"),name:"迷人的大反派6",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心6"}],gradeList:["一年级","二年级","三年级","四年级","五年级","六年级","七年级","八年级","九年级"],subjectList:[{value:0,label:"语文"},{value:1,label:"数学"},{value:2,label:"英语"},{value:3,label:"物理"},{value:4,label:"化学"},{value:5,label:"生物"},{value:6,label:"历史"},{value:7,label:"地理"},{value:8,label:"政治"}],editionList:[{value:0,label:"人教版"},{value:1,label:"教科版"},{value:2,label:"北师大版"},{value:3,label:"苏教版"},{value:4,label:"沪教版"},{value:5,label:"浙教版"},{value:6,label:"冀教版"},{value:7,label:"鲁教版"},{value:8,label:"人教A版"},{value:9,label:"人教B版"}],classList:[{title:"第一章",allClass:[{title:"长度和时间的测量",type:0,isComplete:!0,subject:0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8741724834676182.png"},{title:"运动的描述",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8731724834767532.png"},{title:"运动的快慢",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"},{title:"测量平均速度",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8751724834771676.png"},{title:"单元测试",type:1,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8711724834666052.png"}]},{title:"第二章",allClass:[{title:"长度和时间的测量",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8761724834777931.png"},{title:"运动的描述",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8771724834845597.png"},{title:"运动的快慢",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8781724834847977.png"},{title:"测量平均速度",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8791724834873373.png"},{title:"长度和时间的测量",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8761724834777931.png"},{title:"运动的描述",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8771724834845597.png"},{title:"运动的快慢",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"},{title:"测量平均速度",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%87101724834875748.png"},{title:"单元测试",type:1,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8711724834666052.png"}]},{title:"第三章",allClass:[{title:"长度和时间的测量",type:0,isComplete:!0,subject:0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8741724834676182.png"},{title:"运动的描述",type:0,subject:0,isComplete:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8731724834767532.png"},{title:"运动的快慢",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"},{title:"测量平均速度",type:0,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8751724834771676.png"},{title:"单元测试",type:1,subject:0,isComplete:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8711724834666052.png"}]}]}},methods:{changeGrade:function(){this.$refs.settingsDialogRef.open(this.userInfo)},dialogBtn:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0==t?this.showDialog=!1:1==t||2==t?this.$router.push("/pocClass"):3==t&&this.$router.push("/pocAiChat")},reset:function(){this.subject="",this.edition="",this.searchValue=""},settings:function(){this.$refs.settingsDialogRef.open(this.userInfo)},search:function(){console.log("搜索",this.searchValue)},changeUserInfo:function(t){this.userInfo.userName=t.userName,this.userInfo.grade=t.grade,this.$refs.settingsDialogRef.close()},changeCharacterInfo:function(t){this.userInfo.choseCharacter=t.index,this.$refs.settingsDialogRef.close()}},mounted:function(){}},C=b,w=(a("415f"),Object(u["a"])(C,s,i,!1,null,"1277ef5b",null));e["default"]=w.exports},cd58:function(t,e,a){},d20a:function(t,e,a){t.exports=a.p+"static/img/character2.70b6c42e.png"},e8e8:function(t,e,a){t.exports=a.p+"static/img/defaultAvatar.762b260d.png"},efaf:function(t,e,a){t.exports=a.p+"static/img/classImage.70b0985e.png"},fabe:function(t,e,a){t.exports=a.p+"static/img/character5.2222e2e5.png"}}]);
|