feat: 封装增删查改函数

This commit is contained in:
eric
2022-11-13 18:25:18 +08:00
parent d71bf4dde6
commit 3ea7b3dfd8
16 changed files with 157 additions and 31 deletions

View File

@@ -9,13 +9,14 @@ import {
Tag,
} from "@antmjs/vantui";
import { View } from "@tarojs/components";
import React, { useCallback } from "react";
import React, { useCallback, useEffect } from "react";
import { Swiper, SwiperItem, Image } from "@antmjs/vantui";
import react from "react";
import { NoticeBar } from "@antmjs/vantui";
import Taro from "@tarojs/taro";
import { Tabbar, TabbarItem } from "@antmjs/vantui";
import TabbarCom from "../components/TabbarCom";
import { getTable, getTableid } from "../../utils/index";
const Home = () => {
// const { images } = COMMON
@@ -27,6 +28,18 @@ const Home = () => {
"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg",
];
useEffect(() => {
let objParams={
tableName: "test",
id: "80516fb66370bcf300b8f43c5f4dd52b",
okFun: (res) => {
console.log("res", res);
},
}
getTable(objParams)
getTableid(objParams);
}, []);
return (
<View>
{/* 通知条 */}
@@ -126,7 +139,7 @@ const Home = () => {
<TabbarItem icon="setting-o">我的</TabbarItem>
</Tabbar> */}
<TabbarCom active={0}/>
<TabbarCom active={0} />
</View>
);
};