Commit 4da6bc54 authored by 前端-许佳敏's avatar 前端-许佳敏
parents 47bc416d ecf60c46
......@@ -5,6 +5,7 @@ import CardLayout from '../card';
import style from './index.less';
import { isEmpty } from 'lodash';
import { PublicApi } from '@/services/api';
import { GlobalConfig } from '@/global/config';
type ShopItem = {
describe?: string
......@@ -31,7 +32,7 @@ const ShopLayout: React.FC<shopListProps> = (props: any) => {
const [mallList, setMallList] = useState<ShopItem[]>([]);
useEffect(() => {
PublicApi.getManageShopFindByMemberType().then(res => {
PublicApi.postManageWebShopWebAll({siteId: GlobalConfig.global.siteInfo.id.toString(), hasMemberType: 1}, { ctlType: 'none' }).then(res => {
if (res.code !== 1000) {
return
}
......@@ -69,6 +70,8 @@ const ShopLayout: React.FC<shopListProps> = (props: any) => {
console.log(onSetShopList, mallList)
}, [onSetShopList])
return (
<CardLayout
id="shopLayout"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment