微信小程序个人中心模板
wxml
<view>
<view class="top">
<view class="center">
<view class="center_top">
<view class="center_img" bindtap="toBaseInfo">
<!-- <image src="../../static/info_img.jpg"></image> -->
<open-data type="userAvatarUrl" className="user_head"></open-data>
</view>
<view class="center_info" bindtap="toBaseInfo">
<view class="center_name">{{trueName}}</view>
<!-- <view class="center_phone">phone:{{phone}}</view> -->
<view class="center_phone">基本信息</view>
</view>
</view>
<view class="center_down">
<view class="center_rank" bindtap="toNone">
<image class="rank_icon" src="../../static/rank.png"></image>
<text class="rank_text">我的排名</text>
</view>
<view class="center_score" bindtap="toNone">
<image class="rank_icon" src="../../static/points.png"></image>
<text class="rank_text">我的积分</text>
</view>
</view>
</view>
<image src='../../image/bg_wave.gif' mode='scaleToFill' class='gif-wave'></image>
</view>
</view>
wxss
.top {
width: 100%;
height: 180px;
background: #23EBB9;
padding-top: 15px;
position: relative;
}
.center {
width: 95%;
height: 150px;
background: white;
display: flex;
flex-direction: column;
margin: 0 auto;
border-radius: 5px;
}
.center_top {
display: flex;
flex-direction: row;
width: 80%;
height: 80px;
margin: 0 auto;
margin-top: 20rpx;
border-bottom: 1px solid #EEEEEE;
}
.center_img {
width: 66px;
height: 66px;
border-radius: 50%;
overflow: hidden;
}
.center_img image {
width: 100%;
height: 100%;
border-radius: 50%;
}
.center_img .user_head {
width: 100%;
height: 100%;
}
.center_info {
display: flex;
flex-direction: column;
margin-top: 10rpx;
margin-left: 30px;
}
.center_name {
font-size: 20px;
}
.center_phone {
color: #BEBEBE;
}
.center_down {
display: flex;
flex-direction: row;
width: 80%;
height: 35px;
margin: 0 auto;
margin-top: 20rpx;
}
.center_rank {
width: 50%;
height: 35px;
display: flex;
flex-direction: row;
}
.rank_text {
height: 35px;
line-height: 35px;
margin-left: 10rpx;
color: #AAAAAA;
}
.center_rank image {
width: 35px;
height: 35px;
}
.center_score {
width: 50%;
height: 35px;
display: flex;
flex-direction: row;
}
.center_score image {
width: 35px;
height: 35px;
}
.gif-wave {
position: absolute;
width: 100%;
bottom: 0;
left: 0;
z-index: 99;
mix-blend-mode: screen;
height: 100rpx;
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
· 零经验选手,Compose 一天开发一款小游戏!