You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
556 B
20 lines
556 B
import {FC} from "react";
|
|
import {Image, View} from "@tarojs/components";
|
|
import styles from "../home.module.scss";
|
|
import Taro from "@tarojs/taro";
|
|
import search from "@/static/img/search.png"
|
|
|
|
|
|
export const Search: FC = () => {
|
|
|
|
function jump() {
|
|
Taro.navigateTo({url: '/pages/preview/search/search/index'})
|
|
}
|
|
|
|
return (
|
|
<View className={styles.search} onClick={jump}>
|
|
<Image src={search} mode='widthFix' style={{width: 16, height: 16, verticalAlign: 'middle',paddingRight:'10rpx'}}/>
|
|
<View>点击搜索</View>
|
|
</View>
|
|
)
|
|
}
|
|
|