mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/unpackage/dist/build/app-plus/app-service.js

8 lines
343 KiB
JavaScript
Raw Normal View History

2023-11-25 16:18:54 +08:00
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e,t){"use strict";function n(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function o(e,n){return t.isString(e)?n:e}const a=(t=>(n,o=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,o)})("onLoad"),i={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-e
2023-11-21 18:54:33 +08:00
/*!
* pinia v2.0.33
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
2023-11-25 16:18:54 +08:00
let ii;const ri=e=>ii=e,li=Symbol();function si(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ci,di;(di=ci||(ci={})).direct="direct",di.patchObject="patch object",di.patchFunction="patch function";const ui=()=>{};function mi(t,n,o,a=ui){t.push(n);const i=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!o&&e.getCurrentScope()&&e.onScopeDispose(i),i}function fi(e,...t){e.slice().forEach((e=>{e(...t)}))}function pi(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const o in n){if(!n.hasOwnProperty(o))continue;const a=n[o],i=t[o];si(i)&&si(a)&&t.hasOwnProperty(o)&&!e.isRef(a)&&!e.isReactive(a)?t[o]=pi(i,a):t[o]=a}return t}const hi=Symbol();const{assign:gi}=Object;function bi(t,n,o={},a,i,r){let l;const s=gi({actions:{}},o),c={deep:!0};let d,u,m,f=e.markRaw([]),p=e.markRaw([]);const h=a.state.value[t];let g;function b(n){let o;d=u=!1,"function"==typeof n?(n(a.state.value[t]),o={type:ci.patchFunction,storeId:t,events:m}):(pi(a.state.value[t],n),o={type:ci.patchObject,payload:n,storeId:t,events:m});const i=g=Symbol();e.nextTick().then((()=>{g===i&&(d=!0)})),u=!0,fi(f,o,a.state.value[t])}r||h||(a.state.value[t]={}),e.ref({});const y=r?function(){const{state:e}=o,t=e?e():{};this.$patch((e=>{gi(e,t)}))}:ui;function w(e,n){return function(){ri(a);const o=Array.from(arguments),i=[],r=[];function l(e){i.push(e)}function s(e){r.push(e)}let c;fi(p,{args:o,name:e,store:_,after:l,onError:s});try{c=n.apply(this&&this.$id===t?this:_,o)}catch(d){throw fi(r,d),d}return c instanceof Promise?c.then((e=>(fi(i,e),e))).catch((e=>(fi(r,e),Promise.reject(e)))):(fi(i,c),c)}}const v={_p:a,$id:t,$onAction:mi.bind(null,p),$patch:b,$reset:y,$subscribe(n,o={}){const i=mi(f,n,o.detached,(()=>r())),r=l.run((()=>e.watch((()=>a.state.value[t]),(e=>{("sync"===o.flush?u:d)&&n({storeId:t,type:ci.direct,events:m},e)}),gi({},c,o))));return i},$dispose:function(){l.stop(),f=[],p=[],a._s.delete(t)}},_=e.reactive(v);a._s.set(t,_);const k=a._e.run((()=>(l=e.effectScope(),l.run((()=>n())))));for(const C in k){const n=k[C];if(e.isRef(n)&&(x=n,!e.isRef(x)||!x.effect)||e.isReactive(n))r||(!h||si(S=n)&&S.hasOwnProperty(hi)||(e.isRef(n)?n.value=h[C]:pi(n,h[C])),a.state.value[t][C]=n);else if("function"==typeof n){const e=w(C,n);k[C]=e,s.actions[C]=n}}var S,x;return gi(_,k),gi(e.toRaw(_),k),Object.defineProperty(_,"$state",{get:()=>a.state.value[t],set:e=>{b((t=>{gi(t,e)}))}}),a._p.forEach((e=>{gi(_,l.run((()=>e({store:_,app:a._a,pinia:a,options:s}))))})),h&&r&&o.hydrate&&o.hydrate(_.$state,h),d=!0,u=!0,_}const yi=function(t,n,o){let a,i;const r="function"==typeof n;function l(t,o){const l=e.getCurrentInstance();(t=t||l&&e.inject(li,null))&&ri(t),(t=ii)._s.has(a)||(r?bi(a,n,i,t):function(t,n,o,a){const{state:i,actions:r,getters:l}=n,s=o.state.value[t];let c;c=bi(t,(function(){s||(o.state.value[t]=i?i():{});const n=e.toRefs(o.state.value[t]);return gi(n,r,Object.keys(l||{}).reduce(((n,a)=>(n[a]=e.markRaw(e.computed((()=>{ri(o);const e=o._s.get(t);return l[a].call(e,e)}))),n)),{}))}),n,o,0,!0)}(a,i,t));return t._s.get(a)}return"string"==typeof t?(a=t,i=r?o:n):(i=t,a=t.id),l.$id=a,l}("counter",{state:()=>({userInfo:{}}),getters:{},actions:{saveUserInfo(e){n("log","at store/userInfo.js:13",e,"1111111"),this.userInfo=e}}}),wi=w({__name:"login",setup(t){const a=e.ref(0),i=e.ref(!1),r=e.ref("获取验证码"),l=e.ref(60),s=e.reactive({account:"",password:"",code:"",scene:"",terminal:""}),c=e.reactive({list:[{name:"验证码登录",id:1},{name:"账号登录",id:2}]}),d=()=>{(e=>G.post("/index/code",e))({phone:s.account,scene:101}).then((e=>{n("log","at pages/Login/login.vue:124",e),1==e.code&&(uni.$u.toast("验证码已发送"),(()=>{const e=setInterval((()=>{l.value-=1,i.value=!0,0===l.value&&(clearInterval(e),i.value=!1,l.value=60)}),1e3)})())}))},u=()=>{return s.account?s.password||1!=s.scene?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(s.account)?(n("log","at pages/Login/login.vue:141",s),s.code||2!=s.scene?void(e=s,G.post("/