hs-admin-ui 16.2.2 → 16.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-DwHk0FdO.cjs");const l=require("./index-9VYqqt7q.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BFH3JULz.cjs");require("vue");const a=require("./index-BDHLcwvS.cjs");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",u.ElLoading.directive),r.use(l.install)}exports.ElMessage=u.HsMessage;exports.ElMessageBox=u.HsMessageBox;exports.ElNotification=u.HsNotification;exports.mathTool=u.mathTool;exports.Utils=a.index;exports.useHsAdminUi=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-F5c7dbLp.cjs");const l=require("./index-Dwgh0M-D.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BTLT3Mnn.cjs");require("vue");const a=require("./index-CeOqkuiu.cjs");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",u.ElLoading.directive),r.use(l.install)}exports.ElMessage=u.HsMessage;exports.ElMessageBox=u.HsMessageBox;exports.ElNotification=u.HsNotification;exports.mathTool=u.mathTool;exports.Utils=a.index;exports.useHsAdminUi=c;
@@ -1,9 +1,9 @@
1
- import "./index-V-voJyGO.js";
2
- import { q as r } from "./index-bobJVEdm.js";
3
- import { aR as u, bo as l, bp as m, bq as E, aP as b } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DJEsU-0Q.js";
4
- import { W as g, bs as x, bt as M, bu as _ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DJEsU-0Q.js";
1
+ import "./index-CAOWEIBf.js";
2
+ import { q as r } from "./index-nGwPsXZ6.js";
3
+ import { aR as u, bo as l, bp as m, bq as E, aP as b } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DASj845V.js";
4
+ import { W as g, bs as x, bt as M, bu as _ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DASj845V.js";
5
5
  import "vue";
6
- import { i as T } from "./index-COFEf6mt.js";
6
+ import { i as T } from "./index-BvhaQtg1.js";
7
7
  function t(a, e) {
8
8
  u.value = e == null ? void 0 : e.NEXT_NAME, l.value = e == null ? void 0 : e.IS_DEV, m.value = e == null ? void 0 : e.currentRoute, E.value = e == null ? void 0 : e.currentRouter, a.directive("loading", b.directive), a.use(r);
9
9
  }
package/dist/h5.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DwHk0FdO.cjs"),e=require("vue"),n=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BFH3JULz.cjs"),S={class:"upload-wrapper"},$={class:"upload-wrapper-inner"},D=e.defineComponent({__name:"Upload",props:{action:{type:String,required:!0},proxy:{type:String,required:!0},headers:{type:Object,default:()=>({})},limit:{type:Number,default:100}},emits:["success"],setup(c,{emit:y}){const p=c,C=y,b=e.shallowRef(),l=e.reactive({loading:!1,preview:!1,index:0,headers:p.headers,fileList:[]}),m=e.computed(()=>l.fileList.map(s=>s.url));e.watch(()=>l.fileList.length,s=>{setTimeout(()=>{const d=document.querySelector(".upload-wrapper .el-upload--picture-card");d&&(d.style.display=s>=p.limit&&s>0?"none":"inline-flex")},100)},{immediate:!0});async function v(){if(n._.isEmpty(p.headers))return n.request({url:`${window.location.origin}/${p.proxy}/pub_token/mobile_attach_push`}).then(s=>{l.headers={Authorization:`Bearer ${s==null?void 0:s.access_token}`}})}function t(s){l.index=l.fileList.findIndex(d=>d.url===s.url),l.preview=!0}async function i(){l.loading=!0,b.value.submit()}function x(s,d,_){l.loading=!1,C("success",{result:s,file:d,files:_})}return(s,d)=>{const _=e.resolveComponent("el-image-viewer"),E=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",$,[e.createVNode(e.unref(u.ElUpload),{ref_key:"uploadRef",ref:b,"file-list":l.fileList,"onUpdate:fileList":d[0]||(d[0]=V=>l.fileList=V),"list-type":"picture-card",accept:"image/*",name:"file",action:c.action,headers:l.headers,limit:c.limit,"auto-upload":!1,"on-preview":t,"before-upload":v,"on-success":x},{default:e.withCtx(()=>[...d[2]||(d[2]=[e.createElementVNode("svg",{width:"34",height:"34",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{x:"45",y:"20",width:"10",height:"60",rx:"2",fill:"#1677ff"}),e.createElementVNode("rect",{x:"20",y:"45",width:"60",height:"10",rx:"2",fill:"#1677ff"})],-1)])]),_:1},8,["file-list","action","headers","limit"])]),l.preview?(e.openBlock(),e.createBlock(_,{key:0,"url-list":m.value,"show-progress":"","initial-index":l.index,onClose:d[1]||(d[1]=V=>l.preview=!1)},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0),e.createVNode(e.unref(n.ElButton),{size:"large",type:"primary",onClick:i},{default:e.withCtx(()=>[...d[3]||(d[3]=[e.createTextVNode("上传",-1)])]),_:1})])),[[E,l.loading]])}}}),L=n._export_sfc$1(D,[["__scopeId","data-v-e6f86e2e"]]),U=[{label:"男",value:"男"},{label:"女",value:"女"}],f={name:{required:!0,message:"请输入姓名",trigger:"blur"},nameLength:{min:2,max:20,message:"姓名长度在2到20个字符",trigger:"blur"},phone:{required:!0,message:"请输入手机号",trigger:"blur"},phonePattern:{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"},idCardPattern:{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"请输入正确的身份证号",trigger:"blur"},agePattern:{pattern:/^(1[0-4][0-9]|[1-9]?[0-9]|150)$/,message:"请输入正确的年龄",trigger:"blur"},captcha:{required:!0,message:"请输入验证码",trigger:"blur"},captchaLength:{len:6,message:"验证码为6位",trigger:"blur"}},g={name:"请输入姓名",phone:"请输入手机号",idCard:"请输入身份证号",age:"请输入年龄",address:"请输入地址",remark:"请输入备注",captcha:"请输入验证码"},w={phone:11,idCard:18,age:3,captcha:6},B={name:[f.name,f.nameLength],phone:[f.phone,f.phonePattern],idCard:[f.idCardPattern],age:[f.agePattern],captcha:[f.captcha,f.captchaLength]},T={class:"member-register-page"},M={class:"page-header"},q={class:"page-subtitle"},F={class:"form-container"},P={class:"form-content"},O={class:"sms-code-wrapper"},R={class:"submit-area"},A=e.defineComponent({__name:"MemberRegister",props:{proxy:{type:String,required:!1}},setup(c){const{countdownText:y,isCountingDown:p,stopCountdown:C,sendSmsCode:b}=E(),l=e.ref(),m=e.ref(!1),v=c,t=e.reactive({name:"",gender:"男",phone:"",idCard:"",age:"",address:"",remark:"",captcha:""}),i=e.reactive({topCompanyId:"",companyId:"",companyName:"",defaultMemberType:""}),x=async()=>{if(!l.value)return!1;try{return await l.value.validate()}catch{return!1}},s=async()=>{if(!await x())return;m.value=!0;const a={vip_name:t.name,sex:t.gender,telephone:t.phone,identity_card:t.idCard,age:t.age,address:t.address,remark:t.remark,valid_code:t.captcha,vip_type:i.defaultMemberType,top_company_id:i.topCompanyId,company_id:i.companyId};try{await n.request$1.post(`${v.proxy}/pub/add_vip_info`,a),n.ElMessageBox.alert("注册成功!","提示",{closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!1,showConfirmButton:!1})}catch{}finally{m.value=!1}},d=async()=>{try{return(await n.request$1.get(`${v.proxy}/pub/get_list_vip_price_set?top_company_id=${i.topCompanyId}`)).data.id}catch{n.ElMessage.error("获取默认会员等级失败")}},_=async()=>{const o=n.getUrlParams();i.topCompanyId=o.top_company_id||"",i.companyId=o.company_id||"",i.companyName=o.company_name||"";const a=await d();i.defaultMemberType=a||""};function E(){const o=e.ref(0),a=e.ref(null),r=60,h=e.ref(!1),N=e.computed(()=>o.value>0?`${o.value}秒后重新发送`:"获取验证码"),k=()=>{o.value=r,h.value=!0,a.value=setInterval(()=>{o.value--,o.value<=0&&I()},1e3)},I=()=>{a.value&&(clearInterval(a.value),a.value=null),o.value=0,h.value=!1};return{countdownText:N,isCountingDown:h,stopCountdown:I,sendSmsCode:async()=>{if(h.value||!l.value)return;if(!await l.value.validateField("phone")){n.ElMessage.warning("请先输入正确的手机号");return}m.value=!0;try{await n.request$1.post(`${v.proxy}/pub/send_sms_vip_valid_code`,{telephone:t.phone,top_company_id:i.topCompanyId,company_id:i.companyId}),n.ElMessage.success("验证码发送成功"),k()}catch{}finally{m.value=!1}}}}function V(){if(t.idCard.length===18){const o=t.idCard.substring(6,14),a=parseInt(o.substring(0,4)),r=parseInt(o.substring(4,6)),h=parseInt(o.substring(6,8)),N=new Date().getFullYear()-a-(new Date().getMonth()+1<r||new Date().getMonth()+1===r&&new Date().getDate()<h?1:0);t.age=N.toString(),t.gender=Number(t.idCard.charAt(16))%2===0?"女":"男"}}return e.onMounted(()=>{_()}),e.onUnmounted(()=>{C()}),(o,a)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("header",M,[a[8]||(a[8]=e.createElementVNode("h1",{class:"page-title"},"会员信息登记",-1)),e.createElementVNode("p",q,[e.createVNode(e.unref(n.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(n.location_default))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(i.companyName),1)])]),e.createElementVNode("main",F,[e.createVNode(e.unref(u.ElScrollbar),{class:"form-scroll"},{default:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(u.ElForm),{ref_key:"formRef",ref:l,model:t,rules:e.unref(B),"label-position":"left","label-width":"70px",class:"member-form"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElFormItem),{label:"姓名",prop:"name"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=r=>t.name=r),placeholder:e.unref(g).name,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"手机号",prop:"phone"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:t.phone,"onUpdate:modelValue":a[1]||(a[1]=r=>t.phone=r),type:"tel",placeholder:e.unref(g).phone,maxlength:e.unref(w).phone,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"身份证号",prop:"idCard"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:t.idCard,"onUpdate:modelValue":a[2]||(a[2]=r=>t.idCard=r),onInput:V,placeholder:e.unref(g).idCard,maxlength:e.unref(w).idCard,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"性别",prop:"gender"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElRadioGroup),{modelValue:t.gender,"onUpdate:modelValue":a[3]||(a[3]=r=>t.gender=r),class:"gender-radio-group"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),r=>(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:r.value,value:r.value,border:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"年龄",prop:"age"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{type:"number",modelValue:t.age,"onUpdate:modelValue":a[4]||(a[4]=r=>t.age=r),placeholder:e.unref(g).age,maxlength:e.unref(w).age,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"地址",prop:"address"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:t.address,"onUpdate:modelValue":a[5]||(a[5]=r=>t.address=r),placeholder:e.unref(g).address,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"备注",prop:"remark"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:t.remark,"onUpdate:modelValue":a[6]||(a[6]=r=>t.remark=r),placeholder:e.unref(g).remark,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"验证码",prop:"captcha"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(n.ElInput),{modelValue:t.captcha,"onUpdate:modelValue":a[7]||(a[7]=r=>t.captcha=r),placeholder:e.unref(g).captcha,maxlength:e.unref(w).captcha,clearable:"",class:"sms-code-input"},null,8,["modelValue","placeholder","maxlength"]),e.createVNode(e.unref(n.ElButton),{type:"primary",disabled:e.unref(p),loading:m.value,class:"sms-code-btn",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)),1)]),_:1},8,["disabled","loading","onClick"])])]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",R,[e.createVNode(e.unref(n.ElButton),{type:"primary",round:"",class:"submit-btn",loading:m.value,onClick:s},{default:e.withCtx(()=>[...a[9]||(a[9]=[e.createTextVNode(" 提交 ",-1)])]),_:1},8,["loading"])])])]),_:1})])]))}}),H=n._export_sfc$1(A,[["__scopeId","data-v-1499b897"]]),j={Upload:L,MemberRegister:H};function z(c){for(const[y,p]of Object.entries(j))c.component(`H${y}`,p)}function G(c){c.directive("loading",n.ElLoading.directive),c.use(z)}exports.useHsAdminUi=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-F5c7dbLp.cjs"),e=require("vue"),r=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BTLT3Mnn.cjs"),S={class:"upload-wrapper"},$={class:"upload-wrapper-inner"},D=e.defineComponent({__name:"Upload",props:{action:{type:String,required:!0},proxy:{type:String,required:!0},headers:{type:Object,default:()=>({})},limit:{type:Number,default:100}},emits:["success"],setup(c,{emit:v}){const p=c,C=v,V=e.shallowRef(),o=e.reactive({loading:!1,preview:!1,index:0,headers:p.headers,fileList:[]}),m=e.computed(()=>o.fileList.map(i=>i.url));e.watch(()=>o.fileList.length,i=>{setTimeout(()=>{const d=document.querySelector(".upload-wrapper .el-upload--picture-card");d&&(d.style.display=i>=p.limit&&i>0?"none":"inline-flex")},100)},{immediate:!0});async function _(){if(r._.isEmpty(p.headers))return r.request({url:`${window.location.origin}/${p.proxy}/pub_token/mobile_attach_push`}).then(i=>{o.headers={Authorization:`Bearer ${i==null?void 0:i.access_token}`}})}function a(i){o.index=o.fileList.findIndex(d=>d.url===i.url),o.preview=!0}async function s(){o.loading=!0,V.value.submit()}function x(i,d,y){o.loading=!1,C("success",{result:i,file:d,files:y})}return(i,d)=>{const y=e.resolveComponent("el-image-viewer"),E=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",$,[e.createVNode(e.unref(u.ElUpload),{ref_key:"uploadRef",ref:V,"file-list":o.fileList,"onUpdate:fileList":d[0]||(d[0]=w=>o.fileList=w),"list-type":"picture-card",accept:"image/*",name:"file",action:c.action,headers:o.headers,limit:c.limit,"auto-upload":!1,"on-preview":a,"before-upload":_,"on-success":x},{default:e.withCtx(()=>[...d[2]||(d[2]=[e.createElementVNode("svg",{width:"34",height:"34",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{x:"45",y:"20",width:"10",height:"60",rx:"2",fill:"#1677ff"}),e.createElementVNode("rect",{x:"20",y:"45",width:"60",height:"10",rx:"2",fill:"#1677ff"})],-1)])]),_:1},8,["file-list","action","headers","limit"])]),o.preview?(e.openBlock(),e.createBlock(y,{key:0,"url-list":m.value,"show-progress":"","initial-index":o.index,onClose:d[1]||(d[1]=w=>o.preview=!1)},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0),e.createVNode(e.unref(r.ElButton),{size:"large",type:"primary",onClick:s},{default:e.withCtx(()=>[...d[3]||(d[3]=[e.createTextVNode("上传",-1)])]),_:1})])),[[E,o.loading]])}}}),L=r._export_sfc$1(D,[["__scopeId","data-v-e6f86e2e"]]),U=[{label:"男",value:"男"},{label:"女",value:"女"}],f={name:{required:!0,message:"请输入姓名",trigger:"blur"},nameLength:{min:2,max:20,message:"姓名长度在2到20个字符",trigger:"blur"},phone:{required:!0,message:"请输入手机号",trigger:"blur"},phonePattern:{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"},idCardPattern:{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"请输入正确的身份证号",trigger:"blur"},agePattern:{pattern:/^(1[0-4][0-9]|[1-9]?[0-9]|150)$/,message:"请输入正确的年龄",trigger:"blur"},captcha:{required:!0,message:"请输入验证码",trigger:"blur"},captchaLength:{len:6,message:"验证码为6位",trigger:"blur"}},g={name:"请输入姓名",phone:"请输入手机号",idCard:"请输入身份证号",age:"请输入年龄",address:"请输入地址",remark:"请输入备注",captcha:"请输入验证码"},b={phone:11,idCard:18,age:3,captcha:6},B={name:[f.name,f.nameLength],phone:[f.phone,f.phonePattern],idCard:[f.idCardPattern],age:[f.agePattern],captcha:[f.captcha,f.captchaLength]},q={class:"member-register-page"},F={class:"page-header"},P={class:"page-subtitle"},T={class:"form-container"},M={class:"form-content"},O={class:"sms-code-wrapper"},R={class:"submit-area"},A=e.defineComponent({__name:"MemberRegister",props:{proxy:{type:String,required:!1}},setup(c){const{countdownText:v,isCountingDown:p,stopCountdown:C,sendSmsCode:V}=E(),o=e.ref(),m=e.ref(!1),_=c,a=e.reactive({name:"",gender:"男",phone:"",idCard:"",age:"",address:"",remark:"",captcha:""}),s=e.reactive({topCompanyId:"",companyId:"",companyName:"",defaultMemberType:"",discount:0}),x=async()=>{if(!o.value)return!1;try{return await o.value.validate()}catch{return!1}},i=async()=>{if(!await x())return;m.value=!0;const t={vip_name:a.name,sex:a.gender,telephone:a.phone,identity_card:a.idCard,age:a.age,address:a.address,remark:a.remark,valid_code:a.captcha,vip_type:s.defaultMemberType,top_company_id:s.topCompanyId,company_id:s.companyId,discount:s.discount};try{await r.request$1.post(`${_.proxy}/pub/add_vip_info`,t),r.ElMessageBox.alert("注册成功!","提示",{closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!1,showConfirmButton:!1})}catch{}finally{m.value=!1}},d=async()=>{try{return(await r.request$1.get(`${_.proxy}/pub/get_list_vip_price_set?top_company_id=${s.topCompanyId}`)).data}catch{r.ElMessage.error("获取默认会员等级失败")}},y=async()=>{const l=r.getUrlParams();s.topCompanyId=l.top_company_id||"",s.companyId=l.company_id||"",s.companyName=l.company_name||"";const t=await d();s.defaultMemberType=(t==null?void 0:t.id)||"",s.discount=(t==null?void 0:t.discount)||0};function E(){const l=e.ref(0),t=e.ref(null),n=60,h=e.ref(!1),N=e.computed(()=>l.value>0?`${l.value}秒后重新发送`:"获取验证码"),k=()=>{l.value=n,h.value=!0,t.value=setInterval(()=>{l.value--,l.value<=0&&I()},1e3)},I=()=>{t.value&&(clearInterval(t.value),t.value=null),l.value=0,h.value=!1};return{countdownText:N,isCountingDown:h,stopCountdown:I,sendSmsCode:async()=>{if(h.value||!o.value)return;if(!await o.value.validateField("phone")){r.ElMessage.warning("请先输入正确的手机号");return}m.value=!0;try{await r.request$1.post(`${_.proxy}/pub/send_sms_vip_valid_code`,{telephone:a.phone,top_company_id:s.topCompanyId,company_id:s.companyId}),r.ElMessage.success("验证码发送成功"),k()}catch{}finally{m.value=!1}}}}function w(){if(a.idCard.length===18){const l=a.idCard.substring(6,14),t=parseInt(l.substring(0,4)),n=parseInt(l.substring(4,6)),h=parseInt(l.substring(6,8)),N=new Date().getFullYear()-t-(new Date().getMonth()+1<n||new Date().getMonth()+1===n&&new Date().getDate()<h?1:0);a.age=N.toString(),a.gender=Number(a.idCard.charAt(16))%2===0?"女":"男"}}return e.onMounted(()=>{y()}),e.onUnmounted(()=>{C()}),(l,t)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",F,[t[8]||(t[8]=e.createElementVNode("h1",{class:"page-title"},"会员信息登记",-1)),e.createElementVNode("p",P,[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.location_default))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(s.companyName),1)])]),e.createElementVNode("main",T,[e.createVNode(e.unref(u.ElScrollbar),{class:"form-scroll"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[e.createVNode(e.unref(u.ElForm),{ref_key:"formRef",ref:o,model:a,rules:e.unref(B),"label-position":"left","label-width":"70px",class:"member-form"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElFormItem),{label:"姓名",prop:"name"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.name,"onUpdate:modelValue":t[0]||(t[0]=n=>a.name=n),placeholder:e.unref(g).name,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"手机号",prop:"phone"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.phone,"onUpdate:modelValue":t[1]||(t[1]=n=>a.phone=n),type:"tel",placeholder:e.unref(g).phone,maxlength:e.unref(b).phone,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"身份证号",prop:"idCard"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.idCard,"onUpdate:modelValue":t[2]||(t[2]=n=>a.idCard=n),onInput:w,placeholder:e.unref(g).idCard,maxlength:e.unref(b).idCard,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"性别",prop:"gender"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElRadioGroup),{modelValue:a.gender,"onUpdate:modelValue":t[3]||(t[3]=n=>a.gender=n),class:"gender-radio-group"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:n.value,value:n.value,border:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"年龄",prop:"age"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{type:"number",modelValue:a.age,"onUpdate:modelValue":t[4]||(t[4]=n=>a.age=n),placeholder:e.unref(g).age,maxlength:e.unref(b).age,clearable:""},null,8,["modelValue","placeholder","maxlength"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"地址",prop:"address"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.address,"onUpdate:modelValue":t[5]||(t[5]=n=>a.address=n),placeholder:e.unref(g).address,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"备注",prop:"remark"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.remark,"onUpdate:modelValue":t[6]||(t[6]=n=>a.remark=n),placeholder:e.unref(g).remark,clearable:""},null,8,["modelValue","placeholder"])]),_:1}),e.createVNode(e.unref(u.ElFormItem),{label:"验证码",prop:"captcha"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(r.ElInput),{modelValue:a.captcha,"onUpdate:modelValue":t[7]||(t[7]=n=>a.captcha=n),placeholder:e.unref(g).captcha,maxlength:e.unref(b).captcha,clearable:"",class:"sms-code-input"},null,8,["modelValue","placeholder","maxlength"]),e.createVNode(e.unref(r.ElButton),{type:"primary",disabled:e.unref(p),loading:m.value,class:"sms-code-btn",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)),1)]),_:1},8,["disabled","loading","onClick"])])]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",R,[e.createVNode(e.unref(r.ElButton),{type:"primary",round:"",class:"submit-btn",loading:m.value,onClick:i},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" 提交 ",-1)])]),_:1},8,["loading"])])])]),_:1})])]))}}),H=r._export_sfc$1(A,[["__scopeId","data-v-992af5c2"]]),j={Upload:L,MemberRegister:H};function z(c){for(const[v,p]of Object.entries(j))c.component(`H${v}`,p)}function G(c){c.directive("loading",r.ElLoading.directive),c.use(z)}exports.useHsAdminUi=G;
package/dist/h5.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { h as z, g as G, E as Y, a as f, f as K, d as Q } from "./index-V-voJyGO.js";
2
- import { defineComponent as B, shallowRef as W, reactive as T, computed as F, watch as X, resolveComponent as J, resolveDirective as Z, withDirectives as ee, createElementBlock as R, openBlock as V, createElementVNode as p, createBlock as A, createCommentVNode as ae, createVNode as n, unref as e, withCtx as d, createTextVNode as L, ref as x, onMounted as te, onUnmounted as le, toDisplayString as N, Fragment as ne, renderList as oe } from "vue";
3
- import { bx as O, H as re, Q as se, a3 as H, E as de, bD as ie, aN as y, bE as M, aj as ue, K as pe, R as P, aP as ce } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DJEsU-0Q.js";
1
+ import { h as z, g as G, E as Y, a as f, f as K, d as Q } from "./index-CAOWEIBf.js";
2
+ import { defineComponent as B, shallowRef as W, reactive as O, computed as F, watch as X, resolveComponent as J, resolveDirective as Z, withDirectives as ee, createElementBlock as M, openBlock as V, createElementVNode as p, createBlock as A, createCommentVNode as ae, createVNode as n, unref as e, withCtx as d, createTextVNode as L, ref as x, onMounted as te, onUnmounted as le, toDisplayString as N, Fragment as ne, renderList as oe } from "vue";
3
+ import { bx as T, H as re, Q as se, a3 as H, E as de, bD as ie, aN as v, bE as P, aj as ue, K as pe, R, aP as ce } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DASj845V.js";
4
4
  const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" }, fe = /* @__PURE__ */ B({
5
5
  __name: "Upload",
6
6
  props: {
@@ -23,19 +23,19 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
23
23
  },
24
24
  emits: ["success"],
25
25
  setup(c, { emit: _ }) {
26
- const m = c, S = _, I = W(), o = T({
26
+ const m = c, S = _, I = W(), o = O({
27
27
  loading: !1,
28
28
  preview: !1,
29
29
  index: 0,
30
30
  headers: m.headers,
31
31
  fileList: []
32
- }), g = F(() => o.fileList.map((i) => i.url));
32
+ }), g = F(() => o.fileList.map((u) => u.url));
33
33
  X(
34
34
  () => o.fileList.length,
35
- (i) => {
35
+ (u) => {
36
36
  setTimeout(() => {
37
37
  const s = document.querySelector(".upload-wrapper .el-upload--picture-card");
38
- s && (s.style.display = i >= m.limit && i > 0 ? "none" : "inline-flex");
38
+ s && (s.style.display = u >= m.limit && u > 0 ? "none" : "inline-flex");
39
39
  }, 100);
40
40
  },
41
41
  {
@@ -46,24 +46,24 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
46
46
  if (re.isEmpty(m.headers))
47
47
  return se({
48
48
  url: `${window.location.origin}/${m.proxy}/pub_token/mobile_attach_push`
49
- }).then((i) => {
49
+ }).then((u) => {
50
50
  o.headers = {
51
- Authorization: `Bearer ${i == null ? void 0 : i.access_token}`
51
+ Authorization: `Bearer ${u == null ? void 0 : u.access_token}`
52
52
  };
53
53
  });
54
54
  }
55
- function a(i) {
56
- o.index = o.fileList.findIndex((s) => s.url === i.url), o.preview = !0;
55
+ function t(u) {
56
+ o.index = o.fileList.findIndex((s) => s.url === u.url), o.preview = !0;
57
57
  }
58
- async function u() {
58
+ async function i() {
59
59
  o.loading = !0, I.value.submit();
60
60
  }
61
- function D(i, s, C) {
62
- o.loading = !1, S("success", { result: i, file: s, files: C });
61
+ function D(u, s, C) {
62
+ o.loading = !1, S("success", { result: u, file: s, files: C });
63
63
  }
64
- return (i, s) => {
64
+ return (u, s) => {
65
65
  const C = J("el-image-viewer"), U = Z("loading");
66
- return ee((V(), R("div", me, [
66
+ return ee((V(), M("div", me, [
67
67
  p("div", ge, [
68
68
  n(e(z), {
69
69
  ref_key: "uploadRef",
@@ -77,7 +77,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
77
77
  headers: o.headers,
78
78
  limit: c.limit,
79
79
  "auto-upload": !1,
80
- "on-preview": a,
80
+ "on-preview": t,
81
81
  "before-upload": w,
82
82
  "on-success": D
83
83
  }, {
@@ -116,10 +116,10 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
116
116
  "initial-index": o.index,
117
117
  onClose: s[1] || (s[1] = (E) => o.preview = !1)
118
118
  }, null, 8, ["url-list", "initial-index"])) : ae("", !0),
119
- n(e(O), {
119
+ n(e(T), {
120
120
  size: "large",
121
121
  type: "primary",
122
- onClick: u
122
+ onClick: i
123
123
  }, {
124
124
  default: d(() => [...s[3] || (s[3] = [
125
125
  L("上传", -1)
@@ -131,7 +131,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
131
131
  ]);
132
132
  };
133
133
  }
134
- }), he = /* @__PURE__ */ H(fe, [["__scopeId", "data-v-e6f86e2e"]]), ye = [
134
+ }), he = /* @__PURE__ */ H(fe, [["__scopeId", "data-v-e6f86e2e"]]), ve = [
135
135
  { label: "男", value: "男" },
136
136
  { label: "女", value: "女" }
137
137
  ], h = {
@@ -176,7 +176,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
176
176
  message: "验证码为6位",
177
177
  trigger: "blur"
178
178
  }
179
- }, b = {
179
+ }, y = {
180
180
  name: "请输入姓名",
181
181
  phone: "请输入手机号",
182
182
  idCard: "请输入身份证号",
@@ -189,13 +189,13 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
189
189
  idCard: 18,
190
190
  age: 3,
191
191
  captcha: 6
192
- }, be = {
192
+ }, ye = {
193
193
  name: [h.name, h.nameLength],
194
194
  phone: [h.phone, h.phonePattern],
195
195
  idCard: [h.idCardPattern],
196
196
  age: [h.agePattern],
197
197
  captcha: [h.captcha, h.captchaLength]
198
- }, ve = { class: "member-register-page" }, _e = { class: "page-header" }, we = { class: "page-subtitle" }, Ce = { class: "form-container" }, xe = { class: "form-content" }, Ve = { class: "sms-code-wrapper" }, Ie = { class: "submit-area" }, Ee = /* @__PURE__ */ B({
198
+ }, be = { class: "member-register-page" }, _e = { class: "page-header" }, we = { class: "page-subtitle" }, Ce = { class: "form-container" }, xe = { class: "form-content" }, Ve = { class: "sms-code-wrapper" }, Ie = { class: "submit-area" }, Ee = /* @__PURE__ */ B({
199
199
  __name: "MemberRegister",
200
200
  props: {
201
201
  proxy: {
@@ -204,7 +204,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
204
204
  }
205
205
  },
206
206
  setup(c) {
207
- const { countdownText: _, isCountingDown: m, stopCountdown: S, sendSmsCode: I } = U(), o = x(), g = x(!1), w = c, a = T({
207
+ const { countdownText: _, isCountingDown: m, stopCountdown: S, sendSmsCode: I } = U(), o = x(), g = x(!1), w = c, t = O({
208
208
  name: "",
209
209
  gender: "男",
210
210
  phone: "",
@@ -213,11 +213,12 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
213
213
  address: "",
214
214
  remark: "",
215
215
  captcha: ""
216
- }), u = T({
216
+ }), i = O({
217
217
  topCompanyId: "",
218
218
  companyId: "",
219
219
  companyName: "",
220
- defaultMemberType: ""
220
+ defaultMemberType: "",
221
+ discount: 0
221
222
  }), D = async () => {
222
223
  if (!o.value) return !1;
223
224
  try {
@@ -225,24 +226,25 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
225
226
  } catch {
226
227
  return !1;
227
228
  }
228
- }, i = async () => {
229
+ }, u = async () => {
229
230
  if (!await D()) return;
230
231
  g.value = !0;
231
- const t = {
232
- vip_name: a.name,
233
- sex: a.gender,
234
- telephone: a.phone,
235
- identity_card: a.idCard,
236
- age: a.age,
237
- address: a.address,
238
- remark: a.remark,
239
- valid_code: a.captcha,
240
- vip_type: u.defaultMemberType,
241
- top_company_id: u.topCompanyId,
242
- company_id: u.companyId
232
+ const a = {
233
+ vip_name: t.name,
234
+ sex: t.gender,
235
+ telephone: t.phone,
236
+ identity_card: t.idCard,
237
+ age: t.age,
238
+ address: t.address,
239
+ remark: t.remark,
240
+ valid_code: t.captcha,
241
+ vip_type: i.defaultMemberType,
242
+ top_company_id: i.topCompanyId,
243
+ company_id: i.companyId,
244
+ discount: i.discount
243
245
  };
244
246
  try {
245
- await M.post(`${w.proxy}/pub/add_vip_info`, t), ue.alert("注册成功!", "提示", {
247
+ await P.post(`${w.proxy}/pub/add_vip_info`, a), ue.alert("注册成功!", "提示", {
246
248
  closeOnClickModal: !1,
247
249
  // 禁止点击遮罩关闭
248
250
  closeOnPressEscape: !1,
@@ -258,41 +260,41 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
258
260
  }
259
261
  }, s = async () => {
260
262
  try {
261
- return (await M.get(`${w.proxy}/pub/get_list_vip_price_set?top_company_id=${u.topCompanyId}`)).data.id;
263
+ return (await P.get(`${w.proxy}/pub/get_list_vip_price_set?top_company_id=${i.topCompanyId}`)).data;
262
264
  } catch {
263
- P.error("获取默认会员等级失败");
265
+ R.error("获取默认会员等级失败");
264
266
  }
265
267
  }, C = async () => {
266
268
  const r = pe();
267
- u.topCompanyId = r.top_company_id || "", u.companyId = r.company_id || "", u.companyName = r.company_name || "";
268
- const t = await s();
269
- u.defaultMemberType = t || "";
269
+ i.topCompanyId = r.top_company_id || "", i.companyId = r.company_id || "", i.companyName = r.company_name || "";
270
+ const a = await s();
271
+ i.defaultMemberType = (a == null ? void 0 : a.id) || "", i.discount = (a == null ? void 0 : a.discount) || 0;
270
272
  };
271
273
  function U() {
272
- const r = x(0), t = x(null), l = 60, v = x(!1), $ = F(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), j = () => {
273
- r.value = l, v.value = !0, t.value = setInterval(() => {
274
+ const r = x(0), a = x(null), l = 60, b = x(!1), $ = F(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), j = () => {
275
+ r.value = l, b.value = !0, a.value = setInterval(() => {
274
276
  r.value--, r.value <= 0 && q();
275
277
  }, 1e3);
276
278
  }, q = () => {
277
- t.value && (clearInterval(t.value), t.value = null), r.value = 0, v.value = !1;
279
+ a.value && (clearInterval(a.value), a.value = null), r.value = 0, b.value = !1;
278
280
  };
279
281
  return {
280
282
  countdownText: $,
281
- isCountingDown: v,
283
+ isCountingDown: b,
282
284
  stopCountdown: q,
283
285
  sendSmsCode: async () => {
284
- if (v.value || !o.value) return;
286
+ if (b.value || !o.value) return;
285
287
  if (!await o.value.validateField("phone")) {
286
- P.warning("请先输入正确的手机号");
288
+ R.warning("请先输入正确的手机号");
287
289
  return;
288
290
  }
289
291
  g.value = !0;
290
292
  try {
291
- await M.post(`${w.proxy}/pub/send_sms_vip_valid_code`, {
292
- telephone: a.phone,
293
- top_company_id: u.topCompanyId,
294
- company_id: u.companyId
295
- }), P.success("验证码发送成功"), j();
293
+ await P.post(`${w.proxy}/pub/send_sms_vip_valid_code`, {
294
+ telephone: t.phone,
295
+ top_company_id: i.topCompanyId,
296
+ company_id: i.companyId
297
+ }), R.success("验证码发送成功"), j();
296
298
  } catch {
297
299
  } finally {
298
300
  g.value = !1;
@@ -301,18 +303,18 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
301
303
  };
302
304
  }
303
305
  function E() {
304
- if (a.idCard.length === 18) {
305
- const r = a.idCard.substring(6, 14), t = parseInt(r.substring(0, 4)), l = parseInt(r.substring(4, 6)), v = parseInt(r.substring(6, 8)), $ = (/* @__PURE__ */ new Date()).getFullYear() - t - ((/* @__PURE__ */ new Date()).getMonth() + 1 < l || (/* @__PURE__ */ new Date()).getMonth() + 1 === l && (/* @__PURE__ */ new Date()).getDate() < v ? 1 : 0);
306
- a.age = $.toString(), a.gender = Number(a.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
306
+ if (t.idCard.length === 18) {
307
+ const r = t.idCard.substring(6, 14), a = parseInt(r.substring(0, 4)), l = parseInt(r.substring(4, 6)), b = parseInt(r.substring(6, 8)), $ = (/* @__PURE__ */ new Date()).getFullYear() - a - ((/* @__PURE__ */ new Date()).getMonth() + 1 < l || (/* @__PURE__ */ new Date()).getMonth() + 1 === l && (/* @__PURE__ */ new Date()).getDate() < b ? 1 : 0);
308
+ t.age = $.toString(), t.gender = Number(t.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
307
309
  }
308
310
  }
309
311
  return te(() => {
310
312
  C();
311
313
  }), le(() => {
312
314
  S();
313
- }), (r, t) => (V(), R("div", ve, [
315
+ }), (r, a) => (V(), M("div", be, [
314
316
  p("header", _e, [
315
- t[8] || (t[8] = p("h1", { class: "page-title" }, "会员信息登记", -1)),
317
+ a[8] || (a[8] = p("h1", { class: "page-title" }, "会员信息登记", -1)),
316
318
  p("p", we, [
317
319
  n(e(de), null, {
318
320
  default: d(() => [
@@ -320,7 +322,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
320
322
  ]),
321
323
  _: 1
322
324
  }),
323
- p("span", null, N(u.companyName), 1)
325
+ p("span", null, N(i.companyName), 1)
324
326
  ])
325
327
  ]),
326
328
  p("main", Ce, [
@@ -330,8 +332,8 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
330
332
  n(e(Y), {
331
333
  ref_key: "formRef",
332
334
  ref: o,
333
- model: a,
334
- rules: e(be),
335
+ model: t,
336
+ rules: e(ye),
335
337
  "label-position": "left",
336
338
  "label-width": "70px",
337
339
  class: "member-form"
@@ -342,10 +344,10 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
342
344
  prop: "name"
343
345
  }, {
344
346
  default: d(() => [
345
- n(e(y), {
346
- modelValue: a.name,
347
- "onUpdate:modelValue": t[0] || (t[0] = (l) => a.name = l),
348
- placeholder: e(b).name,
347
+ n(e(v), {
348
+ modelValue: t.name,
349
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => t.name = l),
350
+ placeholder: e(y).name,
349
351
  clearable: ""
350
352
  }, null, 8, ["modelValue", "placeholder"])
351
353
  ]),
@@ -356,11 +358,11 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
356
358
  prop: "phone"
357
359
  }, {
358
360
  default: d(() => [
359
- n(e(y), {
360
- modelValue: a.phone,
361
- "onUpdate:modelValue": t[1] || (t[1] = (l) => a.phone = l),
361
+ n(e(v), {
362
+ modelValue: t.phone,
363
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => t.phone = l),
362
364
  type: "tel",
363
- placeholder: e(b).phone,
365
+ placeholder: e(y).phone,
364
366
  maxlength: e(k).phone,
365
367
  clearable: ""
366
368
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
@@ -372,11 +374,11 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
372
374
  prop: "idCard"
373
375
  }, {
374
376
  default: d(() => [
375
- n(e(y), {
376
- modelValue: a.idCard,
377
- "onUpdate:modelValue": t[2] || (t[2] = (l) => a.idCard = l),
377
+ n(e(v), {
378
+ modelValue: t.idCard,
379
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => t.idCard = l),
378
380
  onInput: E,
379
- placeholder: e(b).idCard,
381
+ placeholder: e(y).idCard,
380
382
  maxlength: e(k).idCard,
381
383
  clearable: ""
382
384
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
@@ -389,12 +391,12 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
389
391
  }, {
390
392
  default: d(() => [
391
393
  n(e(K), {
392
- modelValue: a.gender,
393
- "onUpdate:modelValue": t[3] || (t[3] = (l) => a.gender = l),
394
+ modelValue: t.gender,
395
+ "onUpdate:modelValue": a[3] || (a[3] = (l) => t.gender = l),
394
396
  class: "gender-radio-group"
395
397
  }, {
396
398
  default: d(() => [
397
- (V(!0), R(ne, null, oe(e(ye), (l) => (V(), A(e(Q), {
399
+ (V(!0), M(ne, null, oe(e(ve), (l) => (V(), A(e(Q), {
398
400
  key: l.value,
399
401
  value: l.value,
400
402
  border: ""
@@ -415,11 +417,11 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
415
417
  prop: "age"
416
418
  }, {
417
419
  default: d(() => [
418
- n(e(y), {
420
+ n(e(v), {
419
421
  type: "number",
420
- modelValue: a.age,
421
- "onUpdate:modelValue": t[4] || (t[4] = (l) => a.age = l),
422
- placeholder: e(b).age,
422
+ modelValue: t.age,
423
+ "onUpdate:modelValue": a[4] || (a[4] = (l) => t.age = l),
424
+ placeholder: e(y).age,
423
425
  maxlength: e(k).age,
424
426
  clearable: ""
425
427
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
@@ -431,10 +433,10 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
431
433
  prop: "address"
432
434
  }, {
433
435
  default: d(() => [
434
- n(e(y), {
435
- modelValue: a.address,
436
- "onUpdate:modelValue": t[5] || (t[5] = (l) => a.address = l),
437
- placeholder: e(b).address,
436
+ n(e(v), {
437
+ modelValue: t.address,
438
+ "onUpdate:modelValue": a[5] || (a[5] = (l) => t.address = l),
439
+ placeholder: e(y).address,
438
440
  clearable: ""
439
441
  }, null, 8, ["modelValue", "placeholder"])
440
442
  ]),
@@ -445,10 +447,10 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
445
447
  prop: "remark"
446
448
  }, {
447
449
  default: d(() => [
448
- n(e(y), {
449
- modelValue: a.remark,
450
- "onUpdate:modelValue": t[6] || (t[6] = (l) => a.remark = l),
451
- placeholder: e(b).remark,
450
+ n(e(v), {
451
+ modelValue: t.remark,
452
+ "onUpdate:modelValue": a[6] || (a[6] = (l) => t.remark = l),
453
+ placeholder: e(y).remark,
452
454
  clearable: ""
453
455
  }, null, 8, ["modelValue", "placeholder"])
454
456
  ]),
@@ -460,15 +462,15 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
460
462
  }, {
461
463
  default: d(() => [
462
464
  p("div", Ve, [
463
- n(e(y), {
464
- modelValue: a.captcha,
465
- "onUpdate:modelValue": t[7] || (t[7] = (l) => a.captcha = l),
466
- placeholder: e(b).captcha,
465
+ n(e(v), {
466
+ modelValue: t.captcha,
467
+ "onUpdate:modelValue": a[7] || (a[7] = (l) => t.captcha = l),
468
+ placeholder: e(y).captcha,
467
469
  maxlength: e(k).captcha,
468
470
  clearable: "",
469
471
  class: "sms-code-input"
470
472
  }, null, 8, ["modelValue", "placeholder", "maxlength"]),
471
- n(e(O), {
473
+ n(e(T), {
472
474
  type: "primary",
473
475
  disabled: e(m),
474
476
  loading: g.value,
@@ -488,14 +490,14 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
488
490
  _: 1
489
491
  }, 8, ["model", "rules"]),
490
492
  p("div", Ie, [
491
- n(e(O), {
493
+ n(e(T), {
492
494
  type: "primary",
493
495
  round: "",
494
496
  class: "submit-btn",
495
497
  loading: g.value,
496
- onClick: i
498
+ onClick: u
497
499
  }, {
498
- default: d(() => [...t[9] || (t[9] = [
500
+ default: d(() => [...a[9] || (a[9] = [
499
501
  L(" 提交 ", -1)
500
502
  ])]),
501
503
  _: 1
@@ -508,7 +510,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
508
510
  ])
509
511
  ]));
510
512
  }
511
- }), ke = /* @__PURE__ */ H(Ee, [["__scopeId", "data-v-1499b897"]]), Le = {
513
+ }), ke = /* @__PURE__ */ H(Ee, [["__scopeId", "data-v-992af5c2"]]), Le = {
512
514
  Upload: he,
513
515
  MemberRegister: ke
514
516
  };
@@ -516,9 +518,9 @@ function Se(c) {
516
518
  for (const [_, m] of Object.entries(Le))
517
519
  c.component(`H${_}`, m);
518
520
  }
519
- function Te(c) {
521
+ function Oe(c) {
520
522
  c.directive("loading", ce.directive), c.use(Se);
521
523
  }
522
524
  export {
523
- Te as useHsAdminUi
525
+ Oe as useHsAdminUi
524
526
  };
@@ -1,4 +1,4 @@
1
- import { R as v, X as F, H as h, av as P, J as L, ee as U, Q as A, ef as ne, eg as D, eh as b, aa as R, T as le, bC as re, ap as oe, ae as C, aj as se, bp as ie, bq as ue, ei as ce, W as de, bs as fe, bt as ge, bo as me, ej as pe, aR as ye, aQ as be, ek as he, el as ve, em as _e, en as xe, eo as we, ep as Ce, eq as De, er as Ee, es as Ae, am as Se, Z as Ne, L as Te, et as Be, eu as Fe, a4 as Pe, ev as Me, ew as je, ex as Ie, ey as Le, ez as Re, K as Oe, eA as Ye, eB as $e, eC as ke, eD as Ke, eE as Ue, eF as He, eG as qe, eH as We, bu as Je, eI as ze, eJ as Qe, ac as Ze, eK as Xe, eL as Ge, eM as Ve, eN as et, eO as tt, V as at, al as nt, S as lt, eP as rt, eQ as ot, an as st, eR as it, eS as ut, at as ct, eT as dt, eU as ft, eV as gt, eW as mt, eX as pt, eY as yt, eZ as bt, e_ as ht, e$ as vt, f0 as _t, f1 as xt, f2 as wt, f3 as Ct, f4 as Dt, f5 as Et, f6 as At, f7 as St, f8 as Nt, f9 as Tt, fa as Bt, fb as Ft, fc as Pt, fd as Mt, fe as jt, ff as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DJEsU-0Q.js";
1
+ import { R as v, X as F, H as h, av as P, J as L, ee as U, Q as A, ef as ne, eg as D, eh as b, aa as R, T as le, bC as re, ap as oe, ae as C, aj as se, bp as ie, bq as ue, ei as ce, W as de, bs as fe, bt as ge, bo as me, ej as pe, aR as ye, aQ as be, ek as he, el as ve, em as _e, en as xe, eo as we, ep as Ce, eq as De, er as Ee, es as Ae, am as Se, Z as Ne, L as Te, et as Be, eu as Fe, a4 as Pe, ev as Me, ew as je, ex as Ie, ey as Le, ez as Re, K as Oe, eA as Ye, eB as $e, eC as ke, eD as Ke, eE as Ue, eF as He, eG as qe, eH as We, bu as Je, eI as ze, eJ as Qe, ac as Ze, eK as Xe, eL as Ge, eM as Ve, eN as et, eO as tt, V as at, al as nt, S as lt, eP as rt, eQ as ot, an as st, eR as it, eS as ut, at as ct, eT as dt, eU as ft, eV as gt, eW as mt, eX as pt, eY as yt, eZ as bt, e_ as ht, e$ as vt, f0 as _t, f1 as xt, f2 as wt, f3 as Ct, f4 as Dt, f5 as Et, f6 as At, f7 as St, f8 as Nt, f9 as Tt, fa as Bt, fb as Ft, fc as Pt, fd as Mt, fe as jt, ff as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DASj845V.js";
2
2
  import { ref as Lt, onBeforeUnmount as Rt, nextTick as Ot } from "vue";
3
3
  function Yt(t, e) {
4
4
  const l = M(t), a = M(e);
@@ -1,5 +1,5 @@
1
1
  import { ref as C, computed as E, defineComponent as q, watch as ue, provide as je, reactive as Ye, toRefs as Tt, createElementBlock as I, openBlock as P, normalizeClass as T, unref as o, renderSlot as M, inject as ce, onMounted as Xe, onBeforeUnmount as Je, onUpdated as Cr, createVNode as H, Fragment as At, nextTick as _e, useSlots as xn, createElementVNode as k, withCtx as D, createBlock as J, createCommentVNode as B, resolveDynamicComponent as Ot, normalizeStyle as Q, createTextVNode as Pt, toDisplayString as de, TransitionGroup as xr, toRef as ot, Transition as qn, withDirectives as Ft, vShow as Bn, onActivated as In, withModifiers as ie, isRef as qr, vModelRadio as Br, renderList as Nn, withKeys as Ir, shallowRef as lt, createSlots as Kt, mergeProps as Yt } from "vue";
2
- import { dY as Ze, bT as ye, bG as Rt, bU as Mn, dZ as Nr, d_ as Mr, bW as kn, bM as Re, bN as Lt, d$ as Dn, bV as Un, bK as zn, bS as Se, e0 as jt, e1 as Ue, e2 as kr, e3 as Dr, e4 as Te, e5 as ze, bL as Wn, v as Ct, e as me, c1 as We, b as Y, d as R, c as Ur, cf as oe, _ as te, cG as xt, u as Z, dB as qt, o as Qe, cl as ut, t as Ce, A as zr, cp as Wr, e6 as Vn, f as Ve, dJ as nt, w as xe, s as Bt, k as ft, l as Gn, a as ve, cj as Vr, z as Hn, c7 as Kn, cr as It, cC as Gr, cN as Xt, ct as qe, cP as Yn, cE as Xn, cO as Jn, dE as Zn, e7 as Hr, cD as Qn, cR as Kr, cW as Yr, E as pe, ci as Xr, ce as K, B as ct, h as ea, e8 as ta, dg as ra, e9 as na, ea as Jt, eb as aa, dP as sa } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DJEsU-0Q.js";
2
+ import { dY as Ze, bT as ye, bG as Rt, bU as Mn, dZ as Nr, d_ as Mr, bW as kn, bM as Re, bN as Lt, d$ as Dn, bV as Un, bK as zn, bS as Se, e0 as jt, e1 as Ue, e2 as kr, e3 as Dr, e4 as Te, e5 as ze, bL as Wn, v as Ct, e as me, c1 as We, b as Y, d as R, c as Ur, cf as oe, _ as te, cG as xt, u as Z, dB as qt, o as Qe, cl as ut, t as Ce, A as zr, cp as Wr, e6 as Vn, f as Ve, dJ as nt, w as xe, s as Bt, k as ft, l as Gn, a as ve, cj as Vr, z as Hn, c7 as Kn, cr as It, cC as Gr, cN as Xt, ct as qe, cP as Yn, cE as Xn, cO as Jn, dE as Zn, e7 as Hr, cD as Qn, cR as Kr, cW as Yr, E as pe, ci as Xr, ce as K, B as ct, h as ea, e8 as ta, dg as ra, e9 as na, ea as Jt, eb as aa, dP as sa } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DASj845V.js";
3
3
  var dt = Ze(ye, "WeakMap"), Zt = Object.create, ia = /* @__PURE__ */ function() {
4
4
  function t() {
5
5
  }