import{M as e,a as t,P as n}from"./index-761c1f63.js";import{c as a,s as o,r as l}from"./utils-a5ed368a.js";import{F as s,B as u,C as r,P as c,M as i}from"./index-5a317885.js";import{d as p,r as d,f as m,c as _,a as f,n as T}from"./index-7464417e.js";const b={banner:"_banner_1ue0r_12",bannerImg:"_bannerImg_1ue0r_19",bannerCenter:"_bannerCenter_1ue0r_24","move-top":"_move-top_1ue0r_1",title:"_title_1ue0r_33",content:"_content_1ue0r_39",section1:"_section1_1ue0r_45",title1:"_title1_1ue0r_49",green:"_green_1ue0r_62",section2:"_section2_1ue0r_65",title2:"_title2_1ue0r_70",section3:"_section3_1ue0r_77",title3:"_title3_1ue0r_81",section4:"_section4_1ue0r_88",title4:"_title4_1ue0r_93",fieldGroup:"_fieldGroup_1ue0r_98",fieldTips:"_fieldTips_1ue0r_101",smsField:"_smsField_1ue0r_119",btnSubmit:"_btnSubmit_1ue0r_139"},h=""+new URL("banner-center-26d547aa.png",import.meta.url).href,g=""+new URL("img1-b0a99c1a.png",import.meta.url).href,S=""+new URL("img2-1b558aa6.png",import.meta.url).href,v=p({name:"about-us",setup(){const p=d(),v=m({typeStatus:!1,countDownTime:6e4,countDownStatus:!0,imgCodeStatus:!1,cooperateTenantName:null,cooperateTenantNature:null,cooperateTenantNatureTxt:null,contacts:null,phone:null,code:null}),N=()=>{v.countDownStatus=!1,T((()=>{p.value.start()}))},w=()=>{if(!a(v.phone))return o("请输入正确的手机号码");v.imgCodeStatus=!0},x=()=>{v.countDownStatus=!0,p.value.reset()},C=async()=>{try{if(!v.cooperateTenantNature)return o("请选择机构性质");if(!v.cooperateTenantName)return o("请填写机构名称");if(!v.contacts)return o("请填写联系人");if(!v.phone)return o("请输入联系电话");if(!a(v.phone))return o("请输入正确的手机号码");if(!v.code)return o("请输入验证码");await l.post("/api-website/open/cooperateTenant/save",{data:{cooperateTenantName:v.cooperateTenantName,cooperateTenantNature:v.cooperateTenantNature,contacts:v.contacts,phone:v.phone,code:v.code}}),setTimeout((()=>{o("信息提交成功，我们会尽快与您联系"),v.cooperateTenantName=null,v.cooperateTenantNature=null,v.cooperateTenantNatureTxt=null,v.contacts=null,v.phone=null,v.code=null}),100)}catch(e){}};return()=>_("div",{"class":b.aboutUs},[_(e,null,null),_("div",{"class":b.banner},[_("img",{"class":b.bannerImg,src:"https://oss.dayaedu.com/klx/1699437230528banner.png"},null),_("img",{"class":b.bannerCenter,src:h},null)]),_("div",{"class":b.section1},[_("div",{"class":[b.title,b.title1]},null),_("div",{"class":b.content},[_("p",null,[f("在科技飞速发展的当下，音乐教育也在不断地创新与变革。为了更好地推进音乐课堂的数字化转型，提高音乐教育质量。化繁为简、化难为易，提高学生的兴趣和参与度。将更加注重线上线下相结合，"),_("span",{"class":b.green,style:"font-weight: 600"},[f("提供多元化的教学模式，满足学生多样化的学习需求")])]),_("p",null,[f("同时器乐教学对学生具有重要的意义，不仅有助于提高音乐素养和协调能力，还可以培养个性、团队合作意识等。学习乐器丰富学生的情感体验，拓展就业和升学途径，传承民族文化。")]),_("p",{"class":b.green,style:"font-weight: 600"},[f("我们特此发起寻找数字化音乐课堂合作伙伴，诚邀您的加入！")])])]),_("div",{"class":b.section2},[_("div",{"class":[b.title,b.title2]},null),_("img",{"class":"w100",src:g},null)]),_("div",{"class":b.section3},[_("div",{"class":[b.title,b.title3]},null),_("img",{"class":"w100",src:S},null)]),_("div",{"class":b.section4},[_("div",{"class":[b.title,b.title4]},null),_("div",{"class":b.fieldGroup},[_(s,{readonly:!0,isLink:!0,arrowDirection:"down",placeholder:"机构性质",border:!1,autocomplete:"off",modelValue:v.cooperateTenantNatureTxt,onClick:()=>v.typeStatus=!0},null),_(s,{type:"text",border:!1,placeholder:"机构名称",autocomplete:"off",maxlength:20,modelValue:v.cooperateTenantName,"onUpdate:modelValue":e=>v.cooperateTenantName=e},null),_(s,{type:"text",border:!1,placeholder:"联系人",autocomplete:"off",maxlength:20,modelValue:v.contacts,"onUpdate:modelValue":e=>v.contacts=e},null),_(s,{type:"number",maxlength:11,border:!1,placeholder:"联系电话",autocomplete:"off",modelValue:v.phone,"onUpdate:modelValue":e=>v.phone=e},null),_(s,{"class":b.smsField,type:"number",maxlength:6,border:!1,placeholder:"短信验证码",autocomplete:"off",modelValue:v.code,"onUpdate:modelValue":e=>v.code=e},{button:()=>v.countDownStatus?_(u,{size:"small",onClick:w},{"default":()=>[f("发送短信")]}):_(r,{ref:e=>p.value=e,"auto-start":!1,time:v.countDownTime,onFinish:x,format:"ss秒"},null)}),_("p",{"class":b.fieldTips},[f("我们将在提交后尽快与您联系")]),_(u,{block:!0,round:!0,"class":b.btnSubmit,onClick:C},{"default":()=>[f("确认提交")]})])]),_(t,null,null),_(n,{show:v.typeStatus,"onUpdate:show":e=>v.typeStatus=e,position:"bottom",round:!0},{"default":()=>[_(c,{columns:[{text:"中小学学校",value:"PRIMARY_AND_SECONDARY_SCHOOLS"},{text:"教培机构",value:"EDUCATIONAL_INSTITUTIONS"},{text:"音乐达人",value:"PLAYERS"},{text:"代理商",value:"AGENT"}],showToolbar:!0,onCancel:()=>v.typeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];v.cooperateTenantNature=t.value,v.cooperateTenantNatureTxt=t.text,v.typeStatus=!1}},null)]}),v.imgCodeStatus?_(i,{value:v.imgCodeStatus,"onUpdate:value":e=>v.imgCodeStatus=e,phone:v.phone,onClose:()=>{v.imgCodeStatus=!1},onSendCode:N},null):null])}});export{v as default};
