新登录页

This commit is contained in:
coderxqt 2023-09-25 10:02:56 +08:00
parent 27b5b10b86
commit b5621d651a
4 changed files with 80 additions and 0 deletions

View File

@ -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
View 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>

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB