mine-popularityInfo.vue 2.1 KB
<template>
	<view class="mine-popularityInfo">
		<uv-navbar title=" " :placeholder="true" bg-color="#ffffff00" :auto-back="true"></uv-navbar>
		<view class="top-bg">
			<image src="/static/logo.png" mode=""></image>
			<view class="inner">
				<image src="/static/logo.png" mode=""></image>
				<view class="">快乐的张张紫</view>
				<view class="">999人气值</view>
			</view>
		</view>
		<view class="content">
			<view class="title">人气值明细</view>
			<view class="info-item" v-for="item in 6" :key="item">
				<view class="top">
					<view class="left">抽取福袋</view>
					<view class="right">-5</view>
				</view>
				<view class="bottom">2023.12.03</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import { onShow, onLoad } from '@dcloudio/uni-app'
	import { ref } from 'vue'
</script>

<style lang="scss">
	.mine-popularityInfo {
		position: relative;
	}

	.top-bg {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;

		image {
			width: 750rpx;
			height: 520rpx;
		}

		.inner {
			position: absolute;
			top: 214rpx;
			left: 50%;
			transform: translateX(-50%);

			image {
				width: 156rpx;
				height: 156rpx;
				border-radius: 50%;
				margin-bottom: 24rpx;
			}

			view {
				text-align: center;

				&:first-child {
					font-size: 28rpx;
					font-weight: 700;
					margin-bottom: 10rpx;
				}

				&:last-child {
					font-weight: 700;
					font-size: 40rpx;
				}
			}
		}
	}

	.content {
		position: absolute;
		top: 520rpx;
		width: 750rpx;
		height: 1108rpx;
		padding: 40rpx 24rpx 0 24rpx;
		border-top-left-radius: 32rpx;
		border-top-right-radius: 32rpx;
		box-sizing: border-box;
		background: #ffffff;

		.title {
			font-size: 32rpx;
			font-weight: 700;
		}

		.info-item {
			margin-top: 28rpx;
			height: 112rpx;
			border-bottom: 1rpx solid #eee;

			.top {
				@include flexCj();
				margin-bottom: 16rpx;

				.left {
					font-size: 28rpx;
				}

				.right {
					font-weight: 700;
					font-family: "32rpx";
				}
			}

			.bottom {
				color: #00000066;
				font-size: 26rpx;
				padding-bottom: 26rpx;
			}
		}
	}
</style>