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
linweijiong
jinfa-platform
Commits
4d18cc22
Commit
4d18cc22
authored
Sep 29, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
52bf5ecd
3d8ece6d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
18 deletions
+32
-18
UserHeader.tsx
src/layouts/components/UserHeader.tsx
+1
-0
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+11
-8
index.tsx
src/pages/lxMall/order/index.tsx
+8
-6
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+12
-3
forgetPwd.tsx
src/pages/user/forgetPwd.tsx
+0
-1
No files found.
src/layouts/components/UserHeader.tsx
View file @
4d18cc22
...
...
@@ -30,6 +30,7 @@ const UserHeader: React.FC<UserHeaderProps> = (props) => {
setTitle
(
"欢迎注册"
)
break
case
'/user/getBack'
:
case
'/user/forget'
:
setTitle
(
"找回密码"
)
break
}
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
4d18cc22
...
...
@@ -313,10 +313,9 @@ const CommodityDetail = (props) => {
if
(
clickFlag
)
{
clickFlag
=
false
PublicApi
.
postOrder
IsWorkFlow
({
productIds
:
[
selectCommodityId
]
}).
then
(
res
=>
{
PublicApi
.
postOrder
DirectPayment
({
productId
:
selectCommodityId
}).
then
(
res
=>
{
message
.
destroy
()
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
let
buyCommodityInfo
=
{
id
:
selectCommodityId
,
count
:
buyCount
,
...
...
@@ -329,9 +328,10 @@ const CommodityDetail = (props) => {
category
:
commodityDetail
.
customerCategory
.
name
,
brand
:
commodityDetail
.
brand
.
name
,
stockCount
:
stockCount
,
commodityPic
:
attrAndValList
.
commodityPic
[
0
]
,
commodityPic
:
attrAndValList
.
commodityPic
?
attrAndValList
.
commodityPic
[
0
]
:
''
,
attribute
:
attrAndValList
.
attributeAndValueList
}
let
sessionKey
=
`
${
commodityDetail
.
id
}${
new
Date
().
getTime
()}
`
let
buyOrderInfo
=
{
...
...
@@ -345,15 +345,17 @@ const CommodityDetail = (props) => {
orderList
:
[
buyCommodityInfo
]
}]
}
updateOrderInfo
(
buyOrderInfo
,
sessionKey
).
then
(()
=>
{
history
.
push
(
getOrderLink
(
sessionKey
,
priceType
))
if
(
res
.
data
)
{
window
.
location
.
href
=
getOrderLink
(
sessionKey
,
priceType
)
}
else
{
window
.
location
.
href
=
`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=
${
sessionKey
}
`
}
})
}
else
{
clickFlag
=
true
}
}).
catch
(()
=>
{
clickFlag
=
true
})
}
...
...
@@ -578,6 +580,7 @@ const CommodityDetail = (props) => {
if
(
parameter
)
{
unitPrice
=
unitPrice
*
parameter
}
return
unitPrice
}
...
...
src/pages/lxMall/order/index.tsx
View file @
4d18cc22
...
...
@@ -293,12 +293,14 @@ const Order: React.FC<OrderPropsType> = (props) => {
setConfirmLoading
(
true
)
PublicApi
.
postOrderProcurementOrderAdd
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
data
.
isPay
===
1
)
{
const
data
=
res
.
data
history
.
push
(
`/pay?orderId=
${
data
.
orderId
}
`
)
}
else
{
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=
${
spam_id
}
`
)
}
const
data
=
res
.
data
history
.
push
(
`/pay?orderId=
${
data
.
orderId
}
`
)
// if (res.data.isPay === 1) {
// const data = res.data
// history.push(`/pay?orderId=${data.orderId}`)
// } else {
// history.push(`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=${spam_id}`)
// }
}
setConfirmLoading
(
false
)
}).
catch
(()
=>
{
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
4d18cc22
...
...
@@ -478,9 +478,18 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
message
.
destroy
()
setConfirmLoading
(
false
)
if
(
res
.
code
===
1000
)
{
let
sessionKey
=
`
${
selectItem
.
id
}${
new
Date
().
getTime
()}
`
updateOrderInfo
(
buyOrderInfo
,
sessionKey
).
then
(()
=>
{
history
.
push
(
`/order?spam_id=
${
sessionKey
}
&scence=purchase`
)
PublicApi
.
postOrderDirectPayment
({
productId
:
productIds
[
0
]
}).
then
(
res
=>
{
message
.
destroy
()
if
(
res
.
code
===
1000
)
{
let
sessionKey
=
`
${
selectItem
.
id
}${
new
Date
().
getTime
()}
`
updateOrderInfo
(
buyOrderInfo
,
sessionKey
).
then
(()
=>
{
if
(
res
.
data
)
{
window
.
location
.
href
=
`/order?spam_id=
${
sessionKey
}
&scence=purchase`
}
else
{
window
.
location
.
href
=
`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=
${
sessionKey
}
`
}
})
}
})
}
setConfirmLoading
(
false
)
...
...
src/pages/user/forgetPwd.tsx
View file @
4d18cc22
...
...
@@ -180,7 +180,6 @@ const UserForgetPwd = () => {
return
(
<
div
className=
{
cx
(
styles
.
register
,
globalStyles
.
lingxiBusinessContent1024
)
}
>
<
h3
>
找回密码
</
h3
>
<
div
className=
{
cx
(
styles
.
registerBox
,
globalStyles
.
lingxiBusinessMarginContent
)
}
>
<
NiceForm
id=
'registerForm'
...
...
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