build:打板

This commit is contained in:
lihaoyuan 2025-12-27 11:09:06 +08:00
parent 64e9394234
commit 0e739f4948
17 changed files with 16 additions and 16 deletions

2
dist/index.html vendored
View File

@ -7,7 +7,7 @@
<meta name="description" content="小发同城官网是小发电商官方商家入驻平台的登录入口,提供了一站式的商家开店服务,在这里,商家可以轻松地注册账号、创建店铺、处理订单等。小发官网致力于为广大商家提供高效便捷的电商运营解决方案,助力商家实现商业成功,和小发合作,一起更好。"/>
<meta name="keywords" content="小发同城电商,小发电商官网,小发同城超市好货,小发线上电商,小发线上超市,小发同城电商,小发本地团购,小发本地商家,小发社区好物,小发商家精选,小发电商招商,小发电商入驻,小发供应商,小发代理商,小发好货,小发好货官网。"/>
<title>小发同城官网 - 小发旗下本地sass电商品牌,品类多,价格低。精选好货,省心省钱!</title>
<script type="module" crossorigin src="/static/js/index-DRVPVPJi.js"></script>
<script type="module" crossorigin src="/static/js/index-FlRaiNYG.js"></script>
<link rel="modulepreload" crossorigin href="/static/js/element-plus-DZJYzj-x.js">
<link rel="stylesheet" crossorigin href="/static/css/element-plus-BP92TfqM.css">
<link rel="stylesheet" crossorigin href="/static/css/index-DQoPyJlc.css">

1
dist/static/css/WxJump-CCWgYDH3.css vendored Normal file
View File

@ -0,0 +1 @@
.wrapper[data-v-886718d0]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;font-size:16px;margin:0}.btn[data-v-886718d0]{margin-top:30px;padding:12px 28px;background:#07c160;color:#fff;border:none;border-radius:4px;font-size:16px;cursor:pointer}.btn[data-v-886718d0]:hover{background:#06b058}.text-container[data-v-886718d0]{display:flex;align-items:center;justify-content:center;width:100%;margin-bottom:20px}.desc-text[data-v-886718d0]{font-size:30px;font-size:clamp(20px,5vw,30px);text-align:center;margin:0;line-height:1.5}@media (max-width: 480px){.desc-text[data-v-886718d0]{padding:0 10px}}

View File

@ -1 +0,0 @@
.wrapper[data-v-40876dea]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;font-size:16px;margin:0}.btn[data-v-40876dea]{margin-top:30px;padding:12px 28px;background:#07c160;color:#fff;border:none;border-radius:4px;font-size:16px;cursor:pointer}.btn[data-v-40876dea]:hover{background:#06b058}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{j as f,a as b,r as v,G as V,I as d,B as t,y as o,$ as k,J as x,v as B,a4 as E,a5 as y,a8 as w,N as F,u as I,a9 as N,M as C}from"./element-plus-DZJYzj-x.js";import{u as U}from"./upload-CSCKPCRl.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./http-DQojYXGg.js";import"./index-DRVPVPJi.js";const j={class:"feedback-container"},R={class:"main"},$={class:"submit"},h=f({__name:"FeedBack",setup(q){const l=b({describe:"",img:"",contact:""}),c=v(),u=({file:r})=>{U(r,{}).then(a=>{console.log(a)}).catch(a=>{console.error(a)})};return(r,e)=>{const a=y,n=E,i=F,m=w,p=k,_=x;return B(),V("div",j,[d("div",R,[e[4]||(e[4]=d("div",{class:"title"}," 意见反馈 ",-1)),t(p,{model:l,"label-width":"150px"},{default:o(()=>[t(n,{label:"描述问题"},{default:o(()=>[t(a,{modelValue:l.describe,"onUpdate:modelValue":e[0]||(e[0]=s=>l.describe=s),rows:6,type:"textarea",style:{width:"95%"}},null,8,["modelValue"])]),_:1}),t(n,{label:"上传图片"},{default:o(()=>[t(m,{ref_key:"uploadRef",ref:c,multiple:"",limit:3,"list-type":"picture-card","http-request":u,"auto-upload":!1},{default:o(()=>[t(i,{class:"avatar-uploader-icon"},{default:o(()=>[t(I(N))]),_:1})]),_:1},512)]),_:1}),t(n,{label:"您的联系方式"},{default:o(()=>[t(a,{modelValue:l.contact,"onUpdate:modelValue":e[1]||(e[1]=s=>l.contact=s),style:{width:"95%"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),d("div",$,[t(_,{color:"#f34d2c",plain:"",onClick:e[2]||(e[2]=s=>c.value.submit())},{default:o(()=>e[3]||(e[3]=[C("提交反馈")])),_:1})])])])}}}),T=g(h,[["__scopeId","data-v-7c425f8e"]]);export{T as default};
import{j as f,a as b,r as v,G as V,I as d,B as t,y as o,$ as k,J as x,v as B,a4 as E,a5 as y,a8 as w,N as F,u as I,a9 as N,M as C}from"./element-plus-DZJYzj-x.js";import{u as U}from"./upload-DhK8kuAS.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./http-CsN80ifF.js";import"./index-FlRaiNYG.js";const j={class:"feedback-container"},R={class:"main"},$={class:"submit"},h=f({__name:"FeedBack",setup(q){const l=b({describe:"",img:"",contact:""}),c=v(),u=({file:r})=>{U(r,{}).then(a=>{console.log(a)}).catch(a=>{console.error(a)})};return(r,e)=>{const a=y,n=E,i=F,m=w,p=k,_=x;return B(),V("div",j,[d("div",R,[e[4]||(e[4]=d("div",{class:"title"}," 意见反馈 ",-1)),t(p,{model:l,"label-width":"150px"},{default:o(()=>[t(n,{label:"描述问题"},{default:o(()=>[t(a,{modelValue:l.describe,"onUpdate:modelValue":e[0]||(e[0]=s=>l.describe=s),rows:6,type:"textarea",style:{width:"95%"}},null,8,["modelValue"])]),_:1}),t(n,{label:"上传图片"},{default:o(()=>[t(m,{ref_key:"uploadRef",ref:c,multiple:"",limit:3,"list-type":"picture-card","http-request":u,"auto-upload":!1},{default:o(()=>[t(i,{class:"avatar-uploader-icon"},{default:o(()=>[t(I(N))]),_:1})]),_:1},512)]),_:1}),t(n,{label:"您的联系方式"},{default:o(()=>[t(a,{modelValue:l.contact,"onUpdate:modelValue":e[1]||(e[1]=s=>l.contact=s),style:{width:"95%"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),d("div",$,[t(_,{color:"#f34d2c",plain:"",onClick:e[2]||(e[2]=s=>c.value.submit())},{default:o(()=>e[3]||(e[3]=[C("提交反馈")])),_:1})])])])}}}),T=g(h,[["__scopeId","data-v-7c425f8e"]]);export{T as default};

View File

@ -1 +1 @@
import{G as c,v as _,B as e,y as o,J as i,M as l,ai as u}from"./element-plus-DZJYzj-x.js";import{u as p}from"./index-DRVPVPJi.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";const d={class:"mycontainer"},f={__name:"PageNotFound",setup(x){const a=p(),s=()=>{a.replace("/index")};return(g,t)=>{const n=i,r=u;return _(),c("div",d,[e(r,{icon:"warning",title:"404请求资源不存在","sub-title":"抱歉!未找到页面"},{extra:o(()=>[e(n,{type:"primary",onClick:s},{default:o(()=>t[0]||(t[0]=[l("返回首页")])),_:1})]),_:1})])}}},k=m(f,[["__scopeId","data-v-56a57e43"]]);export{k as default};
import{G as c,v as _,B as e,y as o,J as i,M as l,ai as u}from"./element-plus-DZJYzj-x.js";import{u as p}from"./index-FlRaiNYG.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";const d={class:"mycontainer"},f={__name:"PageNotFound",setup(x){const a=p(),s=()=>{a.replace("/index")};return(g,t)=>{const n=i,r=u;return _(),c("div",d,[e(r,{icon:"warning",title:"404请求资源不存在","sub-title":"抱歉!未找到页面"},{extra:o(()=>[e(n,{type:"primary",onClick:s},{default:o(()=>t[0]||(t[0]=[l("返回首页")])),_:1})]),_:1})])}}},k=m(f,[["__scopeId","data-v-56a57e43"]]);export{k as default};

1
dist/static/js/WxJump-aK_R9rj6.js vendored Normal file
View File

@ -0,0 +1 @@
import{r as p,X as l,G as u,v as d,I as t,Y as o}from"./element-plus-DZJYzj-x.js";import{s as f}from"./http-CsN80ifF.js";import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-FlRaiNYG.js";const g="/static/png/indexQRcode-Bs8M_Qwn.png";function h(){return f({url:"/api/admin/shop/wxqrcode/common/wxurlscheme",method:"post"})}const w={class:"wrapper"},_={__name:"WxJump",setup(v){const n=p("weixin://dl/business/?t=RNOoY1cRSDv"),a=/MicroMessenger/i.test(navigator.userAgent);function i(){return a?window.wx?(wx.miniProgram.navigateTo({url:"/pages/index/index"}),!0):(o.warning("微信JSSDK未加载将使用Scheme跳转"),!1):!1}async function c(){var s;try{const e=await h();e.code===0&&((s=e.data)!=null&&s.openlink)?n.value=e.data.openlink:o.error("获取Scheme失败"+(e.msg||"无有效链接"))}catch(e){console.error("接口请求异常:",e)}}function m(){if(!n.value){o.warning("Scheme为空无法跳转");return}location.href=n.value}function r(){i()||m()}return l(async()=>{await c(),r()}),(s,e)=>(d(),u("div",w,[e[0]||(e[0]=t("div",null,[t("img",{src:g,alt:"小程序二维码",class:"qr-img",style:{width:"300px",height:"300px","margin-bottom":"20px"}})],-1)),e[1]||(e[1]=t("div",{class:"text-container"},[t("p",{class:"desc-text"},"小发同城,和您一起享受本地生活服务")],-1)),t("button",{id:"openBtn",class:"btn",onClick:r}," 立即打开 ")]))}},M=x(_,[["__scopeId","data-v-886718d0"]]);export{M as default};

View File

@ -1 +0,0 @@
import{r as p,X as u,G as l,v as d,I as n,Y as t}from"./element-plus-DZJYzj-x.js";import{s as f}from"./http-DQojYXGg.js";import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-DRVPVPJi.js";const g="/static/png/indexQRcode-Bs8M_Qwn.png";function h(){return f({url:"/api/admin/shop/wxqrcode/common/wxurlscheme",method:"post"})}const w={class:"wrapper"},_={__name:"WxJump",setup(v){const r=p("weixin://dl/business/?t=RNOoY1cRSDv"),a=/MicroMessenger/i.test(navigator.userAgent);function i(){return a?window.wx?(wx.miniProgram.navigateTo({url:"/pages/index/index"}),!0):(t.warning("微信JSSDK未加载将使用Scheme跳转"),!1):!1}async function c(){var s;try{const e=await h();e.code===0&&((s=e.data)!=null&&s.openlink)?r.value=e.data.openlink:t.error("获取Scheme失败"+(e.msg||"无有效链接"))}catch(e){console.error("接口请求异常:",e),t.error("网络异常,请重试!")}}function m(){if(!r.value){t.warning("Scheme为空无法跳转");return}location.href=r.value}function o(){i()||m()}return u(async()=>{await c(),o()}),(s,e)=>(d(),l("div",w,[e[0]||(e[0]=n("div",null,[n("img",{src:g,alt:"小程序二维码",class:"qr-img",style:{width:"300px",height:"300px","margin-bottom":"20px"}})],-1)),e[1]||(e[1]=n("p",{style:{"font-size":"30px"}},"小发同城,和您一起享受本地生活服务",-1)),n("button",{id:"openBtn",class:"btn",onClick:o}," 立即打开 ")]))}},J=x(_,[["__scopeId","data-v-40876dea"]]);export{J as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{s as n}from"./http-DQojYXGg.js";function s(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/doMerchSmsRegisterAndLogin",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function i(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/sendVerifyCode",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function c(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-store-category/list",method:"post"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}function l(r){return r.map(o=>({value:o.store_category_id,label:o.store_category_name,children:o.children?[{value:o.store_category_id,label:`${o.store_category_name} 到账比例(${o.split_ratio}%)`},...o.children.map(t=>({value:t.store_category_id,label:`${t.store_category_name} 到账比例(${t.split_ratio}%)`}))]:[]}))}function h(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/baidu/place/v2/suggestion",method:"get",params:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function p(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/lakala/tk/bank/search",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function u(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function m(){const r={mobile:localStorage.getItem("mobilePhone")};return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/fresh/approval/status",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function d(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/re-apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function g(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/detail",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function b(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-district/getAppDistrict",method:"get"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}export{c as G,b as a,p as b,h as c,g as d,s as e,i as f,m as g,u as m,d as r,l as t};
import{s as n}from"./http-CsN80ifF.js";function s(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/doMerchSmsRegisterAndLogin",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function i(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/sendVerifyCode",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function c(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-store-category/list",method:"post"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}function l(r){return r.map(o=>({value:o.store_category_id,label:o.store_category_name,children:o.children?[{value:o.store_category_id,label:`${o.store_category_name} 到账比例(${o.split_ratio}%)`},...o.children.map(t=>({value:t.store_category_id,label:`${t.store_category_name} 到账比例(${t.split_ratio}%)`}))]:[]}))}function h(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/baidu/place/v2/suggestion",method:"get",params:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function p(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/lakala/tk/bank/search",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function u(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function m(){const r={mobile:localStorage.getItem("mobilePhone")};return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/fresh/approval/status",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function d(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/re-apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function g(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/detail",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function b(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-district/getAppDistrict",method:"get"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}export{c as G,b as a,p as b,h as c,g as d,s as e,i as f,m as g,u as m,d as r,l as t};

View File

@ -1 +1 @@
import{j as o,r as a,G as r,v as c}from"./element-plus-DZJYzj-x.js";import{s}from"./http-DQojYXGg.js";import"./index-DRVPVPJi.js";const i={getAgreement(n){const e=new URLSearchParams(n).toString();return s({method:"GET",url:`/api/mobile/account/login/protocol?${e}`})}},m=["innerHTML"],d=o({__name:"privacy",setup(n){const e=a("");return(async()=>{const t=await i.getAgreement({protocols_key:"joininPrivacyAgreement"});(t==null?void 0:t.status)===200&&(e.value=t.data.document)})(),(t,p)=>(c(),r("div",{class:"container",innerHTML:e.value},null,8,m))}});export{d as default};
import{j as o,r as a,G as r,v as c}from"./element-plus-DZJYzj-x.js";import{s}from"./http-CsN80ifF.js";import"./index-FlRaiNYG.js";const i={getAgreement(n){const e=new URLSearchParams(n).toString();return s({method:"GET",url:`/api/mobile/account/login/protocol?${e}`})}},m=["innerHTML"],d=o({__name:"privacy",setup(n){const e=a("");return(async()=>{const t=await i.getAgreement({protocols_key:"joininPrivacyAgreement"});(t==null?void 0:t.status)===200&&(e.value=t.data.document)})(),(t,p)=>(c(),r("div",{class:"container",innerHTML:e.value},null,8,m))}});export{d as default};

View File

@ -1 +1 @@
import{j as R,r as u,X as z,ak as T,G as M,a1 as p,I as m,B as a,N as q,y as s,$ as D,J as U,Y as F,v,u as G,ar as J,a4 as O,a5 as $,q as k,M as g,V as j}from"./element-plus-DZJYzj-x.js";import{u as L}from"./http-DQojYXGg.js";import{u as P}from"./index-DRVPVPJi.js";import{e as X,f as Y}from"./login-BjPRjTUx.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const H={key:0,class:"register-box"},K={class:"register-container"},Q={class:"foot"},W=R({__name:"register",props:{isVisible:{type:Boolean,default:!1}},emits:["open-login-form","close-register-form"],setup(y,{emit:V}){const w=V,o=u({phoneNumber:"",verificationCode:""});P();const _=L(),r=u(!1),l=u(0);let d;const b=u(),C=()=>{w("close-register-form")},I=async()=>{const t={number:o.value.phoneNumber},e=await Y(t);if(e&&e.status===200){const n=new Date().getTime()+6e4;localStorage.setItem("Countdown",JSON.stringify(n)),r.value=!0,l.value=60,N()}},N=()=>{d=setInterval(()=>{l.value>0?l.value--:(clearInterval(d),r.value=!1,localStorage.removeItem("Countdown"))},1e3)},S=async()=>{const t={user_mobile:o.value.phoneNumber,rand_key:o.value.phoneNumber,verify_code:o.value.verificationCode},e=await X(t);e&&e.status===200&&e.data&&e.data?(_.setToken(e.data.token),_.setMobilePhone(o.value.phoneNumber),o.value.phoneNumber="",o.value.verificationCode="",C()):e.status},x=u({phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的11位手机号",trigger:"blur"}],verificationCode:[{required:!0,message:"请输入验证码",trigger:"blur"}]}),B=()=>{var t;(t=b.value)==null||t.validate(e=>{e?S():F.error("请正确填写注册信息!")})};return z(()=>{const t=localStorage.getItem("Countdown");if(t){const e=JSON.parse(t),n=new Date().getTime(),i=(e-n)/1e3;i>0?(r.value=!0,l.value=Math.ceil(i),N()):(localStorage.removeItem("Countdown"),r.value=!1)}}),T(()=>{d&&clearInterval(d)}),(t,e)=>{const n=q,i=$,h=O,c=U,E=D;return y.isVisible?(v(),M("div",H,[m("div",K,[m("div",{class:"register-close",onClick:C},[a(n,{color:"#333",size:"24",class:"btn_close"},{default:s(()=>[a(G(J))]),_:1})]),e[4]||(e[4]=m("h4",null,"欢迎入驻开店",-1)),a(E,{model:o.value,rules:x.value,ref_key:"formRef",ref:b,"label-width":"88px","hide-required-asterisk":!0},{default:s(()=>[a(h,{label:"手机号",prop:"phoneNumber"},{default:s(()=>[a(i,{modelValue:o.value.phoneNumber,"onUpdate:modelValue":e[0]||(e[0]=f=>o.value.phoneNumber=f),placeholder:"请输入手机号",maxlength:"11",size:"large"},null,8,["modelValue"])]),_:1}),a(h,{label:"验证码",prop:"verificationCode"},{default:s(()=>[a(i,{modelValue:o.value.verificationCode,"onUpdate:modelValue":e[1]||(e[1]=f=>o.value.verificationCode=f),placeholder:"验证码",size:"large",maxlength:"4"},{append:s(()=>[r.value?p("",!0):(v(),k(c,{key:0,type:"primary",class:"btn_code",size:"large",disabled:o.value.phoneNumber.length!==11,onClick:I,round:""},{default:s(()=>e[2]||(e[2]=[g("发送验证码")])),_:1},8,["disabled"])),r.value?(v(),k(c,{key:1,type:"primary",class:"btn_code",size:"large",disabled:"",round:""},{default:s(()=>[g(j(l.value)+"S",1)]),_:1})):p("",!0)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),m("div",Q,[a(c,{class:"btn_submit",color:"#ea4322",size:"large",disabled:!o.value.phoneNumber||!o.value.verificationCode,round:"",onClick:B},{default:s(()=>e[3]||(e[3]=[g("确定")])),_:1},8,["disabled"])])])])):p("",!0)}}}),se=A(W,[["__scopeId","data-v-c2edcd57"]]);export{se as R};
import{j as R,r as u,X as z,ak as T,G as M,a1 as p,I as m,B as a,N as q,y as s,$ as D,J as U,Y as F,v,u as G,ar as J,a4 as O,a5 as $,q as k,M as g,V as j}from"./element-plus-DZJYzj-x.js";import{u as L}from"./http-CsN80ifF.js";import{u as P}from"./index-FlRaiNYG.js";import{e as X,f as Y}from"./login-BAYkpaVz.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const H={key:0,class:"register-box"},K={class:"register-container"},Q={class:"foot"},W=R({__name:"register",props:{isVisible:{type:Boolean,default:!1}},emits:["open-login-form","close-register-form"],setup(y,{emit:V}){const w=V,o=u({phoneNumber:"",verificationCode:""});P();const _=L(),r=u(!1),l=u(0);let d;const b=u(),C=()=>{w("close-register-form")},I=async()=>{const t={number:o.value.phoneNumber},e=await Y(t);if(e&&e.status===200){const n=new Date().getTime()+6e4;localStorage.setItem("Countdown",JSON.stringify(n)),r.value=!0,l.value=60,N()}},N=()=>{d=setInterval(()=>{l.value>0?l.value--:(clearInterval(d),r.value=!1,localStorage.removeItem("Countdown"))},1e3)},S=async()=>{const t={user_mobile:o.value.phoneNumber,rand_key:o.value.phoneNumber,verify_code:o.value.verificationCode},e=await X(t);e&&e.status===200&&e.data&&e.data?(_.setToken(e.data.token),_.setMobilePhone(o.value.phoneNumber),o.value.phoneNumber="",o.value.verificationCode="",C()):e.status},x=u({phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的11位手机号",trigger:"blur"}],verificationCode:[{required:!0,message:"请输入验证码",trigger:"blur"}]}),B=()=>{var t;(t=b.value)==null||t.validate(e=>{e?S():F.error("请正确填写注册信息!")})};return z(()=>{const t=localStorage.getItem("Countdown");if(t){const e=JSON.parse(t),n=new Date().getTime(),i=(e-n)/1e3;i>0?(r.value=!0,l.value=Math.ceil(i),N()):(localStorage.removeItem("Countdown"),r.value=!1)}}),T(()=>{d&&clearInterval(d)}),(t,e)=>{const n=q,i=$,h=O,c=U,E=D;return y.isVisible?(v(),M("div",H,[m("div",K,[m("div",{class:"register-close",onClick:C},[a(n,{color:"#333",size:"24",class:"btn_close"},{default:s(()=>[a(G(J))]),_:1})]),e[4]||(e[4]=m("h4",null,"欢迎入驻开店",-1)),a(E,{model:o.value,rules:x.value,ref_key:"formRef",ref:b,"label-width":"88px","hide-required-asterisk":!0},{default:s(()=>[a(h,{label:"手机号",prop:"phoneNumber"},{default:s(()=>[a(i,{modelValue:o.value.phoneNumber,"onUpdate:modelValue":e[0]||(e[0]=f=>o.value.phoneNumber=f),placeholder:"请输入手机号",maxlength:"11",size:"large"},null,8,["modelValue"])]),_:1}),a(h,{label:"验证码",prop:"verificationCode"},{default:s(()=>[a(i,{modelValue:o.value.verificationCode,"onUpdate:modelValue":e[1]||(e[1]=f=>o.value.verificationCode=f),placeholder:"验证码",size:"large",maxlength:"4"},{append:s(()=>[r.value?p("",!0):(v(),k(c,{key:0,type:"primary",class:"btn_code",size:"large",disabled:o.value.phoneNumber.length!==11,onClick:I,round:""},{default:s(()=>e[2]||(e[2]=[g("发送验证码")])),_:1},8,["disabled"])),r.value?(v(),k(c,{key:1,type:"primary",class:"btn_code",size:"large",disabled:"",round:""},{default:s(()=>[g(j(l.value)+"S",1)]),_:1})):p("",!0)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),m("div",Q,[a(c,{class:"btn_submit",color:"#ea4322",size:"large",disabled:!o.value.phoneNumber||!o.value.verificationCode,round:"",onClick:B},{default:s(()=>e[3]||(e[3]=[g("确定")])),_:1},8,["disabled"])])])])):p("",!0)}}}),se=A(W,[["__scopeId","data-v-c2edcd57"]]);export{se as R};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{s as r}from"./http-DQojYXGg.js";function l(n,a={}){a.isFilter=!0;const o=new FormData;o.append("upfile",n);for(const e in a)a.hasOwnProperty(e)&&o.append(e,a[e]);return new Promise((e,i)=>{r({url:"/api/mobile/shop/oss/upload",method:"post",data:o}).then(t=>{e(t)}).catch(t=>i(console.warn(t)))})}function s(n,a){const o=new FormData;return o.append("upfile",n),o.append("imgType",a),new Promise((e,i)=>{r({url:"/api/mobile/shop/lakala/tk/uploadOcrImg",method:"post",data:o}).then(t=>{e(t)}).catch(t=>i(console.warn(t)))})}function u(n){return r({url:"/api/mobile/shop/lakala/tk/imgOcrResult",method:"POST",data:n})}export{s as b,u as i,l as u};
import{s as r}from"./http-CsN80ifF.js";function l(n,a={}){a.isFilter=!0;const o=new FormData;o.append("upfile",n);for(const e in a)a.hasOwnProperty(e)&&o.append(e,a[e]);return new Promise((e,i)=>{r({url:"/api/mobile/shop/oss/upload",method:"post",data:o}).then(t=>{e(t)}).catch(t=>i(console.warn(t)))})}function s(n,a){const o=new FormData;return o.append("upfile",n),o.append("imgType",a),new Promise((e,i)=>{r({url:"/api/mobile/shop/lakala/tk/uploadOcrImg",method:"post",data:o}).then(t=>{e(t)}).catch(t=>i(console.warn(t)))})}function u(n){return r({url:"/api/mobile/shop/lakala/tk/imgOcrResult",method:"POST",data:n})}export{s as b,u as i,l as u};