diff --git a/src/pages/my/components/AbountUs/index.tsx b/src/pages/my/components/AbountUs/index.tsx index ff9fbae..3211ccf 100644 --- a/src/pages/my/components/AbountUs/index.tsx +++ b/src/pages/my/components/AbountUs/index.tsx @@ -1,4 +1,6 @@ -import { View } from "@tarojs/components"; +import { RichText, View } from "@tarojs/components"; +import { getTable } from "../../../../utils/index"; +import moment from "moment"; import react, { useEffect } from "react"; import { Collapse, CollapseItem, Toast } from "@antmjs/vantui"; import "./index.scss"; @@ -11,7 +13,37 @@ const AbountUs = () => { }); }, []); - return AbountUs; + const [values, setValues] = react.useState([]); + const [versionArr, setversionArr] = react.useState([]); + + useEffect(() => { + getTabledata(); + }); + // 版本跟心日志 + const getTabledata = async () => { + let paramsObj = { + tableName: "aboutUs", + okFun: (res: any) => { + // console.log("res", res); + setversionArr(res?.data ?? []); + }, + }; + await getTable({ ...paramsObj }); + return []; + }; + return ( + + {versionArr?.reverse()?.map((item: any, index: any) => { + return ( + {}} className="RichText" style={{padding:'40px'}}> + + + ); + })} + + + + ); }; export default AbountUs;