Activity.tsx 953 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { View, Text } from "@tarojs/components";
  2. import Activity from '@/features/trackSomething/components/Activity'
  3. import { useDidShow, useReady, useShareAppMessage } from "@tarojs/taro";
  4. import { activityCards } from "@/services/trackSomething";
  5. import Tabbar from "@/components/navigation/TabBar";
  6. import { useTranslation } from "react-i18next";
  7. export default function Page() {
  8. const { t } = useTranslation()
  9. // useReady(()=>{
  10. // activityCards().then(res=>{
  11. // })
  12. // })
  13. if (process.env.TARO_ENV == 'weapp') {
  14. useShareAppMessage((e) => {
  15. return {
  16. title: t('share.title'),
  17. path: 'pages/clock/Clock'
  18. }
  19. })
  20. }
  21. useDidShow(() => {
  22. // global.updateTab(2)
  23. })
  24. function refresh() {
  25. console.log('refresh')
  26. }
  27. return (
  28. <View>
  29. <Activity />
  30. {/* <Tabbar index={2} /> */}
  31. </View>
  32. )
  33. }