<template>
	<view class="about-page">
		<view class="header">
			<image class="logo" src="/static/images/logo/c1f9fb42be9c750950c8d7e89a68eba.jpg" mode="aspectFit"></image>
			<text class="app-name">七指堂商城</text>
			<text class="version">版本 1.0.0</text>
		</view>
		
		<view class="content">
			<view class="section">
				<text class="title">关于我们</text>
				<text class="text">七指堂商城是一家专注于提供优质商品和服务的电商平台。我们致力于为用户提供优质的购物体验，让每一位用户都能买到称心如意的商品。</text>
			</view>
			
			<view class="section">
				<text class="title">联系我们</text>
				<view class="contact-item">
					<text class="label">客服电话：</text>
					<text class="value" @tap="makeCall">400-123-4567</text>
				</view>
				<view class="contact-item">
					<text class="label">商务合作：</text>
					<text class="value">business@qizhitang.com</text>
				</view>
				<view class="contact-item">
					<text class="label">公司地址：</text>
					<text class="value">广东省广州市天河区科韵路XX号</text>
				</view>
			</view>
			
			<view class="links">
				<view class="link-item" @tap="goToPrivacy">
					<text>隐私政策</text>
					<text class="iconfont arrow">&#xe685;</text>
				</view>
				<view class="link-item" @tap="goToService">
					<text>服务协议</text>
					<text class="iconfont arrow">&#xe685;</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	methods: {
		makeCall() {
			uni.makePhoneCall({
				phoneNumber: '4001234567'
			});
		},
		
		goToPrivacy() {
			uni.navigateTo({
				url: '/packageUser/pages/article/detail?type=privacy'
			});
		},
		
		goToService() {
			uni.navigateTo({
				url: '/packageUser/pages/article/detail?type=service'
			});
		}
	}
}
</script>

<style lang="scss" scoped>
.about-page {
	min-height: 100vh;
	background: #f5f5f5;
}

.header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60rpx 0;
	background: #fff;
	
	.logo {
		width: 160rpx;
		height: 160rpx;
		border-radius: 40rpx;
	}
	
	.app-name {
		font-size: 36rpx;
		font-weight: bold;
		color: #333;
		margin-top: 20rpx;
	}
	
	.version {
		font-size: 24rpx;
		color: #999;
		margin-top: 10rpx;
	}
}

.content {
	margin-top: 20rpx;
	
	.section {
		background: #fff;
		padding: 30rpx;
		margin-bottom: 20rpx;
		
		.title {
			font-size: 32rpx;
			font-weight: bold;
			color: #333;
			margin-bottom: 20rpx;
		}
		
		.text {
			font-size: 28rpx;
			color: #666;
			line-height: 1.6;
		}
		
		.contact-item {
			display: flex;
			margin-top: 16rpx;
			
			.label {
				font-size: 28rpx;
				color: #333;
			}
			
			.value {
				font-size: 28rpx;
				color: #666;
			}
		}
	}
	
	.links {
		background: #fff;
		
		.link-item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx;
			border-bottom: 1px solid #eee;
			
			text {
				font-size: 28rpx;
				color: #333;
			}
			
			.arrow {
				color: #999;
				transform: rotate(180deg);
			}
			
			&:last-child {
				border-bottom: none;
			}
		}
	}
}
</style> 