index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="about-container">
  3. <u-navbar :titleStyle="{ color: '#fff' }" :autoBack="true" title="关于我们" :placeholder="true" :safeAreaInsetTop="true" :bgColor="proxy.$settingStore.themeColor.color">
  4. <template #left>
  5. <view class="u-navbar__content__left__item">
  6. <u-icon name="arrow-left" size="20" color="#fff"></u-icon>
  7. </view>
  8. </template>
  9. </u-navbar>
  10. <view class="oa-header-section text-center">
  11. <image style="width: 130rpx; height: 130rpx" mode="heightFix" :src="useStore.loginLogo" v-if="useStore.loginLogo" />
  12. <image style="width: 130rpx; height: 130rpx" mode="heightFix" src="@/static/logo200.png" v-else />
  13. <uni-title type="h2" :title="useStore.loginTitle"></uni-title>
  14. </view>
  15. <view class="oa-content-section">
  16. <view class="menu-list mt0 mlr0">
  17. <view class="list-cell list-cell-arrow">
  18. <view class="menu-item">
  19. <view>版本信息</view>
  20. <view class="mr15 ml-auto text-right">v{{ version }}</view>
  21. </view>
  22. </view>
  23. <view class="list-cell list-cell-arrow">
  24. <view class="menu-item">
  25. <view>官方邮箱</view>
  26. <view class="mr15 ml-auto text-right">{{ email }}</view>
  27. </view>
  28. </view>
  29. <view class="list-cell list-cell-arrow">
  30. <view class="menu-item">
  31. <view>服务热线</view>
  32. <view class="mr15 ml-auto text-right">{{ hotline }}</view>
  33. </view>
  34. </view>
  35. <view class="list-cell list-cell-arrow">
  36. <view class="menu-item">
  37. <view>公司网站</view>
  38. <view class="mr15 ml-auto text-right">
  39. <uni-link :href="url" :text="url" showUnderLine="false"></uni-link>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="oa-footer-section">
  46. <view>{{ copyright }}</view>
  47. <u-text :text="filingInfo.code" :href="filingInfo.href" mode="link" align="center" size="12"></u-text>
  48. </view>
  49. </view>
  50. </template>
  51. <script setup>
  52. /*----------------------------------依赖引入-----------------------------------*/
  53. import { onReady, onLoad, onShow, onNavigationBarButtonTap } from "@dcloudio/uni-app";
  54. import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
  55. /*----------------------------------接口引入-----------------------------------*/
  56. /*----------------------------------组件引入-----------------------------------*/
  57. /*----------------------------------store引入-----------------------------------*/
  58. import { useStores, commonStores } from "@/store/modules/index";
  59. /*----------------------------------公共方法引入-----------------------------------*/
  60. import config from "@/config";
  61. /*----------------------------------公共变量-----------------------------------*/
  62. const { proxy } = getCurrentInstance();
  63. const useStore = useStores();
  64. /*----------------------------------变量声明-----------------------------------*/
  65. const state = reactive({
  66. url: computed(() => {
  67. return config.appInfo.site_url;
  68. }),
  69. version: computed(() => {
  70. return config.appInfo.version;
  71. }),
  72. email: computed(() => {
  73. return config.appInfo.email;
  74. }),
  75. hotline: computed(() => {
  76. return config.appInfo.hotline;
  77. }),
  78. copyright: computed(() => {
  79. return config.appInfo.copyright;
  80. }),
  81. filingInfo: computed(() => {
  82. return config.appInfo.filingInfo;
  83. }),
  84. });
  85. const { url, version, email, hotline, copyright, filingInfo } = toRefs(state);
  86. onShow(() => {
  87. //调用系统主题颜色
  88. proxy.$settingStore.systemThemeColor([1]);
  89. });
  90. </script>
  91. <style lang="scss" scoped>
  92. .about-container {
  93. .oa-header-section {
  94. display: flex;
  95. padding: 15px 0;
  96. flex-direction: column;
  97. align-items: center;
  98. }
  99. .oa-footer-section {
  100. margin-top: 25px;
  101. text-align: center;
  102. line-height: 30px;
  103. color: #999;
  104. font-size: 12px;
  105. :deep(.u-text__value) {
  106. justify-content: center;
  107. }
  108. }
  109. }
  110. </style>