Feat(登录):UI调整(100%)
This commit is contained in:
@@ -51,34 +51,45 @@
|
|||||||
<view class="v12-dark-text v12-font-40 v12-mt-3 v12-font-bold" style="width:550rpx">
|
<view class="v12-dark-text v12-font-40 v12-mt-3 v12-font-bold" style="width:550rpx">
|
||||||
获取你的昵称、头像
|
获取你的昵称、头像
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-align-center v12-justify-start v12-mt-3" style="width:550rpx">
|
<view class="v12-align-center v12-justify-between v12-mb-3 v12-mt-6" style="width:550rpx">
|
||||||
<view class="v12-dark-text v12-mr-3">
|
<view class="v12-align-center">
|
||||||
头像
|
<view class="v12-dark-text v12-mr-3">
|
||||||
|
头像
|
||||||
|
</view>
|
||||||
|
<button
|
||||||
|
class="avatar-wrapper v12-ma-0"
|
||||||
|
open-type="chooseAvatar"
|
||||||
|
@chooseavatar="onChooseAvatar"
|
||||||
|
>
|
||||||
|
<image
|
||||||
|
:src="avatarUrl"
|
||||||
|
class="avatar"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<button
|
|
||||||
class="avatar-wrapper v12-ma-0"
|
|
||||||
open-type="chooseAvatar"
|
|
||||||
@chooseavatar="onChooseAvatar"
|
|
||||||
>
|
|
||||||
<image
|
|
||||||
:src="avatarUrl"
|
|
||||||
class="avatar"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-align-baseline v12-justify-between" style="width:550rpx">
|
<view class="v12-align-center v12-justify-between v12-my-4" style="width:550rpx">
|
||||||
<view class="v12-dark-text v12-mr-3">
|
<view class="v12-align-center">
|
||||||
昵称
|
<view class="v12-dark-text v12-mr-3">
|
||||||
|
昵称
|
||||||
|
</view>
|
||||||
|
<input
|
||||||
|
type="nickname"
|
||||||
|
maxlength="12"
|
||||||
|
class="input-wrapper "
|
||||||
|
placeholder="请填写您的昵称"
|
||||||
|
v-model="nickname"
|
||||||
|
@input="inputName"
|
||||||
|
@confirm="inputName"
|
||||||
|
@blur="inputName"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<u-icon name="close" @click="clearName"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<input
|
|
||||||
type="nickname"
|
|
||||||
maxlength="12"
|
|
||||||
class="input-wrapper "
|
|
||||||
placeholder="请填写您的昵称"
|
|
||||||
@input="inputName"
|
|
||||||
@confirm="inputName"
|
|
||||||
@blur="inputName"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="input-wrapper">
|
<!-- <view class="input-wrapper">
|
||||||
<picker
|
<picker
|
||||||
@@ -117,7 +128,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="app-logo v12-align-center v12-flex-column">
|
<view class="app-logo v12-align-center v12-flex-column">
|
||||||
<image class="app-logo__image" :src="webUrl+'/orderIcon/applogo.png'" mode="aspectFit|aspectFill|widthFix" lazy-load="true"></image>
|
<image class="app-logo__image" :src="webUrl+'/orderIcon/applogo.png'" mode="aspectFit|aspectFill|widthFix" lazy-load="true"></image>
|
||||||
<view class="v12-mt-3 v12-font-32 v12-dark-text v12-font-weight-500">发现家乡好物</view>
|
<view class="v12-mt-3 v12-font-32 v12-dark-text v12-font-weight-600">发现家乡好物</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-box">
|
<view class="btn-box">
|
||||||
<button class="btn-yes v12-primary" type="mini" v-if="canIUseGetUserProfile" @tap="getUserInfoProfile">快捷登录</button>
|
<button class="btn-yes v12-primary" type="mini" v-if="canIUseGetUserProfile" @tap="getUserInfoProfile">快捷登录</button>
|
||||||
@@ -164,7 +175,7 @@ export default {
|
|||||||
agreeInfo: {},
|
agreeInfo: {},
|
||||||
isAgree: false,
|
isAgree: false,
|
||||||
show: false,
|
show: false,
|
||||||
showFillOut: false,
|
showFillOut: true,
|
||||||
nickname: '',
|
nickname: '',
|
||||||
avatarUrl: this.$VUE_APP_RESOURCES_URL + '/20230506100714762257.png',
|
avatarUrl: this.$VUE_APP_RESOURCES_URL + '/20230506100714762257.png',
|
||||||
form: {
|
form: {
|
||||||
@@ -200,6 +211,9 @@ export default {
|
|||||||
changeAgree(event) {
|
changeAgree(event) {
|
||||||
// this.isAgree = event.detail.value.length > 0
|
// this.isAgree = event.detail.value.length > 0
|
||||||
},
|
},
|
||||||
|
clearName() {
|
||||||
|
this.nickname = ''
|
||||||
|
},
|
||||||
toLogin() {
|
toLogin() {
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/user/Login/index',
|
path: '/pages/user/Login/index',
|
||||||
@@ -331,6 +345,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
.app-logo{
|
||||||
|
margin-top: 70rpx;
|
||||||
|
}
|
||||||
.app-logo__image--inner{
|
.app-logo__image--inner{
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
@@ -469,9 +486,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-wrapper {
|
.input-wrapper {
|
||||||
width: 460rpx;
|
|
||||||
height: 72rpx;
|
height: 72rpx;
|
||||||
margin-top: 32rpx;
|
|
||||||
background: rgba(248, 249, 251, 1);
|
background: rgba(248, 249, 251, 1);
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user