Commit c3dcba71 authored by GuanHua's avatar GuanHua

fix: 自营商城关于我们配置接口修改

parent ccdb8c98
......@@ -77,7 +77,7 @@ const OwnMallAboutUs = () => {
temp.push(item)
setSelectCityData(temp)
form.setFieldsValue({
memberChannelAreas: temp
memberShopAreas: temp
})
}
......@@ -86,14 +86,14 @@ const OwnMallAboutUs = () => {
temp = temp.filter((item: any) => item.index !== index)
setSelectCityData(temp)
form.setFieldsValue({
memberChannelAreas: temp
memberShopAreas: temp
})
}
const handleCityChange = (data: any) => {
setSelectCityData(data)
form.setFieldsValue({
memberChannelAreas: data
memberShopAreas: data
})
}
......@@ -117,7 +117,7 @@ const OwnMallAboutUs = () => {
}
console.log(`params`, params)
setSaveLoading(true)
PublicApi.postManageShopAboutSubmit(params).then(res => {
PublicApi.postTemplateWebMemberSelfWebSaveCurrMemberSelf(params).then(res => {
if (res.code === 1000) {
setIsFormChange(false)
}
......@@ -146,7 +146,7 @@ const OwnMallAboutUs = () => {
// 获取关于我们详情
const getAboutUsInfo = () => {
PublicApi.getManageShopAboutGet().then(res => {
PublicApi.getTemplateWebMemberSelfWebFindCurrMemberSelf().then(res => {
const { code, data } = res
if (code === 1000 && data) {
const { albumName, albumUrl, honorPics, workshopPics, ...rest } = data
......@@ -161,7 +161,7 @@ const OwnMallAboutUs = () => {
setIsFormChange(false)
setAlbumUrls(newAlbumUrls)
setSelectCityData(rest.memberChannelAreas)
setSelectCityData(rest.memberShopAreas)
setMallUrl(rest.url)
}
})
......@@ -196,7 +196,7 @@ const OwnMallAboutUs = () => {
</Col>
<Col span={12}>
<Form.Item
name='memberChannelAreas'
name='memberShopAreas'
label={<RequireItem label="业务覆盖地市" isRequire={true}/>}
rules={[
{ required: true, message: "请选择业务覆盖地市" }
......
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