diff --git a/src/api/system/custInfo.js b/src/api/system/custInfo.js new file mode 100644 index 00000000..c742364b --- /dev/null +++ b/src/api/system/custInfo.js @@ -0,0 +1,19 @@ +// src/api/system/custInfo.js +import request from '@/utils/request' + +export function listCustInfo(query) { + return request({ + url: '/smart-canteen/custInfo/list', + method: 'get', + params: query + }) +} + +// 切换功能状态 +export function toggleFunction(data) { + return request({ + url: '/smart-canteen/custInfo/toggleFunction', + method: 'post', + data: data + }) +} diff --git a/src/utils/newaes.js b/src/utils/newaes.js new file mode 100644 index 00000000..81430a36 --- /dev/null +++ b/src/utils/newaes.js @@ -0,0 +1,26 @@ +import CryptoJS from "crypto-js"; + +/** + * 解密 + */ +export function bnsCloudDecrypt(word) { + const key = CryptoJS.enc.Utf8.parse("bonus@cloud@2025"); + const decrypt = CryptoJS.AES.decrypt(word, key, { + mode: CryptoJS.mode.ECB, + padding: CryptoJS.pad.Pkcs7 + }); + return CryptoJS.enc.Utf8.stringify(decrypt); +} + +/** + * 加密 + */ +export function bnsCloudEncrypt(word) { + const key = CryptoJS.enc.Utf8.parse("bonus@cloud@2025"); + const src = CryptoJS.enc.Utf8.parse(word); + const encrypted = CryptoJS.AES.encrypt(src, key, { + mode: CryptoJS.mode.ECB, + padding: CryptoJS.pad.Pkcs7 + }); + return encrypted.toString(); +} diff --git a/src/views/system/platuserInfo/index.vue b/src/views/system/platuserInfo/index.vue new file mode 100644 index 00000000..8f8d1233 --- /dev/null +++ b/src/views/system/platuserInfo/index.vue @@ -0,0 +1,327 @@ + + + + +