index-legacy-f51bf425.js 5.8 KB

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