diff --git a/components/Head/index.wxml b/components/Head/index.wxml index b62893b..36261e1 100644 --- a/components/Head/index.wxml +++ b/components/Head/index.wxml @@ -5,7 +5,7 @@ - + {{text}} diff --git a/components/noData/nodata.wxml b/components/noData/nodata.wxml index 73be09c..56f243b 100644 --- a/components/noData/nodata.wxml +++ b/components/noData/nodata.wxml @@ -1,6 +1,5 @@ - 暂无数据~ diff --git a/images/home/information.png b/images/home/information.png index 9085597..7bc9fb7 100644 Binary files a/images/home/information.png and b/images/home/information.png differ diff --git a/images/home/informationSelected.png b/images/home/informationSelected.png index 1a508d0..1fa8734 100644 Binary files a/images/home/informationSelected.png and b/images/home/informationSelected.png differ diff --git a/images/home/message.png b/images/home/message.png index 57a93ad..9980350 100644 Binary files a/images/home/message.png and b/images/home/message.png differ diff --git a/images/home/messageSelected.png b/images/home/messageSelected.png index d00f096..93050c8 100644 Binary files a/images/home/messageSelected.png and b/images/home/messageSelected.png differ diff --git a/images/home/mine.png b/images/home/mine.png index c648e22..4298d61 100644 Binary files a/images/home/mine.png and b/images/home/mine.png differ diff --git a/images/home/mineSelected.png b/images/home/mineSelected.png index f9837fc..054d1c5 100644 Binary files a/images/home/mineSelected.png and b/images/home/mineSelected.png differ diff --git a/images/home/resiAndHouse.png b/images/home/resiAndHouse.png index df6c771..01d70f3 100644 Binary files a/images/home/resiAndHouse.png and b/images/home/resiAndHouse.png differ diff --git a/images/home/resiAndHouseSelected.png b/images/home/resiAndHouseSelected.png index 3caf07f..2e2c8df 100644 Binary files a/images/home/resiAndHouseSelected.png and b/images/home/resiAndHouseSelected.png differ diff --git a/images/home/work.png b/images/home/work.png index bc87ba4..aa5de0c 100644 Binary files a/images/home/work.png and b/images/home/work.png differ diff --git a/images/home/workSelected.png b/images/home/workSelected.png index 5d17413..b4f937b 100644 Binary files a/images/home/workSelected.png and b/images/home/workSelected.png differ diff --git a/images/statistics/icon-back.png b/images/statistics/icon-back.png deleted file mode 100644 index 8c80c0a..0000000 Binary files a/images/statistics/icon-back.png and /dev/null differ diff --git a/images/work2/add_houses.png b/images/work2/add_houses.png index 669dbfa..bee423e 100644 Binary files a/images/work2/add_houses.png and b/images/work2/add_houses.png differ diff --git a/images/work2/add_record.png b/images/work2/add_record.png index f545fa0..fb7bbb1 100644 Binary files a/images/work2/add_record.png and b/images/work2/add_record.png differ diff --git a/images/work2/add_resident.png b/images/work2/add_resident.png index 68eb0f1..44f4b0e 100644 Binary files a/images/work2/add_resident.png and b/images/work2/add_resident.png differ diff --git a/images/work2/rep_record.png b/images/work2/rep_record.png index 6da7bb0..f5a8a91 100644 Binary files a/images/work2/rep_record.png and b/images/work2/rep_record.png differ diff --git a/images/work2/reporting.png b/images/work2/reporting.png index 9b6196f..62cf74c 100644 Binary files a/images/work2/reporting.png and b/images/work2/reporting.png differ diff --git a/images/work2/satisfaction.png b/images/work2/satisfaction.png index 4272a41..56fb987 100644 Binary files a/images/work2/satisfaction.png and b/images/work2/satisfaction.png differ diff --git a/images/work2/slices.png b/images/work2/slices.png index dab7910..83d749e 100644 Binary files a/images/work2/slices.png and b/images/work2/slices.png differ diff --git a/images/work2/work2.png b/images/work2/work2.png index 52c05e7..0cd111a 100644 Binary files a/images/work2/work2.png and b/images/work2/work2.png differ diff --git a/libs/jsencrypt/lib/JSEncrypt.d.ts b/libs/jsencrypt/lib/JSEncrypt.d.ts deleted file mode 100644 index d81c134..0000000 --- a/libs/jsencrypt/lib/JSEncrypt.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { JSEncryptRSAKey } from "./JSEncryptRSAKey"; -export interface IJSEncryptOptions { - default_key_size?: string; - default_public_exponent?: string; - log?: boolean; -} -/** - * - * @param {Object} [options = {}] - An object to customize JSEncrypt behaviour - * possible parameters are: - * - default_key_size {number} default: 1024 the key size in bit - * - default_public_exponent {string} default: '010001' the hexadecimal representation of the public exponent - * - log {boolean} default: false whether log warn/error or not - * @constructor - */ -export declare class JSEncrypt { - constructor(options?: IJSEncryptOptions); - private default_key_size; - private default_public_exponent; - private log; - private key; - static version: string; - /** - * Method to set the rsa key parameter (one method is enough to set both the public - * and the private key, since the private key contains the public key paramenters) - * Log a warning if logs are enabled - * @param {Object|string} key the pem encoded string or an object (with or without header/footer) - * @public - */ - setKey(key: string): void; - /** - * Proxy method for setKey, for api compatibility - * @see setKey - * @public - */ - setPrivateKey(privkey: string): void; - /** - * Proxy method for setKey, for api compatibility - * @see setKey - * @public - */ - setPublicKey(pubkey: string): void; - /** - * Proxy method for RSAKey object's decrypt, decrypt the string using the private - * components of the rsa key object. Note that if the object was not set will be created - * on the fly (by the getKey method) using the parameters passed in the JSEncrypt constructor - * @param {string} str base64 encoded crypted string to decrypt - * @return {string} the decrypted string - * @public - */ - decrypt(str: string): string | false; - /** - * Proxy method for RSAKey object's encrypt, encrypt the string using the public - * components of the rsa key object. Note that if the object was not set will be created - * on the fly (by the getKey method) using the parameters passed in the JSEncrypt constructor - * @param {string} str the string to encrypt - * @return {string} the encrypted string encoded in base64 - * @public - */ - encrypt(str: string): string | false; - /** - * Proxy method for RSAKey object's sign. - * @param {string} str the string to sign - * @param {function} digestMethod hash method - * @param {string} digestName the name of the hash algorithm - * @return {string} the signature encoded in base64 - * @public - */ - sign(str: string, digestMethod: (str: string) => string, digestName: string): string | false; - /** - * Proxy method for RSAKey object's verify. - * @param {string} str the string to verify - * @param {string} signature the signature encoded in base64 to compare the string to - * @param {function} digestMethod hash method - * @return {boolean} whether the data and signature match - * @public - */ - verify(str: string, signature: string, digestMethod: (str: string) => string): boolean; - /** - * Getter for the current JSEncryptRSAKey object. If it doesn't exists a new object - * will be created and returned - * @param {callback} [cb] the callback to be called if we want the key to be generated - * in an async fashion - * @returns {JSEncryptRSAKey} the JSEncryptRSAKey object - * @public - */ - getKey(cb?: () => void): JSEncryptRSAKey; - /** - * Returns the pem encoded representation of the private key - * If the key doesn't exists a new key will be created - * @returns {string} pem encoded representation of the private key WITH header and footer - * @public - */ - getPrivateKey(): string; - /** - * Returns the pem encoded representation of the private key - * If the key doesn't exists a new key will be created - * @returns {string} pem encoded representation of the private key WITHOUT header and footer - * @public - */ - getPrivateKeyB64(): string; - /** - * Returns the pem encoded representation of the public key - * If the key doesn't exists a new key will be created - * @returns {string} pem encoded representation of the public key WITH header and footer - * @public - */ - getPublicKey(): string; - /** - * Returns the pem encoded representation of the public key - * If the key doesn't exists a new key will be created - * @returns {string} pem encoded representation of the public key WITHOUT header and footer - * @public - */ - getPublicKeyB64(): string; -} diff --git a/libs/jsencrypt/lib/JSEncryptRSAKey.d.ts b/libs/jsencrypt/lib/JSEncryptRSAKey.d.ts deleted file mode 100644 index dbb77e4..0000000 --- a/libs/jsencrypt/lib/JSEncryptRSAKey.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { RSAKey } from "./lib/jsbn/rsa"; -/** - * Create a new JSEncryptRSAKey that extends Tom Wu's RSA key object. - * This object is just a decorator for parsing the key parameter - * @param {string|Object} key - The key in string format, or an object containing - * the parameters needed to build a RSAKey object. - * @constructor - */ -export declare class JSEncryptRSAKey extends RSAKey { - constructor(key?: string); - /** - * Method to parse a pem encoded string containing both a public or private key. - * The method will translate the pem encoded string in a der encoded string and - * will parse private key and public key parameters. This method accepts public key - * in the rsaencryption pkcs #1 format (oid: 1.2.840.113549.1.1.1). - * - * @todo Check how many rsa formats use the same format of pkcs #1. - * - * The format is defined as: - * PublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * PublicKey BIT STRING - * } - * Where AlgorithmIdentifier is: - * AlgorithmIdentifier ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm - * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1) - * } - * and PublicKey is a SEQUENCE encapsulated in a BIT STRING - * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER -- e - * } - * it's possible to examine the structure of the keys obtained from openssl using - * an asn.1 dumper as the one used here to parse the components: http://lapo.it/asn1js/ - * @argument {string} pem the pem encoded string, can include the BEGIN/END header/footer - * @private - */ - parseKey(pem: string): boolean; - /** - * Translate rsa parameters in a hex encoded string representing the rsa key. - * - * The translation follow the ASN.1 notation : - * RSAPrivateKey ::= SEQUENCE { - * version Version, - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * privateExponent INTEGER, -- d - * prime1 INTEGER, -- p - * prime2 INTEGER, -- q - * exponent1 INTEGER, -- d mod (p1) - * exponent2 INTEGER, -- d mod (q-1) - * coefficient INTEGER, -- (inverse of q) mod p - * } - * @returns {string} DER Encoded String representing the rsa private key - * @private - */ - getPrivateBaseKey(): string; - /** - * base64 (pem) encoded version of the DER encoded representation - * @returns {string} pem encoded representation without header and footer - * @public - */ - getPrivateBaseKeyB64(): string; - /** - * Translate rsa parameters in a hex encoded string representing the rsa public key. - * The representation follow the ASN.1 notation : - * PublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * PublicKey BIT STRING - * } - * Where AlgorithmIdentifier is: - * AlgorithmIdentifier ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm - * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1) - * } - * and PublicKey is a SEQUENCE encapsulated in a BIT STRING - * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER -- e - * } - * @returns {string} DER Encoded String representing the rsa public key - * @private - */ - getPublicBaseKey(): string; - /** - * base64 (pem) encoded version of the DER encoded representation - * @returns {string} pem encoded representation without header and footer - * @public - */ - getPublicBaseKeyB64(): string; - /** - * wrap the string in block of width chars. The default value for rsa keys is 64 - * characters. - * @param {string} str the pem encoded string without header and footer - * @param {Number} [width=64] - the length the string has to be wrapped at - * @returns {string} - * @private - */ - static wordwrap(str: string, width?: number): string; - /** - * Retrieve the pem encoded private key - * @returns {string} the pem encoded private key with header/footer - * @public - */ - getPrivateKey(): string; - /** - * Retrieve the pem encoded public key - * @returns {string} the pem encoded public key with header/footer - * @public - */ - getPublicKey(): string; - /** - * Check if the object contains the necessary parameters to populate the rsa modulus - * and public exponent parameters. - * @param {Object} [obj={}] - An object that may contain the two public key - * parameters - * @returns {boolean} true if the object contains both the modulus and the public exponent - * properties (n and e) - * @todo check for types of n and e. N should be a parseable bigInt object, E should - * be a parseable integer number - * @private - */ - static hasPublicKeyProperty(obj: object): boolean; - /** - * Check if the object contains ALL the parameters of an RSA key. - * @param {Object} [obj={}] - An object that may contain nine rsa key - * parameters - * @returns {boolean} true if the object contains all the parameters needed - * @todo check for types of the parameters all the parameters but the public exponent - * should be parseable bigint objects, the public exponent should be a parseable integer number - * @private - */ - static hasPrivateKeyProperty(obj: object): boolean; - /** - * Parse the properties of obj in the current rsa object. Obj should AT LEAST - * include the modulus and public exponent (n, e) parameters. - * @param {Object} obj - the object containing rsa parameters - * @private - */ - parsePropertiesFrom(obj: any): void; -} diff --git a/libs/jsencrypt/lib/index.d.ts b/libs/jsencrypt/lib/index.d.ts deleted file mode 100644 index cae3cf2..0000000 --- a/libs/jsencrypt/lib/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSEncrypt } from './JSEncrypt'; -export { JSEncrypt }; -export default JSEncrypt; diff --git a/libs/jsencrypt/lib/lib/jsbn/base64.d.ts b/libs/jsencrypt/lib/lib/jsbn/base64.d.ts deleted file mode 100644 index b9e20fd..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/base64.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function hex2b64(h: string): string; -export declare function b64tohex(s: string): string; -export declare function b64toBA(s: string): number[]; diff --git a/libs/jsencrypt/lib/lib/jsbn/jsbn.d.ts b/libs/jsencrypt/lib/lib/jsbn/jsbn.d.ts deleted file mode 100644 index 8087f1e..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/jsbn.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { SecureRandom } from "./rng"; -export declare class BigInteger { - constructor(a: number | number[] | string, b?: number | SecureRandom, c?: number | SecureRandom); - toString(b: number): string; - protected negate(): BigInteger; - abs(): BigInteger; - compareTo(a: BigInteger): number; - bitLength(): number; - mod(a: BigInteger): BigInteger; - modPowInt(e: number, m: BigInteger): BigInteger; - protected clone(): BigInteger; - protected intValue(): number; - protected byteValue(): number; - protected shortValue(): number; - protected signum(): 0 | 1 | -1; - toByteArray(): number[]; - protected equals(a: BigInteger): boolean; - protected min(a: BigInteger): BigInteger; - protected max(a: BigInteger): BigInteger; - protected and(a: BigInteger): BigInteger; - protected or(a: BigInteger): BigInteger; - protected xor(a: BigInteger): BigInteger; - protected andNot(a: BigInteger): BigInteger; - protected not(): BigInteger; - protected shiftLeft(n: number): BigInteger; - protected shiftRight(n: number): BigInteger; - protected getLowestSetBit(): number; - protected bitCount(): number; - protected testBit(n: number): boolean; - protected setBit(n: number): BigInteger; - protected clearBit(n: number): BigInteger; - protected flipBit(n: number): BigInteger; - add(a: BigInteger): BigInteger; - subtract(a: BigInteger): BigInteger; - multiply(a: BigInteger): BigInteger; - divide(a: BigInteger): BigInteger; - protected remainder(a: BigInteger): BigInteger; - protected divideAndRemainder(a: BigInteger): BigInteger[]; - modPow(e: BigInteger, m: BigInteger): BigInteger; - modInverse(m: BigInteger): BigInteger; - protected pow(e: number): BigInteger; - gcd(a: BigInteger): BigInteger; - isProbablePrime(t: number): boolean; - copyTo(r: BigInteger): void; - fromInt(x: number): void; - protected fromString(s: string | number[], b: number): void; - clamp(): void; - dlShiftTo(n: number, r: BigInteger): void; - drShiftTo(n: number, r: BigInteger): void; - protected lShiftTo(n: number, r: BigInteger): void; - protected rShiftTo(n: number, r: BigInteger): void; - subTo(a: BigInteger, r: BigInteger): void; - multiplyTo(a: BigInteger, r: BigInteger): void; - squareTo(r: BigInteger): void; - divRemTo(m: BigInteger, q: BigInteger, r: BigInteger): void; - invDigit(): number; - protected isEven(): boolean; - protected exp(e: number, z: IReduction): BigInteger; - protected chunkSize(r: number): number; - protected toRadix(b: number): string; - fromRadix(s: string, b: number): void; - protected fromNumber(a: number, b: number | SecureRandom, c?: number | SecureRandom): void; - protected bitwiseTo(a: BigInteger, op: (a: number, b: number) => number, r: BigInteger): void; - protected changeBit(n: number, op: (a: number, b: number) => number): BigInteger; - protected addTo(a: BigInteger, r: BigInteger): void; - protected dMultiply(n: number): void; - dAddOffset(n: number, w: number): void; - multiplyLowerTo(a: BigInteger, n: number, r: BigInteger): void; - multiplyUpperTo(a: BigInteger, n: number, r: BigInteger): void; - protected modInt(n: number): number; - protected millerRabin(t: number): boolean; - protected square(): BigInteger; - gcda(a: BigInteger, callback: (x: BigInteger) => void): void; - fromNumberAsync(a: number, b: number | SecureRandom, c: number | SecureRandom, callback: () => void): void; - s: number; - t: number; - DB: number; - DM: number; - DV: number; - FV: number; - F1: number; - F2: number; - am: (i: number, x: number, w: BigInteger, j: number, c: number, n: number) => number; - [index: number]: number; - static ONE: BigInteger; - static ZERO: BigInteger; -} -export interface IReduction { - convert(x: BigInteger): BigInteger; - revert(x: BigInteger): BigInteger; - mulTo(x: BigInteger, y: BigInteger, r: BigInteger): void; - sqrTo(x: BigInteger, r: BigInteger): void; -} -export declare function nbi(): BigInteger; -export declare function parseBigInt(str: string, r: number): BigInteger; -export declare function intAt(s: string, i: number): number; -export declare function nbv(i: number): BigInteger; -export declare function nbits(x: number): number; diff --git a/libs/jsencrypt/lib/lib/jsbn/prng4.d.ts b/libs/jsencrypt/lib/lib/jsbn/prng4.d.ts deleted file mode 100644 index f3ec870..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/prng4.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare class Arcfour { - constructor(); - init(key: number[]): void; - next(): number; - private i; - private j; - private S; -} -export declare function prng_newstate(): Arcfour; -export declare let rng_psize: number; diff --git a/libs/jsencrypt/lib/lib/jsbn/rng.d.ts b/libs/jsencrypt/lib/lib/jsbn/rng.d.ts deleted file mode 100644 index 49ad80d..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/rng.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare class SecureRandom { - nextBytes(ba: number[]): void; -} diff --git a/libs/jsencrypt/lib/lib/jsbn/rsa.d.ts b/libs/jsencrypt/lib/lib/jsbn/rsa.d.ts deleted file mode 100644 index 1285ad3..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/rsa.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BigInteger } from "./jsbn"; -export declare class RSAKey { - constructor(); - doPublic(x: BigInteger): BigInteger; - doPrivate(x: BigInteger): BigInteger; - setPublic(N: string, E: string): void; - encrypt(text: string): string; - setPrivate(N: string, E: string, D: string): void; - setPrivateEx(N: string, E: string, D: string, P: string, Q: string, DP: string, DQ: string, C: string): void; - generate(B: number, E: string): void; - decrypt(ctext: string): string; - generateAsync(B: number, E: string, callback: () => void): void; - sign(text: string, digestMethod: (str: string) => string, digestName: string): string; - verify(text: string, signature: string, digestMethod: (str: string) => string): boolean; - protected n: BigInteger; - protected e: number; - protected d: BigInteger; - protected p: BigInteger; - protected q: BigInteger; - protected dmp1: BigInteger; - protected dmq1: BigInteger; - protected coeff: BigInteger; -} diff --git a/libs/jsencrypt/lib/lib/jsbn/util.d.ts b/libs/jsencrypt/lib/lib/jsbn/util.d.ts deleted file mode 100644 index 57d0160..0000000 --- a/libs/jsencrypt/lib/lib/jsbn/util.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare function int2char(n: number): string; -export declare function op_and(x: number, y: number): number; -export declare function op_or(x: number, y: number): number; -export declare function op_xor(x: number, y: number): number; -export declare function op_andnot(x: number, y: number): number; -export declare function lbit(x: number): number; -export declare function cbit(x: number): number;