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
4bcb117d
Commit
4bcb117d
authored
Oct 29, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改下单请求参数
parent
250e77e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
LXShopLayout.tsx
src/pages/lxMall/layouts/LXShopLayout.tsx
+7
-2
index.tsx
src/pages/lxMall/order/index.tsx
+2
-0
No files found.
src/pages/lxMall/layouts/LXShopLayout.tsx
View file @
4bcb117d
...
...
@@ -40,6 +40,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const
[
shopInfo
,
setShopInfo
]
=
useState
<
GetTemplateShopFindShopResponse
>
()
const
[
query
,
setQuery
]
=
useState
<
any
>
({})
const
[
mallInfo
,
setMallInfo
]
=
useState
<
any
>
({})
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
useEffect
(()
=>
{
try
{
...
...
@@ -48,6 +49,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
setQuery
(
queryParam
)
}
catch
(
error
)
{
console
.
log
(
error
)
setLoading
(
false
)
}
getWebMallInfo
()
},
[])
...
...
@@ -70,6 +72,9 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
if
(
res
.
code
===
1000
)
{
setShopInfo
(
res
.
data
)
}
setLoading
(
false
)
}).
catch
(()
=>
{
setLoading
(
false
)
})
}
...
...
@@ -103,7 +108,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
<
ShopHeader
logo=
{
mallInfo
.
logoUrl
}
shopId=
{
query
.
shopId
}
shopUrlParam=
{
shopId
}
shopInfo=
{
shopInfo
}
updateShopInfo=
{
()
=>
handleUpdate
()
}
/>
<
MainNav
menuData=
{
menuData
}
pathname=
{
location
.
pathname
}
type=
{
LAYOUT_TYPE
.
shop
}
shopId=
{
query
.
shopId
}
shopUrlParam=
{
shopId
}
/>
{
shopInfo
?
shopInfo
.
status
===
1
?
children
&&
React
.
Children
.
map
(
children
,
(
child
:
any
)
=>
{
!
loading
?
shopInfo
?
shopInfo
.
status
===
1
?
children
&&
React
.
Children
.
map
(
children
,
(
child
:
any
)
=>
{
return
React
.
cloneElement
(
child
,
{
layoutType
:
LAYOUT_TYPE
.
shop
,
...
...
@@ -114,7 +119,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
updateShopInfo
:
()
=>
handleUpdate
()
},
);
})
:
<
SearchShopResult
search
=
{
shopInfo
.
company
}
/> : <SearchShopResult /
>
})
:
<
SearchShopResult
search
=
{
shopInfo
.
company
}
/> : <SearchShopResult /
>
:
null
}
</
div
>
<
Footer
/>
...
...
src/pages/lxMall/order/index.tsx
View file @
4bcb117d
...
...
@@ -280,9 +280,11 @@ const Order: React.FC<OrderPropsType> = (props) => {
temp
.
category
=
orderItem
.
category
temp
.
brand
=
orderItem
.
brand
temp
.
logistics
=
orderItem
.
logistics
temp
.
deliveryType
=
orderItem
.
logistics
.
deliveryType
orderProductRequests
.
push
(
temp
)
}
}
params
.
supplyMembersName
=
orderInfo
.
supplyMembersName
params
.
supplyMembersId
=
orderInfo
.
supplyMembersId
params
.
supplyMembersRoleId
=
orderInfo
.
supplyMembersRoleId
params
.
deliveryType
=
orderInfo
.
logistics
.
deliveryType
...
...
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