下单功能基本完成
This commit is contained in:
@@ -7,6 +7,7 @@ import MoveBtn from '@/components/moveBtn'
|
||||
import ShopCart from '@/components/shopCart'
|
||||
import styles from './index.module.scss'
|
||||
import { useState } from 'react'
|
||||
import Taro from '@tarojs/taro'
|
||||
|
||||
export default () => {
|
||||
const tabs_list = [
|
||||
@@ -31,6 +32,12 @@ export default () => {
|
||||
|
||||
const [showShopCart, setShowShopCart] = useState(false)
|
||||
|
||||
const goLink = () => {
|
||||
Taro.navigateTo({
|
||||
url: '/pages/search/index'
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<MoveBtn onClick={() => setShowShopCart(!showShopCart)}>
|
||||
<View className={styles.main}>
|
||||
@@ -38,7 +45,7 @@ export default () => {
|
||||
<View className={styles.search}>
|
||||
<View className={styles.search_collect}>我的收藏</View>
|
||||
<View className={styles.search_input}>
|
||||
<Search disabled={true} style={{width: '263rpx'}}/>
|
||||
<Search disabled={true} style={{width: '263rpx'}} clickOnSearch={() => goLink()}/>
|
||||
</View>
|
||||
</View>
|
||||
<View className={styles.products}>
|
||||
|
||||
Reference in New Issue
Block a user