Commit 92da0f4b authored by GuanHua's avatar GuanHua

feat: app企业商城装修开发

parent 5a38ed67
......@@ -125,7 +125,7 @@ export const STATUS_ENUM = [
]
// 1是阿里云oss服务器, 2是本地文件服务器
export const UPLOAD_TYPE = isDev ? 2 : 1
export const UPLOAD_TYPE = 1
// 会员规则类型
export const VIP_RULE_TRANSACTION = 1; // 交易
......@@ -1278,4 +1278,4 @@ export const PAY_CHANNEL = {
[PAY_CHANNEL_OFFLINE]: '线下支付',
[PAY_CHANNEL_CREDIT]: '授信',
[PAY_CHANNEL_COD]: '货到付款',
};
\ No newline at end of file
};
......@@ -35,7 +35,6 @@ const ToolBar: React.FC<ToolBarPropsType> = (props) => {
}
const handleSave = useCallback(() => {
console.log(componentConfigs, 'componentConfigs')
const param: any = {
templateId: Number(templateId),
appEnterpriseBO: {},
......@@ -47,44 +46,44 @@ const ToolBar: React.FC<ToolBarPropsType> = (props) => {
case PROPS_TYPES.mobileHeaderNav:
param.appEnterpriseBO.topBO = {
style: componentConfigsItem.props.styleTheme || 0,
status: false,
status: true,
topDetailsBOList: componentConfigsItem.props.dataList || []
}
break
case PROPS_TYPES.mobileBanner:
param.appEnterpriseBO.advertBO = {
status: componentConfigsItem.props.visible || false,
status: componentConfigsItem.props.visible || true,
advertDetailsBOList: componentConfigsItem.props.dataList || []
}
break
case PROPS_TYPES.mobileQuickNav:
param.appEnterpriseBO.functionBO = {
status: componentConfigsItem.props.visible || false,
status: componentConfigsItem.props.visible || true,
functionDetailsBO: componentConfigsItem.props.dataList || []
}
break
case PROPS_TYPES.mobileShowCase:
param.appEnterpriseBO.showcaseBO = {
style: componentConfigsItem.props.styleTheme || 0,
status: componentConfigsItem.props.visible || false,
status: componentConfigsItem.props.visible || true,
showcaseDetailsBO: componentConfigsItem.props.dataList || []
}
break
case PROPS_TYPES.mobileRecommentShops:
param.appEnterpriseBO.storeBO = {
status: componentConfigsItem.props.visible || false,
status: componentConfigsItem.props.visible || true,
storeIdList: componentConfigsItem.props.dataList ? componentConfigsItem.props.dataList.map(item => item.selectId) : []
}
break
case PROPS_TYPES.mobileQuality:
param.appEnterpriseBO.excellentBO = {
status: componentConfigsItem.props.visible || false,
status: componentConfigsItem.props.visible || true,
excellentDetailsBO: componentConfigsItem.props.dataList || []
}
break
case PROPS_TYPES.mobileBottomNavigation:
param.appEnterpriseBO.bottomBO = {
status: false,
status: true,
bottomDetailsBOList: componentConfigsItem.props.dataList || []
}
break
......
......@@ -33,7 +33,7 @@ export const divWrap = {
"background": "#FFF",
}
},
"childNodes": ["2", "3"]
"childNodes": ["2", "13"]
}
}
......@@ -83,6 +83,20 @@ export const mobileHeaderNav = {
}
}
export const bannerWrap = {
key: "13",
"13": {
"componentName": "div",
"props": {
"style": {
"marginTop": "-50px",
}
},
"childNodes": ["3"]
}
}
export const mobileBanner = {
key: "3",
"3": {
......
......@@ -8,6 +8,7 @@ import config from '../configs'
import {
mallLayoutConfig,
divWrap,
bannerWrap,
mobileHeaderNav,
mobileBanner,
mobileQuickNav,
......@@ -233,6 +234,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
...mallLayoutConfig,
...divWrap,
...mobileHeaderNav,
...bannerWrap,
...mobileBanner,
...mobileQuickNav,
...mobileShowCase,
......
......@@ -146,7 +146,7 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
param.brandIds = ids
PublicApi.postTemplateAdornWebEnterpriseSaveBrand(param).then(res => {
if (res.code === 1000) {
resolve()
resolve(true)
} else {
reject()
}
......@@ -213,7 +213,7 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
<Col>
<Form.Item
className={styles.mar_bot_0}
name="shopName"
name="brandName"
>
<Input.Search
style={{ width: 240 }}
......
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