board.vue 940 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. 战术板
  5. </view>
  6. </view>
  7. </template>
  8. <script setup lang="ts">
  9. import { getCurrentInstance, ref } from 'vue';
  10. //该依赖已内置不需要单独安装
  11. import { onLoad } from "@dcloudio/uni-app";
  12. // 请求接口
  13. const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
  14. // 基本信息
  15. const config = ref({ logoUrl: '' });
  16. // 详情信息id
  17. const id = ref('');
  18. onLoad(async (options) => {
  19. id.value = options && options.id
  20. await searchConfig();
  21. await search();
  22. })
  23. // config信息
  24. const searchConfig = async () => {
  25. config.value = uni.getStorageSync('config');
  26. };
  27. // 查询
  28. const search = async () => {
  29. if (id.value) { }
  30. };
  31. </script>
  32. <style lang="scss" scoped>
  33. .content {
  34. display: flex;
  35. flex-direction: column;
  36. width: 100vw;
  37. height: 100vh;
  38. .one {
  39. padding: 2vw;
  40. }
  41. }
  42. </style>