Commit 94fb32ba authored by GuanHua's avatar GuanHua

fix: 添加渠道app装修默认底部导航

parent d9bee8a7
/* /*
* @Author: ghua * @Author: ghua
* @Date: 2021-02-22 17:02:20 * @Date: 2021-02-22 17:02:20
* @LastEditTime: 2021-03-01 11:47:26 * @LastEditTime: 2022-02-17 14:23:55
* @LastEditors: Please set LastEditors * @LastEditors: GHua
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts * @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts
*/ */
...@@ -22,6 +22,21 @@ export const defaultHeaderNavData = [ ...@@ -22,6 +22,21 @@ export const defaultHeaderNavData = [
}, },
] ]
export const defaultBottomData = [
{
defaultIcon: "https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/home_default_icon@2x53811228510b478b982e930f3abd311c.png",
name: intl.formatMessage({ id: 'editor.bottom.link.type.home' }),
selectIcon: "https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/home_select_icon61bb51708e454013bf26126b8ccca779.png",
type: 1,
},
{
defaultIcon: "https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/mine_default_icon7c3a9ddd9dc844b89abbd7ecc906869e.png",
name: intl.formatMessage({ id: 'editor.bottom.link.type.mine' }),
selectIcon: "https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/mine_select_icon66af7fd1a6374b1a8081247d6e6f18c7.png",
type: 7,
}
]
export const channelLayoutConfig : PageConfigType = { export const channelLayoutConfig : PageConfigType = {
'0': { '0': {
componentName: 'LocaleProvide', componentName: 'LocaleProvide',
......
/* /*
* @Author: ghua * @Author: ghua
* @Date: 2021-02-22 17:02:20 * @Date: 2021-02-22 17:02:20
* @LastEditTime: 2021-03-01 11:37:34 * @LastEditTime: 2022-02-17 14:18:17
* @LastEditors: Please set LastEditors * @LastEditors: GHua
* @Description: app渠道商城装修 * @Description: app渠道商城装修
* @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/index.tsx * @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/index.tsx
*/ */
...@@ -27,6 +27,7 @@ import { ...@@ -27,6 +27,7 @@ import {
couponsModalConfig, couponsModalConfig,
defaultConfig, defaultConfig,
suggestProductConfig, suggestProductConfig,
defaultBottomData,
} from './config'; } from './config';
import { import {
marketingConfig_1, marketingConfig_1,
...@@ -212,7 +213,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = props => { ...@@ -212,7 +213,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
navList: appConfig?.navList ? appConfig?.navList.details : [], navList: appConfig?.navList ? appConfig?.navList.details : [],
advert: appConfig?.advert ? appConfig?.advert.details : [], advert: appConfig?.advert ? appConfig?.advert.details : [],
informationTitle: await getInfoList(), informationTitle: await getInfoList(),
bottom: appConfig?.bottom ? appConfig?.bottom.details : [], bottom: (appConfig?.bottom && appConfig?.bottom.details && appConfig?.bottom.details.length > 0) ? appConfig?.bottom.details : defaultBottomData,
}; };
const _suggestProductConfig: any = cloneDeep(suggestProductConfig); const _suggestProductConfig: any = cloneDeep(suggestProductConfig);
......
/* /*
* @Author: ghua * @Author: ghua
* @Date: 2021-02-22 17:02:20 * @Date: 2021-02-22 17:02:20
* @LastEditTime: 2021-03-01 11:47:26 * @LastEditTime: 2022-02-17 14:13:58
* @LastEditors: Please set LastEditors * @LastEditors: GHua
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts * @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts
*/ */
...@@ -228,3 +228,5 @@ export const couponsModalConfig = { ...@@ -228,3 +228,5 @@ export const couponsModalConfig = {
canDrag: false, canDrag: false,
}, },
}; };
// https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/home_default_icon@2x53811228510b478b982e930f3abd311c.png
// https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/home_select_icon61bb51708e454013bf26126b8ccca779.png
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