Ver código fonte

style: 格式化代码

xingyu4j 2 anos atrás
pai
commit
48427994d4

Diferenças do arquivo suprimidas por serem muito extensas
+ 146 - 378
yudao-ui-admin-uniapp/components/verifition/Verify.vue


+ 8 - 5
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();
 }

+ 6 - 6
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)
 			}
 		})

Diferenças do arquivo suprimidas por serem muito extensas
+ 137 - 220
yudao-ui-admin-uniapp/components/verifition/verifyPoint/verifyPoint.vue


Diferenças do arquivo suprimidas por serem muito extensas
+ 312 - 517
yudao-ui-admin-uniapp/components/verifition/verifySlider/verifySlider.vue


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff