29 lines
1.1 MiB
JavaScript
29 lines
1.1 MiB
JavaScript
|
|
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(a=>t.resolve(e()).then(()=>a),a=>t.resolve(e()).then(()=>{throw a}))}),"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 a(e){return weex.requireModule(e)}function l(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function n(e,t){return"string"==typeof e?t:e}const o=(t,a=0)=>(a,l=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,l)},r=o("onShow",3),i=o("onHide",3),s=o("onLaunch",1),c=o("onLoad",2),u=o("onUnload",2),d=o("onBackPress",2),m=o("onPullDownRefresh",2),p=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unico
|
||
|
|
/*!
|
||
|
|
* pinia v2.0.20
|
||
|
|
* (c) 2022 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/let _t;const St=e=>_t=e,Tt=Symbol();function Dt(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Bt,It;(It=Bt||(Bt={})).direct="direct",It.patchObject="patch object",It.patchFunction="patch function";const Mt=()=>{};function Rt(t,a,l,n=Mt){t.push(a);const o=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),n())};return!l&&e.getCurrentInstance()&&e.onUnmounted(o),o}function Ft(e,...t){e.slice().forEach(e=>{e(...t)})}function At(t,a){for(const l in a){if(!a.hasOwnProperty(l))continue;const n=a[l],o=t[l];Dt(o)&&Dt(n)&&t.hasOwnProperty(l)&&!e.isRef(n)&&!e.isReactive(n)?t[l]=At(o,n):t[l]=n}return t}const Lt=Symbol();function Ut(e){return!Dt(e)||!e.hasOwnProperty(Lt)}const{assign:Pt}=Object;function Ot(t){return!(!e.isRef(t)||!t.effect)}function zt(t,a,l={},n,o,r){let i;const s=Pt({actions:{}},l),c={deep:!0};let u,d,m,p=e.markRaw([]),v=e.markRaw([]);const h=n.state.value[t];let f;function g(a){let l;u=d=!1,"function"==typeof a?(a(n.state.value[t]),l={type:Bt.patchFunction,storeId:t,events:m}):(At(n.state.value[t],a),l={type:Bt.patchObject,payload:a,storeId:t,events:m});const o=f=Symbol();e.nextTick().then(()=>{f===o&&(u=!0)}),d=!0,Ft(p,l,n.state.value[t])}r||h||(n.state.value[t]={}),e.ref({});const b=Mt;function y(e,a){return function(){St(n);const l=Array.from(arguments),o=[],r=[];let i;Ft(v,{args:l,name:e,store:k,after:function(e){o.push(e)},onError:function(e){r.push(e)}});try{i=a.apply(this&&this.$id===t?this:k,l)}catch(s){throw Ft(r,s),s}return i instanceof Promise?i.then(e=>(Ft(o,e),e)).catch(e=>(Ft(r,e),Promise.reject(e))):(Ft(o,i),i)}}const w={_p:n,$id:t,$onAction:Rt.bind(null,v),$patch:g,$reset:b,$subscribe(a,l={}){const o=Rt(p,a,l.detached,()=>r()),r=i.run(()=>e.watch(()=>n.state.value[t],e=>{("sync"===l.flush?d:u)&&a({storeId:t,type:Bt.direct,events:m},e)},Pt({},c,l)));return o},$dispose:function(){i.stop(),p=[],v=[],n._s.delete(t)}},k=e.reactive(Pt({},w));n._s.set(t,k);const N=n._e.run(()=>(i=e.effectScope(),i.run(()=>a())));for(const V in N){const a=N[V];if(e.isRef(a)&&!Ot(a)||e.isReactive(a))r||(h&&Ut(a)&&(e.isRef(a)?a.value=h[V]:At(a,h[V])),n.state.value[t][V]=a);else if("function"==typeof a){const e=y(V,a);N[V]=e,s.actions[V]=a}}return Pt(k,N),Pt(e.toRaw(k),N),Object.defineProperty(k,"$state",{get:()=>n.state.value[t],set:e=>{g(t=>{Pt(t,e)})}}),n._p.forEach(e=>{Pt(k,i.run(()=>e({store:k,app:n._a,pinia:n,options:s})))}),h&&r&&l.hydrate&&l.hydrate(k.$state,h),u=!0,d=!0,k}const jt=new function(t,a,l){let n,o;const r="function"==typeof a;function i(t,l){const i=e.getCurrentInstance();(t=t||i&&e.inject(Tt))&&St(t),(t=_t)._s.has(n)||(r?zt(n,a,o,t):function(t,a,l){const{state:n,actions:o,getters:r}=a,i=l.state.value[t];let s;s=zt(t,function(){i||(l.state.value[t]=n?n():{});const a=e.toRefs(l.state.value[t]);return Pt(a,o,Object.keys(r||{}).reduce((a,n)=>(a[n]=e.markRaw(e.computed(()=>{St(l);const e=l._s.get(t);return r[n].call(e,e)})),a),{}))},a,l,0,!0),s.$reset=function(){const e=n?n():{};this.$patch(t=>{Pt(t,e)})}}(n,o,t));return t._s.get(n)}return"string"==typeof t?(n=t,o=r?l:a):(o=t,n=t.id),i.$id=n,i}({id:"userStore",state:()=>({userInfo:{},token:Ct()||null,temToken:null}),getters:{isLogin:e=>e.token&&e.userInfo},actions:{async getUser(){l("log","at stores/user.js:21","store=>getUser");const e=await Zt();l("log","at stores/user.js:23",e,"xxx "),this.userInfo=e},login(e){let t=e.access_token;this.token=t,function(e){Et.set(g,e)}(t),e.token=t,this.userInfo=e},async logout(){var e;await Qt.post({url:"/acc/auth/logout",data:e}),this.token="",this.userInfo={},xt()}}}),qt=(e,t="none",a=!1)=>uni.showToast({title:e,icon:t,mask:a}),$t=(e,t="提示",a=!1,l)=>uni.showModal({title:t,content:e,showCancel:a,success:function(e){e.confirm?l&&l():e.cancel}}),Ht=(e=null,t=!0)=>uni.showLoading({title:e,mask:t}),Wt=()=>uni.hideLoading(),Yt=()=>({toast:qt,success:(e,t=!0)=>qt(e,"success",t),error:(e,t=!0)=>qt(e,"error",t),alert:$t,showLoading:Ht,hideLoading:Wt}),Jt=Yt();const Qt=new Vt(yt({requestOptions:{timeout:1e4,header:{version:"1.0.0",clientId:"2"}},bas
|
||
|
|
/** @preserve
|
||
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||
|
|
* derived from CryptoJS.mode.CTR
|
||
|
|
* Jan Hruby jhruby.web@gmail.com
|
||
|
|
*/
|
||
|
|
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function a(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,a=e>>8&255,l=255&e;255===t?(t=0,255===a?(a=0,255===l?l=0:++l):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=l}return e}function l(e){return 0===(e[0]=a(e[0]))&&(e[1]=a(e[1])),e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0),l(r);var i=r.slice(0);a.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}});return t.Decryptor=n,t}(),e.mode.CTRGladman)),Wl.exports;var e}var Jl,Ql={exports:{}};var Kl,Gl={exports:{}};var Xl,Zl={exports:{}};var en,tn={exports:{}};var an,ln={exports:{}};var nn,on={exports:{}};var rn,sn={exports:{}};var cn,un={exports:{}};var dn,mn={exports:{}};var pn,vn={exports:{}};function hn(){return pn||(pn=1,vn.exports=(e=Ya(),ol(),dl(),Ll(),Ol(),function(){var t=e,a=t.lib,l=a.WordArray,n=a.BlockCipher,o=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:
|
||
|
|
/** @preserve
|
||
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
||
|
|
|
||
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
|
|
|
||
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
|
|
|
||
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
|
*/
|
||
|
|
function(){var t=e,a=t.lib,l=a.WordArray,n=a.Hasher,o=t.algo,r=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),i=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=l.create([0,1518500249,1859775393,2400959708,2840853838]),d=l.create([1352829926,1548603684,1836072691,2053994217,0]),m=o.RIPEMD160=n.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var l=t+a,n=e[l];e[l]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,m,y,w,k,N,V,E,C,x,_,S=this._hash.words,T=u.words,D=d.words,B=r.words,I=i.words,M=s.words,R=c.words;for(N=o=S[0],V=m=S[1],E=y=S[2],C=w=S[3],x=k=S[4],a=0;a<80;a+=1)_=o+e[t+B[a]]|0,_+=a<16?p(m,y,w)+T[0]:a<32?v(m,y,w)+T[1]:a<48?h(m,y,w)+T[2]:a<64?f(m,y,w)+T[3]:g(m,y,w)+T[4],_=(_=b(_|=0,M[a]))+k|0,o=k,k=w,w=b(y,10),y=m,m=_,_=N+e[t+I[a]]|0,_+=a<16?g(V,E,C)+D[0]:a<32?f(V,E,C)+D[1]:a<48?h(V,E,C)+D[2]:a<64?v(V,E,C)+D[3]:p(V,E,C)+D[4],_=(_=b(_|=0,R[a]))+x|0,N=x,x=C,C=b(E,10),E=V,V=_;_=S[1]+y+C|0,S[1]=S[2]+w+x|0,S[2]=S[3]+k+N|0,S[3]=S[4]+o+V|0,S[4]=S[0]+m+E|0,S[0]=_},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,l=8*e.sigBytes;t[l>>>5]|=128<<24-l%32,t[14+(l+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,r=0;r<5;r++){var i=o[r];o[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,a){return e^t^a}function v(e,t,a){return e&t|~e&a}function h(e,t,a){return(e|~t)^a}function f(e,t,a){return e&a|t&~a}function g(e,t,a){return e^(t|~a)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=n._createHelper(m),t.HmacRIPEMD160=n._createHmacHelper(m)}(),e.RIPEMD160)),Tl.exports;var e}(),Il(),function(){return Ml||(Ml=1,Rl.exports=(s=Ya(),gl(),Il(),t=(e=s).lib,a=t.Base,l=t.WordArray,n=e.algo,o=n.SHA256,r=n.HMAC,i=n.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a=this.cfg,n=r.create(a.hasher,e),o=l.create(),i=l.create([1]),s=o.words,c=i.words,u=a.keySize,d=a.iterations;s.length<u;){var m=n.update(t).finalize(i);n.reset();for(var p=m.words,v=p.length,h=m,f=1;f<d;f++){h=n.finalize(h),n.reset();for(var g=h.words,b=0;b<v;b++)p[b]^=g[b]}o.concat(m),c[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,a){return i.create(a).compute(e,t)},s.PBKDF2)),Rl.exports;var e,t,a,l,n,o,r,i,s}(),Ll(),Ol(),function(){return zl||(zl=1,jl.exports=(e=Ya(),Ol(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function a(e,t,a,l){var n,o=this._iv;o?(n=o.slice(0),this._iv=void 0):n=this._prevBlock,l.encryptBlock(n,0);for(var r=0;r<a;r++)e[t+r]^=n[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var l=this._cipher,n=l.blockSize;a.call(this,e,t,n,l),this._prevBlock=e.slice(t,t+n)}}),t.Decryptor=t.extend({processBlock:function(e,t){var l=this._cipher,n=l.blockSize,o=e.slice(t,t+n);a.call(this,e,t,n,l),this._prevBlock=o}}),t}(),e.mode.CFB)),jl.exports;var e}(),function(){return ql||(ql=1,$l.exports=(a=Ya(),Ol(),a.mode.CTR=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,l=a.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=voi
|
||
|
|
/*!
|
||
|
|
* vue-router v4.5.1
|
||
|
|
* (c) 2025 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/var di,mi,pi,vi,hi,fi;(mi=di||(di={})).pop="pop",mi.push="push",(vi=pi||(pi={})).back="back",vi.forward="forward",vi.unknown="",(fi=hi||(hi={}))[fi.aborted=4]="aborted",fi[fi.cancelled=8]="cancelled",fi[fi.duplicated=16]="duplicated";const gi=Symbol("");function bi(t){return e.inject(gi)}const yi=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],wi=["一","二","三","四","五","六","日"],ki=["外出","出差","公司","办事处","请假","法定假日"],Ni={"外出":"#04C660","出差":"#41b883","公司":"#20A0F1","办事处":"#307af5","请假":"#f2c55c","法定假日":"#e88f89",null:"#e7e7e782"},Vi=["北京","市场二部","南区","北区","西区","市场三部"],Ei=["firstDayOfThe","secondDayOfThis","thirdDayOfThe","fourthDayOfThe","fifthDayOfThe","sixthDayOfThe","seventhDayOfThe"].map(e=>`${e}Week`),Ci=wi.map(e=>`星期${e}`),xi=wi.map(e=>`周${e}`),_i=yi.map(e=>`typeOf${e}`),Si=yi.map(e=>`eventOf${e}`);function Ti(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getDay();return Math.ceil((e.getDate()+t)/7)}function Di(e){l("log","at pages/business/CRM/plan/dateTimeUtils.js:28",e,888888888);var t=[];let a=(new Date).getDay();for(let l=a-1;l>=0;l--)"本周"===e?t.push(Bi(-l)):t.push(Ii(-l));for(let l=1;l<=7-a;l++)"本周"===e?t.push(Bi(l)):t.push(Ii(l));return{year:t[0].year,month:t[0].month,day:t[0].day,firstDayOfTheWeek:t[0].result,secondDayOfThisWeek:t[1].result,thirdDayOfTheWeek:t[2].result,fourthDayOfTheWeek:t[3].result,fifthDayOfTheWeek:t[4].result,sixthDayOfTheWeek:t[5].result,seventhDayOfTheWeek:t[6].result}}function Bi(e){var t=new Date;t.getTime();var a=t.getTime()+864e5*e;t.setTime(a);var l=t.getFullYear(),n=t.getMonth(),o=t.getDate();if(n+=1,"ios"==uni.getSystemInfoSync().platform){let e=new Date(l+"-"+n+"-"+o).getDay();return{day:o,isToday:o==(new Date).getDate(),month:n,result:l+"-"+n+"-"+o,week:e,year:l}}{let e=new Date(l+"-"+n+"-"+o).getDay();return{day:o,isToday:o==(new Date).getDate(),month:n,result:l+"-"+n+"-"+o,week:e,year:l}}}function Ii(e){var t=new Date;t.getTime();var a=t.getTime()+864e5*e;t.setTime(a+6048e5);var l=t.getFullYear(),n=t.getMonth(),o=t.getDate();if(n+=1,"ios"==uni.getSystemInfoSync().platform){let e=new Date(l+"-"+n+"-"+o).getDay();return{day:o,isToday:o==(new Date).getDate(),month:n,result:l+"-"+n+"-"+o,week:e,year:l}}{let e=new Date(l+"-"+n+"-"+o).getDay();return{day:o,isToday:o==(new Date).getDate(),month:n,result:l+"-"+n+"-"+o,week:e,year:l}}}const Mi=v({__name:"myPlan",setup(t){const a=e.ref(null),o=bi();a.value={nickName:"",userName:""};const r=e.ref({pageNum:1,pageSize:10}),i=new Date,s=e.ref(0),c=e.ref(null),u=e.ref(0),d=e.ref([]),m=e.ref(null);let p=e=>m.value?m.value[Ei[e]]:"",v=e=>m.value?m.value[_i[e]]:"",h=e=>m.value?m.value[Si[e]]:"";const g=()=>{var e;k.value=!1,uni.showLoading(),(e=r.value,Qt.get({url:"/crm/app/appWeeklyPlan/getWeeklyListByUser",data:e},{isTransformResponse:!1})).then(e=>{const{rows:t}=e;t.length>0&&(d.value=t,m.value=t[0],u.value=t[0].date,c.value=t[0].firstDayOfTheWeek.substring(0,7)),l("log","at pages/business/CRM/plan/myPlan.vue:130",o.path,"用户周计划列表获取成功")}).catch(e=>{l("log","at pages/business/CRM/plan/myPlan.vue:132",e,"周计划列表获取失败")}).finally(()=>{uni.hideLoading(),setTimeout(()=>k.value=!0,20)})};e.onMounted(()=>{g()});let b=e.computed(()=>{let e=m.value.firstDayOfTheWeek.substring(0,4);return u.value=m.value.date,c.value=m.value.firstDayOfTheWeek.substring(0,7),i.getFullYear()===parseInt(e)&&i.getMonth()+1===m.value.month&&Ti()===m.value.date});function y(e,t){uni.navigateTo({url:"/pages/business/CRM/plan/planEdit",events:{refreshData:function(){g()}},success:function(a){a.eventChannel.emit("editPlanData",{param:e,isAdd:t})}})}function w(){l("log","at pages/business/CRM/plan/myPlan.vue:174","handleCreate","前往增加计划");const e=["本周","下周"];uni.showActionSheet({itemList:e,success(t){var a;(a={month:(new Date).getMonth()+1,date:Ti()},Qt.post({url:"/crm/app/appWeeklyPlan/Judgethisweek",data:a,header:{"Content-Type":"application/json;charset=UTF-8
|