Browse Source

登录页面

pull/19/head
zyronon 4 years ago
parent
commit
b0c20efa57
  1. 1
      src/App.vue
  2. 12
      src/assets/scss/custom.scss
  3. 1
      src/assets/scss/index.scss
  4. 9
      src/pages/login/Login.vue
  5. 154
      src/pages/login/OtherLogin.vue
  6. 1105
      src/pages/other/ServiceProtocol.vue
  7. 2
      src/router/index.js

1
src/App.vue

@ -70,6 +70,7 @@ export default { @@ -70,6 +70,7 @@ export default {
'/me/right-menu/minor-protection/trigger-time',
'/me/right-menu/setting',
'/login',
'/other-login',
'/service-protocol',

12
src/assets/scss/custom.scss

@ -100,6 +100,18 @@ @@ -100,6 +100,18 @@
}
}
&.disabled{
&.primary {
background: gainsboro;
color: white;
}
&:active {
&.primary {
background: gainsboro;
}
}
}
&.dark {
background: $second-btn-color;

1
src/assets/scss/index.scss

@ -15,6 +15,7 @@ html, body { @@ -15,6 +15,7 @@ html, body {
//background: #2e3244;
background: $main-bg;
font-size: 62.5%;
//letter-spacing: .11rem;
margin: 0;
padding: 0;
}

9
src/pages/login/Login.vue

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
</div>
<div class="button primary no-active">一键登录</div>
<div class="button white">其他手机号码登录</div>
<div class="button white" @click="$nav('/other-login')">其他手机号码登录</div>
<div class="protocol">
<!-- TODO -->
@ -22,15 +22,16 @@ @@ -22,15 +22,16 @@
我已阅读并同意
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”用户服务协议'})">用户协议</span>
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”用户服务协议'})">隐私政策</span>
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”隐私政策'})">隐私政策</span>
<div>
以及
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”用户服务协议'})">中国移动认证服务条款</span>
<span class="link" @click="$nav('/service-protocol',{type:'中国移动认证服务协议'})">中国移动认证服务条款</span>
同时登录并使用抖音火山版火山小视频和抖音
</div>
</div>
</div>
<!-- TODO -->
<div class="other-login">
<span class="link">其他方式登录</span>
@ -82,6 +83,7 @@ export default { @@ -82,6 +83,7 @@ export default {
}
.phone-number {
letter-spacing: .3rem;
font-size: 3rem;
margin-bottom: 1rem;
}
@ -97,6 +99,7 @@ export default { @@ -97,6 +99,7 @@ export default {
}
.protocol{
color: gray;
margin-top: 2rem;
font-size: 1.2rem;
}

154
src/pages/login/OtherLogin.vue

@ -0,0 +1,154 @@ @@ -0,0 +1,154 @@
<template>
<div class="other-login">
<BaseHeader>
<template v-slot:right>
<span class="f16">帮助</span>
</template>
</BaseHeader>
<div class="content">
<div class="notice">
<div class="title">登录看朋友内容</div>
<div class="sub-title">未注册的手机号验证通过后将自动注册</div>
</div>
<div class="input-number">
<div class="left">
<span>+86</span>
<div class="arrow"></div>
</div>
<input type="text" class="right" placeholder="请输入手机号">
</div>
<div class="protocol">
<!-- TODO -->
<div class="left"></div>
<div class="right">
已阅读并同意
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”用户服务协议'})">用户协议</span>
<span class="link" @click="$nav('/service-protocol',{type:'“抖音”隐私政策'})">隐私政策</span>
同时登录并使用抖音火山版火山小视频和抖音
</div>
</div>
<div class="button primary no-active disabled">获取短信验证码</div>
<div class="options">
<span class="link">密码登录</span>
<span class="link">其他方式登录</span>
</div>
</div>
</div>
</template>
<script>
export default {
name: "OtherLogin",
data() {
return {}
},
computed: {},
created() {
},
methods: {}
}
</script>
<style scoped lang="scss">
@import "../../assets/scss/index";
.other-login {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow: auto;
color: black;
font-size: 1.4rem;
background: white;
.content {
padding: 6rem 3rem;
//padding-top: 6rem;
.notice {
margin-bottom: 2rem;
margin-top: 4rem;
display: flex;
align-items: flex-start;
flex-direction: column;
.title {
font-size: 2rem;
margin-bottom: 1rem;
}
.sub-title {
font-size: 1.2rem;
color: $second-text-color;
}
}
.input-number {
display: flex;
background: whitesmoke;
padding: 1.5rem 1rem;
.left {
font-size: 1.2rem;
display: flex;
align-items: center;
margin-right: 1rem;
padding-right: 1rem;
position: relative;
.arrow {
margin-top: .4rem;
margin-left: .5rem;
width: 0;
height: 0;
border: .3rem solid transparent;
border-top: .5rem solid black;
}
&::before{
content: ' ';
position: absolute;
width: 1px;
height: .8rem;
top: 4px;
right: 0;
background: gray;
}
}
.right {
flex: 1;
outline: none;
border: none;
background: whitesmoke;
caret-color:red;
//background: red;
}
}
.button {
margin-bottom: .5rem;
}
.protocol {
color: gray;
margin-top: 2rem;
margin-bottom: 2rem;
font-size: 1.2rem;
}
.options{
font-size: 1.2rem;
margin-top: 2rem;
display: flex;
justify-content: space-between;
}
}
}
</style>

1105
src/pages/other/ServiceProtocol.vue

File diff suppressed because it is too large Load Diff

2
src/router/index.js

@ -37,6 +37,7 @@ import TriggerTime from "../pages/me/rightMenu/MinorProtection/TriggerTime"; @@ -37,6 +37,7 @@ import TriggerTime from "../pages/me/rightMenu/MinorProtection/TriggerTime";
import Setting from "../pages/me/rightMenu/Setting";
import Me2 from "../pages/me/Me2";
import Login from "../pages/login/Login";
import OtherLogin from "../pages/login/OtherLogin";
const routes = [
// {path: '', component: Music},
@ -78,6 +79,7 @@ const routes = [ @@ -78,6 +79,7 @@ const routes = [
{path: '/me/right-menu/minor-protection/trigger-time', component: TriggerTime},
{path: '/me/right-menu/setting', component: Setting},
{path: '/login', component: Login},
{path: '/other-login', component: OtherLogin},
]
export default VueRouter.createRouter({

Loading…
Cancel
Save