下单功能基本完成

This commit is contained in:
2022-04-14 14:14:09 +08:00
parent 63e1e66a63
commit 9350978491
17 changed files with 185 additions and 26 deletions
+8 -1
View File
@@ -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}>