已优化

This commit is contained in:
2022-04-18 13:35:41 +08:00
committed by li tong bao
parent eadb8b1e61
commit 5acf8dbd21
9 changed files with 92 additions and 44 deletions
+2 -7
View File
@@ -6,6 +6,7 @@ import Product from '@/components/product'
import MoveBtn from '@/components/moveBtn'
import ShopCart from '@/components/shopCart'
import styles from './index.module.scss'
import { goLink } from '@/common/common'
import { useState } from 'react'
import Taro from '@tarojs/taro'
@@ -32,12 +33,6 @@ export default () => {
const [showShopCart, setShowShopCart] = useState(false)
const goLink = () => {
Taro.navigateTo({
url: '/pages/search/index'
})
}
return (
<MoveBtn onClick={() => setShowShopCart(!showShopCart)}>
<View className={styles.main}>
@@ -45,7 +40,7 @@ export default () => {
<View className={styles.search}>
<View className={styles.search_collect}>我的收藏</View>
<View className={styles.search_input}>
<Search disabled={true} style={{width: '263rpx'}} clickOnSearch={() => goLink()}/>
<Search disabled={true} style={{width: '263rpx'}} clickOnSearch={() => goLink('/pages/search/index')}/>
</View>
</View>
<View className={styles.products}>