jingcai-seller/public/js/wx.844f6187.js

2 lines
6.5 KiB
JavaScript

import{a6 as P,a7 as L,a8 as Q,r as v,O as w,P as _,R as g,S as O,U as E,V as b,W as V,X as k,a9 as q,aa as D,ab as $,_ as S,a0 as B,Z as C,Y as H,a2 as z,a3 as I,a4 as T,a5 as U}from"./stringify.4a6de554.js";var h=P,x=Object.prototype.hasOwnProperty,M=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:h.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},F=function(i){return i.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},N=function(i,e){return i&&typeof i=="string"&&e.comma&&i.indexOf(",")>-1?i.split(","):i},W="utf8=%26%2310003%3B",X="utf8=%E2%9C%93",Y=function(e,r){var t={},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=r.parameterLimit===1/0?void 0:r.parameterLimit,l=n.split(r.delimiter,f),s=-1,a,c=r.charset;if(r.charsetSentinel)for(a=0;a<l.length;++a)l[a].indexOf("utf8=")===0&&(l[a]===X?c="utf-8":l[a]===W&&(c="iso-8859-1"),s=a,a=l.length);for(a=0;a<l.length;++a)if(a!==s){var u=l[a],p=u.indexOf("]="),d=p===-1?u.indexOf("="):p+1,y,m;d===-1?(y=r.decoder(u,o.decoder,c,"key"),m=r.strictNullHandling?null:""):(y=r.decoder(u.slice(0,d),o.decoder,c,"key"),m=h.maybeMap(N(u.slice(d+1),r),function(A){return r.decoder(A,o.decoder,c,"value")})),m&&r.interpretNumericEntities&&c==="iso-8859-1"&&(m=F(m)),u.indexOf("[]=")>-1&&(m=M(m)?[m]:m),x.call(t,y)?t[y]=h.combine(t[y],m):t[y]=m}return t},Z=function(i,e,r,t){for(var n=t?e:N(e,r),f=i.length-1;f>=0;--f){var l,s=i[f];if(s==="[]"&&r.parseArrays)l=[].concat(n);else{l=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(a,10);!r.parseArrays&&a===""?l={0:n}:!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[],l[c]=n):a!=="__proto__"&&(l[a]=n)}n=l}return n},G=function(e,r,t,n){if(!!e){var f=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,a=t.depth>0&&l.exec(f),c=a?f.slice(0,a.index):f,u=[];if(c){if(!t.plainObjects&&x.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}for(var p=0;t.depth>0&&(a=s.exec(f))!==null&&p<t.depth;){if(p+=1,!t.plainObjects&&x.call(Object.prototype,a[1].slice(1,-1))&&!t.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+f.slice(a.index)+"]"),Z(u,r,t,n)}},J=function(e){if(!e)return o;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset=="undefined"?o.charset:e.charset;return{allowDots:typeof e.allowDots=="undefined"?o.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:o.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:o.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:o.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:o.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:o.comma,decoder:typeof e.decoder=="function"?e.decoder:o.decoder,delimiter:typeof e.delimiter=="string"||h.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:o.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:o.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:o.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:o.strictNullHandling}},K=function(i,e){var r=J(e);if(i===""||i===null||typeof i=="undefined")return r.plainObjects?Object.create(null):{};for(var t=typeof i=="string"?Y(i,r):i,n=r.plainObjects?Object.create(null):{},f=Object.keys(t),l=0;l<f.length;++l){var s=f[l],a=G(s,t[s],r,typeof i=="string");n=h.merge(n,a,r)}return r.allowSparse===!0?n:h.compact(n)},R=L,ee=K,re=Q,ae={formats:re,parse:ee,stringify:R};const te={class:"login-main column no-wrap q-px-lg q-py-lg"},le=b("h4",{class:"text-bold q-mb-sm",style:{color:"#ffefba"}},"\u4E91\u6735\u5C0F\u5E97",-1),ie=b("p",{class:"text-bold text-white text-h5 q-mb-xl"}," \u7ED1\u5B9A\u8D26\u53F7\u63A5\u6536\u5373\u65F6\u6D88\u606F ",-1),ne={key:0,class:"text-red text-center"},se={key:1,class:"text-center q-py-md"},ce=b("div",{class:"text-h6"},"\u7ED1\u5B9A\u6210\u529F",-1),ue={class:"q-mt-md text-subtitle1"},oe={class:"q-mt-lg"},fe={__name:"App",setup(i){const e=V(),r=v(!1),t=v(""),n=v(""),f=v(null),l=v(""),s=location.search.substring(1),a=ae.parse(s);function c(){r.value=!0,z.post("/api/seller/wechat/bind_seller",{...a,phone:t.value,password:n.value}).then(u=>{if(u.data.code==200){l.value=u.data.message||"\u64CD\u4F5C\u5B8C\u6210\uFF0C\u5C06\u4F1A\u4E3A\u60A8\u5373\u65F6\u63A8\u9001\u4E91\u6735\u5C0F\u5E97\u65B0\u6D88\u606F\u3002";return}return Promise.reject(new Error(u.data.message))}).catch(u=>{e.notify({color:"red-5",type:"negative",position:"center",message:u.message})}).finally(()=>{r.value=!1})}return(u,p)=>(w(),_("div",te,[le,ie,g(E,{class:"login-form"},{default:O(()=>[g(k,null,{default:O(()=>[q(s)?l.value?(w(),_("div",se,[ce,b("p",ue,D(l.value),1)])):(w(),$(H,{key:2,onSubmit:C(c,["prevent","stop"]),class:"q-gutter-y-sm",ref_key:"formRef",ref:f},{default:O(()=>[g(S,{modelValue:t.value,"onUpdate:modelValue":p[0]||(p[0]=d=>t.value=d),"lazy-rules":"",rules:[d=>d&&d.length>0&&d.match(/^(0)?1\d{10}$/)||"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"],name:"phone",autocomplete:"phone-new",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",label:"\u624B\u673A\u53F7"},null,8,["modelValue","rules"]),g(S,{type:"password",name:"password",autocomplete:"phone-new",modelValue:n.value,"onUpdate:modelValue":p[1]||(p[1]=d=>n.value=d),"lazy-rules":"",rules:[d=>d!==null&&d!==""&&d.length>3||"\u8BF7\u8F93\u5165\u5BC6\u7801"],label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801"},null,8,["modelValue","rules"]),b("div",oe,[g(B,{class:"full-width",ref:"submit",size:"16px",color:"primary",label:"\u7ED1\u5B9A",type:"submit",unelevated:"",loading:r.value,disable:!t.value||!n.value||r.value},null,8,["loading","disable"])])]),_:1},8,["onSubmit"])):(w(),_("div",ne,"\u6388\u6743\u5931\u8D25\uFF0C\u8BF7\u5173\u95ED\u540E\u91CD\u8BD5"))]),_:1})]),_:1})]))}},j=I(fe);j.use(T,{plugins:{Notify:U}});j.mount("#app");