<template>
	<view class="about-container">
		<!-- 顶部导航栏 -->
		<view class="nav-bar">
			<image class="back-arrow" src="/static/my/back.png" @click="goBack"></image>
			<text class="nav-title">了解小鹅通</text>
		</view>
		<!-- logo和版本信息 -->
		<view class="about-header">
			<image class="about-logo" src="/static/logo.png"></image>
			<view class="about-title">小鹅通</view>
			<view class="about-version">Version 5.10.2</view>
			<view class="about-id">b_u_cvj80rjq943h407qktbg</view>
		</view>
		<!-- 列表内容 -->
		<view class="about-list">
			<view class="about-item" @click="openUrl('https://xiaoek-tech.com')">
				<text>小鹅通官网</text>
				<text class="about-right">xiaoek-tech.com</text>
			</view>
			<view class="about-item" @click="checkUpdate">
				<text>版本更新</text>
				<view class="about-dot"></view>
			</view>
			<view class="about-item" @click="fuwuxieyi">
				<text>服务协议</text>
			</view>
			<view class="about-item" @click="yinsizhengce">
				<text>隐私政策</text>
			</view>
		
			<view class="about-item">
				<text>热线电话</text>
				<text class="about-right">周一至周日9:00-19:00</text>
			</view>
			<view class="about-item">
				<text>互联网违法和不良信息举报电话</text>
				<text class="about-right">400-102-6665</text>
			</view>
			<view class="about-item">
				<text>互联网不良信息举报邮箱</text>
				<text class="about-right">xiaoeks@xiaoek-tech.com</text>
			</view>
		
		</view>
	</view>
</template>

<script>


	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goBack() {
				uni.navigateBack();
			},
			openUrl(url) {
				uni.setClipboardData({
					data: url,
					success: () => {
						uni.showToast({ title: '链接已复制', icon: 'none' });
					}
				});
			},
			checkUpdate() {
				uni.showToast({ title: '已是最新版本', icon: 'none' });
			},
			fuwuxieyi() {
				 uni.navigateTo({ url: '/pages/protocol/service' });
			},
			yinsizhengce() {
				 uni.navigateTo({ url: '/pages/protocol/privacy' });
			},
		
		}
	}
</script>

<style>
	.about-container {
		background: #fff;
		min-height: 100vh;
	}
	.nav-bar {
		position: relative;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-bottom: 1rpx solid #f0f0f0;
	}
	.back-arrow {
		position: absolute;
		left: 30rpx;
		width: 40rpx;
		height: 40rpx;
		top: 50%;
		transform: translateY(-50%);
	}
	.nav-title {
		font-size: 34rpx;
		font-weight: bold;
	}
	.about-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 40rpx 0 30rpx 0;
	}
	.about-logo {
		width: 120rpx;
		height: 120rpx;
		margin-bottom: 20rpx;
	}
	.about-title {
		font-size: 36rpx;
		font-weight: bold;
		margin-bottom: 10rpx;
	}
	.about-version {
		color: #888;
		font-size: 28rpx;
		margin-bottom: 5rpx;
	}
	.about-id {
		color: #bbb;
		font-size: 22rpx;
		margin-bottom: 20rpx;
	}
	.about-list {
		background: #fff;
		border-radius: 20rpx;
		overflow: hidden;
		margin: 0 20rpx;
	}
	.about-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 32rpx 0;
		border-bottom: 1rpx solid #f0f0f0;
		font-size: 30rpx;
	}
	.about-item:last-child {
		border-bottom: none;
	}
	.about-right {
		color: #bbb;
		font-size: 26rpx;
	}
	.about-dot {
		width: 16rpx;
		height: 16rpx;
		background: #ff3b30;
		border-radius: 50%;
		margin-left: 10rpx;
	}
</style>
