fix: 全表查询:1s
This commit is contained in:
2
dist/pages/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -94,23 +94,22 @@ const Home = () => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// 云托管测试
|
// 云托管测试
|
||||||
const testCloud = async () => {
|
const testCloud = async () => {
|
||||||
const res = await cloudcall({
|
const res = await cloudcall({
|
||||||
path:'/feishu',
|
path: "/feishu",
|
||||||
method:'GET'
|
method: "GET",
|
||||||
})
|
});
|
||||||
console.log('业务返回结果',res)
|
console.log("业务返回结果", res);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 云托管本地测试
|
// 云托管本地测试
|
||||||
const testPost = async () => {
|
const testPost = async () => {
|
||||||
const res = await cloudcall({
|
const res = await cloudcall({
|
||||||
path:'/nihao',
|
path: "/nihao",
|
||||||
method:'POST'
|
method: "POST",
|
||||||
})
|
});
|
||||||
console.log('业务返回结果',res)
|
console.log("业务返回结果", res);
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// testCloud();
|
// testCloud();
|
||||||
@@ -135,10 +134,11 @@ const Home = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getsystemConfig(); //获取系统配置
|
getsystemConfig(); //获取系统配置
|
||||||
|
// getdetails(); //获取活动详情
|
||||||
|
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// getdetails(); //获取活动详情
|
getdetails(); //获取活动详情
|
||||||
// }, 800);
|
}, 1000);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -157,7 +157,7 @@ const Home = () => {
|
|||||||
tableName: "details",
|
tableName: "details",
|
||||||
// id: "80516fb66370bcf300b8f43c5f4dd52b",
|
// id: "80516fb66370bcf300b8f43c5f4dd52b",
|
||||||
okFun: async (res: any) => {
|
okFun: async (res: any) => {
|
||||||
console.log("details--", res);
|
console.log("details11--", res);
|
||||||
await setdetails(res?.data ?? []);
|
await setdetails(res?.data ?? []);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -171,9 +171,10 @@ const Home = () => {
|
|||||||
okFun: async (res: any) => {
|
okFun: async (res: any) => {
|
||||||
console.log("systemConfig--", res);
|
console.log("systemConfig--", res);
|
||||||
await setsystemConfig(res?.data ?? []);
|
await setsystemConfig(res?.data ?? []);
|
||||||
setTimeout(() => {
|
|
||||||
getdetails();
|
// setTimeout(() => {
|
||||||
}, 800);
|
// getdetails();
|
||||||
|
// }, 800);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
await getTable(objParams);
|
await getTable(objParams);
|
||||||
@@ -356,7 +357,7 @@ const Home = () => {
|
|||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* 通知条 */}
|
{/* 通知条 */}
|
||||||
{!systemConfig?.[0]?.notice?.isHidden && (
|
{systemConfig?.length > 0 && !systemConfig?.[0]?.notice?.isHidden && (
|
||||||
<NoticeBar
|
<NoticeBar
|
||||||
leftIcon="volume-o"
|
leftIcon="volume-o"
|
||||||
// text="疫情期间,请留意各个景区的开放状态以及时间"
|
// text="疫情期间,请留意各个景区的开放状态以及时间"
|
||||||
@@ -609,7 +610,7 @@ const Home = () => {
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* 活动卡片 */}
|
|
||||||
<ActiveCard dataSource={item} />
|
<ActiveCard dataSource={item} />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
@@ -620,6 +621,8 @@ const Home = () => {
|
|||||||
<Skeleton title={true} row={4} />
|
<Skeleton title={true} row={4} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/* 加入微信群 */}
|
{/* 加入微信群 */}
|
||||||
{/* <WeGroup /> */}
|
{/* <WeGroup /> */}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user