1 |
- !function(){function t(t,e,i,n,o,a,r){try{var _=t[a](r),l=_.value}catch(s){return void i(s)}_.done?e(l):Promise.resolve(l).then(n,o)}function e(e){return function(){var i=this,n=arguments;return new Promise((function(o,a){var r=e.apply(i,n);function _(e){t(r,o,a,_,l,"next",e)}function l(e){t(r,o,a,_,l,"throw",e)}_(void 0)}))}}var i=document.createElement("style");i.innerHTML="._itemWrap_j2hte_1{margin:.32rem .34667rem;font-size:.37333rem}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5{padding:.32rem .4rem .53333rem;border-radius:.26667rem;background-color:#fff;margin-bottom:.32rem}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5 ._itemWrapTopLeft_j2hte_19{display:flex;flex-direction:row;align-items:center}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5 ._itemWrapTopLeft_j2hte_19 ._clockWrap_j2hte_24{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5 ._itemWrapTopLeft_j2hte_19 ._clockWrap_j2hte_24 img{width:100%;height:100%}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5 ._itemWrapTopLeft_j2hte_19 ._leftTimer_j2hte_33{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_j2hte_1 ._itemWrapTopCard_j2hte_5 ._itemWrapTop_j2hte_5 ._itemWrapTopRight_j2hte_39{font-size:.32rem;color:#777}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43{padding-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._msgIcon_j2hte_50{width:.64rem;height:.64rem}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._msgIcon_j2hte_50 img{width:100%}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._courseInfo_j2hte_57{display:flex;flex-direction:row;align-items:center}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._courseInfo_j2hte_57 ._headImgs_j2hte_62{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._courseInfo_j2hte_57 ._infoMsg_j2hte_69 ._infoMsgMain_j2hte_69{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._courseInfo_j2hte_57 ._infoMsg_j2hte_69 ._infoMsgSub_j2hte_75{width:6.13333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_j2hte_1 ._itemWrapBottom_j2hte_43 ._courseInfo_j2hte_57 ._infoMsg_j2hte_69 ._infoMsgSubTeacher_j2hte_85{width:6.93333rem!important}._itemWrap_j2hte_1 ._attBackInfo_j2hte_88{margin-top:.32rem}._itemWrap_j2hte_1 ._attInfo_j2hte_91{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97{text-align:left;width:100%;padding:.32rem}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._attInfoDotTitle_j2hte_102{width:100%;display:flex;flex-direction:row;margin-bottom:.18667rem;align-items:center;justify-content:space-between}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._attInfoDotTitle_j2hte_102 img{width:.48rem;height:.48rem}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._signTime_j2hte_114{font-size:.37333rem;font-weight:500;color:#333;line-height:.74667rem;height:.82667rem;line-height:.82667rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._signTime_j2hte_114 span{border-radius:.26667rem;font-size:.48rem;color:#333;font-weight:600}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._attRang_j2hte_132{height:.82667rem;line-height:.82667rem;display:flex;flex-direction:row;align-items:center;font-size:.37333rem}._itemWrap_j2hte_1 ._attInfo_j2hte_91 ._attInfoDot_j2hte_97 ._attRang_j2hte_132 ._locP_j2hte_140{margin-left:.13333rem;font-size:.32rem;font-weight:500}._itemWrap_j2hte_1 ._passWrap_j2hte_145,._itemWrap_j2hte_1 ._goWrap_j2hte_148{background-color:#fff}._itemWrap_j2hte_1 ._error_j2hte_151{color:#f44541}._itemWrap_j2hte_1 ._pass_j2hte_145{color:#4493f6}._itemWrap_j2hte_1 ._passWrap_j2hte_145,._itemWrap_j2hte_1 ._goWrap_j2hte_148{display:flex;flex-direction:row;align-items:center;border-radius:.26667rem;justify-content:space-between;text-align:center;width:4.48rem}._itemWrap_j2hte_1 ._passWrap_j2hte_145 ._itemBottomMain_j2hte_167,._itemWrap_j2hte_1 ._goWrap_j2hte_148 ._itemBottomMain_j2hte_167{font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;margin-bottom:.05333rem}._itemWrap_j2hte_1 ._passWrap_j2hte_145 ._itemBottomSub_j2hte_175,._itemWrap_j2hte_1 ._goWrap_j2hte_148 ._itemBottomSub_j2hte_175{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_j2hte_188{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_j2hte_188 ._bottomTitleLeft_j2hte_202{display:flex;flex-direction:row;align-items:center}._bottomTitle_j2hte_188 ._bottomTitleLeft_j2hte_202 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_j2hte_215{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_j2hte_215 ._bottomImgWrap_j2hte_221{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_j2hte_215 ._bottomImgWrap_j2hte_221 img{width:100%;height:100%}._bottomConent_j2hte_215 ._bottomConentLeft_j2hte_230,._bottomConent_j2hte_215 ._bottomConentRight_j2hte_231{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.81fd4e6f.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.a9944503.js","./index-legacy.5ee1edf1.js","./index-legacy.57a461ad.js","./index-legacy.819d05e3.js"],(function(t){"use strict";var i,n,o,a,r,_,l,s,m,u,c,h,p,d,f,g,j,v,W,b,I,T,w,L;return{setters:[function(t){i=t.c},function(t){n=t.s,o=t.e},function(t){a=t.d},function(t){r=t.s,_=t.p},function(t){l=t.O},function(t){s=t.m},function(t){m=t.d,u=t.ag,c=t.aU,h=t.R,p=t.f,d=t.$,f=t.c,g=t.ah,j=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_j2hte_1",itemWrapTopCard:"_itemWrapTopCard_j2hte_5",itemWrapTop:"_itemWrapTop_j2hte_5",itemWrapTopLeft:"_itemWrapTopLeft_j2hte_19",clockWrap:"_clockWrap_j2hte_24",leftTimer:"_leftTimer_j2hte_33",itemWrapTopRight:"_itemWrapTopRight_j2hte_39",itemWrapBottom:"_itemWrapBottom_j2hte_43",msgIcon:"_msgIcon_j2hte_50",courseInfo:"_courseInfo_j2hte_57",headImgs:"_headImgs_j2hte_62",infoMsg:"_infoMsg_j2hte_69",infoMsgMain:"_infoMsgMain_j2hte_69",infoMsgSub:"_infoMsgSub_j2hte_75",infoMsgSubTeacher:"_infoMsgSubTeacher_j2hte_85",attBackInfo:"_attBackInfo_j2hte_88",attInfo:"_attInfo_j2hte_91",attInfoDot:"_attInfoDot_j2hte_97",attInfoDotTitle:"_attInfoDotTitle_j2hte_102",signTime:"_signTime_j2hte_114",attRang:"_attRang_j2hte_132",locP:"_locP_j2hte_140",passWrap:"_passWrap_j2hte_145",goWrap:"_goWrap_j2hte_148",error:"_error_j2hte_151",pass:"_pass_j2hte_145",itemBottomMain:"_itemBottomMain_j2hte_167",itemBottomSub:"_itemBottomSub_j2hte_175",bottomTitle:"_bottomTitle_j2hte_188",bottomTitleLeft:"_bottomTitleLeft_j2hte_202",bottomConent:"_bottomConent_j2hte_215",bottomImgWrap:"_bottomImgWrap_j2hte_221",bottomConentLeft:"_bottomConentLeft_j2hte_230",bottomConentRight:"_bottomConentRight_j2hte_231"};t("default",m({props:["item"],name:"teacher-attendDetail",setup:function(t){u();var m=c(),y=function(){};h(0);var M=h({}),C=h(p.platformApi);console.log(C.value);var R=h(!1),S=function(){R.value=!1},k=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:M.value.imUserId}});case 3:S(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),I("发起聊天失败"),S();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),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:"callPhone",content:{phone:M.value.teacherPhone}});case 3:S(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),I("拨号失败"),S();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(){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(m.query.courseScheduleId),{});case 3:e=t.sent,M.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)}}();d((function(){O()}));var B=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:M.value.schoolLongitudeLatitude,myPoint:e,limitDistance:M.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,m,u,c,h,p,d,b,I,T,O,A,P,N,H,z,Y,F,U,q,G,E,$,J,K,Q;return f(W,null,[f(l,null,null),f("div",{class:x.itemWrap,onClick:y},[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=M.value)||void 0===t?void 0:t.startTime).format("YYYY-MM-DD HH:mm"),"-",g(null===(e=M.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:M.value.teacherAvatar?M.value.teacherAvatar:a,alt:""},null),f("div",{class:x.infoMsg},[f("p",{class:x.infoMsgMain},[null===(m=M.value)||void 0===m?void 0:m.classGroupName,j("-"),null===(u=M.value)||void 0===u?void 0:u.teacherName]),f("p",{class:[x.infoMsgSub,"/api-teacher"==C.value?x.infoMsgSubTeacher:""]},[null===(c=M.value)||void 0===c?void 0:c.orchestraName])])]),"/api-teacher"==C.value?null:f("div",{class:x.msgIcon,onClick:function(t){t.stopPropagation(),t.preventDefault(),R.value=!0}},[f("img",{src:s,alt:""},null)])])]),f("div",{class:x.attInfo},[f("div",{class:"NORMAL"===(null===(h=M.value)||void 0===h?void 0:h.signInStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[j("上课时间 "),f("span",null,[g(null===(p=M.value)||void 0===p?void 0:p.startTime).format("HH:mm")])]),f("img",{src:"NORMAL"===(null===(d=M.value)||void 0===d?void 0:d.signInStatus)?n:o,alt:""},null)]),f("p",{class:x.signTime},[null!==(b=M.value)&&void 0!==b&&b.signInTime?w[null===(I=M.value)||void 0===I?void 0:I.signInStatus]:"",null!==(T=M.value)&&void 0!==T&&T.signInTime?f("span",null,[g(null===(O=M.value)||void 0===O?void 0:O.signInTime).format("HH:mm:ss")]):"未签到"])])]),f("div",{class:"NORMAL"===(null===(A=M.value)||void 0===A?void 0:A.signInLongitudeLatitudeStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[j("签到定位")]),f("img",{src:"NORMAL"===(null===(P=M.value)||void 0===P?void 0:P.signInLongitudeLatitudeStatus)?n:o,alt:""},null)]),f("div",{class:x.attRang,onClick:function(){B(M.value.signInLongitudeLatitude)}},[M.value.signInLongitudeLatitude?f("p",null,["NORMAL"===(null===(N=M.value)||void 0===N?void 0:N.signInLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]):f("p",null,[j("暂无定位")]),M.value.signInLongitudeLatitude?f("p",{class:[x.locP,"NORMAL"===(null===(H=M.value)||void 0===H?void 0:H.signInLongitudeLatitudeStatus)?x.pass:x.error]},[j("查看定位 "),f(v,{name:"arrow",class:x.arrow},null)]):null])])])]),f("div",{class:[x.attInfo,x.attBackInfo]},[f("div",{class:"NORMAL"===(null===(z=M.value)||void 0===z?void 0:z.signOutStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("p",null,[j("下课时间"),f("span",null,[g(null===(Y=M.value)||void 0===Y?void 0:Y.endTime).format("HH:mm")])]),f("img",{src:"NORMAL"===(null===(F=M.value)||void 0===F?void 0:F.signOutStatus)?n:o,alt:""},null)]),f("p",{class:x.signTime},[null!==(U=M.value)&&void 0!==U&&U.signOutTime?w[null===(q=M.value)||void 0===q?void 0:q.signOutStatus]:"",null!==(G=M.value)&&void 0!==G&&G.signOutTime?f("span",null,[g(null===(E=M.value)||void 0===E?void 0:E.signOutTime).format("HH:mm:ss")]):"未签退"])])]),f("div",{class:"NORMAL"===(null===($=M.value)||void 0===$?void 0:$.signOutLongitudeLatitudeStatus)?x.passWrap:x.goWrap},[f("div",{class:x.attInfoDot},[f("div",{class:x.attInfoDotTitle},[f("span",null,[j("签退定位")]),f("img",{src:"NORMAL"===(null===(J=M.value)||void 0===J?void 0:J.signOutLongitudeLatitudeStatus)?n:o,alt:""},null)]),f("div",{class:x.attRang,onClick:function(){B(M.value.signOutLongitudeLatitude)}},[M.value.signOutLongitudeLatitude?f(W,null,[f("p",null,[" ","NORMAL"===(null===(K=M.value)||void 0===K?void 0:K.signOutLongitudeLatitudeStatus)?"考勤范围内":"考勤范围外"]),f("p",{class:[x.locP,"NORMAL"===(null===(Q=M.value)||void 0===Q?void 0:Q.signOutLongitudeLatitudeStatus)?x.pass:x.error]},[j("查看定位 "),f(v,{name:"arrow",class:x.arrow},null)])]):f("p",null,[j("暂无定位")])])])])]),f(L,{class:"bottomSheet",show:R.value,"onUpdate:show":function(t){return R.value=t}},{default:function(){return[f("div",{class:x.bottomConent},[f("div",{class:x.bottomConentLeft,onClick:function(t){t.stopPropagation(),t.preventDefault(),k()}},[f("div",{class:x.bottomImgWrap},[f("img",{src:r,alt:""},null)]),f("p",null,[j("发送消息")])]),f("div",{class:x.bottomConentRight,onClick:function(t){t.stopPropagation(),t.preventDefault(),D()}},[f("div",{class:x.bottomImgWrap},[f("img",{src:_,alt:""},null)]),f("p",null,[j("拨打电话")])])])]},description:function(){return f("div",{class:x.bottomTitle},[f("div",{class:x.bottomTitleLeft},[f("span",null,null),f("p",null,[j("联系方式")])]),f("div",{class:x.bottomTitleRight,onClick:function(t){t.stopPropagation(),t.preventDefault(),S()}},[f(v,{class:x.cross,name:"cross"},null)])])}})])])}}}))}}}))}();
|