first commit

This commit is contained in:
仲么了
2023-11-16 15:13:28 +08:00
commit 6023eac4fe
209 changed files with 34095 additions and 0 deletions

36
static/js/aes.js Normal file
View File

@@ -0,0 +1,36 @@
import CryptoJS from '../js/crypto.js'
// const key = CryptoJS.enc.Utf8.parse('1234123412ABCDEF') // 十六位十六进制数作为密钥
// const iv = CryptoJS.enc.Utf8.parse('ABCDEF1234123412') // 十六位十六进制数作为密钥偏移量
// 解密方法
function Decrypt (word, key) {
let ckey = CryptoJS.enc.Utf8.parse(key) // 十六位十六进制数作为密钥
// let encryptedHexStr = CryptoJS.enc.Hex.parse(word)
// let srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr)
let decrypt = CryptoJS.AES.decrypt(word, ckey, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
})
let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8)
console.log('decryptedStr', decryptedStr.toString())
return decryptedStr.toString()
}
// 加密方法
function Encrypt (word, key) {
let ckey = CryptoJS.enc.Utf8.parse(key)
// let srcs = CryptoJS.enc.Utf8.parse(word)
let encrypted = CryptoJS.AES.encrypt(word, ckey, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
})
return encrypted.toString()
}
export default {
Decrypt,
Encrypt
}

5988
static/js/crypto.js Normal file

File diff suppressed because it is too large Load Diff

24
static/js/des.js Normal file
View File

@@ -0,0 +1,24 @@
import CryptoJS from '../js/crypto.js'
// DES加密
export const encryptDes = (message, key) => {
const keyHex = CryptoJS.enc.Utf8.parse(key);
const encrypted = CryptoJS.DES.encrypt(message, keyHex, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
});
return encrypted.toString();
}
// DES解密
export const decryptDes = (ciphertext, key) => {
const keyHex = CryptoJS.enc.Utf8.parse(key);
// direct decrypt ciphertext
const decrypted = CryptoJS.DES.decrypt({
ciphertext: CryptoJS.enc.Base64.parse(ciphertext)
}, keyHex, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
});
return decrypted.toString(CryptoJS.enc.Utf8);
}

31
static/js/errorMsg.js Normal file
View File

@@ -0,0 +1,31 @@
function judgeError(msgCode,msg){
// if(msgCode=='10004'||msgCode=='10006'||msgCode=='10007'||msgCode=='10009'||msgCode=='10011'){
// return '请检查输入'
// }else
if(msgCode=='10031'){
return '未注册的手机号'
}else if(msgCode=='10022'||msgCode=='10025'){
return '验证码错误'
}else if(msgCode=='10019'){
return '推荐码不正确'
}else if(msgCode=='10003'||msgCode=='10013'||msgCode=='10021'||msgCode=='10028'){
return '请联系管理员'
}else if(msgCode=='10005'){
return '账户被锁定30分钟'
}else if(msgCode=='10010'||msgCode=='10111'||msgCode=='10172'){
return '用户不存在'
}else if(msgCode=='10016'||msgCode=='10018'||msgCode=='10027'){
return '网络异常,请重试'
}else if(msgCode=='10030'){
return '网络异常,请重试'
}else if(msgCode=='10112'){
return '未找到该暂态事件信息'
}else if(msgCode=='10173'){
return '未找到该终端消息'
}else{
return msg
}
}
export default{
judgeError
}

BIN
static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
static/pic/A_A.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
static/pic/A_B.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/pic/A_C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/pic/KV_A.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/pic/KV_B.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/pic/KV_C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/pic/aboutUs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
static/pic/asc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
static/pic/back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
static/pic/calendar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

BIN
static/pic/choose.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/pic/choose2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/pic/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/current.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

BIN
static/pic/dashboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
static/pic/data.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
static/pic/data_click.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/pic/delete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/pic/desc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

BIN
static/pic/dot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

BIN
static/pic/download.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/head.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
static/pic/history.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/pic/information.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/inner_buy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
static/pic/jump.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

BIN
static/pic/level.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
static/pic/level_up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
static/pic/me.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
static/pic/me_click.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/pic/no.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
static/pic/nochoose.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/normal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

BIN
static/pic/number.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 B

BIN
static/pic/pointer1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/pic/pointer2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
static/pic/pointer3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/pic/pointerAA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
static/pic/pointerAB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
static/pic/pointerAC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
static/pic/pointerKVA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/pic/pointerKVB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
static/pic/pointerKVC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/pic/pull.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

BIN
static/pic/pull_up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

BIN
static/pic/rectangle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

BIN
static/pic/report.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
static/pic/report_click.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
static/pic/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
static/pic/see.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/pic/see_close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/pic/setting.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
static/pic/steady.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 B

BIN
static/pic/terminal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

BIN
static/pic/time.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
static/pic/transient.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/pic/voltage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
static/pic/yes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB