Commit b578340e authored by GuanHua's avatar GuanHua

feat:渠道商城接口参数问题

parent 96d97f47
......@@ -28,7 +28,6 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
useEffect(() => {
if (shopInfo) {
console.log(shopInfo, "shopInfo")
if (shopInfo.templateId) {
getCategoryComponents()
findFirstAdvertsByType()
......@@ -40,7 +39,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const findFirstAdvertsByType = () => {
let params = {
templateId: shopInfo.templateId,
type: 1
type: 1,
memberId
}
//@ts-ignore
PublicApi.getTemplateChannelFindAdvertsByType(params).then(res => {
......@@ -53,7 +53,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const findSecondAdvertsByType = () => {
let params = {
templateId: shopInfo.templateId,
type: 2
type: 2,
memberId
}
//@ts-ignore
PublicApi.getTemplateChannelFindAdvertsByType(params).then(res => {
......@@ -68,7 +69,9 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
*/
const fetchFirstCategory = () => {
return new Promise((resolve) => {
PublicApi.getTemplateChannelFindAllFirstCategory().then(res => {
//@ts-ignore
PublicApi.getTemplateChannelFindAllFirstCategory({ memberId }).then(res => {
if (res.code === 1000) {
setCategoryList(res.data)
resolve(res.data)
......@@ -84,7 +87,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
return new Promise((resolve) => {
let param = {
templateId: shopInfo.templateId,
categoryId
categoryId,
memberId
}
// @ts-ignore
......
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