Commit c234445e authored by GuanHua's avatar GuanHua

fix: 装修问题和装修依赖版本更新

parent 31580809
......@@ -70,7 +70,7 @@
"god": "0.2.5",
"immutability-helper": "^3.1.1",
"lingxi-design": "^2.0.1",
"lingxi-design-ui": "^2.0.4",
"lingxi-design-ui": "^2.0.6",
"lingxi-editor-core": "^2.0.1",
"lingxi-web": "^1.0.6",
"lint-staged": "^10.0.7",
......
......@@ -66,24 +66,6 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
})
}
const findSecondAdvertsByType = () => {
return new Promise((resolve) => {
const params: any = {
templateId: id,
type: 2,
memberId: userInfo.memberId
}
PublicApi.getTemplateAdornWebChannelFindAdvertsByType(params).then(res => {
if (res.code === 1000) {
resolve(res.data)
} else {
resolve([])
}
})
})
}
/**
* 获取所有一级品类信息
*/
......@@ -232,9 +214,13 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
switch (Number(type)) {
case 3:
headers.type = 3
const info = getChannelInfo()
headers.shopId = info.id
break
case 4:
headers.type = 4
const iInfo = getIChannelInfo()
headers.shopId = iInfo.id
break
default:
break
......
import React, { useEffect, useState } from 'react'
import FilterBox from '../FilterBox'
import { PublicApi } from '@/services/api'
import { GetSearchShopEnterpriseGetBrandResponse } from '@/services'
import { GetSearchShopEnterpriseGetBrandResponse } from '@/services/SearchApi'
import { LAYOUT_TYPE, FILTER_TYPE } from '@/constants'
import styles from './index.less'
import url from '*.svg'
......@@ -20,7 +20,7 @@ const Brand: React.FC<BrandPropsType> = (props) => {
useEffect(() => {
let getBrandFn
let param: any = {}
const param: any = {}
let headers = {}
switch (layoutType) {
case LAYOUT_TYPE.mall:
......
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