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
ed5f0b49
Commit
ed5f0b49
authored
Dec 03, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:下单接口添加传参参数
parent
597c1bae
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
14 deletions
+26
-14
index.tsx
src/pages/channel/channelInfo/index.tsx
+1
-1
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+13
-3
LXChannelLayout.tsx
src/pages/lxMall/layouts/LXChannelLayout.tsx
+3
-3
LXIChannelLayout.tsx
src/pages/lxMall/layouts/LXIChannelLayout.tsx
+3
-3
LXMallLayout.tsx
src/pages/lxMall/layouts/LXMallLayout.tsx
+3
-3
index.tsx
src/pages/lxMall/order/index.tsx
+3
-1
No files found.
src/pages/channel/channelInfo/index.tsx
View file @
ed5f0b49
...
...
@@ -404,7 +404,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
labelAlign=
"left"
name=
"customerUrl"
label=
{
<
RequireItem
label=
"客服链接"
/>
}
rules=
{
[{
pattern
:
/
(
http|ftp|https
)
:
\/\/[\w\-
_
]
+
(\.[\w\-
_
]
+
)
+
([\w\-
\.
,@?^=%&:
/
~
\+
#
]
*
[\w\-\@
?^=%&
/
~
\
+
#
])?
/
,
message
:
'请输入正确的客服链接'
}]
}
rules=
{
[{
pattern
:
/
(
http|ftp|https
)
:
\/\/[\w\-
_
]
+
(\.[\w\-
_
]
+
)
+
([\w\-
.,@?^=%&:
/
~+#
]
*
[\w\-
@?^=%&
/
~
+#
])?
/
,
message
:
'请输入正确的客服链接'
}]
}
>
<
Input
allowClear
className=
{
styles
.
form_item
}
/>
</
Form
.
Item
>
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
ed5f0b49
...
...
@@ -371,7 +371,13 @@ const CommodityDetail = (props) => {
postFn
=
PublicApi
.
postSearchShopPurchaseSaveOrUpdatePurchase
break
;
}
PublicApi
.
postOrderDirectPayment
({
productId
:
selectCommodityId
,
memberId
}).
then
(
res
=>
{
const
directParam
:
any
=
{
productId
:
selectCommodityId
,
memberId
,
shopId
}
PublicApi
.
postOrderDirectPayment
(
directParam
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
postFn
&&
postFn
(
param
).
then
(
res
=>
{
...
...
@@ -483,8 +489,12 @@ const CommodityDetail = (props) => {
if
(
clickFlag
)
{
clickFlag
=
false
PublicApi
.
postOrderDirectPayment
({
productId
:
selectCommodityId
,
memberId
}).
then
(
res
=>
{
const
param
:
any
=
{
productId
:
selectCommodityId
,
memberId
,
shopId
}
PublicApi
.
postOrderDirectPayment
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
const
buyCommodityInfo
=
{
...
...
src/pages/lxMall/layouts/LXChannelLayout.tsx
View file @
ed5f0b49
...
...
@@ -35,7 +35,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
getMenuRouter
=
(
routes
:
any
,
pathname
:
any
)
=>
{
le
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
cons
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
return
list
[
0
]
||
{}
}
...
...
@@ -61,7 +61,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
},
[
query
])
const
fetchShopInfo
=
(
memberId
)
=>
{
//@ts-ignore
PublicApi
.
getTemplateChannelFindChannel
({
memberId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setShopInfo
(
res
.
data
)
...
...
@@ -73,7 +73,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
}
useEffect
(()
=>
{
le
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
cons
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
if
(
shopInfo
)
{
body
.
className
=
shopInfo
.
channelShopTemplateFileName
?
`theme-channel-
${
shopInfo
.
channelShopTemplateFileName
}
`
:
templateName
;
}
else
{
...
...
src/pages/lxMall/layouts/LXIChannelLayout.tsx
View file @
ed5f0b49
...
...
@@ -35,7 +35,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
getMenuRouter
=
(
routes
:
any
,
pathname
:
any
)
=>
{
le
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
cons
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
return
list
[
0
]
||
{}
}
const
{
formatMessage
}
=
useIntl
();
...
...
@@ -61,7 +61,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
},
[
query
])
const
fetchShopInfo
=
(
memberId
)
=>
{
//@ts-ignore
PublicApi
.
getTemplateChannelFindChannel
({
memberId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setShopInfo
(
res
.
data
)
...
...
@@ -73,7 +73,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
}
useEffect
(()
=>
{
le
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
cons
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
if
(
shopInfo
)
{
body
.
className
=
shopInfo
.
channelOwnShopTemplateFileName
?
`theme-channel-
${
shopInfo
.
channelOwnShopTemplateFileName
}
`
:
templateName
;
}
else
{
...
...
src/pages/lxMall/layouts/LXMallLayout.tsx
View file @
ed5f0b49
...
...
@@ -32,7 +32,7 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const
[
mallInfo
,
setMallInfo
]
=
useState
<
any
>
({})
const
getMenuRouter
=
(
routes
:
any
,
pathname
:
any
)
=>
{
le
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
cons
t
list
=
routes
.
filter
((
item
:
any
)
=>
pathname
.
indexOf
(
item
.
key
)
>
-
1
)
return
list
[
0
]
||
{}
}
...
...
@@ -50,12 +50,12 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const
getWebMallInfo
=
()
=>
{
const
shopInfo
=
GlobalConfig
.
web
.
shopInfo
le
t
webMallInfo
=
shopInfo
.
filter
(
item
=>
item
.
environment
===
1
&&
item
.
type
===
1
)[
0
]
cons
t
webMallInfo
=
shopInfo
.
filter
(
item
=>
item
.
environment
===
1
&&
item
.
type
===
1
)[
0
]
setMallInfo
(
webMallInfo
)
}
useEffect
(()
=>
{
le
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
cons
t
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
if
(
!
isEmpty
(
mallTemplateInfo
))
{
body
.
className
=
mallTemplateInfo
.
fileName
?
`theme-mall-
${
mallTemplateInfo
.
fileName
}
`
:
templateName
;
}
else
{
...
...
src/pages/lxMall/order/index.tsx
View file @
ed5f0b49
...
...
@@ -25,12 +25,13 @@ interface OrderPropsType {
mallInfo
:
any
;
layoutType
:
LAYOUT_TYPE
;
shopUrlParam
:
string
;
shopId
:
number
;
}
const
Order
:
React
.
FC
<
OrderPropsType
>
=
(
props
)
=>
{
let
checkoutCount
=
0
const
userInfo
=
getAuth
()
const
{
shopInfo
,
mallInfo
,
layoutType
,
shopUrlParam
}
=
props
const
{
shopInfo
,
mallInfo
,
layoutType
,
shopUrlParam
,
shopId
}
=
props
const
{
query
:
{
type
=
COMMODITY_TYPE
.
prompt
}
}
=
props
.
location
const
[
signModalVisible
,
setSignModalVisible
]
=
useState
<
boolean
>
(
false
)
const
{
spam_id
}
=
props
.
location
.
query
...
...
@@ -266,6 +267,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const
params
:
any
=
{
orderModel
:
getOrderMode
(),
// 下单模式
needTheInvoice
:
needTheInvoice
?
1
:
0
,
shopId
}
if
(
orderInfo
.
logistics
.
deliveryType
===
1
&&
!!
selectAddressInfo
)
{
...
...
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