<template>
	<view class="intro-page common">
		<view class="top-class"></view>
		<view class="title">
			个人中心
		</view>
		<view class="head">
			<u-row class="row-class">
				<u-col span="4">
					<image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
				</u-col>
				<u-col span="4">
					<!-- <image class="commodity-img" src="/static/images/common/commodity.png" mode="aspectFit" /> -->
				</u-col>
				<u-col span="4">

				</u-col>
			</u-row>
		</view>

		<view class="theme-text">
			<image src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/text.png"
				class="textImage"></image>
		</view>

		<!-- 公司简介内容卡片 -->
		<view class="intro-card">
			<view class="touxiang">
				<image class="company-img"
					src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/companyImg.png"
					mode="aspectFill" />
			</view>
			<view class="intro-view">
				<view class="intro-label">
					<view class="label-title">
						其他服务
					</view>
				</view>
				<view class="intro-content">
					<u-row style="height: 200rpx;">
						<u-col span="4" textAlign="center" @click="jumpScanLog">
							<image class="tubiao" src="/static/images/tabbar/scan.png" mode="aspectFit" />
							<view class="">
								扫码记录
							</view>
						</u-col>
						<u-col span="4"  textAlign="center" @click="jumpScanAddress">
							<image class="tubiao" src="/static/images/tabbar/address.png" mode="aspectFit"/>
							<view class="">
								收货地址
							</view>
						</u-col>
						<u-col span="4">
					
						</u-col>
					</u-row>
				</view>

			</view>

		</view>

		<!-- 返回按钮 -->
		<view class="footer-btn">
			<view @click="goBack" class="return-button">返回</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			goBack() {
				uni.navigateBack();
			},
			jumpScanLog(){
				uni.navigateTo({
					url: '/pages/lgz/record/record'
				});
			},
			jumpScanAddress(){
				uni.navigateTo({
					url: '/pages/lgz/address/address'
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import url('../../../static/scss/common.css');

	.row-class {
		height: 80rpx;
	}

	.logo-img {
		background-size: cover;
		/* 确保背景图片自适应填充整个容器 */
		background-position: center;
		/* 背景图片居中显示 */
		background-repeat: no-repeat;
		/* 防止背景图重复 */
		height: 42rpx;
		width: 62%;
	}

	.commodity-img {
		background-size: cover;
		/* 确保背景图片自适应填充整个容器 */
		background-position: center;
		/* 背景图片居中显示 */
		background-repeat: no-repeat;
		/* 防止背景图重复 */
		height: 35rpx;
		width: 100%;
	}

	.theme-text {
		height: 10vh;
		text-align: center;
		line-height: 11vh;

		.textImage {
			height: 80rpx;
			width: 400rpx;
		}
	}

	.intro-card {
		margin: 0 32rpx;
		padding: 32rpx 24rpx 24rpx 24rpx;
		background: rgba(131, 100, 71, 0.5);
		border-radius: 10rpx;


		.intro-view {
			border: 1px solid #341B10;
			padding: 10px;
			margin: 10px;
			position: relative;


			.intro-label {
				background-image:
					url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/label.png");
				/* 使用绝对路径 */
				background-size: contain;
				background-repeat: no-repeat;
				width: 220rpx;
				height: 120rpx;
				position: absolute;
				margin-top: -70rpx;
				align-content: center;

				.label-title {
					font-weight: bold;
					font-size: 30rpx;
					color: #341B10;
					text-align: center;
					margin-left: 10px;
					height: 120rpx;
					line-height: 110rpx;
				}
			}

			.intro-content {
				font-size: 28rpx;
				color: #5c4322;
				line-height: 1.8;
				margin: 20rpx 0px;
				text-align: justify;
				height: 38vh;
			}

		}

	}

	.company-img {
		width: 160rpx;
		height: 160rpx;
		border-radius: 12rpx;
		object-fit: cover;
		margin-top: 10rpx;
		background: #eee;
		border-radius: 80rpx;
	}

	.touxiang {
		height: 120px;
		align-content: center;
		justify-content: center;
		text-align: center;
	}
	.tubiao{
		background-size: cover;
		/* 确保背景图片自适应填充整个容器 */
		background-position: center;
		/* 背景图片居中显示 */
		background-repeat: no-repeat;
		/* 防止背景图重复 */
		height: 100rpx;
		width: 100%;
	}
</style>