连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chunwan/pages/users/edit/index.vue

424 lines
10 KiB

3 months ago
<template>
<view class="edit">
<view class="edit-navbar">
<u-navbar title="编辑资料" back-icon-color="#333333" title-color="#333333" :background="background">
<view class="slot-wrap" slot="right">
<view class="btn">保存</view>
</view>
</u-navbar>
</view>
<view class="edit-user">
<view class="user">
<view class="pic">
<image class="avatar" src="@/static/nan.png"></image>
<image class="xiangji" src="@/static/xiangji.png"></image>
</view>
</view>
<view class="tips">
尊敬的用户个人资料内容必须遵守相关法规和平台规则上传过于暴露的照片违规昵称宣言将会被封禁您的头像会用于进行实名认证图片比对若比对不通过则修改失败
</view>
</view>
<view class="edit-hd">
<view class="title">交友宣言</view>
<view class="xuanyan">
<image class="icon" src="@/static/editor.png"></image>
<textarea placeholder="介绍一下自己"></textarea>
</view>
</view>
<view class="edit-hd">
<view class="title">语音签名</view>
<view class="qianming">
<view class="box">
暂无录音
</view>
<view class="icon">
立即录制<image src="@/static/icon-arrow.png"></image>
</view>
</view>
</view>
<view class="edit-bd">
<view class="title">基本信息<text>完善基本资料让Ta了解你多一点</text></view>
<view class="content">
<view class="item">
<view class="a">昵称</view>
<view class="b">李哈哈<image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">出生日期</view>
<view class="b">
<picker mode="date" @change="pickerDate1">请选择</picker>
<image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">性别</view>
<view class="b"></view>
</view>
<view class="item">
<view class="a">身高</view>
<view class="b"><picker mode="selector" @change="pickerDate3">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">体重</view>
<view class="b"><picker mode="selector" @change="pickerDate4">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">年收入</view>
<view class="b"><input type="text" placeholder="请输入" /><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">学历</view>
<view class="b"><picker mode="selector" @change="pickerDate2">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">职业</view>
<view class="b"><picker mode="multiSelector" @change="pickerDate5">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">现居城市</view>
<view class="b"><picker mode="region" @change="pickerDate6">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">家乡</view>
<view class="b"><picker mode="region" @change="pickerDate7">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">星座</view>
<view class="b"><picker mode="selector" @change="pickerDate8">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
</view>
</view>
<view class="edit-bd">
<view class="title">情感喜好</view>
<view class="content">
<view class="item">
<view class="a">情感状态</view>
<view class="b"><picker mode="selector" @change="pickerDate8">请选择</picker><image src="@/static/icon-arrow.png"></image></view>
</view>
<view class="item">
<view class="a">喜欢什么样的异性</view>
<view class="b">
<view class="li">颜值高</view>
<view class="li">腿长</view>
<view class="li">社牛</view>
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
</view>
</view>
<view class="edit-hd">
<view class="title">相册</view>
<view class="content">
<view class="items" v-for="i in 3" :key="i">
<image class="del" src="@/static/icon-del.png"></image>
<image class="pic" src="@/static/pic.jpg"></image>
</view>
<view class="upload">
<image src="@/static/jia.png"></image>
</view>
</view>
</view>
<u-popup v-model="show" mode="center" border-radius="20">
<view class="tiao">
<view class="title">喜欢的异性</view>
<view class="content">
<view class="item" :class="tabIndex == 1?'item-on':''" @click="tabItem(1)">颜值高</view>
<view class="item" :class="tabIndex == 2?'item-on':''" @click="tabItem(2)">腿长</view>
<view class="item" :class="tabIndex == 3?'item-on':''" @click="tabItem(3)">小家碧玉</view>
<view class="item" :class="tabIndex == 4?'item-on':''" @click="tabItem(4)">顾家</view>
<view class="item" :class="tabIndex == 5?'item-on':''" @click="tabItem(5)">温柔可爱</view>
<view class="item" :class="tabIndex == 6?'item-on':''" @click="tabItem(6)">爱国</view>
</view>
<view class="btn">确认</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
data() {
return {
tabIndex: 1,
show: true,
background: {
"background": "#ffffff"
}
};
},
methods: {
tabItem(index){
this.tabIndex = index;
}
}
}
</script>
<style scoped lang="scss">
.edit{
padding: 0 25rpx 25rpx;
overflow: hidden;
.tiao{
width: 670rpx;
min-height: 570rpx;
background: #FFFFFF;
border-radius: 20rpx;
.title{
font-weight: 500;
font-size: 36rpx;
padding: 50rpx 0;
color: #333333;
text-align: center;
}
.content{
width: 110%;
overflow: hidden;
.item{
min-width: 180rpx;
line-height: 80rpx;
background: #EBEBEB;
border-radius: 80rpx;
text-align: center;
font-weight: 500;
font-size: 28rpx;
color: #333333;
margin-left: 35rpx;
margin-top: 30rpx;
float: left;
&-on{
background-color: #222222;
color: #fff;
}
}
}
.btn{
width: 520rpx;
line-height: 100rpx;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 100rpx;
text-align: center;
margin: 0 auto;
font-size: 30rpx;
color: #FFFFFF;
margin-top: 80rpx;
}
}
&-navbar{
.btn{
font-weight: 500;
font-size: 30rpx;
color: #222222;
margin-right: 30rpx;
}
}
&-bd{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 25rpx 30rpx 0;
box-sizing: border-box;
margin-top: 20rpx;
overflow: hidden;
.title{
font-weight: 500;
font-size: 30rpx;
color: #222222;
text{
float: right;
font-weight: 500;
font-size: 24rpx;
color: #999999;
}
}
.content {
width: 100%;
box-sizing: border-box;
.item{
padding: 40rpx 0;
border-top: 1px solid #EAEAEA;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 500;
font-size: 30rpx;
&:first-child{
border-top-color: #FFFFFF;
}
.a{
color: #999999;
}
.b{
display: flex;
align-items: center;
justify-content: flex-end;
flex: 1;
color: #222222;
font-size: 30rpx;
image{
width: 30rpx;
height: 30rpx;
display: block;
position: relative;
top: 5rpx;
}
input{
text-align: right;
}
}
}
}
}
&-hd{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 25rpx 30rpx 30rpx;
box-sizing: border-box;
margin-top: 20rpx;
overflow: hidden;
.title{
font-weight: 500;
font-size: 30rpx;
color: #222222;
text{
float: right;
font-weight: 500;
font-size: 24rpx;
color: #999999;
}
}
.content{
width: 110%;
.items{
width: 200rpx;
height: 200rpx;
border-radius: 10rpx;
float: left;
position: relative;
margin-top: 20rpx;
margin-right: 20rpx;
.pic{
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.del{
width: 40rpx;
height: 40rpx;
position: absolute;
right: 0;
top: 0;
z-index: 2;
}
}
.upload{
width: 200rpx;
height: 200rpx;
border-radius: 10rpx;
float: left;
position: relative;
margin-top: 20rpx;
background: #F3F4F5;
display: flex;
align-items: center;
justify-content: center;
image{
width: 45rpx;
height: 45rpx;
}
}
}
.qianming{
margin-top: 20rpx;
width: 100%;
height: 80rpx;
border-radius: 20rpx;
border: 1px solid #EAEAEA;
display: flex;
align-items: center;
justify-content: space-between;
padding: 25rpx 20rpx;
box-sizing: border-box;
font-size: 24rpx;
color: #999999;
image{
width: 25rpx;
height: 25rpx;
vertical-align: middle;
}
}
.xuanyan{
margin-top: 20rpx;
width: 100%;
height: 120rpx;
border-radius: 20rpx;
border: 1px solid #EAEAEA;
display: flex;
align-items: flex-start;
padding: 25rpx;
box-sizing: border-box;
.icon{
width: 24rpx;
height: 24rpx;
margin-right: 25rpx;
display: block;
margin-top: 5rpx;
}
textarea{
display: block;
flex: 1;
font-size: 24rpx;
color: #222222;
height: 100%;
}
}
}
&-user{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 25rpx 30rpx 30rpx;
box-sizing: border-box;
margin-top: 20rpx;
.tips{
width: 100%;
background: #F3F4F5;
border-radius: 20rpx;
padding: 25rpx;
box-sizing: border-box;
font-weight: 500;
font-size: 22rpx;
color: #999999;
line-height: 36rpx;
margin-top: 30rpx;
}
.user{
width: 100%;
height: 160rpx;
text-align: center;
position: relative;
.pic{
width: 160rpx;
height: 160rpx;
position: relative;
margin: 0 auto;
.avatar{
width: 160rpx;
height: 160rpx;
border-radius: 50%;
}
.xiangji{
width: 85rpx;
height: 85rpx;
position: absolute;
right: 0;
bottom: -10rpx;
z-index: 2;
}
}
}
}
}
</style>