张延森 4 vuotta sitten
vanhempi
commit
98dcd30d90

+ 1
- 1
src/components/WuYeBaoXiu/index.jsx Näytä tiedosto

@@ -19,7 +19,7 @@ export default function WuYeBaoXiu () {
19 19
   }, [])
20 20
 
21 21
   const GetBanner = (done = () => { }) => { // 获取轮播图
22
-    request({ ...apis.getBanner, params: { contentType: `news`, pageNum: 1, pageSize: 1 } }).then((res) => {
22
+    request({ ...apis.getBanner, params: { showPosition: `property`, showType: 'banner', pageSize: 1 } }).then((res) => {
23 23
       setBannerList([...(res || [])])
24 24
       done()
25 25
     }).catch(() => {

+ 1
- 1
src/components/WuYeFuWu/index.jsx Näytä tiedosto

@@ -19,7 +19,7 @@ export default function WuYeFuWu () {
19 19
   }, [])
20 20
 
21 21
   const GetBanner = (done = () => { }) => { // 获取轮播图
22
-    request({ ...apis.getBanner, params: { contentType: `news`, pageNum: 1, pageSize: 1 } }).then((res) => {
22
+    request({ ...apis.getBanner, params: { showPosition: `property`, showType: 'banner', pageNum: 1, pageSize: 1 } }).then((res) => {
23 23
       setBannerList([...(res || [])])
24 24
       done()
25 25
     }).catch(() => {

+ 1
- 1
src/components/WuYeGongGao/index.jsx Näytä tiedosto

@@ -19,7 +19,7 @@ export default function WuYeGongGao () {
19 19
   }, [])
20 20
 
21 21
   const GetBanner = (done = () => { }) => { // 获取轮播图
22
-    request({ ...apis.getBanner, params: { contentType: `news`, pageNum: 1, pageSize: 1 } }).then((res) => {
22
+    request({ ...apis.getBanner, params: { showPosition: `property`, showType: 'banner', pageNum: 1, pageSize: 1 } }).then((res) => {
23 23
       setBannerList([...(res || [])])
24 24
       done()
25 25
     }).catch(() => {

+ 1
- 1
src/components/WuYeJiaoFei/index.jsx Näytä tiedosto

@@ -64,7 +64,7 @@ export default function WuYeJiaoFei () {
64 64
   }, [])
65 65
 
66 66
   const GetBanner = (done = () => { }) => { // 获取轮播图
67
-    request({ ...apis.getBanner, params: { contentType: `news`, pageNum: 1, pageSize: 1 } }).then((res) => {
67
+    request({ ...apis.getBanner, params: { showPosition: `property`, showType: 'banner', pageNum: 1, pageSize: 1 } }).then((res) => {
68 68
       setBannerList([...(res || [])])
69 69
       done()
70 70
     }).catch(() => {