制作登录
This commit is contained in:
@ -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>
|
||||
Reference in New Issue
Block a user