index-legacy.184354b5.js 6.6 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._tips_172qd_1{display:flex;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_172qd_1 ._icon_172qd_11{font-size:.53333rem;margin-right:.16rem}._informationBottom_172qd_15 .van-sticky{position:absolute}._cellGroup_172qd_18{margin:.32rem .34667rem 0;border-radius:.26667rem;overflow:hidden}._cellGroup_172qd_18 ._classType_172qd_23{flex:0 auto}._cellGroup_172qd_18 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_172qd_18 .van-cell__value{color:#333}._cellGroup_172qd_18 .van-radio-group,._cellGroup_172qd_18 .van-checkbox-group{justify-content:flex-end}._cellGroup_172qd_18 ._radioSection_172qd_37{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_172qd_18 ._radioItem_172qd_42{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_172qd_18 ._radioSection_172qd_37+._radioSection_172qd_37{margin-left:.32rem}._train_r2wxa_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./create-legacy.9418bfea.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.8fb0ec91.js","./index-legacy.11f1ea5f.js","./index-legacy.d39f6f47.js","./index-legacy.3a3e070a.js","./index-legacy.23ddccbf.js","./index-legacy.38b799d5.js","./index-legacy.5f462740.js","./Checker-legacy.9bbda964.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js","./utils-legacy.6e8de97c.js"],(function(e){"use strict";var t,a,o,l,i,n,r,s,c,d,u,p,m,_,f,y,g,h,S,v,E,T,A,b,x,F,k,q;return{setters:[function(e){t=e.d,a=e.ag,o=e.$,l=e.c,i=e.q,n=e.ai,r=e.o,s=e.B,c=e.P,d=e.b2,u=e.R,p=e.aj,m=e.m,_=e.g},function(e){f=e.O},function(e){y=e.f,g=e.w,h=e.a},function(e){S=e.C},function(e){v=e.C},function(e){E=e.C},function(e){T=e.T},function(e){A=e.C},function(e){b=e.F},function(e){x=e.R,F=e.a},function(e){k=e.P},function(e){q=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j={tips:"_tips_172qd_1",icon:"_icon_172qd_11",informationBottom:"_informationBottom_172qd_15",cellGroup:"_cellGroup_172qd_18",classType:"_classType_172qd_23",radioSection:"_radioSection_172qd_37",radioItem:"_radioItem_172qd_42"},C=t({name:"practice",props:{address:{type:String,default:""}},setup(e){const t=a(),u=()=>{if(y.classList.length>0)return void(y.status=!0);if(y.classType.length<=0)return void r("请选择课程类型");if(!y.trainStartDate)return void r("请选择课程开始日期");if(!y.week)return void r("请选择周次");if(!e.address)return void r("您所在的学校暂未设置地址");const a=[];y.classType.forEach((e=>{a.push({classType:e,startTime:null,endTime:null,trainTimer:null,times:null,classIdList:[]})})),y.classPracticeList=a,t.push("/practice-detail")};return o((()=>{})),()=>l("div",{class:j.practice,style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden"}},[l(S,{inset:!0,class:j.cellGroup},{default:()=>[l(v,{title:"课程类型",titleClass:j.classType},{value:()=>l(E,{"checked-color":"#FF8057",modelValue:y.classType,"onUpdate:modelValue":e=>y.classType=e,direction:"horizontal"},{default:()=>[l(T,{size:"large",type:"primary",color:y.classType.includes("SINGLE")?"#FF8057":"#EAEAEA",textColor:y.classType.includes("SINGLE")?"#FFF":"#AAA",class:j.radioSection},{default:()=>[l(A,{class:j.radioItem,name:"SINGLE"},null),i("声部课")]}),l(T,{size:"large",type:"primary",color:y.classType.includes("MUSIC_THEORY")?"#FF8057":"#EAEAEA",textColor:y.classType.includes("MUSIC_THEORY")?"#FFF":"#AAA",class:j.radioSection},{default:()=>[l(A,{class:j.radioItem,name:"MUSIC_THEORY"},null),i("乐理课")]}),l(T,{size:"large",type:"primary",color:y.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FF8057":"#EAEAEA",textColor:y.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FFF":"#AAA",class:j.radioSection},{default:()=>[l(A,{class:j.radioItem,name:"INSTRUMENTAL_ENSEMBLE"},null),i("合奏课")]})]})}),l(b,{label:"课程开始日期",inputAlign:"right",placeholder:"请选择课程开始日期",readonly:!0,isLink:!0,modelValue:y.trainStartDate?n(y.trainStartDate).format("YYYY年MM月DD日"):"",onClick:()=>y.calendarTimeStatus=!0},null),l(b,{label:"课程周次",inputAlign:"right",placeholder:"请选择课程周次",readonly:!0,modelValue:g(y.week),onClick:()=>{y.trainStartDate||r("请选择课程开始日期")}},null),l(v,{title:"跳过节假日"},{value:()=>l(x,{"checked-color":"#FF8057",modelValue:y.skipHoliday,"onUpdate:modelValue":e=>y.skipHoliday=e,direction:"horizontal"},{default:()=>[l(T,{size:"large",type:"primary",color:1!==y.skipHoliday?"#EAEAEA":"#FF8057",textColor:1!==y.skipHoliday?"#AAA":"#FFF",class:j.radioSection,round:!0},{default:()=>[l(F,{class:j.radioItem,name:1},null),i("是")]}),l(T,{size:"large",type:"primary",color:0!==y.skipHoliday?"#EAEAEA":"#FF8057",textColor:0!==y.skipHoliday?"#AAA":"#FFF",class:j.radioSection,round:!0},{default:()=>[l(F,{class:j.radioItem,name:0},null),i("否")]})]})})]}),l(f,{position:"bottom",class:j.informationBottom},{default:()=>[l("div",{class:"btnGroup",style:{marginTop:"24px"}},[l(s,{type:"primary",block:!0,round:!0,onClick:u},{default:()=>[i("下一步")]})])]}),l(c,{show:y.weekStatus,"onUpdate:show":e=>y.weekStatus=e,position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:()=>[l(k,{columns:h,onCancel:()=>y.weekStatus=!1,onConfirm:e=>{y.week=e.selectedValues[0],y.weekStatus=!1}},null)]}),l(c,{show:y.calendarTimeStatus,"onUpdate:show":e=>y.calendarTimeStatus=e,position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:()=>[l(q,{minDate:new Date,modelValue:y.classDate,"onUpdate:modelValue":e=>y.classDate=e,formatter:d,onCancel:()=>y.calendarTimeStatus=!1,onConfirm:e=>{y.calendarTimeStatus=!1,y.trainStartDate=e.selectedValues.join("-");const t=n(y.trainStartDate).day(),a=h[0===t?6:t-1];y.week=a.value}},null)]})])}});var w="_train_r2wxa_1";e("default",t({name:"train-planning",setup(){const e=sessionStorage.getItem("trainType");u(e||"standard");const t=u(""),a=u(0);return o((()=>{(async()=>{try{const{data:e}=await m.get(`/api-school/school/detail/${_.user.data.school.id}`);t.value=e.address||""}catch{}})()})),()=>l("div",{class:w},[l(f,{position:"top",onGetHeight:e=>{console.log(e,"height"),a.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[l(p,{border:!1},null)]}),l(C,{address:t.value},null)])}}))}}}))}();