index.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="content">
  3. 关于我们
  4. </view>
  5. </template>
  6. <script setup lang="ts">
  7. import { inject, computed, ref } from 'vue';
  8. //该依赖已内置不需要单独安装
  9. import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
  10. // 请求接口
  11. const $api = inject('$api');
  12. const $config = inject('$config');
  13. // 基本信息
  14. const config = ref({ logo: [], file: [] });
  15. const list = ref([]);
  16. const total = ref(0);
  17. // user
  18. const user = computed(() => {
  19. return uni.getStorageSync('user');
  20. })
  21. onShow(async () => {
  22. await searchConfig();
  23. await searchOther();
  24. await search();
  25. })
  26. // config信息
  27. const searchConfig = async () => {
  28. config.value = uni.getStorageSync('config');
  29. };
  30. // 其他查询信息
  31. const searchOther = async () => { };
  32. // 查询
  33. const search = async () => { };
  34. </script>
  35. <style lang="scss" scoped>
  36. .content {
  37. display: flex;
  38. flex-direction: column;
  39. min-height: 100vh;
  40. background-color: var(--f1Color);
  41. }
  42. </style>