index.vue 719 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <view class="homeWrapper">
  3. 首页
  4. <text>{{ shopInfo.name }}</text>
  5. </view>
  6. </template>
  7. <script setup>
  8. import { onLoad, onShow, onLaunch, onShareAppMessage } from "@dcloudio/uni-app";
  9. import { ref, computed, watch, Text } from "vue";
  10. import { useAppStore } from "@/stores/app";
  11. import { useStoreRights } from "@/stores/rights";
  12. import useRealGoldPrice from "@/hooks/useRealGoldPrice";
  13. // 获取实时金价
  14. // const { realGoldprice } = useRealGoldPrice("RTJ_Au");
  15. const appStore = useAppStore()
  16. const shopInfo = appStore.shopInfoGetter;
  17. console.log("shopInfo=",appStore.shopInfoGetter)
  18. </script>
  19. <style lang="scss" setup>
  20. .homeWrapper{
  21. background-color: #f5f5f5;
  22. text{
  23. color:#ff0000;
  24. }
  25. }
  26. </style>