mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	refactor: verify
This commit is contained in:
		| @@ -126,5 +126,23 @@ export function authorize(responseType, clientId, redirectUri, state, | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 获取验证图片  以及token | ||||
| export function reqGet(data) { | ||||
|   return request({ | ||||
|     url: 'system/captcha/get', | ||||
|     method: 'post', | ||||
|     data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 滑动或者点选验证 | ||||
| export function reqCheck(data) { | ||||
|   return request({ | ||||
|     url: '/system/captcha/check', | ||||
|     method: 'post', | ||||
|     data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export class socialBindLogin { | ||||
| } | ||||
|   | ||||
| @@ -92,13 +92,13 @@ export default { | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss" scoped> | ||||
| ::v-deep .el-transfer__button { | ||||
| :deep(.el-transfer__button) { | ||||
|   border-radius: 50%; | ||||
|   padding: 12px; | ||||
|   display: block; | ||||
|   margin-left: 0px; | ||||
| } | ||||
| ::v-deep .el-transfer__button:first-child { | ||||
| :deep(.el-transfer__button:first-child) { | ||||
|   margin-bottom: 10px; | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -60,7 +60,7 @@ | ||||
|  * */ | ||||
| import { resetSize } from './../utils/util' | ||||
| import { aesEncrypt } from '@/utils/ase' | ||||
| import { reqGet, reqCheck } from './../api/index' | ||||
| import { reqGet, reqCheck } from '@/api/login' | ||||
|  | ||||
| export default { | ||||
|   name: 'VerifyPoints', | ||||
|   | ||||
| @@ -64,7 +64,7 @@ | ||||
|  * */ | ||||
| import { aesEncrypt } from '@/utils/ase' | ||||
| import { resetSize } from './../utils/util' | ||||
| import { reqGet, reqCheck } from './../api/index' | ||||
| import { reqGet, reqCheck } from '@/api/login' | ||||
|  | ||||
| //  "captchaType":"blockPuzzle", | ||||
| export default { | ||||
|   | ||||
| @@ -1,27 +0,0 @@ | ||||
| /** | ||||
|  * 此处可直接引用自己项目封装好的 axios 配合后端联调 | ||||
|  */ | ||||
|  | ||||
| import request from './../utils/axios' // 组件内部封装的axios | ||||
| // import request from "@/api/axios.js"       //调用项目封装的axios | ||||
|  | ||||
| // 获取验证图片  以及token | ||||
| export function reqGet(data) { | ||||
|   return request({ | ||||
|     // url: '/captcha/get', | ||||
|     url: '/admin-api/system/captcha/get', // 使用项目自定义的 /admin-api/ 前缀 | ||||
|     method: 'post', | ||||
|     data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 滑动或者点选验证 | ||||
| export function reqCheck(data) { | ||||
|   return request({ | ||||
|     // url: '/captcha/check', | ||||
|     url: '/admin-api/system/captcha/check', // 使用项目自定义的 /admin-api/ 前缀 | ||||
|     method: 'post', | ||||
|     data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @@ -1,29 +0,0 @@ | ||||
| import axios from 'axios' | ||||
|  | ||||
| axios.defaults.baseURL = process.env.VUE_APP_BASE_API | ||||
|  | ||||
| const service = axios.create({ | ||||
|   timeout: 40000, | ||||
|   headers: { | ||||
|     'X-Requested-With': 'XMLHttpRequest', | ||||
|     'Content-Type': 'application/json; charset=UTF-8' | ||||
|   }, | ||||
| }) | ||||
| service.interceptors.request.use( | ||||
|   config => { | ||||
|     return config | ||||
|   }, | ||||
|   error => { | ||||
|     Promise.reject(error) | ||||
|   } | ||||
| ) | ||||
|  | ||||
| // response interceptor | ||||
| service.interceptors.response.use( | ||||
|   response => { | ||||
|     return response.data | ||||
|   }, | ||||
|   error => { | ||||
|   } | ||||
| ) | ||||
| export default service | ||||
| @@ -244,7 +244,7 @@ export default { | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
|   ::v-deep .el-descriptions{ | ||||
|   :deep(.el-descriptions){ | ||||
|     &:not(:nth-child(1)) { | ||||
|       margin-top: 20px; | ||||
|     } | ||||
|   | ||||
| @@ -332,7 +332,7 @@ | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
|   ::v-deep .order-table{ | ||||
|   :deep(.order-table){ | ||||
|     margin-top: 20px; | ||||
|     border-bottom: none; | ||||
|     &::before{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j