Activity.tsx 548 B

12345678910111213141516171819202122232425
  1. import { View, Text } from "@tarojs/components";
  2. import Activity from '@/features/trackSomething/components/Activity'
  3. import { useDidShow, useReady } from "@tarojs/taro";
  4. import { activityCards } from "@/services/trackSomething";
  5. export default function Page() {
  6. // useReady(()=>{
  7. // activityCards().then(res=>{
  8. // })
  9. // })
  10. useDidShow(() => {
  11. global.updateTab(2)
  12. })
  13. function refresh() {
  14. console.log('refresh')
  15. }
  16. return (
  17. <View>
  18. <Activity />
  19. </View>
  20. )
  21. }