feat(xumu): 实现畜牧平台登录页面

- 新增登录页面组件 AppSign
- 添加用户名和密码登录功能
- 集成二维码登录
- 优化页面样式和布局
This commit is contained in:
aixianling
2024-12-17 17:55:58 +08:00
parent 536f579523
commit 0de94d76ee
8 changed files with 247 additions and 161 deletions

View File

@@ -9,8 +9,9 @@ import CryptoJs from "crypto-js";
export const $encryption = (params, c = 0) => {
if (CryptoJs) {
const key = "thanks,villcloud"
let password = typeof params == "object" ? params.password : params
let iv = CryptoJs.enc.Latin1.parse(key)
let encrypted = CryptoJs.AES.encrypt(params.password, iv, {
let encrypted = CryptoJs.AES.encrypt(password, iv, {
iv,
mode: CryptoJs.mode.CBC,
padding: CryptoJs.pad.ZeroPadding