|
@@ -1,8 +1,9 @@
|
|
|
import React from 'react'
|
|
import React from 'react'
|
|
|
import { View, Text, Image, ScrollView } from '@tarojs/components'
|
|
import { View, Text, Image, ScrollView } from '@tarojs/components'
|
|
|
-import { useRouter, navigateTo } from '@tarojs/taro'
|
|
|
|
|
|
|
+import { useRouter, navigateTo, navigateBack } from '@tarojs/taro'
|
|
|
import { useQuery } from '@tanstack/react-query'
|
|
import { useQuery } from '@tanstack/react-query'
|
|
|
import { routeClient } from '../../api'
|
|
import { routeClient } from '../../api'
|
|
|
|
|
+import { Navbar, NavbarPresets } from '@/components/ui/navbar'
|
|
|
|
|
|
|
|
interface Activity {
|
|
interface Activity {
|
|
|
id: number
|
|
id: number
|
|
@@ -232,6 +233,14 @@ const ActivitySelectPage: React.FC = () => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<View className="min-h-screen bg-gray-50">
|
|
<View className="min-h-screen bg-gray-50">
|
|
|
|
|
+ {/* 导航栏 */}
|
|
|
|
|
+ <Navbar
|
|
|
|
|
+ title="选择活动"
|
|
|
|
|
+ leftIcon="i-heroicons-arrow-left-20-solid"
|
|
|
|
|
+ onClickLeft={() => navigateBack()}
|
|
|
|
|
+ {...NavbarPresets.primary}
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
{/* 头部信息 */}
|
|
{/* 头部信息 */}
|
|
|
<View className="bg-gradient-to-r from-primary to-primary-dark p-4">
|
|
<View className="bg-gradient-to-r from-primary to-primary-dark p-4">
|
|
|
<Text className="text-lg font-bold text-white block">
|
|
<Text className="text-lg font-bold text-white block">
|