12345 |
- <<<<<<<< HEAD:dist/assets/teacher-elegant.d064f0de.js
- var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=(t,e,a)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,r=(t,e)=>{for(var a in e||(e={}))m.call(e,a)&&d(t,a,e[a]);if(h)for(var a of h(e))p.call(e,a)&&d(t,a,e[a]);return t};import{C as f}from"./index.78fc42e8.js";import{s as i,r as u,C as b}from"./index.9bc1e23a.js";import{C as j}from"./index.96f38933.js";import{d as S,a as s,S as v,u as I,w as N,I as n,j as _,x as C,P as L}from"./vendor.405ecf9c.js";/* empty css *//* empty css *//* empty css */import{O as U}from"./organ-search.e816d4b7.js";import{i as w}from"./icon_teacher.40b6f077.js";import{i as x}from"./icon_upload_poster.81da3a98.js";import{b as y}from"./bars.4f1962a6.js";/* empty css *//* empty css *//* empty css *//* empty css */const D="_classHeader_7iogr_1",T="_label_7iogr_9",H="_elegant_7iogr_21",P="_itemBg_7iogr_27",k="_tedeoItem_7iogr_36",E="_teCover_7iogr_44",F="_teSection_7iogr_54",V="_teTitle_7iogr_57",B="_info_7iogr_62",O="_teUserInfo_7iogr_67",q="_teUserLogo_7iogr_74",z="_teUserName_7iogr_81",A="_teUserNum_7iogr_86",$="_searchContainer_7iogr_89",M="_item_7iogr_27",R="_searchItem_7iogr_98",G="_title_7iogr_102",J="_content_7iogr_110",K="_searchFollow_7iogr_116",Q="_active_7iogr_120",W="_searchLive_7iogr_124",X="_active2_7iogr_128",Y="_searchDefault_7iogr_132",Z="_star_7iogr_142",ee="_video_7iogr_145",te="_living_7iogr_154",se="_animation_7iogr_171";var o={classHeader:D,"teacher-elegant":"_teacher-elegant_7iogr_4",label:T,elegant:H,itemBg:P,tedeoItem:k,teCover:E,teSection:F,teTitle:V,info:B,teUserInfo:O,teUserLogo:q,teUserName:z,teUserNum:A,searchContainer:$,item:M,searchItem:R,title:G,content:J,searchFollow:K,active:Q,searchLive:W,active2:X,searchDefault:Y,star:Z,video:ee,living:te,animation:se};function ae(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!C(t)}var Se=S({data(){var e;const t=sessionStorage.getItem("elegantSubjectId");return{sessionSubjectId:t,searchStatus:!1,openStatus:!1,subjectList:[],params:{username:"",page:1,subjectId:t||((e=i.user.data)==null?void 0:e.subjectId)||null,subjectName:""},dataShow:!0,loading:!1,finished:!1,list:[],height:"auto"}},async mounted(){var e;try{const a=await u.get("/api-student/subject/subjectSelect");this.subjectList=a.data||[]}catch{}let t="";this.subjectList.forEach(a=>{var c;(c=a.subjects)==null||c.forEach(l=>{l.id===Number(this.sessionSubjectId)&&(t=l.name)})}),this.params.subjectName=t||((e=i.user.data)==null?void 0:e.subjectName)||"",await this.getList(),sessionStorage.removeItem("teacherHomeTabs"),sessionStorage.removeItem("elegantSubjectId")},computed:{filterDot(){return!!this.params.subjectId}},methods:{async getList(){try{const t=r({},this.params);i.version&&(t.version=i.version||"",t.platform="ios-student");const e=await u.post("/api-student/teacher/stylePage",{data:r({},t)});this.loading=!1;const a=e.data||{};if(this.list.length>0&&a.pageNo===1)return;this.list=this.list.concat(a.rows||[]),this.finished=a.pageNo>=a.totalPage,this.params.page=a.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}},onSort(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.getList()},onSearch(t){this.params.username=t,this.onSort()},onDetail(t){this.params.subjectId&&sessionStorage.setItem("elegantSubjectId",this.params.subjectId),this.$router.push({path:"/teacherHome",query:{teacherId:t.userId}})}},render(){let t;return s("div",{class:o["teacher-elegant"]},[s(v,{offsetTop:0,position:"top"},{default:()=>[s("div",{ref:"header"},[s(f,{class:o.classHeader,border:!1,background:"transparent",isFixed:!1},null),s(j,{placeholder:"\u8BF7\u8F93\u5165\u8001\u5E08\u540D\u79F0",onSearch:this.onSearch},{left:()=>s("div",{class:o.label,onClick:()=>{this.searchStatus=!this.searchStatus,this.openStatus=!this.openStatus}},[this.params.subjectName,s(I,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])})])]}),this.dataShow?s(N,{loading:this.loading,"onUpdate:loading":e=>this.loading=e,finished:this.finished,finishedText:" ",immediateCheck:!1,class:[o.elegant],onLoad:this.getList},ae(t=this.list.map(e=>s("div",{class:o.tedeoItem},[s("div",{class:o.itemBg,onClick:()=>{this.onDetail(e)}},null),s("div",{class:o.teCover},[s(n,{src:e.cover||x,fit:"cover"},null),e.living===1&&s("div",{class:o.living},[s(n,{src:y,class:o.animation},null),s("span",null,[_("\u64AD\u653E\u4E2D")])])]),s("div",{class:o.teSection},[s("div",{class:o.info},[s("div",{class:o.teUserInfo},[s(n,{src:e.avatar||w,class:o.teUserLogo},null),s("span",{class:[o.teUserName,"van-hairline--right van-ellipsis"]},[(e==null?void 0:e.username)||`\u6E38\u5BA2${(e==null?void 0:e.userId)||""}`])]),s("span",{class:o.teUserNum},[e.browse,_("\u6D4F\u89C8")])])])])))?t:{default:()=>[t]}):s(b,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u8001\u5E08\u98CE\u91C7"},null),s(L,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:()=>this.searchStatus=!1,onClosed:()=>this.openStatus=!1},{default:()=>[this.openStatus&&s(U,{subjectList:this.subjectList,onSort:this.onSort,modelValue:this.params.subjectId,"onUpdate:modelValue":e=>this.params.subjectId=e,subjectName:this.params.subjectName,"onUpdate:subjectName":e=>this.params.subjectName=e},null)]})])}});export{Se as default};
- ========
- var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=(t,e,a)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,r=(t,e)=>{for(var a in e||(e={}))m.call(e,a)&&d(t,a,e[a]);if(h)for(var a of h(e))p.call(e,a)&&d(t,a,e[a]);return t};import{C as f}from"./index.cd2c539b.js";import{s as i,r as u,C as b}from"./index.ddd93c6c.js";import{C as j}from"./index.96f38933.js";import{d as S,a as s,S as v,u as I,w as N,I as n,j as _,x as C,P as L}from"./vendor.405ecf9c.js";/* empty css *//* empty css *//* empty css */import{O as U}from"./organ-search.e816d4b7.js";import{i as w}from"./icon_teacher.40b6f077.js";import{i as x}from"./icon_upload_poster.81da3a98.js";import{b as y}from"./bars.82474962.js";/* empty css *//* empty css *//* empty css *//* empty css */const D="_classHeader_7iogr_1",T="_label_7iogr_9",H="_elegant_7iogr_21",P="_itemBg_7iogr_27",k="_tedeoItem_7iogr_36",E="_teCover_7iogr_44",F="_teSection_7iogr_54",V="_teTitle_7iogr_57",B="_info_7iogr_62",O="_teUserInfo_7iogr_67",q="_teUserLogo_7iogr_74",z="_teUserName_7iogr_81",A="_teUserNum_7iogr_86",$="_searchContainer_7iogr_89",M="_item_7iogr_27",R="_searchItem_7iogr_98",G="_title_7iogr_102",J="_content_7iogr_110",K="_searchFollow_7iogr_116",Q="_active_7iogr_120",W="_searchLive_7iogr_124",X="_active2_7iogr_128",Y="_searchDefault_7iogr_132",Z="_star_7iogr_142",ee="_video_7iogr_145",te="_living_7iogr_154",se="_animation_7iogr_171";var o={classHeader:D,"teacher-elegant":"_teacher-elegant_7iogr_4",label:T,elegant:H,itemBg:P,tedeoItem:k,teCover:E,teSection:F,teTitle:V,info:B,teUserInfo:O,teUserLogo:q,teUserName:z,teUserNum:A,searchContainer:$,item:M,searchItem:R,title:G,content:J,searchFollow:K,active:Q,searchLive:W,active2:X,searchDefault:Y,star:Z,video:ee,living:te,animation:se};function ae(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!C(t)}var Se=S({data(){var e;const t=sessionStorage.getItem("elegantSubjectId");return{sessionSubjectId:t,searchStatus:!1,openStatus:!1,subjectList:[],params:{username:"",page:1,subjectId:t||((e=i.user.data)==null?void 0:e.subjectId)||null,subjectName:""},dataShow:!0,loading:!1,finished:!1,list:[],height:"auto"}},async mounted(){var e;try{const a=await u.get("/api-student/subject/subjectSelect");this.subjectList=a.data||[]}catch{}let t="";this.subjectList.forEach(a=>{var c;(c=a.subjects)==null||c.forEach(l=>{l.id===Number(this.sessionSubjectId)&&(t=l.name)})}),this.params.subjectName=t||((e=i.user.data)==null?void 0:e.subjectName)||"",await this.getList(),sessionStorage.removeItem("teacherHomeTabs"),sessionStorage.removeItem("elegantSubjectId")},computed:{filterDot(){return!!this.params.subjectId}},methods:{async getList(){try{const t=r({},this.params);i.version&&(t.version=i.version||"",t.platform="ios-student");const e=await u.post("/api-student/teacher/stylePage",{data:r({},t)});this.loading=!1;const a=e.data||{};if(this.list.length>0&&a.pageNo===1)return;this.list=this.list.concat(a.rows||[]),this.finished=a.pageNo>=a.totalPage,this.params.page=a.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}},onSort(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.getList()},onSearch(t){this.params.username=t,this.onSort()},onDetail(t){this.params.subjectId&&sessionStorage.setItem("elegantSubjectId",this.params.subjectId),this.$router.push({path:"/teacherHome",query:{teacherId:t.userId}})}},render(){let t;return s("div",{class:o["teacher-elegant"]},[s(v,{offsetTop:0,position:"top"},{default:()=>[s("div",{ref:"header"},[s(f,{class:o.classHeader,border:!1,background:"transparent",isFixed:!1},null),s(j,{placeholder:"\u8BF7\u8F93\u5165\u8001\u5E08\u540D\u79F0",onSearch:this.onSearch},{left:()=>s("div",{class:o.label,onClick:()=>{this.searchStatus=!this.searchStatus,this.openStatus=!this.openStatus}},[this.params.subjectName,s(I,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])})])]}),this.dataShow?s(N,{loading:this.loading,"onUpdate:loading":e=>this.loading=e,finished:this.finished,finishedText:" ",immediateCheck:!1,class:[o.elegant],onLoad:this.getList},ae(t=this.list.map(e=>s("div",{class:o.tedeoItem},[s("div",{class:o.itemBg,onClick:()=>{this.onDetail(e)}},null),s("div",{class:o.teCover},[s(n,{src:e.cover||x,fit:"cover"},null),e.living===1&&s("div",{class:o.living},[s(n,{src:y,class:o.animation},null),s("span",null,[_("\u64AD\u653E\u4E2D")])])]),s("div",{class:o.teSection},[s("div",{class:o.info},[s("div",{class:o.teUserInfo},[s(n,{src:e.avatar||w,class:o.teUserLogo},null),s("span",{class:[o.teUserName,"van-hairline--right van-ellipsis"]},[(e==null?void 0:e.username)||`\u6E38\u5BA2${(e==null?void 0:e.userId)||""}`])]),s("span",{class:o.teUserNum},[e.browse,_("\u6D4F\u89C8")])])])])))?t:{default:()=>[t]}):s(b,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u8001\u5E08\u98CE\u91C7"},null),s(L,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:()=>this.searchStatus=!1,onClosed:()=>this.openStatus=!1},{default:()=>[this.openStatus&&s(U,{subjectList:this.subjectList,onSort:this.onSort,modelValue:this.params.subjectId,"onUpdate:modelValue":e=>this.params.subjectId=e,subjectName:this.params.subjectName,"onUpdate:subjectName":e=>this.params.subjectName=e},null)]})])}});export{Se as default};
- >>>>>>>> dev:dist/assets/teacher-elegant.a1913c04.js
|