添加页面

This commit is contained in:
浅念
2025-03-14 17:32:45 +08:00
parent 04c52a7e5a
commit 36ee43c61b
8 changed files with 176 additions and 30 deletions
+53 -20
View File
@@ -2,36 +2,47 @@
<view>
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" title="个人资料"></uni-nav-bar>
<view class="content">
<view class="">
<view class="topimg">
<image class="user" src="/static/image/mine/user.png" mode=""></image>
<image class="xj" src="/static/image/mine/xiangji.png" mode=""></image>
<view>点击更换头像</view>
</view>
<view class="cell">
<view>头像</view>
<view class="cell1">
<view>ID</view>
<view class="right">
<uni-file-picker fileMediatype="image" limit="1" @select="select" @delete="delfn" :del-icon="false" disable-preview :imageStyles="imageStyles">
<image :src="userinfo.avatar==''?'/static/image/mine/user.png':userinfo.avatar" mode="" class="addimg"></image>
</uni-file-picker>
<input placeholder="请填写ID" v-model="userinfo.nickname"></input>
</view>
</view>
<u-divider text=""></u-divider>
<view class="cell1">
<view>性别</view>
<view class="right">
<u-radio-group v-model="userinfo.gender">
<u-radio name="1">男</u-radio>
<u-radio name="2">女</u-radio>
</u-radio-group>
</view>
</view>
<u-divider text=""></u-divider>
<view class="cell1">
<view>昵称</view>
<view class="right select">
<view class="right">
<input placeholder="请填写昵称" v-model="userinfo.nickname"></input>
<uni-icons type="right" size="18"></uni-icons>
</view>
</view>
<u-divider text=""></u-divider>
<view class="cell1">
<view>手机号</view>
<view class="right select">
<input placeholder="请填写手机号" type="number" v-model="userinfo.phone"></input>
<uni-icons type="right" size="18"></uni-icons>
<view>联系方式</view>
<view class="right">
<input placeholder="请填写联系方式" type="number" v-model="userinfo.phone"></input>
</view>
</view>
<u-divider text=""></u-divider>
<view class="cell1">
<view>公司</view>
<view>国家地区</view>
<view class="right select">
<input placeholder="请填写公司" v-model="userinfo.company"></input>
<uni-icons type="right" size="18"></uni-icons>
<input placeholder="请选择" v-model="userinfo.company"></input>
<u-icon class="arrowright" name="arrow-right" size="18" color="#747474"></u-icon>
</view>
</view>
</view>
@@ -128,13 +139,36 @@
}
</script>
<style>
<style lang="scss">
.uniui-right{
position: absolute;
top: 2px;
}
.u-divider{
margin: 0px 0px !important;
}
.arrowright{
margin-right: -15px;
}
.content{
background: #FFFFFF;
.topimg{
text-align: center;
position: relative;
padding: 20px 0px;
color: #999999;
}
.user{
width: 200rpx;
height: 200rpx;
}
.xj{
width: 60rpx;
height: 52rpx;
position: absolute;
right: 46%;
top: 33%;
}
}
.cell{
display: flex;
@@ -162,15 +196,14 @@
position: fixed;
bottom: 0px;
width: 100%;
height: 240rpx;
height: 160rpx;
background: #FFFFFF;
}
.btn{
background-color: #3F435B;
background: linear-gradient(to right, #3471FF, #6776FF);
color: white;
border-radius: 50px;
width: 84%;
margin-bottom: 40px;
margin: 20px 8%;
}
.addimg{