Day3:个人中心页面布局前端项目uniapp壁纸实战

接下来我们来弄一下个人中心页面布局user.vue

复制代码
<template>
    <view class="userLayout">
        <view class="userInfo">
            <view class="avatar">
                <image src="../../static/Kx.jpg" mode="aspectFill"></image>
            </view>
            <view class="ip">100.100.100</view>
            <view class="address">来自于:广东</view>
        </view>
        <view class="section">
            <view class="list">
                <view class="row">
                    <view class="left">
                        <uni-icons type="download-filled" size="20" color="#28b389"></uni-icons>
                        <view class="text">我的下载</view>
                    </view>
                    <view class="right">
                        <view class="text">0</view>
                        <uni-icons type="right" size="15" color="#aaa"></uni-icons>
                    </view>
				</view>
				<view class="row">
					<view class="left">
					    <uni-icons type="star-filled" size="20" color="#28b389"></uni-icons>
					    <view class="text">我的评分</view>
					</view>
					<view class="right">
					    <view class="text">0</view>
					    <uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
                </view>
				<view class="row">
					<view class="left">
					    <uni-icons type="chatboxes-filled" size="20" color="#28b389"></uni-icons>
					    <view class="text">联系客服</view>
					</view>
					<view class="right">
					    <view class="text"></view>
					    <uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>
            </view>
        </view>
        <view class="section">
            <view class="list">
                <view class="row">
                    <view class="left">
                        <uni-icons type="notification-filled" size="20" color="#28b389"></uni-icons>
                        <view class="text">订阅更新</view>
                    </view>
                    <view class="right">
                        <view class="text"></view>
                        <uni-icons type="right" size="15" color="#aaa"></uni-icons>
                    </view>
                </view>
				<view class="row">
				    <view class="left">
				        <uni-icons type="flag-filled" size="20" color="#28b389"></uni-icons>
				        <view class="text">常见问题</view>
				    </view>
				    <view class="right">
				        <view class="text"></view>
				        <uni-icons type="right" size="15" color="#aaa"></uni-icons>
				    </view>
				</view>
            </view>
        </view>
    </view>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.userLayout {
    .userInfo {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 50rpx 0;

        .avatar {
            width: 160rpx;
            height: 160rpx;
            border-radius: 50%;
            overflow: hidden;

            image {
                width: 100%;
                height: 100%;
            }
        }

        .ip {
            font-size: 44rpx;
            color: #333;
            padding: 20rpx 0 5rpx;
        }

        .address {
            font-size: 28rpx;
            color: #aaa;
        }
    }

    .section {
        width: 690rpx;
        margin: 50rpx auto;
        border: 1px solid #eee;
        border-radius: 10rpx;
        box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.05);
		.list{
			.row{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 0 30rpx;
				height: 100rpx;
				border-bottom: 1px solid #eee;
				&:last-child{border-bottom: 0;}
				.left{
					display: flex;
					align-items: center;
					.text{
						padding-left: 20rpx;
						color: #666;
					}
				}
				.right{
					display: flex;
					align-items: center;
					.text{
						font-size: 28rpx;
						color: #aaa;
					}
				}
			}
		}
    }
}
</style>
相关推荐
王子文-上海17 分钟前
风控研发大数据学习路线
大数据·学习
云边有个稻草人18 分钟前
智启未来:当知识库遇见莫奈的调色盘——API工作流重构企业服务美学
前端·数据库
小纭在努力22 分钟前
【算法设计与分析】实验——改写二分搜索算法,众数问题(算法分析:主要算法思路),有重复元素的排列问题,整数因子分解问题(算法实现:过程,分析,小结)
数据结构·python·学习·算法·算法设计与分析·实验报告·实验
小堃学编程23 分钟前
前端学习(7)—— HTML + CSS实现博客系统页面
学习
kukubuzai23 分钟前
c++继承
c++·学习
拾忆-eleven4 小时前
NLP学习路线图(十四):词袋模型(Bag of Words)
人工智能·学习·自然语言处理·nlp
仟濹5 小时前
【HTML】基础学习【数据分析全栈攻略:爬虫+处理+可视化+报告】
大数据·前端·爬虫·数据挖掘·数据分析·html
小小小小宇6 小时前
前端WebWorker笔记总结
前端
拾忆-eleven6 小时前
NLP学习路线图(十五):TF-IDF(词频-逆文档频率)
人工智能·学习·自然语言处理·nlp
小小小小宇7 小时前
前端监控用户停留时长
前端