64 lines
1.4 KiB
Vue
64 lines
1.4 KiB
Vue
<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">
|
||
<!-- #ifdef MP -->
|
||
<view class="u-margin-bottom-32">
|
||
<u-button @click="fastLogin" hover-class="none" :customStyle="{backgroundColor: themeColor, color: '#fff', border: 'none', padding: '16rpx 0'}" :hair-line="false" shape="circle">快捷登录</u-button>
|
||
</view>
|
||
<!-- #endif -->
|
||
<view>
|
||
<u-button @click="mobileLogin" hover-class="none" :customStyle="{color: themeColor, border: '1px solid ' + themeColor, padding: '16rpx 0'}" :plain="true" :hair-line="false" shape="circle">手机号登录/注册</u-button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
}
|
||
},
|
||
|
||
onLoad() {
|
||
|
||
},
|
||
|
||
methods: {
|
||
fastLogin() {
|
||
uni.navigateTo({
|
||
url: '/pages/login/fastLogin'
|
||
})
|
||
},
|
||
|
||
mobileLogin() {
|
||
uni.navigateTo({
|
||
url: '/pages/login/mobileLogin'
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
page {
|
||
background-color: #fff;
|
||
}
|
||
|
||
.login {
|
||
margin: 0 64rpx;
|
||
|
||
.logo {
|
||
margin-top: 150rpx;
|
||
}
|
||
}
|
||
</style> |