(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7caf3a38"],{"23e3":function(t,e,s){t.exports=s.p+"static/img/character4.77b292f6.png"},"2e45":function(t,e,s){t.exports=s.p+"static/img/character1.992e7559.png"},"31e3":function(t,e,s){"use strict";s("66b3")},"32eb":function(t,e,s){"use strict";s("de11")},"66b3":function(t,e,s){},"689e":function(t,e,s){t.exports=s.p+"static/img/character3.0756447c.png"},7961:function(t,e,s){t.exports=s.p+"static/img/character6.530bea01.png"},b1c3:function(t,e,s){"use strict";s("d349")},bc9b:function(t,e,s){"use strict";s.r(e);s("caad"),s("7db0"),s("d3b7"),s("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pocAiClass"},[e("bar",{ref:"barRef",attrs:{tit:"智能学伴"}}),e("div",{staticClass:"pac_screen"},[e("div",{staticClass:"pac_s_item"},[e("van-popover",{attrs:{placement:"bottom-start",trigger:"click"},scopedSlots:t._u([{key:"reference",fn:function(){return[e("span",[e("span",[t._v(t._s(t.classList[t.chapter].title.substring(0,3)))]),e("svg",{attrs:{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.37366 6.45928L5.2929 5.54004L8.83328 9.08042L12.3737 5.54004L13.2929 6.45928L8.83328 10.9189L4.37366 6.45928Z",fill:"black","fill-opacity":"0.4"}})])])]},proxy:!0}]),model:{value:t.showChapter,callback:function(e){t.showChapter=e},expression:"showChapter"}},[e("div",{staticClass:"pac_s_i_list"},t._l(t.classList,(function(s,a){return e("div",{key:a,class:["pac_s_i_l_item",t.chapter==a?"pac_s_i_l_itemActive":"",[0,2].includes(a)?"pac_s_i_l_itemDisabled":""],staticStyle:{"justify-content":"flex-start","padding-left":"2px"},on:{click:function(e){return e.stopPropagation(),t.changeChapter(a)}}},[e("span",{domProps:{textContent:t._s(s.title)}})])})),0)])],1),e("div",{staticClass:"pac_s_item"},[e("van-popover",{attrs:{placement:"bottom",trigger:"click"},scopedSlots:t._u([{key:"reference",fn:function(){return[e("span",[e("span",[t._v(t._s(t.subject?t.subject:"学科"))]),e("svg",{attrs:{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.37366 6.45928L5.2929 5.54004L8.83328 9.08042L12.3737 5.54004L13.2929 6.45928L8.83328 10.9189L4.37366 6.45928Z",fill:"black","fill-opacity":"0.4"}})])])]},proxy:!0}]),model:{value:t.showSubject,callback:function(e){t.showSubject=e},expression:"showSubject"}},[e("div",{staticClass:"pac_s_i_list"},t._l(t.subjectList,(function(s,a){return e("div",{key:s.value,class:["pac_s_i_l_item",t.subject==s.label?"pac_s_i_l_itemActive":"",s.disabled?"pac_s_i_l_itemDisabled":""],on:{click:function(e){return e.stopPropagation(),t.changeSubject(s)}}},[e("span",{domProps:{textContent:t._s(s.label)}})])})),0)])],1),e("div",{staticClass:"pac_s_item"},[e("van-popover",{attrs:{placement:"bottom",trigger:"click"},scopedSlots:t._u([{key:"reference",fn:function(){return[e("span",[e("span",[t._v(t._s(t.edition?t.edition:"版本"))]),e("svg",{attrs:{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.37366 6.45928L5.2929 5.54004L8.83328 9.08042L12.3737 5.54004L13.2929 6.45928L8.83328 10.9189L4.37366 6.45928Z",fill:"black","fill-opacity":"0.4"}})])])]},proxy:!0}]),model:{value:t.showEdition,callback:function(e){t.showEdition=e},expression:"showEdition"}},[e("div",{staticClass:"pac_s_i_list"},t._l(t.editionList,(function(s,a){return e("div",{key:s.value,class:["pac_s_i_l_item",t.edition==s.label?"pac_s_i_l_itemActive":"",s.disabled?"pac_s_i_l_itemDisabled":""],on:{click:function(e){return e.stopPropagation(),t.changeEdition(s)}}},[e("span",{domProps:{textContent:t._s(s.label)}})])})),0)])],1),e("div",{staticClass:"pac_s_item",on:{click:function(e){return e.stopPropagation(),t.selfMessage.apply(null,arguments)}}},[e("div",{staticClass:"pac_s_i_message"},[e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{opacity:"0.9"}},[e("path",{attrs:{d:"M10 11.25C11.9192 11.25 13.475 9.69419 13.475 7.775C13.475 5.85581 11.9192 4.3 10 4.3C8.08081 4.3 6.525 5.85581 6.525 7.775C6.525 9.69419 8.08081 11.25 10 11.25ZM10 10C8.77117 10 7.775 9.00383 7.775 7.775C7.775 6.54617 8.77117 5.55 10 5.55C11.2288 5.55 12.225 6.54617 12.225 7.775C12.225 9.00383 11.2288 10 10 10Z",fill:"black","fill-opacity":"0.9"}}),e("path",{attrs:{d:"M10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75ZM16.2443 14.1557C14.3435 13.0956 12.2319 12.5 9.99997 12.5C7.76802 12.5 5.65649 13.0956 3.75564 14.1557C2.96238 12.9661 2.5 11.5371 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5C14.1421 2.5 17.5 5.85786 17.5 10C17.5 11.5371 17.0376 12.9662 16.2443 14.1557ZM15.454 15.1482C14.0867 16.5963 12.1489 17.5 10 17.5C7.85112 17.5 5.91332 16.5963 4.54593 15.1482C6.22562 14.247 8.06603 13.75 9.99997 13.75C11.9339 13.75 13.7743 14.247 15.454 15.1482Z",fill:"black","fill-opacity":"0.9"}})])]),e("span",[t._v("资料")])])])]),e("div",{staticClass:"pac_box"},t._l(t.classList[t.chapter].allClass,(function(s,a){return e("chapterCard",{key:a,attrs:{index:a,index2:t.chapter,data:s,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(" "+t._s(t.dialogMessage)+" ")]),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_btn3",on:{click:function(e){e.stopPropagation(),t.showDialog=!1}}},[t._v("繼續學習→")])])])])]):t._e(),e("van-popup",{attrs:{round:""},model:{value:t.disabledShow,callback:function(e){t.disabledShow=e},expression:"disabledShow"}},[e("div",{staticClass:"disabledShowBox"},[e("div",{staticClass:"dsb_top"},[e("div",{staticClass:"dsb_top_title"},[t._v("敬请期待")]),e("div",{staticClass:"dsb_top_content"},[t._v("当前课程资源正在建设中,请您耐心等待。")])]),e("div",{staticClass:"dsb_bottom"},[e("span",{on:{click:function(e){e.stopPropagation(),t.disabledShow=!1}}},[t._v("催一催")]),e("span",{on:{click:function(e){e.stopPropagation(),t.disabledShow=!1}}},[t._v("好的")])])])])],1)},i=[],n=(s("14d9"),s("b64b"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"chapterCard"},[e("div",{staticClass:"cc_box"},[e("div",{staticClass:"cc_b_item"},[e("div",{staticClass:"cc_b_i_image"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:s("efaf")}}),e("span",{domProps:{textContent:t._s(t.data.title)}})],1),e("div",{staticClass:"cc_b_i_message"},[e("div",[e("div",[t._v(" "+t._s(t.subjectList.find((function(e){return e.value===t.data.subject}))?t.subjectList.find((function(e){return e.value===t.data.subject})).label:"")+" ")])]),e("div",[t.data.isComplete?e("span",[t._v("已完成")]):e("span",[t._v("待完成")])])]),e("div",{staticClass:"cc_b_i_btnArea"},[[0].includes(t.data.type)&&!t.data.disabled?e("span",{class:["cc_b_i_ba_goClass",t.data.disabled?"cc_b_i_ba_disabled":""],on:{click:function(e){return e.stopPropagation(),t.goClass(t.data)}}},[t._v("去上课")]):t._e(),[0,1].includes(t.data.type)&&!t.data.disabled?e("span",{class:["cc_b_i_ba_doWorks",t.data.disabled?"cc_b_i_ba_disabled":""],on:{click:function(e){return e.stopPropagation(),t.goWorks(t.data)}}},[t._v("做练习")]):t._e(),t.data.disabled?e("span",{staticClass:"cc_b_i_ba_disabled",on:{click:function(e){return e.stopPropagation(),t.goWorks(t.data)}}},[t._v("资源建设中")]):t._e()])])]),e("van-popup",{attrs:{round:""},model:{value:t.disabledShow,callback:function(e){t.disabledShow=e},expression:"disabledShow"}},[e("div",{staticClass:"disabledShowBox"},[e("div",{staticClass:"dsb_top"},[e("div",{staticClass:"dsb_top_title"},[t._v("敬请期待")]),e("div",{staticClass:"dsb_top_content"},[t._v("当前课程资源正在建设中,请您耐心等待。")])]),e("div",{staticClass:"dsb_bottom"},[e("span",{on:{click:function(e){e.stopPropagation(),t.disabledShow=!1}}},[t._v("催一催")]),e("span",{on:{click:function(e){e.stopPropagation(),t.disabledShow=!1}}},[t._v("好的")])])])])],1)}),o=[],c=(s("a9e3"),s("99af"),{props:{data:{type:Object,default:function(){}},subjectList:{type:Array,default:function(){return[]}},index:{type:Number,default:0},index2:{type:Number,default:0}},data:function(){return{userId:this.$store.state.user.userinfo.userid,org:this.$store.state.user.userinfo.org,oid:this.$store.state.user.userinfo.organizeid,showBtnAreaIndex:"",disabledShow:!1}},methods:{goClass:function(t){if(this.data.disabled)return this.disabledShow=!0;this.index2+"-"+this.index=="1-0"?this.$router.push("/pocClass?type=1"):this.index2+"-"+this.index=="1-1"&&this.$router.push("/pocClass?type=2")},goWorks:function(t){if(this.data.disabled)return this.disabledShow=!0;this.$router.push("/pocDoTask?type=".concat(this.index2,"-").concat(this.index))}}}),l=c,r=(s("32eb"),s("2877")),d=Object(r["a"])(l,n,o,!1,null,"012ab28a",null),p=d.exports,u=s("becf"),h={bind:function(t,e){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||e.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.removeEventListener("click",t.clickOutsideEvent)}},b={components:{chapterCard:p,bar:u["a"]},directives:{"click-outside":h},data:function(){return{userId:this.$store.state.user.userinfo.userid,org:this.$store.state.user.userinfo.org,oid:this.$store.state.user.userinfo.organizeid,chapter:1,showChapter:!1,subject:"科學",showSubject:!1,edition:"牛津大學",showEdition:!1,searchValue:"",grade:6,disabledShow:!1,showDialog:!1,dialogMessage:"",userInfo:{userName:"科科",grade:6,userAvatar:s("e8e8"),choseCharacter:0},characterList:[{index:0,image:s("2e45"),name:"圆鼓鼓的大胖鱼",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心"},{index:1,image:s("d20a"),name:"迷人的大反派2",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心2"},{index:2,image:s("689e"),name:"迷人的大反派3",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心3"},{index:3,image:s("23e3"),name:"迷人的大反派4",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心4"},{index:4,image:s("fabe"),name:"迷人的大反派5",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心5"},{index:5,image:s("7961"),name:"迷人的大反派6",personality:"心思细腻,能够敏锐捕捉到别人的需求,喜欢支持和鼓励他人,富有耐心6"}],gradeList:["小一","小二","小三","小四","小五","小六","中一","中二","中三","中四","中五","中六"],subjectList:[{value:0,label:"中國語文",disabled:!0},{value:1,label:"英國語文 ",disabled:!0},{value:2,label:"數學",disabled:!0},{value:3,label:"公民與社會發展",disabled:!0},{value:4,label:"科學",disabled:!1},{value:5,label:"物理",disabled:!0},{value:6,label:"化學",disabled:!0},{value:7,label:"生物",disabled:!0},{value:8,label:"中國歷史",disabled:!0}],editionList:[{value:0,label:"牛津大學",disabled:!1},{value:1,label:"聯合培進",disabled:!0}],classList:[{title:"第一章:科學入門",allClass:[{title:"學習科學",type:0,isComplete:!1,subject:4,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8741724834676182.png"},{title:"科學的實踐",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8731724834767532.png"},{title:"實驗室安全",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"},{title:"實驗室儀器及基本實驗技巧",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8751724834771676.png"},{title:"綜合練習",type:1,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8711724834666052.png"}]},{title:"第二章:水",allClass:[{title:"水的物熊變化",type:0,subject:4,isComplete:!1,disabled:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8761724834777931.png"},{title:"水循環",type:0,subject:4,isComplete:!1,disabled:!1,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8771724834845597.png"},{title:"溶解",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8781724834847977.png"},{title:"水的淨化",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8791724834873373.png"},{title:"食水的進一步處理",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8761724834777931.png"},{title:"節約用水和水污染",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8771724834845597.png"},{title:"綜合練習",type:1,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"}]},{title:"第三章:观察生物",allClass:[{title:"生物",type:0,isComplete:!1,subject:4,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8741724834676182.png"},{title:"生物的分類",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8731724834767532.png"},{title:"檢索表",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8721724834685472.png"},{title:"生物多樣性",type:0,subject:4,isComplete:!1,disabled:!0,image:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%9B%BE%E7%89%8751724834771676.png"},{title:"綜合練習",type:1,subject:4,isComplete:!1,disabled:!0,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?this.$router.push("/pocClass?type=1"):2==t?this.$router.push("/pocClass?type=2"):3==t&&this.$router.push("/pocAiChat?type=3")},reset:function(){this.subject="",this.edition="",this.searchValue=""},settings:function(){this.$refs.settingsDialogRef.open(this.userInfo)},search:function(){console.log("筛选",this.chapter,this.subject,this.edition)},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()},selfMessage:function(){this.$router.push("/pocSelfMessage")},aiMessage:function(){console.log("渠道学伴设置")},changeChapter:function(t){[0,2].includes(t)||(this.chapter=t,this.showChapter=!1,console.log("切换章节",t))},changeSubject:function(t){t.disabled||(this.subject=t.label,this.showSubject=!1,console.log("切换科目",t))},changeEdition:function(t){t.disabled||(this.edition=t.label,this.showEdition=!1,console.log("切换版本",t))},getUserInfoData:function(){var t=window.localStorage.getItem("userInfo");t?(t=JSON.parse(t),this.userInfo=t,this.edition=t.edition,this.subject=t.subject,this.chapter=t.chapter):this.$router.push("/pocStartIndex")},getFirstEnterStatus:function(){var t=this,e=window.localStorage.getItem("showDialog"),s=window.sessionStorage.getItem("firstEnter");if(e){if(e=JSON.parse(e),1==e.type){var a="同學仔,歡迎返嚟!請問你想要繼續學習,定係想同我傾吓偈呢?";if(s&&s==this.userId)this.dialogMessage=a;else{window.sessionStorage.setItem("firstEnter",this.userId);var i=0,n=setInterval((function(){i