refactor(home): 移除未使用的导航功能
- 删除未使用的 navTo 导入语句 - 注释掉政企采购专区的点击跳转功能 - 注释掉桂乐淘福利惊爆区的点击跳转功能 - 保留卡片展示样式但移除交互逻辑
This commit is contained in:
@@ -11,7 +11,7 @@ import type { ShopGoods, ShopGoodsParam } from '@/api/shop/shopGoods/model'
|
|||||||
import { getMyGltUserTicketTotal } from '@/api/glt/gltUserTicket'
|
import { getMyGltUserTicketTotal } from '@/api/glt/gltUserTicket'
|
||||||
import { ensureLoggedIn } from '@/utils/auth'
|
import { ensureLoggedIn } from '@/utils/auth'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
import navTo from "@/utils/common";
|
// import navTo from "@/utils/common";
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
const [activeTabKey, setActiveTabKey] = useState('recommend')
|
const [activeTabKey, setActiveTabKey] = useState('recommend')
|
||||||
@@ -290,14 +290,15 @@ function Home() {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View className="ticket-card" onClick={() => Taro.navigateTo({ url: `/shop/category/index?id=4560` })}>
|
{/* onClick={() => Taro.navigateTo({ url: `/shop/category/index?id=4560` })} */}
|
||||||
|
<View className="ticket-card">
|
||||||
<View className="ticket-card__head">
|
<View className="ticket-card__head">
|
||||||
<Text className="ticket-card__title">政企采购专区</Text>
|
<Text className="ticket-card__title">政企采购专区</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
{/* onClick={() => navTo('/shop/category/index?id=4556')} */}
|
||||||
<View className="ticket-card" onClick={() => navTo('/shop/category/index?id=4556')}>
|
<View className="ticket-card">
|
||||||
<View className="ticket-card__head">
|
<View className="ticket-card__head">
|
||||||
<Text className="ticket-card__title">桂乐淘·福利惊爆区</Text>
|
<Text className="ticket-card__title">桂乐淘·福利惊爆区</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user