6.30 版本提交
This commit is contained in:
185
pages/mine/basicInfo/basicInfo.vue
Normal file
185
pages/mine/basicInfo/basicInfo.vue
Normal file
@@ -0,0 +1,185 @@
|
||||
<template>
|
||||
<view>
|
||||
<navBar leftText="信息完善"></navBar>
|
||||
<image class="topBg absolute" src="/static/image/mine/myTopBg.png" mode="widthFix"></image>
|
||||
<view class="avatarC fixed" :style="'top:'+avatarTop+'px;'">
|
||||
<image class="avatar" src="" mode="aspectFill"></image>
|
||||
<image class="icon absolute" src="/static/icon/mine/basicInfo/edit.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="basicInfoC fixed" :style="'top:'+contentTop+'px;'">
|
||||
<view class="title">基本信息</view>
|
||||
<view class="section">昵称</view>
|
||||
<view class="inputC">
|
||||
<input type="text" />
|
||||
</view>
|
||||
<view class="section">手机号</view>
|
||||
<view class="inputC">
|
||||
<input type="text" />
|
||||
</view>
|
||||
<view class="section">性别</view>
|
||||
<picker mode="selector" :range="sexList" @change="sexChange">
|
||||
<view class="selectC flex">
|
||||
<view class="flex1">{{sex}}</view>
|
||||
<image class="arrow" src="/static/icon/mine/basicInfo/downArrow.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</picker>
|
||||
<view class="section">个人简介</view>
|
||||
<view class="textareaC">
|
||||
<textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA"></textarea>
|
||||
</view>
|
||||
</view>
|
||||
<view class="next fixed" @click="clickNext()">下一步</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { inject } from 'vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
avatarTop:'',
|
||||
contentTop:'',
|
||||
sexList:['男','女'],
|
||||
sex:''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.avatarTop = inject('navHeight') + 60/750*inject('windowWidth')
|
||||
this.contentTop = this.avatarTop + 75/750*inject('windowWidth')
|
||||
},
|
||||
methods: {
|
||||
sexChange(e)
|
||||
{
|
||||
console.log(e)
|
||||
let value = e.detail.value
|
||||
this.sex = this.sexList[value]
|
||||
},
|
||||
/**
|
||||
* 点击下一步
|
||||
*/
|
||||
clickNext()
|
||||
{
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine/investPreference/investPreference'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.topBg
|
||||
{
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.avatarC
|
||||
{
|
||||
left: 0;
|
||||
margin-left:calc((100% - 150rpx)/2);
|
||||
width: 150rpx;
|
||||
.avatar
|
||||
{
|
||||
background-color: red;
|
||||
width: 100%;
|
||||
height: 150rpx;
|
||||
border-radius: 50%;
|
||||
border: solid 2rpx white;
|
||||
}
|
||||
.icon
|
||||
{
|
||||
right: 20rpx;
|
||||
bottom: 0;
|
||||
width: 40rpx;
|
||||
height: auto;
|
||||
}
|
||||
z-index: 10;
|
||||
}
|
||||
.basicInfoC
|
||||
{
|
||||
background-color: white;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: calc(73rpx + 17rpx + 80rpx);
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
overflow-y: scroll;
|
||||
.title
|
||||
{
|
||||
margin: 150rpx 0 0 60rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.section
|
||||
{
|
||||
margin: 0 60rpx;
|
||||
line-height: 66rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.inputC
|
||||
{
|
||||
background-color: #FBFBFD;
|
||||
margin: 0 60rpx;
|
||||
padding: 0 28rpx;
|
||||
height: 78rpx;
|
||||
border: solid 2rpx #EFEFF2;
|
||||
border-radius: 10rpx;
|
||||
input
|
||||
{
|
||||
height: 100%;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
.selectC
|
||||
{
|
||||
background-color: #FBFBFD;
|
||||
margin: 0 60rpx;
|
||||
padding: 0 25rpx 0 28rpx;
|
||||
height: 78rpx;
|
||||
border: solid 2rpx #EFEFF2;
|
||||
border-radius: 10rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
.arrow
|
||||
{
|
||||
width: 16rpx;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
.textareaC
|
||||
{
|
||||
background-color: #FBFBFD;
|
||||
margin: 0 60rpx;
|
||||
padding: 20rpx 0 0 28rpx;
|
||||
border: solid 2rpx #EFEFF2;
|
||||
border-radius: 2rpx;
|
||||
textarea
|
||||
{
|
||||
height: 200rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
}
|
||||
.next
|
||||
{
|
||||
background-color: #F97316;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 73rpx;
|
||||
margin: 0 25rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user