制作登录

This commit is contained in:
2025-04-22 11:22:18 +08:00
parent 5d4a682c16
commit 16074dd05e
515 changed files with 28526 additions and 38120 deletions

View File

@ -1,7 +1,17 @@
<template>
<view class="login">
<view>
<view class="u-flex u-row-center logo">
<u-image :src="cloudPath + 'img/login-logo.png'" width="574rpx" height="432rpx"></u-image>
</view>
<view class="u-text-center text-gray">
<view>小程序需要登录注册才能使用相关功能申请获取以下权限</view>
<view class="u-margin-top-20">获得你的公开信息(昵称头像手机号码等)</view>
</view>
<view class="u-margin-top-56">
<u-button @click="quickLogin" hover-class="none" :customStyle="{backgroundColor: themeColor, color: '#fff', border: 'none', padding: '16rpx 0'}" :hair-line="false" shape="circle">快捷登录</u-button>
<u-button @click="mobileLogin" hover-class="none" class="u-margin-top-32" :customStyle="{color: themeColor, border: '1px solid ' + themeColor, padding: '16rpx 0'}" :plain="true" :hair-line="false" shape="circle">手机号登录/注册</u-button>
</view>
</view>
</template>
@ -12,12 +22,34 @@
return {
}
},
methods: {
quickLogin() {
uni.navigateTo({
url: '/pages/login/fast'
})
},
mobileLogin() {
uni.navigateTo({
url: '/pages/login/mobile'
})
}
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
page {
background-color: #fff;
}
.login {
margin: 0 64rpx;
.logo {
margin-top: 150rpx;
}
}
</style>