<template>
  <view class="container">
    <view class="app-info">
      <view class="app-logo">
        <image class="logo-image" src="/static/icon.png" mode="aspectFit"></image>
      </view>
      <view class="app-name">青鸾之恋</view>
      <view class="app-version">v1.0.0</view>
    </view>
    
    <view class="agreements">
      <view class="agreement-item" @click="navigateToAgreement('user')">
        <text class="agreement-text">用户协议</text>
        <text class="arrow-icon">›</text>
      </view>
      <view class="agreement-item" @click="navigateToAgreement('privacy')">
        <text class="agreement-text">隐私政策</text>
        <text class="arrow-icon">›</text>
      </view>
      <view class="agreement-item" @click="navigateToAgreement('privacy-summary')">
        <text class="agreement-text">隐私政策摘要</text>
        <text class="arrow-icon">›</text>
      </view>
      <view class="agreement-item" @click="navigateToAgreement('platform')">
        <text class="agreement-text">平台信息管理规范</text>
        <text class="arrow-icon">›</text>
      </view>
    </view>
    
    <view class="record-info">
      <view class="record-item">
        <text class="record-text">ICP 备案号</text>
      </view>
      <view class="record-item">
        <text class="record-text">互联网信息服务算法备案号</text>
      </view>
    </view>
    
<!--    <view class="withdraw-agreement" @click="showWithdrawConfirm">-->
<!--      <text class="withdraw-text">撤回同意协议</text>-->
<!--    </view>-->
  </view>
</template>

<script>
export default {
  methods: {
    navigateToAgreement(type) {
      
    },
    showWithdrawConfirm() {
      uni.showModal({
        title: '确认撤回',
        content: '您确定要撤回同意协议吗？',
        success: (res) => {
          if (res.confirm) {
           
          }
        }
      })
    }
  }
}
</script>

<style>
.container {
  padding: 40rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  width: 100%;
  background-color: #ffffff;
  border-radius: 12rpx;
  padding: 40rpx;
  box-sizing: border-box;
  margin-top: 20rpx;
}

.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40rpx;
}

.app-logo {
  width: 160rpx;
  height: 160rpx;
  background-color: transparent;
  border-radius: 32rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30rpx;
}

.logo-image {
  width: 160rpx;
  height: 160rpx;
  border-radius: 32rpx;
}

.app-name {
  font-size: 40rpx;
  font-weight: bold;
  color: #333333;
  margin-bottom: 10rpx;
}

.app-version {
  font-size: 28rpx;
  color: #999999;
}

.agreements {
  width: 100%;
}

.agreement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35rpx 30rpx;
  border-bottom: 1rpx solid #f0f0f0;
  background-color: #ffffff;
}

.agreement-item:last-child {
  border-bottom: none;
}

.agreement-text {
  font-size: 32rpx;
  color: #333333;
}

.arrow-icon {
  font-size: 40rpx;
  color: #cccccc;
  font-weight: 300;
}

.record-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40rpx 0;
  width: 100%;
}

.record-item {
  margin-bottom: 15rpx;
  width: 100%;
  text-align: center;
}

.record-text {
  font-size: 24rpx;
  color: #999999;
}

.withdraw-agreement {
  display: flex;
  justify-content: center;
  margin: 20rpx 0 40rpx;
  padding: 10rpx;
}

.withdraw-text {
  font-size: 24rpx;
  color: #999999;
  text-decoration: underline;
}
</style>