WokerTask/public/mobile/assets/pages-login-login.cca2c5c1.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{o as e,c as t,w as a,b as l,s as o,x as s,E as r,h as i,k as n,d as u,A as d,z as c,r as m,a as p,l as f,t as g,g as _,ab as h,n as x,y as v,I as b,ac as y,ad as w,ae as k,a8 as C,u as S,V,m as j,N as $,aa as L,a1 as U,af as B,ag as W,W as z,J as N,ah as F,ai as T,e as I,F as q,v as E,a7 as G,aj as H,ak as O,H as A,q as J,al as R,am as D,an as K,i as M,ao as P}from"./index.26a6cf84.js";import{_ as Q}from"./u-image.e15c05f6.js";import{_ as X}from"./u-icon.7191c6e8.js";import{_ as Y,a as Z}from"./u-form-item.9efeed79.js";import{_ as ee}from"./u-verification-code.3d8dc169.js";import{_ as te}from"./u-form.4eb8cd7e.js";import{_ as ae}from"./u-checkbox.ba902ed1.js";import{_ as le}from"./u-button.ae3a4a51.js";import{_ as oe}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as se}from"./avatar-upload.c72a71cb.js";import{_ as re}from"./u-popup.08086621.js";import{u as ie}from"./useLockFn.4d99e11c.js";import"./emitter.5b880544.js";import"./util.871c1879.js";import"./_commonjsHelpers.b8add541.js";var ne=oe({name:"u-divider",props:{halfWidth:{type:[Number,String],default:150},borderColor:{type:String,default:"#dcdfe6"},type:{type:String,default:"primary"},color:{type:String,default:"#909399"},fontSize:{type:[Number,String],default:26},bgColor:{type:String,default:"#ffffff"},height:{type:[Number,String],default:"auto"},marginTop:{type:[String,Number],default:0},marginBottom:{type:[String,Number],default:0},useSlot:{type:Boolean,default:!0}},computed:{lineStyle(){let e={};return-1!=String(this.halfWidth).indexOf("%")?e.width=this.halfWidth:e.width=this.halfWidth+"rpx",this.borderColor&&(e.borderColor=this.borderColor),e}},methods:{click(){this.$emit("click")}}},[["render",function(u,d,c,m,p,f){const g=n;return e(),t(g,{class:"u-divider",style:s({height:"auto"==c.height?"auto":c.height+"rpx",backgroundColor:c.bgColor,marginBottom:c.marginBottom+"rpx",marginTop:c.marginTop+"rpx"}),onClick:f.click},{default:a((()=>[l(g,{class:o(["u-divider-line",[c.type?"u-divider-line--bordercolor--"+c.type:""]]),style:s([f.lineStyle])},null,8,["class","style"]),c.useSlot?(e(),t(g,{key:0,class:"u-divider-text",style:s({color:c.color,fontSize:c.fontSize+"rpx"})},{default:a((()=>[r(u.$slots,"default",{},void 0,!0)])),_:3},8,["style"])):i("v-if",!0),l(g,{class:o(["u-divider-line",[c.type?"u-divider-line--bordercolor--"+c.type:""]]),style:s([f.lineStyle])},null,8,["class","style"])])),_:3},8,["style","onClick"])}],["__scopeId","data-v-ba53c472"]]);const ue=u({__name:"mplogin-popup",props:{show:{type:Boolean},logo:{type:String},title:{type:String}},emits:["update:show","update"],setup(o,{emit:s}){const r=o,i=d({get:()=>r.show,set(e){s("update:show",e)}}),u=c(),k=e=>{const{nickname:t}=e.detail.value;return u.value?t?void s("update",{avatar:u.value,nickname:t}):uni.$u.toast({title:"请输入昵称"}):uni.$u.toast({title:"请添加头像"})};return(s,r)=>{const d=x,c=v,C=n,S=m(p("avatar-upload"),se),V=m(p("u-form-item"),Y),j=b,$=y,L=w,U=m(p("u-popup"),re);return e(),t(C,null,{default:a((()=>[l(U,{modelValue:_(i),"onUpdate:modelValue":r[2]||(r[2]=e=>h(i)?i.value=e:null),mode:"bottom","border-radius":"14","mask-close-able":!1},{default:a((()=>[l(C,{class:"h-[1000rpx] p-[40rpx]"},{default:a((()=>[l(C,{class:"flex items-center"},{default:a((()=>[l(d,{class:"w-[100rpx] h-[100rpx] rounded",mode:"heightFix",src:o.logo},null,8,["src"]),l(c,{class:"text-3xl ml-5 font-bold"},{default:a((()=>[f(g(o.title),1)])),_:1})])),_:1}),l(C,{class:"mt-5 text-muted"},{default:a((()=>[f(" 建议使用您的微信头像和昵称,以便获得更好的体验 ")])),_:1}),l(C,{class:"mt-[30rpx]"},{default:a((()=>[l(L,{onSubmit:k},{default:a((()=>[l(V,{required:"",label:"头像",labelWidth:120},{default:a((()=>[l(C,{class:"flex-1"},{default:a((()=>[l(S,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=e=>u.value=e)},null,8,["modelValue"])])),_:1})])),_:1}),l(V,{required:"",label:"昵称",labelWidth:120},{default:a((()=>[l(j,{class:"flex-1 h-[60rpx]",name:"nickname",type:"nickname",placeholder:"请输入昵称"})])),_:1}),l(C,{class:"mt-[80rpx]"},{default:a((()=>[l($,{class