From 4de5f40a1a7df4a252b0f44869e7599a066c06b2 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期三, 15 十一月 2023 09:16:23 +0800 Subject: [PATCH] 修改视频专网 --- src/views/login.vue | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 3a3128f..3fc0f89 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,6 +1,6 @@ <template> <div class="login"> - <el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form"> + <el-form style="display: none" ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form"> <h3 class="title">璺ㄧ綉鏂囦欢鍚屾绯荤粺</h3> <!-- <el-form-item prop="tenantId" v-if="tenantEnabled">--> <!-- <el-select v-model="loginForm.tenantId" filterable placeholder="璇烽�夋嫨/杈撳叆鍏徃鍚嶇О" style="width: 100%">--> @@ -8,17 +8,17 @@ <!-- <template #prefix><svg-icon icon-class="company" class="el-input__icon input-icon" /></template>--> <!-- </el-select>--> <!-- </el-form-item>--> - <el-form-item style="display: none" prop="username"> + <el-form-item prop="username"> <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" placeholder="璐﹀彿"> <template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template> </el-input> </el-form-item> - <el-form-item style="display: none" prop="password"> + <el-form-item prop="password"> <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="瀵嗙爜" @keyup.enter="handleLogin"> <template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template> </el-input> </el-form-item> - <el-form-item style="display: none" prop="code" v-if="captchaEnabled"> + <el-form-item prop="code" v-if="captchaEnabled"> <el-input v-model="loginForm.code" size="large" auto-complete="off" placeholder="楠岃瘉鐮�" style="width: 63%" @keyup.enter="handleLogin"> <template #prefix><svg-icon icon-class="validCode" class="el-input__icon input-icon" /></template> </el-input> @@ -26,7 +26,7 @@ <img :src="codeUrl" @click="getCode" class="login-code-img" /> </div> </el-form-item> - <el-checkbox style="display: none;margin:0px 0px 25px 0px;" v-model="loginForm.rememberMe" >璁颁綇瀵嗙爜</el-checkbox> + <el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">璁颁綇瀵嗙爜</el-checkbox> <!-- <el-form-item style="float: right;">--> <!-- <el-button circle title="寰俊鐧诲綍" @click="doSocialLogin('wechat')">--> <!-- <svg-icon icon-class="wechat" />--> @@ -41,7 +41,7 @@ <!-- <svg-icon icon-class="github" />--> <!-- </el-button>--> <!-- </el-form-item>--> - <el-form-item style="display: none;width:100%;" > + <el-form-item style="width:100%;"> <el-button :loading="loading" size="large" type="primary" style="width:100%;" @click.prevent="handleLogin"> <span v-if="!loading">鐧� 褰�</span> <span v-else>鐧� 褰� 涓�...</span> @@ -205,6 +205,7 @@ }); }; + const setAddUser = async (val: any | number | (string | number)[]) => { console.log(val); const res = await createUser(val) @@ -215,8 +216,17 @@ } } +import FingerprintJS from '@fingerprintjs/fingerprintjs' onMounted(async () => { + + FingerprintJS.load().then(fp => { + fp.get().then(result => { + const visitorId = result.visitorId; + console.log(visitorId,'娴忚鍣ㄦ寚绾硅瘑鍒爜'); + }); + }); + try { // 浣跨敤fetch API鑾峰彇褰撳墠IP鍦板潃 await fetch('https://api.ipify.org/?format=json') @@ -234,9 +244,7 @@ console.log(error); } router.push('index') - // getCode(); - // initTenantList(); - // getLoginData(); + }); </script> -- Gitblit v1.8.0