teacher-attendDetail-legacy.8cda7466.js 14 KB

1
  1. !function(){var t=document.createElement("style");t.innerHTML="._itemWrap_1yhd9_1{margin:.32rem .34667rem;font-size:.37333rem}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5{padding:.32rem .4rem .53333rem;border-radius:.26667rem;background-color:#fff;margin-bottom:.32rem}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5 ._itemWrapTopLeft_1yhd9_19{display:flex;flex-direction:row;align-items:center}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5 ._itemWrapTopLeft_1yhd9_19 ._clockWrap_1yhd9_24{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5 ._itemWrapTopLeft_1yhd9_19 ._clockWrap_1yhd9_24 img{margin-top:-.02667rem;width:100%;height:100%}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5 ._itemWrapTopLeft_1yhd9_19 ._leftTimer_1yhd9_34{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1yhd9_1 ._itemWrapTopCard_1yhd9_5 ._itemWrapTop_1yhd9_5 ._itemWrapTopRight_1yhd9_40{font-size:.32rem;color:#777}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44{padding-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._msgIcon_1yhd9_51{width:.64rem;height:.64rem}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._msgIcon_1yhd9_51 img{width:100%}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._courseInfo_1yhd9_58{display:flex;flex-direction:row;align-items:center}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._courseInfo_1yhd9_58 ._headImgs_1yhd9_63{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._courseInfo_1yhd9_58 ._infoMsg_1yhd9_70 ._infoMsgMain_1yhd9_70{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._courseInfo_1yhd9_58 ._infoMsg_1yhd9_70 ._infoMsgSub_1yhd9_76{width:6.13333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.37333rem;padding-top:.05333rem;font-weight:400;color:#777;line-height:.53333rem}._itemWrap_1yhd9_1 ._itemWrapBottom_1yhd9_44 ._courseInfo_1yhd9_58 ._infoMsg_1yhd9_70 ._infoMsgSubTeacher_1yhd9_87{width:6.93333rem!important}._itemWrap_1yhd9_1 ._attBackInfo_1yhd9_90{margin-top:.32rem}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99{text-align:left;width:100%;padding:.32rem}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._attInfoDotTitle_1yhd9_104{width:100%;display:flex;flex-direction:row;margin-bottom:.32rem;align-items:center;justify-content:space-between;color:#333}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._attInfoDotTitle_1yhd9_104 img{width:.48rem;height:.48rem}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._signTime_1yhd9_117{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem;display:flex;flex-direction:row;align-items:center}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._signTime_1yhd9_117 ._textWidth_1yhd9_126{min-width:1.44rem}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._signTime_1yhd9_117 span{margin-left:.16rem;border-radius:.26667rem;font-size:.48rem;color:#333}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._attRang_1yhd9_135{height:.53333rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:.37333rem;font-weight:500;color:#333}._itemWrap_1yhd9_1 ._attInfo_1yhd9_93 ._attInfoDot_1yhd9_99 ._attRang_1yhd9_135 ._locP_1yhd9_145{margin-left:.13333rem;font-size:.32rem;font-weight:500}._itemWrap_1yhd9_1 ._passWrap_1yhd9_150,._itemWrap_1yhd9_1 ._goWrap_1yhd9_153{background-color:#fff}._itemWrap_1yhd9_1 ._error_1yhd9_156{color:#f44541}._itemWrap_1yhd9_1 ._pass_1yhd9_150{color:#4493f6}._itemWrap_1yhd9_1 ._passWrap_1yhd9_150,._itemWrap_1yhd9_1 ._goWrap_1yhd9_153{display:flex;flex-direction:row;align-items:center;border-radius:.26667rem;justify-content:space-between;text-align:center;width:4.48rem}._itemWrap_1yhd9_1 ._passWrap_1yhd9_150 ._itemBottomMain_1yhd9_172,._itemWrap_1yhd9_1 ._goWrap_1yhd9_153 ._itemBottomMain_1yhd9_172{font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;margin-bottom:.05333rem}._itemWrap_1yhd9_1 ._passWrap_1yhd9_150 ._itemBottomSub_1yhd9_180,._itemWrap_1yhd9_1 ._goWrap_1yhd9_153 ._itemBottomSub_1yhd9_180{font-size:.37333rem;font-weight:400;color:#333;line-height:.53333rem}.bottomSheet .van-action-sheet__description{padding:0!important}.bottomSheet .van-action-sheet__description:after{border:none!important}._bottomTitle_1yhd9_193{padding:.4rem .4rem .53333rem;text-align:left;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:.58667rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.58667rem}._bottomTitle_1yhd9_193 ._bottomTitleLeft_1yhd9_207{display:flex;flex-direction:row;align-items:center}._bottomTitle_1yhd9_193 ._bottomTitleLeft_1yhd9_207 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomTitle_1yhd9_193 ._cross_1yhd9_220{font-size:.50667rem}._bottomConent_1yhd9_223{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_1yhd9_223 ._bottomImgWrap_1yhd9_229{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_1yhd9_223 ._bottomImgWrap_1yhd9_229 img{width:100%;height:100%}._bottomConent_1yhd9_223 ._bottomConentLeft_1yhd9_238,._bottomConent_1yhd9_223 ._bottomConentRight_1yhd9_239{width:50%;display:flex;flex-direction:column;align-items:center}\n",document.head.appendChild(t),System.register(["./index-legacy.eb062188.js","./clock-icon-legacy.2424f549.js","./success-icon-legacy.569ddbea.js","./default-icon-legacy.59172ab1.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.4e015ad0.js","./index-legacy.8c254533.js"],(function(t){"use strict";var e,i,o,a,_,n,d,l,r,s,m,h,p,c,u,y,g,f,v,W,b,I;return{setters:[function(t){e=t.d,i=t.ag,o=t.ah,a=t.R,_=t.g,n=t.$,d=t.c,l=t.aj,r=t.ai,s=t.q,m=t.a5,h=t.F,p=t.e,c=t.o,u=t.m},function(t){y=t.c},function(t){g=t.s,f=t.e},function(t){v=t.d},function(t){W=t.m},function(t){b=t.t},function(t){I=t.A}],execute:function(){var T={itemWrap:"_itemWrap_1yhd9_1",itemWrapTopCard:"_itemWrapTopCard_1yhd9_5",itemWrapTop:"_itemWrapTop_1yhd9_5",itemWrapTopLeft:"_itemWrapTopLeft_1yhd9_19",clockWrap:"_clockWrap_1yhd9_24",leftTimer:"_leftTimer_1yhd9_34",itemWrapTopRight:"_itemWrapTopRight_1yhd9_40",itemWrapBottom:"_itemWrapBottom_1yhd9_44",msgIcon:"_msgIcon_1yhd9_51",courseInfo:"_courseInfo_1yhd9_58",headImgs:"_headImgs_1yhd9_63",infoMsg:"_infoMsg_1yhd9_70",infoMsgMain:"_infoMsgMain_1yhd9_70",infoMsgSub:"_infoMsgSub_1yhd9_76",infoMsgSubTeacher:"_infoMsgSubTeacher_1yhd9_87",attBackInfo:"_attBackInfo_1yhd9_90",attInfo:"_attInfo_1yhd9_93",attInfoDot:"_attInfoDot_1yhd9_99",attInfoDotTitle:"_attInfoDotTitle_1yhd9_104",signTime:"_signTime_1yhd9_117",textWidth:"_textWidth_1yhd9_126",attRang:"_attRang_1yhd9_135",locP:"_locP_1yhd9_145",passWrap:"_passWrap_1yhd9_150",goWrap:"_goWrap_1yhd9_153",error:"_error_1yhd9_156",pass:"_pass_1yhd9_150",itemBottomMain:"_itemBottomMain_1yhd9_172",itemBottomSub:"_itemBottomSub_1yhd9_180",bottomTitle:"_bottomTitle_1yhd9_193",bottomTitleLeft:"_bottomTitleLeft_1yhd9_207",cross:"_cross_1yhd9_220",bottomConent:"_bottomConent_1yhd9_223",bottomImgWrap:"_bottomImgWrap_1yhd9_229",bottomConentLeft:"_bottomConentLeft_1yhd9_238",bottomConentRight:"_bottomConentRight_1yhd9_239"};t("default",e({props:["item"],name:"teacher-attendDetail",setup(t){i();const e=o(),w=()=>{};a(0);const L=a({}),M=a(_.platformApi);console.log(M.value);const x=a(!1),C=()=>{x.value=!1};n((()=>{(async()=>{try{const t=await u.post(`${M.value}/courseSchedule/teacherAttendance/course/${e.query.courseScheduleId}`,{});L.value=t.data}catch(t){console.log(t)}})()}));const S=async t=>{if(t)try{await p({api:"sourseMapApi",content:{type:"display",orginPoint:L.value.schoolLongitudeLatitude,myPoint:t,limitDistance:L.value.scopeOfAttendance}})}catch(e){console.log(e)}};return()=>{var t,e,i,o,a,_,n,u,D,R,O,B,k,A,N,j,P,z,H,Y,F,$,q,G,U,E,J,K;return d(h,null,[d(l,null,null),d("div",{class:T.itemWrap,onClick:w},[d("div",{class:T.itemWrapTopCard},[d("div",{class:T.itemWrapTop},[d("div",{class:T.itemWrapTopLeft},[d("div",{class:T.clockWrap},[d("img",{src:y,alt:""},null)]),d("p",{class:T.leftTimer},[r(null===(t=L.value)||void 0===t?void 0:t.startTime).format("YYYY-MM-DD HH:mm"),"~",r(null===(e=L.value)||void 0===e?void 0:e.endTime).format("HH:mm")])]),d("div",{class:T.itemWrapTopRight},null)]),d("div",{class:T.itemWrapBottom},[d("div",{class:T.courseInfo},[d("img",{class:T.headImgs,src:L.value.teacherAvatar?L.value.teacherAvatar:v,alt:""},null),d("div",{class:T.infoMsg},[d("p",{class:T.infoMsgMain},[null===(i=L.value)||void 0===i?void 0:i.classGroupName,s("-"),null===(o=L.value)||void 0===o?void 0:o.teacherName]),d("p",{class:[T.infoMsgSub,"/api-teacher"==M.value?T.infoMsgSubTeacher:""]},[null===(a=L.value)||void 0===a?void 0:a.orchestraName])])]),"/api-teacher"==M.value?null:d("div",{class:T.msgIcon,onClick:t=>{t.stopPropagation(),t.preventDefault(),x.value=!0}},[d("img",{src:W,alt:""},null)])])]),d("div",{class:T.attInfo},[d("div",{class:"NORMAL"===(null===(_=L.value)||void 0===_?void 0:_.signInStatus)?T.passWrap:T.goWrap},[d("div",{class:T.attInfoDot},[d("div",{class:T.attInfoDotTitle},[d("span",null,[s("上课时间 "),d("span",null,[r(null===(n=L.value)||void 0===n?void 0:n.startTime).format("HH:mm")])]),d("img",{src:"NORMAL"===(null===(u=L.value)||void 0===u?void 0:u.signInStatus)?g:f,alt:""},null)]),d("p",{class:T.signTime},[null!==(D=L.value)&&void 0!==D&&D.signInTime?d("div",{class:T.textWidth},["NORMAL"===(null===(R=L.value)||void 0===R?void 0:R.signInStatus)?"签到时间":b[null===(O=L.value)||void 0===O?void 0:O.signInStatus]]):"",null!==(B=L.value)&&void 0!==B&&B.signInTime?d("span",null,[r(null===(k=L.value)||void 0===k?void 0:k.signInTime).format("HH:mm:ss")]):"未签到"])])]),d("div",{class:"NORMAL"===(null===(A=L.value)||void 0===A?void 0:A.signInLongitudeLatitudeStatus)?T.passWrap:T.goWrap},[d("div",{class:T.attInfoDot},[d("div",{class:T.attInfoDotTitle},[d("span",null,[s("签到定位")]),d("img",{src:"NORMAL"===(null===(N=L.value)||void 0===N?void 0:N.signInLongitudeLatitudeStatus)?g:f,alt:""},null)]),d("div",{class:T.attRang,onClick:()=>{S(L.value.signInLongitudeLatitude)}},[L.value.signInLongitudeLatitude?d("p",null,["NORMAL"===(null===(j=L.value)||void 0===j?void 0:j.signInLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]):d("p",null,[s("暂无定位")]),L.value.signInLongitudeLatitude?d("p",{class:[T.locP,"NORMAL"===(null===(P=L.value)||void 0===P?void 0:P.signInLongitudeLatitudeStatus)?T.pass:T.error]},[s("查看定位"),d(m,{name:"arrow",class:T.arrow},null)]):null])])])]),d("div",{class:[T.attInfo,T.attBackInfo]},[d("div",{class:"NORMAL"===(null===(z=L.value)||void 0===z?void 0:z.signOutStatus)?T.passWrap:T.goWrap},[d("div",{class:T.attInfoDot},[d("div",{class:T.attInfoDotTitle},[d("p",null,[s("下课时间 "),d("span",null,[r(null===(H=L.value)||void 0===H?void 0:H.endTime).format("HH:mm")])]),d("img",{src:"NORMAL"===(null===(Y=L.value)||void 0===Y?void 0:Y.signOutStatus)?g:f,alt:""},null)]),d("p",{class:T.signTime},[null!==(F=L.value)&&void 0!==F&&F.signOutTime?d(h,null,[d("div",{class:T.textWidth},["NORMAL"===(null===($=L.value)||void 0===$?void 0:$.signOutStatus)?"签退时间":b[null===(q=L.value)||void 0===q?void 0:q.signOutStatus]]),d("span",null,[r(null===(G=L.value)||void 0===G?void 0:G.signOutTime).format("HH:mm:ss")])]):"未签退"])])]),d("div",{class:"NORMAL"===(null===(U=L.value)||void 0===U?void 0:U.signOutLongitudeLatitudeStatus)?T.passWrap:T.goWrap},[d("div",{class:T.attInfoDot},[d("div",{class:T.attInfoDotTitle},[d("span",null,[s("签退定位")]),d("img",{src:"NORMAL"===(null===(E=L.value)||void 0===E?void 0:E.signOutLongitudeLatitudeStatus)?g:f,alt:""},null)]),d("div",{class:T.attRang,onClick:()=>{S(L.value.signOutLongitudeLatitude)}},[L.value.signOutLongitudeLatitude?d(h,null,[d("p",null,[" ","NORMAL"===(null===(J=L.value)||void 0===J?void 0:J.signOutLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]),d("p",{class:[T.locP,"NORMAL"===(null===(K=L.value)||void 0===K?void 0:K.signOutLongitudeLatitudeStatus)?T.pass:T.error]},[s("查看定位"),d(m,{name:"arrow",class:T.arrow},null)])]):d(h,null,[d("p",null,[s("暂无定位")]),d("p",null,null)])])])])]),d(I,{class:"bottomSheet",show:x.value,"onUpdate:show":t=>x.value=t},{default:()=>[d("div",{class:T.bottomConent},[d("div",{class:T.bottomConentLeft,onClick:t=>{t.stopPropagation(),t.preventDefault(),(async()=>{try{await p({api:"joinChatGroup",content:{type:"single",id:L.value.imUserId}}),C()}catch(t){c("发起聊天失败"),C()}})()}},[d("div",{class:T.bottomImgWrap},[d("img",{src:"./assets/sendmsg-icon.359ba703.png",alt:""},null)]),d("p",null,[s("发送消息")])]),d("div",{class:T.bottomConentRight,onClick:t=>{t.stopPropagation(),t.preventDefault(),(async()=>{try{await p({api:"callPhone",content:{phone:L.value.teacherPhone}}),C()}catch(t){c("拨号失败"),C()}})()}},[d("div",{class:T.bottomImgWrap},[d("img",{src:"./assets/phone-icon.95930842.png",alt:""},null)]),d("p",null,[s("拨打电话")])])])],description:()=>d("div",{class:T.bottomTitle},[d("div",{class:T.bottomTitleLeft},[d("span",null,null),d("p",null,[s("联系方式")])]),d("div",{class:T.bottomTitleRight,onClick:t=>{t.stopPropagation(),t.preventDefault(),C()}},[d(m,{class:T.cross,name:"cross"},null)])])})])])}}}))}}}))}();