1 |
- !function(){function e(e,t,o,n,a,l,r){try{var u=e[l](r),i=u.value}catch(_){return void o(_)}u.done?t(i):Promise.resolve(i).then(n,a)}System.register(["./index-legacy-8c5c9398.js","./utils-legacy-e7c4105f.js","./index-legacy-69e33e33.js","./index-legacy-9cf1b3a0.js"],(function(t,o){"use strict";var n,a,l,r,u,i,_,d,c,s,p,m,f,v,k,h;return{setters:[e=>{n=e.F,a=e.C,l=e.B,r=e.P,u=e.M},e=>{i=e.c,_=e.s,d=e.r},e=>{c=e.d,s=e.r,p=e.f,m=e.c,f=e.a,v=e.F,k=e.n},e=>{h=e.P}],execute:function(){var o=document.createElement("style");o.textContent="._fieldGroup_2k9vu_1{padding:0 .64rem}._fieldGroup_2k9vu_1 .van-field{margin-bottom:.26667rem;border-radius:.18667rem;padding:.29333rem .34667rem;font-size:.37333rem!important}._fieldGroup_2k9vu_1 .van-field__control{font-size:.37333rem}._fieldGroup_2k9vu_1 .van-field__control::-moz-placeholder{color:#aaa}._fieldGroup_2k9vu_1 .van-field__control::placeholder{color:#aaa}._fieldGroup_2k9vu_1 .van-cell__right-icon{color:#d8d8d8}._fieldGroup_2k9vu_1 ._smsField_2k9vu_19{padding-right:0}._fieldGroup_2k9vu_1 ._smsField_2k9vu_19 ._sendCms_2k9vu_22{color:#fe2451;font-size:.37333rem;width:3.2rem;display:inline-block;text-align:center;border-left:.02667rem solid #E5E5E5}._fieldGroup_2k9vu_1 ._smsField_2k9vu_19 .van-count-down{font-size:.37333rem;width:3.2rem;text-align:center;border-left:.02667rem solid #E5E5E5}._fieldGroup_2k9vu_1 ._btnSubmit_2k9vu_36{width:7.62667rem;margin:.61333rem auto 0;height:1.01333rem;font-size:.42667rem;font-weight:600;color:#131415;border:none;padding:0}._fieldTenant_2k9vu_46 .van-field{border:.02667rem solid #F7DFE7}._fieldTenant_2k9vu_46 input{caret-color:#fe3e64!important}._fieldTenant_2k9vu_46 .van-picker .van-picker__confirm{color:#fe3e64!important}._fieldTenant_2k9vu_46 ._btnSubmit_2k9vu_36{background:linear-gradient(to right,#FF75A6,#FF3C81);color:#fff}._fieldClassroom_2k9vu_59 .van-field{border:.02667rem solid #DFEDF7}._fieldClassroom_2k9vu_59 ._smsField_2k9vu_19 ._sendCms_2k9vu_22{color:#1cacf1}._fieldClassroom_2k9vu_59 ._btnSubmit_2k9vu_36{background:linear-gradient(to right,#19ADFF,#1BD2FF);color:#fff}._fieldTechnology_2k9vu_69 .van-field,._fieldPerson_2k9vu_70 .van-field{border:.02667rem solid #DFEDF7}._fieldTechnology_2k9vu_69 input,._fieldPerson_2k9vu_70 input{caret-color:#0fc1c5!important}._fieldTechnology_2k9vu_69 .van-picker .van-picker__confirm,._fieldPerson_2k9vu_70 .van-picker .van-picker__confirm{color:#0fc1c5!important}._fieldTechnology_2k9vu_69 ._smsField_2k9vu_19 ._sendCms_2k9vu_22,._fieldPerson_2k9vu_70 ._smsField_2k9vu_19 ._sendCms_2k9vu_22{color:#0fc1c5}._fieldTechnology_2k9vu_69 ._btnSubmit_2k9vu_36,._fieldPerson_2k9vu_70 ._btnSubmit_2k9vu_36{background:linear-gradient(to right,#0E88A1,#03C3B9);color:#fff}\n",document.head.appendChild(o);t("T",c({name:"the-submit",props:{type:{type:String,"default":""}},setup(t){const o=s(),c=p({typeStatus:!1,countDownTime:6e4,countDownStatus:!0,imgCodeStatus:!1,cooperateTenantName:null,cooperateTenantNature:null,cooperateTenantNatureTxt:null,contacts:null,phone:null,code:null}),g=()=>{c.countDownStatus=!1,k((()=>{o.value.start()}))},T=()=>{if(!i(c.phone))return _("请输入正确的手机号码");c.imgCodeStatus=!0},b=()=>{c.countDownStatus=!0,o.value.reset()},y=function(){var t,o=(t=function*(){try{if(!c.cooperateTenantNature)return _("请选择机构性质");if(!c.cooperateTenantName)return _("请填写机构名称");if(!c.contacts)return _("请填写联系人");if(!c.phone)return _("请输入联系电话");if(!i(c.phone))return _("请输入正确的手机号码");if(!c.code)return _("请输入验证码");yield d.post("/api-website/open/cooperateTenant/save",{data:{cooperateTenantName:c.cooperateTenantName,cooperateTenantNature:c.cooperateTenantNature,contacts:c.contacts,phone:c.phone,code:c.code}}),setTimeout((()=>{_("信息提交成功,我们会尽快与您联系"),c.cooperateTenantName=null,c.cooperateTenantNature=null,c.cooperateTenantNatureTxt=null,c.contacts=null,c.phone=null,c.code=null}),100)}catch(e){}},function(){var o=this,n=arguments;return new Promise((function(a,l){var r=t.apply(o,n);function u(t){e(r,a,l,u,i,"next",t)}function i(t){e(r,a,l,u,i,"throw",t)}u(undefined)}))});return function(){return o.apply(this,arguments)}}();return()=>m(v,null,[m("div",{"class":["_fieldGroup_2k9vu_1","tenant"===t.type&&"_fieldTenant_2k9vu_46","classroom"===t.type&&"_fieldClassroom_2k9vu_59","technology"===t.type&&"_fieldTechnology_2k9vu_69","person"===t.type&&"_fieldPerson_2k9vu_70"]},[m(n,{readonly:!0,isLink:!0,arrowDirection:"down",placeholder:"机构性质",border:!1,autocomplete:"off",modelValue:c.cooperateTenantNatureTxt,onClick:()=>c.typeStatus=!0},null),m(n,{type:"text",border:!1,placeholder:"机构名称",autocomplete:"off",maxlength:20,modelValue:c.cooperateTenantName,"onUpdate:modelValue":e=>c.cooperateTenantName=e},null),m(n,{type:"text",border:!1,placeholder:"联系人",autocomplete:"off",maxlength:20,modelValue:c.contacts,"onUpdate:modelValue":e=>c.contacts=e},null),m(n,{type:"number",maxlength:11,border:!1,placeholder:"联系电话",autocomplete:"off",modelValue:c.phone,"onUpdate:modelValue":e=>c.phone=e},null),m(n,{"class":"_smsField_2k9vu_19",type:"number",maxlength:6,border:!1,placeholder:"短信验证码",autocomplete:"off",modelValue:c.code,"onUpdate:modelValue":e=>c.code=e},{button:()=>c.countDownStatus?m("span",{"class":"_sendCms_2k9vu_22",onClick:T},[f("发送验证码")]):m(a,{ref:e=>o.value=e,"auto-start":!1,time:c.countDownTime,onFinish:b,format:"ss秒"},null)}),m(l,{block:!0,round:!0,"class":"_btnSubmit_2k9vu_36",onClick:y},{"default":()=>[f("确认提交")]}),m(h,{show:c.typeStatus,"onUpdate:show":e=>c.typeStatus=e,position:"bottom",round:!0},{"default":()=>[m(r,{columns:[{text:"中小学学校",value:"PRIMARY_AND_SECONDARY_SCHOOLS"},{text:"教培机构",value:"EDUCATIONAL_INSTITUTIONS"},{text:"音乐达人",value:"PLAYERS"},{text:"代理商",value:"AGENT"}],showToolbar:!0,onCancel:()=>c.typeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];c.cooperateTenantNature=t.value,c.cooperateTenantNatureTxt=t.text,c.typeStatus=!1}},null)]})]),c.imgCodeStatus?m(u,{value:c.imgCodeStatus,"onUpdate:value":e=>c.imgCodeStatus=e,phone:c.phone,onClose:()=>{c.imgCodeStatus=!1},onSendCode:g},null):null])}}))}}}))}();
|