|
@@ -7,7 +7,7 @@ import PageLoading from '@/components/PageLoading'
|
7
|
7
|
import withBasic from '@/layouts/withBasic'
|
8
|
8
|
|
9
|
9
|
import { useModel } from '@/store'
|
10
|
|
-import { getApplicationList, getBannerList,getDogCardList } from '@/services/dogAPI'
|
|
10
|
+import { getApplicationList, getBannerList, getDogCardList } from '@/services/dogAPI'
|
11
|
11
|
import MenuItem from './components/MenuItem'
|
12
|
12
|
|
13
|
13
|
import './style.less'
|
|
@@ -22,7 +22,7 @@ const ml16 = {
|
22
|
22
|
}
|
23
|
23
|
|
24
|
24
|
const IndexPage = (props) => {
|
25
|
|
- const { pets, cards,setCards } = useModel('userData')
|
|
25
|
+ const { pets, cards, setCards } = useModel('userData')
|
26
|
26
|
const [totalApplyNum, setTotalApplyNum] = useState(0)
|
27
|
27
|
const [noticeList, setNoticeList] = useState([])
|
28
|
28
|
const [bannerList, setBannerList] = useState([])
|
|
@@ -42,7 +42,7 @@ const IndexPage = (props) => {
|
42
|
42
|
getBannerList().then(res => {
|
43
|
43
|
setBannerList(res)
|
44
|
44
|
})
|
45
|
|
- getDogCardList().then(res=>{
|
|
45
|
+ getDogCardList().then(res => {
|
46
|
46
|
setCards(res.records)
|
47
|
47
|
})
|
48
|
48
|
}, [])
|