From 48427994d4f5f28fb757dd012b8da1237e93513b Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 6 Aug 2022 00:59:24 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/verifition/Verify.vue | 847 ++++++------ .../components/verifition/utils/ase.js | 13 +- .../components/verifition/utils/request.js | 12 +- .../verifition/verifyPoint/verifyPoint.vue | 585 ++++----- .../verifition/verifySlider/verifySlider.vue | 1143 +++++++++-------- 5 files changed, 1308 insertions(+), 1292 deletions(-) diff --git a/yudao-ui-admin-uniapp/components/verifition/Verify.vue b/yudao-ui-admin-uniapp/components/verifition/Verify.vue index bd7e5de01..3fe4d884f 100644 --- a/yudao-ui-admin-uniapp/components/verifition/Verify.vue +++ b/yudao-ui-admin-uniapp/components/verifition/Verify.vue @@ -1,482 +1,469 @@ diff --git a/yudao-ui-admin-uniapp/components/verifition/utils/ase.js b/yudao-ui-admin-uniapp/components/verifition/utils/ase.js index 4c1c55945..1fdceed4f 100644 --- a/yudao-ui-admin-uniapp/components/verifition/utils/ase.js +++ b/yudao-ui-admin-uniapp/components/verifition/utils/ase.js @@ -3,9 +3,12 @@ import CryptoJS from 'crypto-js' * @word 要加密的内容 * @keyWord String 服务器随机返回的关键字 * */ -export function aesEncrypt(word,keyWord="XwKsGlMcdPMEhR1B"){ - var key = CryptoJS.enc.Utf8.parse(keyWord); - var srcs = CryptoJS.enc.Utf8.parse(word); - var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}); - return encrypted.toString(); +export function aesEncrypt(word, keyWord = "XwKsGlMcdPMEhR1B") { + var key = CryptoJS.enc.Utf8.parse(keyWord); + var srcs = CryptoJS.enc.Utf8.parse(word); + var encrypted = CryptoJS.AES.encrypt(srcs, key, { + mode: CryptoJS.mode.ECB, + padding: CryptoJS.pad.Pkcs7 + }); + return encrypted.toString(); } diff --git a/yudao-ui-admin-uniapp/components/verifition/utils/request.js b/yudao-ui-admin-uniapp/components/verifition/utils/request.js index 06bdbfe74..e6a31b02a 100644 --- a/yudao-ui-admin-uniapp/components/verifition/utils/request.js +++ b/yudao-ui-admin-uniapp/components/verifition/utils/request.js @@ -1,15 +1,15 @@ import config from '@/config' const baseUrl = config.baseUrl -export const myRequest = (option={})=>{ - return new Promise((reslove,reject)=>{ +export const myRequest = (option = {}) => { + return new Promise((reslove, reject) => { uni.request({ - url: baseUrl + option.url, - data :option.data, - method:option.method || "GET", + url: baseUrl + option.url, + data: option.data, + method: option.method || "GET", success: (result) => { reslove(result) }, - fail:(error)=>{ + fail: (error) => { reject(error) } }) diff --git a/yudao-ui-admin-uniapp/components/verifition/verifyPoint/verifyPoint.vue b/yudao-ui-admin-uniapp/components/verifition/verifyPoint/verifyPoint.vue index bb17709ad..ea794f4c9 100644 --- a/yudao-ui-admin-uniapp/components/verifition/verifyPoint/verifyPoint.vue +++ b/yudao-ui-admin-uniapp/components/verifition/verifyPoint/verifyPoint.vue @@ -1,24 +1,16 @@ diff --git a/yudao-ui-admin-uniapp/components/verifition/verifySlider/verifySlider.vue b/yudao-ui-admin-uniapp/components/verifition/verifySlider/verifySlider.vue index 3c9a5e69b..24ccd1aeb 100644 --- a/yudao-ui-admin-uniapp/components/verifition/verifySlider/verifySlider.vue +++ b/yudao-ui-admin-uniapp/components/verifition/verifySlider/verifySlider.vue @@ -1,226 +1,239 @@