电子商城测试版v4

This commit is contained in:
2022-07-06 20:29:48 +08:00
parent bbc485ee3f
commit f05389ced7
48 changed files with 358 additions and 545 deletions
+1 -14
View File
@@ -15,11 +15,7 @@ import { dataLoadingStatus } from '@/common/util'
export default () => {
const { checkLogin } = useLogin()
useDidShow(async () => {
await checkLogin()
})
useLogin()
useEffect(() => {
categoryList()
}, [])
@@ -87,21 +83,12 @@ export default () => {
setRefresherTriggeredStatus(true)
}
//页面下拉刷新
// const res = useManualPullDownRefresh()
// usePullDownRefresh(() => {
// console.log('123')
// })
//数据加载状态
const statusMore = useMemo(() => {
return dataLoadingStatus({ list: productData.list, total: productData.total, status: productState.loading })
}, [productData, productState.loading])
return (
<MoveBtn onClick={() => setShowShopCart(!showShopCart)}>
<View className={styles.main}>