新登录页
This commit is contained in:
parent
27b5b10b86
commit
b5621d651a
18
pages.json
18
pages.json
@ -39,6 +39,24 @@
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/login1/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/register/register",
|
||||
"style": {
|
||||
"navigationBarTitleText": "注册",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [{
|
||||
|
||||
47
pages/login1/login.vue
Normal file
47
pages/login1/login.vue
Normal file
@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<view class="login">
|
||||
<image src="../../static/pages/logo.png"></image>
|
||||
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">手机号快捷登录</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getPhoneNumber (e) {
|
||||
console.log(e.detail.code) // 动态令牌
|
||||
console.log(e.detail.errMsg) // 回调信息(成功失败都会返回)
|
||||
console.log(e.detail.errno) // 错误码(失败时返回)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.login {
|
||||
text-align: center;
|
||||
margin-top: 50%;
|
||||
image {
|
||||
width: 196rpx;
|
||||
height: 203rpx;
|
||||
margin-bottom: 136rpx;
|
||||
}
|
||||
button {
|
||||
margin-top: 136rpx;
|
||||
width: 496rpx;
|
||||
height: 61rpx;
|
||||
background: #26A888;
|
||||
border-radius: 5rpx;
|
||||
font-size: 31rpx;
|
||||
color: #FFF;
|
||||
font-weight: 500;
|
||||
line-height: 61rpx;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
15
pages/register/register.vue
Normal file
15
pages/register/register.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="register">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
BIN
static/pages/logo.png
Normal file
BIN
static/pages/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in New Issue
Block a user