<template>
  <view class="about-container">
    <u-navbar :titleStyle="{ color: '#fff' }" :autoBack="true" title="关于我们" :placeholder="true" :safeAreaInsetTop="true" :bgColor="proxy.$settingStore.themeColor.color">
      <template #left>
        <view class="u-navbar__content__left__item">
          <u-icon name="arrow-left" size="19" color="#fff"></u-icon>
        </view>
      </template>
    </u-navbar>

    <view class="oa-header-section text-center">
      <image style="width: 150rpx; height: 150rpx" mode="heightFix" :src="useStore.$state.loginLogo" v-if="useStore.$state.loginLogo" />
      <image style="width: 150rpx; height: 150rpx" mode="heightFix" src="@/static/logo200.png" v-else />
      <uni-title type="h2" :title="useStore.$state.loginTitle"></uni-title>
    </view>

    <view class="oa-content-section">
      <view class="menu-list">
        <view class="list-cell list-cell-arrow">
          <view class="menu-item">
            <view>版本信息</view>
            <view class="text-right">v{{ version }}</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item">
            <view>官方邮箱</view>
            <view class="text-right">{{ email }}</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item">
            <view>服务热线</view>
            <view class="text-right">{{ hotline }}</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item">
            <view>公司网站</view>
            <view class="text-right">
              <uni-link :href="url" :text="url" showUnderLine="false"></uni-link>
            </view>
          </view>
        </view>
      </view>
    </view>

    <view class="copyright">
      <!-- <view>Copyright &copy; 2021 - 2025 Usky. All Rights Reserved. 永天股份 版权所有</view> -->
      <view>{{ copyright }}</view>
    </view>
  </view>
</template>

<script setup>
import config from "@/config";
import { onReady, onLoad, onShow, onNavigationBarButtonTap } from "@dcloudio/uni-app";
import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
import { useStores, commonStores } from "@/store/modules/index";

const useStore = useStores();

const { proxy } = getCurrentInstance();

const url = ref(config.appInfo.site_url);
const version = ref(config.appInfo.version);
const email = ref(config.appInfo.email);
const hotline = ref(config.appInfo.hotline);
const copyright = ref(config.appInfo.copyright);

onShow(() => {
  //调用系统主题颜色
  proxy.$settingStore.systemThemeColor([1]);
});
</script>

<style lang="scss" scoped>
.about-container {
  .copyright {
    margin-top: 50rpx;
    text-align: center;
    line-height: 60rpx;
    color: #999;
  }

  .oa-header-section {
    display: flex;
    padding: 30rpx 0 0;
    flex-direction: column;
    align-items: center;
  }
}
</style>
