|
@@ -66,6 +66,7 @@ import { resetSize } from './../utils/util'
|
|
|
import { aesEncrypt } from './../utils/ase'
|
|
|
import { reqGet, reqCheck } from './../api/index'
|
|
|
import { onMounted, reactive, ref, nextTick, toRefs, getCurrentInstance } from 'vue'
|
|
|
+import { useI18n } from '@/hooks/web/useI18n'
|
|
|
export default {
|
|
|
name: 'VerifyPoints',
|
|
|
props: {
|
|
@@ -102,6 +103,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setup(props) {
|
|
|
+ const { t } = useI18n()
|
|
|
const { mode, captchaType } = toRefs(props)
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
let secretKey = ref(''), //后端返回的ase加密秘钥
|
|
@@ -174,7 +176,7 @@ export default {
|
|
|
if (res.repCode == '0000') {
|
|
|
barAreaColor.value = '#4cae4c'
|
|
|
barAreaBorderColor.value = '#5cb85c'
|
|
|
- text.value = '验证成功'
|
|
|
+ text.value = t('captcha.success')
|
|
|
bindingClick.value = false
|
|
|
if (mode.value == 'pop') {
|
|
|
setTimeout(() => {
|
|
@@ -187,7 +189,7 @@ export default {
|
|
|
proxy.$parent.$emit('error', proxy)
|
|
|
barAreaColor.value = '#d9534f'
|
|
|
barAreaBorderColor.value = '#d9534f'
|
|
|
- text.value = '验证失败'
|
|
|
+ text.value = t('captcha.fail')
|
|
|
setTimeout(() => {
|
|
|
refresh()
|
|
|
}, 700)
|
|
@@ -219,7 +221,7 @@ export default {
|
|
|
checkPosArr.splice(0, checkPosArr.length)
|
|
|
num.value = 1
|
|
|
getPictrue()
|
|
|
- text.value = '验证失败'
|
|
|
+ text.value = t('captcha.fail')
|
|
|
showRefresh.value = true
|
|
|
}
|
|
|
|
|
@@ -234,7 +236,7 @@ export default {
|
|
|
backToken.value = res.repData.token
|
|
|
secretKey.value = res.repData.secretKey
|
|
|
poinTextList.value = res.repData.wordList
|
|
|
- text.value = '请依次点击【' + poinTextList.value.join(',') + '】'
|
|
|
+ text.value = t('captcha.point') + '【' + poinTextList.value.join(',') + '】'
|
|
|
} else {
|
|
|
text.value = res.repMsg
|
|
|
}
|