activity.vue 662 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. 活动
  5. </view>
  6. </view>
  7. </template>
  8. <script setup lang="ts">
  9. import { ref } from 'vue';
  10. //该依赖已内置不需要单独安装
  11. import { onShow } from "@dcloudio/uni-app";
  12. // 基本信息
  13. const config = ref({});
  14. onShow(() => {
  15. searchConfig();
  16. })
  17. // config信息
  18. const searchConfig = async () => {
  19. config.value = uni.getStorageSync('config');
  20. };
  21. </script>
  22. <style lang="scss" scoped>
  23. .content {
  24. display: flex;
  25. flex-direction: column;
  26. .one {
  27. padding: 2vw;
  28. .rich-img {
  29. width: 100% !important;
  30. display: block;
  31. }
  32. }
  33. }
  34. </style>