forked from golang/hotime
2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b291a028"],{"00b4":function(e,t,n){"use strict";n("ac1f");var o=n("23e7"),c=n("da84"),i=n("c65b"),l=n("e330"),a=n("1626"),s=n("861d"),r=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),u=c.Error,d=l(/./.test);o({target:"RegExp",proto:!0,forced:!r},{test:function(e){var t=this.exec;if(!a(t))return d(this,e);var n=i(t,this,e);if(null!==n&&!s(n))throw new u("RegExp exec method returned something other than an Object or null");return!!n}})},1703:function(e,t,n){},2241:function(e,t,n){"use strict";var o,c=n("f2bf"),i=n("f344"),l=n("c199"),a=n("1da4"),s=n("fe7e"),r=n("f691"),u=n("7e3e"),d=n("8da3"),b=n("b1d2"),m=n("8405"),f=n("f827"),h=n("e41f"),g=n("b650"),O=n("7f9b"),[p,j]=Object(s["a"])("action-bar"),v=Symbol(p),w={safeAreaInsetBottom:r["g"]},k=Object(c["l"])({name:p,props:w,setup(e,t){var{slots:n}=t,{linkChildren:o}=Object(O["e"])(v);return o(),()=>Object(c["k"])("div",{class:[j(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==n.default?void 0:n.default()])}}),B=Object(l["a"])(k),C=n("4eda"),y=n("b070"),[x,S]=Object(s["a"])("action-bar-button"),T=Object(i["a"])({},y["a"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),H=Object(c["l"])({name:x,props:T,setup(e,t){var{slots:n}=t,o=Object(y["b"])(),{parent:i,index:l}=Object(O["i"])(v),a=Object(c["d"])(()=>{if(i){var e=i.children[l.value-1];return!(e&&"isButton"in e)}}),s=Object(c["d"])(()=>{if(i){var e=i.children[l.value+1];return!(e&&"isButton"in e)}});return Object(C["a"])({isButton:!0}),()=>{var{type:t,icon:i,text:l,color:r,loading:u,disabled:d}=e;return Object(c["k"])(g["a"],{class:S([t,{last:s.value,first:a.value}]),size:"large",type:t,icon:i,color:r,loading:u,disabled:d,onClick:o},{default:()=>[n.default?n.default():l]})}}}),N=Object(l["a"])(H),[E,A,I]=Object(s["a"])("dialog"),U=Object(i["a"])({},f["b"],{title:String,theme:String,width:r["f"],message:[String,Function],callback:Function,allowHtml:Boolean,className:r["h"],transition:Object(r["e"])("van-dialog-bounce"),messageAlign:String,closeOnPopstate:r["g"],showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:r["g"],closeOnClickOverlay:Boolean}),P=[...f["a"],"transition","closeOnPopstate"],Q=Object(c["l"])({name:E,props:U,emits:["confirm","cancel","update:show"],setup(e,t){var{emit:n,slots:o}=t,l=Object(c["D"])({confirm:!1,cancel:!1}),a=e=>n("update:show",e),s=t=>{a(!1),null==e.callback||e.callback(t)},r=t=>()=>{e.show&&(n(t),e.beforeClose?(l[t]=!0,Object(u["a"])(e.beforeClose,{args:[t],done(){s(t),l[t]=!1},canceled(){l[t]=!1}})):s(t))},f=r("cancel"),O=r("confirm"),p=()=>{var t=o.title?o.title():e.title;if(t)return Object(c["k"])("div",{class:A("header",{isolated:!e.message&&!o.default})},[t])},j=t=>{var{message:n,allowHtml:o,messageAlign:i}=e,l=A("message",{"has-title":t,[i]:i}),a=Object(d["b"])(n)?n():n;return o&&"string"===typeof a?Object(c["k"])("div",{class:l,innerHTML:a},null):Object(c["k"])("div",{class:l},[a])},v=()=>{if(o.default)return Object(c["k"])("div",{class:A("content")},[o.default()]);var{title:t,message:n,allowHtml:i}=e;if(n){var l=!(!t&&!o.title);return Object(c["k"])("div",{key:i?1:0,class:A("content",{isolated:!l})},[j(l)])}},w=()=>Object(c["k"])("div",{class:[b["d"],A("footer")]},[e.showCancelButton&&Object(c["k"])(g["a"],{size:"large",text:e.cancelButtonText||I("cancel"),class:A("cancel"),style:{color:e.cancelButtonColor},loading:l.cancel,onClick:f},null),e.showConfirmButton&&Object(c["k"])(g["a"],{size:"large",text:e.confirmButtonText||I("confirm"),class:[A("confirm"),{[b["b"]]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:l.confirm,onClick:O},null)]),k=()=>Object(c["k"])(B,{class:A("footer")},{default:()=>[e.showCancelButton&&Object(c["k"])(N,{type:"warning",text:e.cancelButtonText||I("cancel"),class:A("cancel"),color:e.cancelButtonColor,loading:l.cancel,onClick:f},null),e.showConfirmButton&&Object(c["k"])(N,{type:"danger",text:e.confirmButtonText||I("confirm"),class:A("confirm"),color:e.confirmButtonColor,loading:l.confirm,onClick:O},null)]}),C=()=>o.footer?o.footer():"round-button"===e.theme?k():w();return()=>{var{width:t,title:n,theme:o,message:l,className:s}=e;return Object(c["k"])(h["a"],Object(c["r"])({role:"dialog",class:[A([o]),s],style:{width:Object(m["a"])(t)},"aria-labelledby":n||l,"onUpdate:show":a},Object(i["e"])(e,P)),{default:()=>[p(),v(),C()]})}}});function z(){var e={setup(){var{state:e,toggle:t}=Object(a["b"])();return()=>Object(c["k"])(Q,Object(c["r"])(e,{"onUpdate:show":t}),null)}};({instance:o}=Object(a["a"])(e))}function M(e){return i["c"]?new Promise((t,n)=>{o||z(),o.open(Object(i["a"])({},M.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))}):Promise.resolve()}M.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},M.currentOptions=Object(i["a"])({},M.defaultOptions),M.alert=M,M.confirm=e=>M(Object(i["a"])({showCancelButton:!0},e)),M.close=()=>{o&&o.toggle(!1)},M.setDefaultOptions=e=>{Object(i["a"])(M.currentOptions,e)},M.resetDefaultOptions=()=>{M.currentOptions=Object(i["a"])({},M.defaultOptions)},M.Component=Object(l["a"])(Q),M.install=e=>{e.use(M.Component),e.config.globalProperties.$dialog=M};t["a"]=M},"2fcb":function(e,t,n){},5130:function(e,t,n){},"578a":function(e,t,n){"use strict";n.r(t);n("b0c0");var o=n("f2bf"),c=n("d22d"),i=n.n(c),l=function(e){return Object(o["C"])("data-v-7d6971b0"),e=e(),Object(o["A"])(),e},a={class:"loginCon"},s={class:"welcome"},r={class:"times"},u={class:"places"},d=l((function(){return Object(o["i"])("div",{class:"banner"},[Object(o["i"])("img",{src:i.a})],-1)})),b={class:"loginOut"},m=l((function(){return Object(o["i"])("div",{class:"loginHead"},"填写信息",-1)})),f={class:"loginTxt"},h=l((function(){return Object(o["i"])("div",{class:"loginName"},"姓 名",-1)})),g={class:"loginTxt"},O=l((function(){return Object(o["i"])("div",{class:"loginName"},"身份证号",-1)})),p={class:"loginTxt"},j=l((function(){return Object(o["i"])("div",{class:"loginName"},"手机号码",-1)})),v={class:"loginTxt",style:{"border-bottom":"0px"}},w=l((function(){return Object(o["i"])("div",{class:"loginName"},"验证码",-1)})),k=l((function(){return Object(o["i"])("div",{class:"CommBtn",style:{background:"none",top:"85vh",color:"black","font-family":"'Arial Black'"}},null,-1)}));function B(e,t,n,c,i,l){return Object(o["z"])(),Object(o["h"])("div",null,[Object(o["i"])("div",a,[Object(o["i"])("div",s,[Object(o["i"])("div",r,Object(o["K"])(i.welcome)+"好!",1),Object(o["i"])("div",u,Object(o["K"])(i.welcomeName),1)]),d,Object(o["i"])("div",b,[m,Object(o["i"])("div",f,[h,Object(o["Q"])(Object(o["i"])("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.name=e}),placeholder:"请输入姓名"},null,512),[[o["M"],i.name]])]),Object(o["i"])("div",g,[O,Object(o["Q"])(Object(o["i"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=function(e){return i.idcard=e}),placeholder:"请输入身份证号码"},null,512),[[o["M"],i.idcard]])]),Object(o["i"])("div",p,[j,Object(o["Q"])(Object(o["i"])("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=function(e){return i.phone=e}),placeholder:"请输入手机号码"},null,512),[[o["M"],i.phone]]),Object(o["i"])("div",{class:"loginSend",onClick:t[3]||(t[3]=function(){return l.sendSms&&l.sendSms.apply(l,arguments)})},[Object(o["Q"])(Object(o["i"])("div",null,Object(o["K"])(i.smsTime)+"S",513),[[o["N"],0!=i.smsTime]]),Object(o["Q"])(Object(o["i"])("div",null,"发送短信",512),[[o["N"],0==i.smsTime]])])]),Object(o["i"])("div",v,[w,Object(o["Q"])(Object(o["i"])("input",{type:"text","onUpdate:modelValue":t[4]||(t[4]=function(e){return i.code=e}),placeholder:"请输入短信验证码"},null,512),[[o["M"],i.code]])])]),Object(o["i"])("div",{class:"CommBtn",onClick:t[5]||(t[5]=function(){return l.login&&l.login.apply(l,arguments)})},"进入预约"),k])])}n("e17f");var C=n("2241"),y=(n("ac1f"),n("00b4"),n("e9c4"),{name:"login",data:function(){return{show:!1,welcome:"上午",smsTime:0,phone:"",idcard:"",name:"",code:"",welcomeName:"",docmHeight:document.documentElement.clientHeight,showHeight:document.documentElement.clientHeight,showWidth:document.documentElement.clientWidth,hideshow:!0}},methods:{login:function(){if(4==this.code.length)if(11==this.phone.length)if(18==this.idcard.length){var e=/^[\u4e00-\u9fa5]{2,4}$/;if(this.name.length<2||!e.test(this.name))C["a"].alert({message:"姓名输入错误"});else{var t=this,n={token:window.token,phone:this.phone,code:this.code,name:this.name,idcard:this.idcard};localStorage.setItem("UserInfo",JSON.stringify(n)),t.$toast.loading({duration:0,forbidClick:!0,loadingType:"spinner",message:"验证中"})}}else C["a"].alert({message:"身份证号码输入错误"});else C["a"].alert({message:"手机号输入错误"});else C["a"].alert({message:"短信验证码错误"})},sendSms:function(){if(11==this.phone.length){if(0==this.smsTime){this.smsTime=60;var e=this,t=setInterval((function(){e.smsTime--,0===e.smsTime&&clearInterval(t)}),1e3)}}else C["a"].alert({message:"手机号码格式不对"})},oncloseWindow:function(){window.lightAppJssdk.navigation.close({success:function(){},fail:function(){}})}},mounted:function(){var e=this;this.welcomeName=window.categoryName;var t=(new Date).getHours();this.welcome=t<13?"上午":"下午",window.onresize=function(){return function(){e.showWidth==document.documentElement.clientWidth&&(e.showHeight=document.documentElement.clientHeight)}()}},watch:{showHeight:function(){this.docmHeight>this.showHeight?this.hideshow=!1:this.hideshow=!0}}}),x=(n("845e"),n("d959")),S=n.n(x);const T=S()(y,[["render",B],["__scopeId","data-v-7d6971b0"]]);t["default"]=T},"845e":function(e,t,n){"use strict";n("5130")},b0c0:function(e,t,n){var o=n("83ab"),c=n("5e77").EXISTS,i=n("e330"),l=n("9bf2").f,a=Function.prototype,s=i(a.toString),r=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(r.exec),d="name";o&&!c&&l(a,d,{configurable:!0,get:function(){try{return u(r,s(this))[1]}catch(e){return""}}})},d22d:function(e,t,n){e.exports=n.p+"img/banner.5db4777e.png"},d4ef:function(e,t,n){},e17f:function(e,t,n){"use strict";n("68ef"),n("d4ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b"),n("1703"),n("a71a"),n("4d75"),n("2fcb")}}]);
|
|
//# sourceMappingURL=chunk-b291a028.641a2a82.js.map
|