Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
2532fdd8
Commit
2532fdd8
authored
Apr 01, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: app店铺,app渠道装修添加请求头environment参数
parent
8722d315
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
16 deletions
+34
-16
index.tsx
...ileSettingPanel/propsSettings/components/banner/index.tsx
+3
-2
index.tsx
...tingPanel/propsSettings/components/channelGoods/index.tsx
+2
-1
index.tsx
...nel/propsSettings/components/recommendCommodity/index.tsx
+4
-2
index.tsx
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
+6
-3
index.tsx
src/pages/mobileTemplate/channelTemplatePreview/index.tsx
+5
-2
index.tsx
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
+7
-3
index.tsx
src/pages/mobileTemplate/shopTemplatePreview/index.tsx
+7
-3
No files found.
src/pages/editor/mobileSettingPanel/propsSettings/components/banner/index.tsx
View file @
2532fdd8
...
...
@@ -75,7 +75,6 @@ const Banner: React.FC<BannerPropsType> = (props) => {
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'radio'
})
useEffect
(()
=>
{
console
.
log
(
storeId
,
"storeId"
)
initDataList
()
},
[
dataList
])
...
...
@@ -393,7 +392,9 @@ const Banner: React.FC<BannerPropsType> = (props) => {
...
param
,
}
let
getFn
:
any
=
null
const
headers
:
any
=
{}
const
headers
:
any
=
{
environment
:
"4"
}
switch
(
currentInfo
?.
type
)
{
case
1
:
params
.
priceTypeList
=
[
1
]
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/index.tsx
View file @
2532fdd8
...
...
@@ -271,7 +271,8 @@ const ChannelGoods: React.FC<QualityPropsType> = (props) => {
}
const
headers
=
{
"type"
:
"3"
"type"
:
"3"
,
environment
:
"4"
}
const
res
=
await
PublicApi
.
postSearchMobileShopChannelGetCommodityList
(
params
,
{
headers
})
message
.
destroy
()
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.tsx
View file @
2532fdd8
...
...
@@ -223,8 +223,10 @@ const RecommendCommodity: React.FC<BannerPropsType> = (props) => {
idNotInList
:
productIdList
||
[],
storeId
}
const
res
=
await
PublicApi
.
postSearchMobileShopStoreGetCommodityList
(
params
,
{
ctlType
:
'none'
})
const
headers
=
{
environment
:
"4"
}
const
res
=
await
PublicApi
.
postSearchMobileShopStoreGetCommodityList
(
params
,
{
ctlType
:
'none'
,
headers
})
message
.
destroy
()
return
res
.
data
}
...
...
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
View file @
2532fdd8
...
...
@@ -54,7 +54,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
[
theme
,
setTheme
]
=
useState
<
string
>
(
'theme-mall-science'
)
const
[
componentConfigs
,
setComponentConfigs
]
=
useState
({})
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{}
const
headers
=
{
environment
:
"4"
}
useEffect
(()
=>
{
if
(
!
TemplateList
.
includes
(
template
))
{
...
...
@@ -111,7 +114,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
priceTypeList
:
[
1
],
channelMemberId
,
}
PublicApi
.
postSearchMobileShopChannelGetCommodityList
(
param
).
then
(
res
=>
{
PublicApi
.
postSearchMobileShopChannelGetCommodityList
(
param
,
{
headers
}
).
then
(
res
=>
{
message
.
destroy
()
resolve
(
res
.
data
.
data
)
}).
catch
(()
=>
{
...
...
@@ -129,7 +132,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
channelMemberId
,
}
PublicApi
.
getSearchMobileShopChannelGetCustomerCategoryTree
(
param
).
then
((
res
)
=>
{
PublicApi
.
getSearchMobileShopChannelGetCustomerCategoryTree
(
param
,
{
headers
}
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
else
{
...
...
src/pages/mobileTemplate/channelTemplatePreview/index.tsx
View file @
2532fdd8
...
...
@@ -52,7 +52,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
[
theme
,
setTheme
]
=
useState
<
string
>
(
'theme-mall-science'
)
const
[
componentConfigs
,
setComponentConfigs
]
=
useState
({})
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{}
const
headers
=
{
environment
:
"4"
}
useEffect
(()
=>
{
if
(
!
TemplateList
.
includes
(
template
))
{
...
...
@@ -109,7 +112,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
priceTypeList
:
[
1
],
channelMemberId
,
}
PublicApi
.
postSearchMobileShopChannelGetCommodityList
(
param
).
then
(
res
=>
{
PublicApi
.
postSearchMobileShopChannelGetCommodityList
(
param
,
{
headers
}
).
then
(
res
=>
{
message
.
destroy
()
resolve
(
res
.
data
.
data
)
}).
catch
(()
=>
{
...
...
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
View file @
2532fdd8
...
...
@@ -53,6 +53,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
[
componentConfigs
,
setComponentConfigs
]
=
useState
({})
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{}
const
headers
=
{
environment
:
"4"
}
useEffect
(()
=>
{
if
(
!
TemplateList
.
includes
(
template
))
{
setTheme
(
`theme-mall-
${
TemplateList
[
0
]}
`
)
...
...
@@ -71,7 +75,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
memberId
,
roleId
:
memberRoleId
}
PublicApi
.
getTemplateWebMemberShopWebFindByMemberIdAndRoleId
(
param
).
then
(
res
=>
{
PublicApi
.
getTemplateWebMemberShopWebFindByMemberIdAndRoleId
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
@@ -87,7 +91,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
param
:
any
=
{
templateId
:
id
}
PublicApi
.
getTemplateAdornAppStoreFind
(
param
).
then
(
res
=>
{
PublicApi
.
getTemplateAdornAppStoreFind
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
else
{
...
...
@@ -137,7 +141,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
param
=
{
idList
}
PublicApi
.
postSearchMobileShopStoreGetCategoryByCommodityId
(
param
).
then
((
res
)
=>
{
PublicApi
.
postSearchMobileShopStoreGetCategoryByCommodityId
(
param
,
{
headers
}
).
then
((
res
)
=>
{
message
.
destroy
()
if
(
res
.
code
===
1000
)
{
resolve
(
changeData
(
res
.
data
))
...
...
src/pages/mobileTemplate/shopTemplatePreview/index.tsx
View file @
2532fdd8
...
...
@@ -51,6 +51,10 @@ const mobileShopTempletePreview: React.FC<ShopPreviewPropsType> = (props) => {
const
[
componentConfigs
,
setComponentConfigs
]
=
useState
({})
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{}
const
headers
=
{
environment
:
"4"
}
useEffect
(()
=>
{
if
(
!
TemplateList
.
includes
(
template
))
{
setTheme
(
`theme-mall-
${
TemplateList
[
0
]}
`
)
...
...
@@ -69,7 +73,7 @@ const mobileShopTempletePreview: React.FC<ShopPreviewPropsType> = (props) => {
memberId
,
roleId
:
memberRoleId
}
PublicApi
.
getTemplateWebMemberShopWebFindByMemberIdAndRoleId
(
param
).
then
(
res
=>
{
PublicApi
.
getTemplateWebMemberShopWebFindByMemberIdAndRoleId
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
@@ -85,7 +89,7 @@ const mobileShopTempletePreview: React.FC<ShopPreviewPropsType> = (props) => {
const
param
:
any
=
{
templateId
:
id
}
PublicApi
.
getTemplateAdornAppStoreFind
(
param
).
then
(
res
=>
{
PublicApi
.
getTemplateAdornAppStoreFind
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
else
{
...
...
@@ -135,7 +139,7 @@ const mobileShopTempletePreview: React.FC<ShopPreviewPropsType> = (props) => {
const
param
=
{
idList
}
PublicApi
.
postSearchMobileShopStoreGetCategoryByCommodityId
(
param
).
then
((
res
)
=>
{
PublicApi
.
postSearchMobileShopStoreGetCategoryByCommodityId
(
param
,
{
headers
}
).
then
((
res
)
=>
{
message
.
destroy
()
if
(
res
.
code
===
1000
)
{
resolve
(
changeData
(
res
.
data
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment