活动详情页

This commit is contained in:
eric
2023-12-02 22:02:08 +08:00
parent c7f25cb21a
commit 6226b591ff
9 changed files with 263 additions and 58 deletions

View File

@@ -7,38 +7,54 @@ import { AtGrid } from "taro-ui";
import { Swiper, SwiperItem } from "@tarojs/components";
import { AtCard } from "taro-ui";
import { AtImagePicker } from "taro-ui";
import Taro from '@tarojs/taro'
import { AtAvatar } from 'taro-ui'
import Taro from "@tarojs/taro";
import { AtAvatar } from "taro-ui";
import { AtList, AtListItem } from "taro-ui";
// export default class Index extends Component {
const My = () => {
const [current, setcurrent] = useState(2);
const handleClick = (value) => {
console.log('value',value)
setcurrent(value)
console.log("value", value);
setcurrent(value);
if (value == 2) {
// 跳转到目的页面,在当前页面打开
Taro.redirectTo({
url: "/pages/my/index",
});
}else if(value == 0){
Taro.redirectTo({
url: "/pages/index/index",
});
}else{
Taro.redirectTo({
url: "/pages/meetup/index",
});
}
// 跳转到目的页面,在当前页面打开
Taro.navigateTo({
url: "/pages/my/index",
});
} else if (value == 0) {
Taro.navigateTo({
url: "/pages/index/index",
});
} else {
Taro.navigateTo({
url: "/pages/meetup/index",
});
}
};
return (
<View className="my">
{/* <Text>Hello world!</Text> */}
<AtAvatar image='https://cdn.huodongxing.com/logo/202312/8732019012100/promoteMini.png'></AtAvatar>
{/* <AtAvatar image='https://cdn.huodongxing.com/logo/202312/8732019012100/promoteMini.png'></AtAvatar> */}
<AtList>
<AtListItem
title="联系我们"
note=""
arrow="right"
iconInfo={{ size: 25, color: "#78A4FA", value: "calendar" }}
/>
<AtListItem
title="版本日志"
note=""
extraText=""
arrow="right"
iconInfo={{ size: 25, color: "#FF4949", value: "bookmark" }}
/>
</AtList>
<View className="indexTablebar">
{/* <View className="indexTablebar">
<AtTabBar
tabList={[
{ title: "首页", text: "" },
@@ -48,7 +64,7 @@ const My = () => {
onClick={(value) => handleClick(value)}
current={current}
/>
</View>
</View> */}
</View>
);
};