|
@@ -1,5 +1,5 @@
|
|
|
import { View, Text } from '@tarojs/components'
|
|
import { View, Text } from '@tarojs/components'
|
|
|
-import Taro, { useLoad, useRouter, navigateTo } from '@tarojs/taro'
|
|
|
|
|
|
|
+import Taro, { useLoad, useRouter, switchTab } from '@tarojs/taro'
|
|
|
import { Button } from '@/components/ui/button'
|
|
import { Button } from '@/components/ui/button'
|
|
|
import { Card, CardContent } from '@/components/ui/card'
|
|
import { Card, CardContent } from '@/components/ui/card'
|
|
|
import { Navbar, NavbarPresets } from '@/components/ui/navbar'
|
|
import { Navbar, NavbarPresets } from '@/components/ui/navbar'
|
|
@@ -18,14 +18,14 @@ export default function PaySuccessPage() {
|
|
|
|
|
|
|
|
// 查看订单
|
|
// 查看订单
|
|
|
const handleViewOrder = () => {
|
|
const handleViewOrder = () => {
|
|
|
- navigateTo({
|
|
|
|
|
- url: '/pages/orders/orders'
|
|
|
|
|
|
|
+ switchTab({
|
|
|
|
|
+ url: '/pages/orders/index'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 返回首页
|
|
// 返回首页
|
|
|
const handleBackToHome = () => {
|
|
const handleBackToHome = () => {
|
|
|
- navigateTo({
|
|
|
|
|
|
|
+ switchTab({
|
|
|
url: '/pages/home/index'
|
|
url: '/pages/home/index'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|