-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46bbe39
commit 65cc9ed
Showing
3 changed files
with
527 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<template> | ||
<div class="login-container"> | ||
<div id="logo"> | ||
<h1><i> STARK INDUSTRIES</i></h1> | ||
</div> | ||
<section class="stark-login"> | ||
|
||
<div class="form"> | ||
<div id="fade-box"> | ||
<input v-model="username" id="username" name="username" placeholder="Username" required type="text"> | ||
<input v-model="password" placeholder="Password" required type="password"> | ||
|
||
<button @click="login">Log In</button> | ||
</div> | ||
</div> | ||
<div class="hexagons"> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<br> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<br> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
|
||
<br> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<br> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
<span>⬢</span> | ||
</div> | ||
</section> | ||
|
||
<div id="circle1"> | ||
<div id="inner-cirlce1"> | ||
<h2></h2> | ||
</div> | ||
</div> | ||
|
||
|
||
<ul> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
</ul> | ||
|
||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "index", | ||
data() { | ||
return { | ||
username: '', | ||
password: '' | ||
} | ||
}, | ||
methods: { | ||
login() { | ||
if (this.username === 'admin' && this.password === 'admin') { | ||
this.$router.push({path: '/index'}); | ||
sessionStorage.isLogined = JSON.stringify(true); | ||
} else { | ||
this.$message.error('用户名或密码错误!') | ||
} | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="less" scoped src="./login.less"> | ||
</style> |
Oops, something went wrong.