增加geetest 加载动画展示

pull/17/head
youngS 4 years ago
parent a320bd9165
commit 7100febed9
  1. 7
      fir_client/src/utils/index.js

@ -291,6 +291,11 @@ export function ImgToBase64(url, callback) {
} }
export function geetest(self, params, callback) { export function geetest(self, params, callback) {
const loading = self.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
});
loginFun(res => { loginFun(res => {
if (res.code === 1000) { if (res.code === 1000) {
let data = res.data; let data = res.data;
@ -306,7 +311,7 @@ export function geetest(self, params, callback) {
self.$refs.captcha.innerHTML = ''; self.$refs.captcha.innerHTML = '';
captchaObj.appendTo("#captcha"); captchaObj.appendTo("#captcha");
captchaObj.onReady(() => { captchaObj.onReady(() => {
//your code loading.close()
}).onSuccess(() => { }).onSuccess(() => {
params.geetest = captchaObj.getValidate(); params.geetest = captchaObj.getValidate();
callback(params); callback(params);

Loading…
Cancel
Save