1 |
- !function(){function t(t,e,i,o,n,a,r){try{var _=t[a](r),d=_.value}catch(l){return void i(l)}_.done?e(d):Promise.resolve(d).then(o,n)}function e(e){return function(){var i=this,o=arguments;return new Promise((function(n,a){var r=e.apply(i,o);function _(e){t(r,n,a,_,d,"next",e)}function d(e){t(r,n,a,_,d,"throw",e)}_(void 0)}))}}var i=document.createElement("style");i.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(i),System.register(["./clock-icon-legacy.2424f549.js","./success-icon-legacy.569ddbea.js","./default-icon-legacy.59172ab1.js","./phone-icon-legacy.356941b3.js","./index-legacy.63607d17.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.07e66d56.js","./index-legacy.8895675d.js","./index-legacy.20aef719.js","./index-legacy.e7929531.js"],(function(t){"use strict";var i,o,n,a,r,_,d,l,s,m,u,c,h,p,f,g,y,v,W,b,I,T,w,L;return{setters:[function(t){i=t.c},function(t){o=t.s,n=t.e},function(t){a=t.d},function(t){r=t.s,_=t.p},function(t){d=t.O},function(t){l=t.m},function(t){s=t.d,m=t.ag,u=t.aV,c=t.R,h=t.f,p=t.$,f=t.c,g=t.ah,y=t.q,v=t.a5,W=t.F,b=t.k,I=t.o,T=t.m},function(t){w=t.t},function(t){L=t.A},function(){}],execute:function(){var x={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",s({props:["item"],name:"teacher-attendDetail",setup:function(t){m();var s=u(),M=function(){};c(0);var R=c({}),C=c(h.platformApi);console.log(C.value);var S=c(!1),k=function(){S.value=!1},D=function(){var t=e(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b({api:"joinChatGroup",content:{type:"single",id:R.value.imUserId}});case 3:k(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),I("发起聊天失败"),k();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),O=function(){var t=e(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b({api:"callPhone",content:{phone:R.value.teacherPhone}});case 3:k(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),I("拨号失败"),k();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),B=function(){var t=e(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,T.post("".concat(C.value,"/courseSchedule/teacherAttendance/course/").concat(s.query.courseScheduleId),{});case 3:e=t.sent,R.value=e.data,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();p((function(){B()}));var A=function(){var t=e(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,b({api:"sourseMapApi",content:{type:"display",orginPoint:R.value.schoolLongitudeLatitude,myPoint:e,limitDistance:R.value.scopeOfAttendance}});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[2,7]])})));return function(e){return t.apply(this,arguments)}}();return function(){var t,e,s,m,u,c,h,p,b,I,T,B,j,N,P,z,H,Y,F,q,G,U,E,V,$,J,K,Q;return f(W,null,[f(d,null,null),f("div",{class:x.itemWrap,onClick:M},[f("div",{class:x.itemWrapTopCard},[f("div",{class:x.itemWrapTop},[f("div",{class:x.itemWrapTopLeft},[f("div",{class:x.clockWrap},[f("img",{src:i,alt:""},null)]),f("p",{class:x.leftTimer},[g(null===(t=R.value)||void 0===t?void 0:t.startTime).format("YYYY-MM-DD HH:mm"),"~",g(null===(e=R.value)||void 0===e?void 0:e.endTime).format("HH:mm")])]),f("div",{class:x.itemWrapTopRight},null)]),f("div",{class:x.itemWrapBottom},[f("div",{class:x.courseInfo},[f("img",{class:x.headImgs,src:R.value.teacherAvatar?R.value.teacherAvatar:a,alt:""},null),f("div",{class:x.infoMsg},[f("p",{class:x.infoMsgMain},[null===(s=R.value)||void 0===s?void 0:s.classGroupName,y("-"),null===(m=R.value)||void 0===m?void 0:m.teacherName]),f("p",{class:[x.infoMsgSub,"/api-teacher"==C.value?x.infoMsgSubTeacher:""]},[null===(u=R.value)||void 0===u?void 0:u.orchestraName])])]),"/api-teacher"==C.value?null:f("div",{class:x.msgIcon,onClick:function(t){t.stopPropagation(),t.preventDefault(),S.value=!0}},[f("img",{src:l,alt:""},null)])])]),f("div",{class:x.attInfo},[f("div",{class:"NORMAL"===(null===(c=R.value)||void 0===c?void 0:c.signInStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[y("上课时间 "),f("span",null,[g(null===(h=R.value)||void 0===h?void 0:h.startTime).format("HH:mm")])]),f("img",{src:"NORMAL"===(null===(p=R.value)||void 0===p?void 0:p.signInStatus)?o:n,alt:""},null)]),f("p",{class:x.signTime},[null!==(b=R.value)&&void 0!==b&&b.signInTime?f("div",{class:x.textWidth},["NORMAL"===(null===(I=R.value)||void 0===I?void 0:I.signInStatus)?"签到时间":w[null===(T=R.value)||void 0===T?void 0:T.signInStatus]]):"",null!==(B=R.value)&&void 0!==B&&B.signInTime?f("span",null,[g(null===(j=R.value)||void 0===j?void 0:j.signInTime).format("HH:mm:ss")]):"未签到"])])]),f("div",{class:"NORMAL"===(null===(N=R.value)||void 0===N?void 0:N.signInLongitudeLatitudeStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[y("签到定位")]),f("img",{src:"NORMAL"===(null===(P=R.value)||void 0===P?void 0:P.signInLongitudeLatitudeStatus)?o:n,alt:""},null)]),f("div",{class:x.attRang,onClick:function(){A(R.value.signInLongitudeLatitude)}},[R.value.signInLongitudeLatitude?f("p",null,["NORMAL"===(null===(z=R.value)||void 0===z?void 0:z.signInLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]):f("p",null,[y("暂无定位")]),R.value.signInLongitudeLatitude?f("p",{class:[x.locP,"NORMAL"===(null===(H=R.value)||void 0===H?void 0:H.signInLongitudeLatitudeStatus)?x.pass:x.error]},[y("查看定位"),f(v,{name:"arrow",class:x.arrow},null)]):null])])])]),f("div",{class:[x.attInfo,x.attBackInfo]},[f("div",{class:"NORMAL"===(null===(Y=R.value)||void 0===Y?void 0:Y.signOutStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("p",null,[y("下课时间 "),f("span",null,[g(null===(F=R.value)||void 0===F?void 0:F.endTime).format("HH:mm")])]),f("img",{src:"NORMAL"===(null===(q=R.value)||void 0===q?void 0:q.signOutStatus)?o:n,alt:""},null)]),f("p",{class:x.signTime},[null!==(G=R.value)&&void 0!==G&&G.signOutTime?f(W,null,[f("div",{class:x.textWidth},["NORMAL"===(null===(U=R.value)||void 0===U?void 0:U.signOutStatus)?"签退时间":w[null===(E=R.value)||void 0===E?void 0:E.signOutStatus]]),f("span",null,[g(null===(V=R.value)||void 0===V?void 0:V.signOutTime).format("HH:mm:ss")])]):"未签退"])])]),f("div",{class:"NORMAL"===(null===($=R.value)||void 0===$?void 0:$.signOutLongitudeLatitudeStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[y("签退定位")]),f("img",{src:"NORMAL"===(null===(J=R.value)||void 0===J?void 0:J.signOutLongitudeLatitudeStatus)?o:n,alt:""},null)]),f("div",{class:x.attRang,onClick:function(){A(R.value.signOutLongitudeLatitude)}},[R.value.signOutLongitudeLatitude?f(W,null,[f("p",null,[" ","NORMAL"===(null===(K=R.value)||void 0===K?void 0:K.signOutLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]),f("p",{class:[x.locP,"NORMAL"===(null===(Q=R.value)||void 0===Q?void 0:Q.signOutLongitudeLatitudeStatus)?x.pass:x.error]},[y("查看定位"),f(v,{name:"arrow",class:x.arrow},null)])]):f(W,null,[f("p",null,[y("暂无定位")]),f("p",null,null)])])])])]),f(L,{class:"bottomSheet",show:S.value,"onUpdate:show":function(t){return S.value=t}},{default:function(){return[f("div",{class:x.bottomConent},[f("div",{class:x.bottomConentLeft,onClick:function(t){t.stopPropagation(),t.preventDefault(),D()}},[f("div",{class:x.bottomImgWrap},[f("img",{src:r,alt:""},null)]),f("p",null,[y("发送消息")])]),f("div",{class:x.bottomConentRight,onClick:function(t){t.stopPropagation(),t.preventDefault(),O()}},[f("div",{class:x.bottomImgWrap},[f("img",{src:_,alt:""},null)]),f("p",null,[y("拨打电话")])])])]},description:function(){return f("div",{class:x.bottomTitle},[f("div",{class:x.bottomTitleLeft},[f("span",null,null),f("p",null,[y("联系方式")])]),f("div",{class:x.bottomTitleRight,onClick:function(t){t.stopPropagation(),t.preventDefault(),k()}},[f(v,{class:x.cross,name:"cross"},null)])])}})])])}}}))}}}))}();
|