Files
jianbing/pages/login/login.vue
2025-04-22 11:22:18 +08:00

55 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="login">
<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>
<script>
export default {
data() {
return {
}
},
methods: {
quickLogin() {
uni.navigateTo({
url: '/pages/login/fast'
})
},
mobileLogin() {
uni.navigateTo({
url: '/pages/login/mobile'
})
}
}
}
</script>
<style lang="scss" scoped>
page {
background-color: #fff;
}
.login {
margin: 0 64rpx;
.logo {
margin-top: 150rpx;
}
}
</style>