| | |
| | | </div> |
| | | |
| | | <!-- è´¦å·ä¿¡æ¯ --> |
| | | <div class="account-info"> |
| | | <el-link type="primary">å¿è®°å¯ç </el-link> |
| | | <el-link type="primary" @click="gotoRegister">ç¨æ·æ³¨å</el-link> |
| | | <!-- <p>æ¼ç¤ºè´¦å·ï¼admin666 å¯ç :123456</p> |
| | | <!-- <div class="account-info"> |
| | | <p>æ¼ç¤ºè´¦å·ï¼admin666 å¯ç :123456</p> |
| | | <p>æ¬å°è´¦å·ï¼admin å¯ç :123456</p> |
| | | <p><a href="https://jq.qq.com/?_wv=1027&k=Sqstuy0M" style="text-decoration: none" |
| | | target="_blank">QQ3群:743852316</a> |
| | | |
| | | <a href="http://v2.volcore.xyz/document/guide" style="text-decoration: none" target="_blank">æ¡æ¶ææ¡£</a> |
| | | </p> --> |
| | | </div> |
| | | </p> |
| | | </div> --> |
| | | <!-- 龿¥ä½ç½® --> |
| | | <!-- <div class="app-link" > |
| | | <a href="#" style="text-decoration: none">ç§»å¨ç«¯æ«ç </a> |
| | |
| | | <a href="http://120.48.115.252:9990" style="text-decoration: none" target="blank">è§é¢æ¼ç¤ºå°å</a> |
| | | </div> --> |
| | | |
| | | <!-- <img class="login-bg" src="/static/login_bg.png" /> --> |
| | | <img class="login-bg" :src="loginbg" /> |
| | | <img class="login-bg" src="/static/login_bg.png" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { useRouter, useRoute } from 'vue-router'; |
| | | import store from '../store/index'; |
| | | import http from '@/../src/api/http.js'; |
| | | var imgUrl = require("@/assets/login_bg.png"); |
| | | export default defineComponent({ |
| | | setup(props, context) { |
| | | store.commit('clearUserInfo', ''); |
| | | const loading = ref(false); |
| | | const codeImgSrc = ref(''); |
| | | const userInfo = reactive({ |
| | | userName: 'admin', |
| | | password: '123456', |
| | | verificationCode: '1234', |
| | | userName: '', |
| | | password: '', |
| | | verificationCode: '', |
| | | UUID: undefined |
| | | }); |
| | | |
| | | const loginbg = ref(imgUrl); |
| | | |
| | | const gotoRegister=()=>{ |
| | | router.push({ path: '/register' }); |
| | | }; |
| | | const getVierificationCode = () => { |
| | | http.get('/api/Sys_User/getVierificationCode').then((x) => { |
| | | http.get('/api/User/getVierificationCode').then((x) => { |
| | | codeImgSrc.value = 'data:image/png;base64,' + x.img; |
| | | userInfo.UUID = x.uuid; |
| | | }); |
| | |
| | | const login = () => { |
| | | if (!userInfo.userName) return $message.error('请è¾å
¥ç¨æ·å'); |
| | | if (!userInfo.password) return $message.error('请è¾å
¥å¯ç '); |
| | | if (!userInfo.verificationCode) { |
| | | return $message.error('请è¾å
¥éªè¯ç '); |
| | | } |
| | | if (!userInfo.verificationCode) return $message.error('请è¾å
¥éªè¯ç '); |
| | | if (userInfo.verificationCode!="1234") return $message.error('éªè¯ç æè¯¯'); |
| | | loading.value = true; |
| | | http.post('/api/Sys_User/login', userInfo, 'æ£å¨ç»å½....').then((result) => { |
| | | http.post('/api/User/login', userInfo, 'æ£å¨ç»å½....').then((result) => { |
| | | if (!result.status) { |
| | | loading.value = false; |
| | | getVierificationCode(); |
| | |
| | | login, |
| | | userInfo, |
| | | loginPress, |
| | | openUrl, |
| | | gotoRegister, |
| | | loginbg |
| | | openUrl |
| | | }; |
| | | }, |
| | | directives: { |