Commit 57ea5941 authored by GuanHua's avatar GuanHua

fix: 渠道商城装修接口调用问题

parent 4807cadb
......@@ -14,16 +14,16 @@ const mockData = {
key: 'en-US',
icon: 'http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/us.png'
},
{
name: '日本語-JP',
key: 'jp',
icon: 'http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png'
},
{
name: '한국어-KO',
key: 'ko',
icon: 'http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png'
}
// {
// name: '日本語-JP',
// key: 'jp',
// icon: 'http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png'
// },
// {
// name: '한국어-KO',
// key: 'ko',
// icon: 'http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png'
// }
]
}
}
......@@ -35,4 +35,4 @@ exports.fetchConfig = async () => {
resolve(mockData.data)
}, 2 * 1000)
})
}
\ No newline at end of file
}
......@@ -64,7 +64,7 @@
"crypto-js": "^4.0.0",
"god": "^0.2.4",
"immutability-helper": "^3.1.1",
"lingxi-design": "^1.0.13",
"lingxi-design": "^1.0.14",
"lingxi-design-ui": "^1.1.21",
"lingxi-editor-core": "^1.0.9",
"lingxi-web": "^1.0.6",
......
......@@ -59,7 +59,14 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
current: 1,
pageSize: 100
}
PublicApi.getTemplateAdornWebStoreFindCategoryList(param).then(res => {
let getFn;
if (templateType === 'channel') {
getFn = PublicApi.getTemplateAdornWebChannelFindCategoryList
} else {
getFn = PublicApi.getTemplateAdornWebStoreFindCategoryList
}
getFn && getFn(param).then(res => {
if (res.code === 1000) {
const data = res.data
setCategoryResponseList(data.categoryBOList || [])
......@@ -73,7 +80,14 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
templateId: templateid,
categoryId: categoryid,
}
PublicApi.getTemplateAdornWebStoreFindBrandList(param).then((res: any) => {
let getFn;
if (templateType === 'channel') {
getFn = PublicApi.getTemplateAdornWebChannelFindBrandList
} else {
getFn = PublicApi.getTemplateAdornWebStoreFindBrandList
}
getFn && getFn(param).then((res: any) => {
if (res.code === 1000) {
const dataInfo = res.data
setNoSelectBrands(dataInfo.data || [])
......
......@@ -28,7 +28,7 @@ const PropsSettings: React.FC<PropsSettingsPropsType> = (props) => {
const renderDrawerComponent = () => {
const { props: initProps, propsConfig } = selectedInfo || {};
let componentType = propsConfig?.componentType
const componentType = propsConfig?.componentType
if (componentType) {
switch (componentType.type) {
case PROPS_TYPES.goods:
......
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