From 8672db87078e0a61d239ce78a0a8162a9b8747fe Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 9 Dec 2022 14:00:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=B3=E4=BA=8E=E6=88=91=E4=BB=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/my/components/AbountUs/index.tsx | 36 ++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) 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;