refactor: verify

This commit is contained in:
xingyu4j 2022-11-17 10:37:23 +08:00
parent b28baf0ef5
commit 7083d991fe
8 changed files with 24 additions and 62 deletions

View File

@ -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 {
}

View File

@ -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>

View File

@ -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',

View File

@ -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 {

View File

@ -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
})
}

View File

@ -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

View File

@ -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;
}

View File

@ -332,7 +332,7 @@
</script>
<style lang="scss" scoped>
::v-deep .order-table{
:deep(.order-table){
margin-top: 20px;
border-bottom: none;
&::before{