From 9df9082b19c45417e4ef7dbddc740317255cfa97 Mon Sep 17 00:00:00 2001 From: lizhenhua <1075222162@qq.com> Date: Wed, 17 Dec 2025 17:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=AF=BC=E4=BA=BA=E5=91=98=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=BC=80=E5=8F=91=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/custInfo.js | 19 ++ src/utils/newaes.js | 26 ++ src/views/system/platuserInfo/index.vue | 327 ++++++++++++++++++++++++ 3 files changed, 372 insertions(+) create mode 100644 src/api/system/custInfo.js create mode 100644 src/utils/newaes.js create mode 100644 src/views/system/platuserInfo/index.vue 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 @@ + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + {{ scope.row.hasFunction ? '已开启' : '未开启' }} + + + + + + + + + + + + +