feat: 版本日志
This commit is contained in:
@@ -7,6 +7,8 @@ export default {
|
||||
"pages/activityList/components/details/index",
|
||||
"pages/mountainPeak/index",
|
||||
"pages/my/index",
|
||||
"pages/my/components/Version/index",
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
0
src/pages/my/components/Version/index.scss
Normal file
0
src/pages/my/components/Version/index.scss
Normal file
41
src/pages/my/components/Version/index.tsx
Normal file
41
src/pages/my/components/Version/index.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import { View } from "@tarojs/components";
|
||||
import react, { useEffect } from "react";
|
||||
import { Collapse, CollapseItem, Toast } from "@antmjs/vantui";
|
||||
import "./index.scss";
|
||||
|
||||
const Version = () => {
|
||||
|
||||
useEffect(() => {
|
||||
// 设置标题
|
||||
definePageConfig({
|
||||
navigationBarTitleText: "版本日志",
|
||||
});
|
||||
}, []);
|
||||
|
||||
const [values, setValues] = react.useState(["1"]);
|
||||
return (
|
||||
<View>
|
||||
<Collapse
|
||||
value={values}
|
||||
onChange={(e) => setValues(e.detail)}
|
||||
// onOpen={(e) => Toast.show(`打开${e.detail}`)}
|
||||
// onClose={(e) => Toast.show(`关闭${e.detail}`)}
|
||||
>
|
||||
{[
|
||||
{ title: "2022-12-09", name: "name1", content: "content" },
|
||||
{ title: "2022-12-08", name: "name2", content: "content" },
|
||||
{ title: "2022-12-07", name: "name3", content: "content" },
|
||||
].map((item: any, index: any) => {
|
||||
return (
|
||||
<CollapseItem title={item?.title} name={item?.name}>
|
||||
{item?.content}
|
||||
</CollapseItem>
|
||||
);
|
||||
})}
|
||||
</Collapse>
|
||||
<Toast id="collapse-mess" />
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default Version;
|
||||
@@ -52,9 +52,9 @@ const my = (props: any) => {
|
||||
</View>
|
||||
|
||||
<View className="cellArr">
|
||||
<Cell icon="manager" title="打卡记录" isLink />
|
||||
<Cell icon="manager" title="个人资料" isLink />
|
||||
{/* <Cell title="收藏" isLink /> */}
|
||||
{/* <Cell icon="manager" title="打卡记录" isLink />
|
||||
<Cell icon="manager" title="个人资料" isLink /> */}
|
||||
|
||||
<Cell
|
||||
title="微信客服"
|
||||
icon="wechat"
|
||||
@@ -71,7 +71,17 @@ const my = (props: any) => {
|
||||
}}
|
||||
/>
|
||||
<Cell icon="friends" title="关于我们" isLink />
|
||||
<Cell icon="setting" title="版本日志" isLink />
|
||||
<Cell
|
||||
icon="setting"
|
||||
title="版本日志"
|
||||
isLink
|
||||
onClick={() => {
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/my/components/Version/index",
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
|
||||
<TabbarCom active={2} />
|
||||
|
||||
Reference in New Issue
Block a user