feat: 首页优化
This commit is contained in:
@@ -11,7 +11,7 @@ import Taro from '@tarojs/taro'
|
||||
|
||||
|
||||
// export default class Index extends Component {
|
||||
const Index = () => {
|
||||
const My = () => {
|
||||
const [current, setcurrent] = useState(2);
|
||||
const handleClick = (value) => {
|
||||
console.log('value',value)
|
||||
@@ -25,10 +25,14 @@ const Index = () => {
|
||||
Taro.redirectTo({
|
||||
url: "/pages/index/index",
|
||||
});
|
||||
}else{
|
||||
Taro.redirectTo({
|
||||
url: "/pages/meetup/index",
|
||||
});
|
||||
}
|
||||
};
|
||||
return (
|
||||
<View className="index">
|
||||
<View className="my">
|
||||
{/* <Text>Hello world!</Text> */}
|
||||
my
|
||||
<View className="indexTablebar">
|
||||
@@ -46,4 +50,4 @@ const Index = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default Index;
|
||||
export default My;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
.my{
|
||||
|
||||
|
||||
|
||||
.indexTablebar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user