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
8bf207a4
Commit
8bf207a4
authored
Jan 18, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into mobile
parents
0946ac14
c67d5578
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
index.tsx
src/pages/logistics/addLogistics/index.tsx
+3
-3
templateForm.tsx
src/pages/logistics/list/components/templateForm.tsx
+0
-0
index.less
.../commodityDetail/components/ProductDescription/index.less
+5
-2
index.tsx
...l/commodityDetail/components/ProductDescription/index.tsx
+20
-1
index.tsx
src/pages/lxMall/components/Category/index.tsx
+1
-0
No files found.
src/pages/logistics/addLogistics/index.tsx
View file @
8bf207a4
...
...
@@ -393,21 +393,21 @@ const AddLogistics: React.FC<{}> = () => {
})
break
;
case
4
:
PublicApi
.
getAsReplaceGoodsPageReturnCommodityByLogistics
({
...
params
,
dataId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevance
OrderId
}).
then
(
res
=>
{
PublicApi
.
getAsReplaceGoodsPageReturnCommodityByLogistics
({
...
params
,
dataId
:
query
.
relevanceOrderId
?
query
.
relevanceOrderId
:
query
.
shipment
OrderId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
break
;
case
5
:
PublicApi
.
getAsReplaceGoodsPageReplaceCommodityByLogistics
({
...
params
,
dataId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevance
OrderId
}).
then
(
res
=>
{
PublicApi
.
getAsReplaceGoodsPageReplaceCommodityByLogistics
({
...
params
,
dataId
:
query
.
relevanceOrderId
?
query
.
relevanceOrderId
:
query
.
shipment
OrderId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
break
;
case
6
:
PublicApi
.
getAsReturnGoodsPageCommodityByLogistics
({
...
params
,
dataId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevance
OrderId
}).
then
(
res
=>
{
PublicApi
.
getAsReturnGoodsPageCommodityByLogistics
({
...
params
,
dataId
:
query
.
relevanceOrderId
?
query
.
relevanceOrderId
:
query
.
shipment
OrderId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
src/pages/logistics/list/components/templateForm.tsx
View file @
8bf207a4
This diff is collapsed.
Click to expand it.
src/pages/lxMall/commodityDetail/components/ProductDescription/index.less
View file @
8bf207a4
...
...
@@ -19,6 +19,10 @@
line-height: 32px;
right: 0;
bottom: 0;
&.hide {
display: none;
}
}
:global {
...
...
@@ -68,4 +72,4 @@
}
}
}
\ No newline at end of file
}
src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
View file @
8bf207a4
...
...
@@ -22,13 +22,26 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
const
[
productIds
,
setProductIds
]
=
useState
<
number
[]
>
([])
const
[
tradeRecordCount
,
setTradeRecordCount
]
=
useState
<
number
>
(
0
)
const
[
commentCount
,
setCommentCount
]
=
useState
<
number
>
(
0
)
const
[
backTopVisible
,
setBackTopVisible
]
=
useState
<
boolean
>
(
false
)
const
handleAnchorChange
=
(
currentActiveLink
:
string
)
=>
{
if
(
currentActiveLink
)
{
setBackTopVisible
(
true
)
setCurrentAnchor
(
currentActiveLink
)
}
}
const
handleScroll
=
()
=>
{
const
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
===
0
)
{
setBackTopVisible
(
false
)
}
}
useEffect
(()
=>
{
window
.
addEventListener
(
'scroll'
,
handleScroll
)
},
[])
useEffect
(()
=>
{
if
(
commodityDetail
)
{
if
(
commodityDetail
.
unitPricePicList
)
{
...
...
@@ -47,7 +60,13 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
<
Link
className=
{
cx
(
currentAnchor
===
"#introduction"
?
'active'
:
''
)
}
href=
"#introduction"
title=
"产品简介"
/>
<
Link
href=
"#trade_record"
title=
{
commodityDetail
?.
priceType
===
COMMODITY_TYPE
.
integral
?
`兑换记录${tradeRecordCount ? `
(
$
{
tradeRecordCount
})
` : `
(
0
)
`}`
:
`交易记录${tradeRecordCount ? `
(
$
{
tradeRecordCount
})
` : `
(
0
)
`}`
}
/>
<
Link
href=
"#comment"
title=
{
`交易评价(${commentCount > 999 ? '999+' : commentCount})`
}
/>
<
BackTop
className=
{
styles
.
buy_now_btn
}
visibilityHeight=
{
800
}
>
立即订购
</
BackTop
>
<
BackTop
className=
{
cx
(
styles
.
buy_now_btn
,
!
backTopVisible
?
styles
.
hide
:
null
)
}
visibilityHeight=
{
800
}
onClick=
{
()
=>
setBackTopVisible
(
false
)
}
>
{
commodityDetail
?.
priceType
===
COMMODITY_TYPE
.
integral
?
'立即兑换'
:
'立即订购'
}
</
BackTop
>
</
Anchor
>
<
Introduction
commodityDetail=
{
commodityDetail
}
/>
<
TradeRecord
productIds=
{
productIds
}
setCount=
{
(
count
)
=>
setTradeRecordCount
(
count
)
}
/>
...
...
src/pages/lxMall/components/Category/index.tsx
View file @
8bf207a4
...
...
@@ -4,6 +4,7 @@ import { inject, observer } from 'mobx-react'
import
cx
from
'classnames'
import
ImageBox
from
'@/components/ImageBox'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
ImageBox
from
'@/components/ImageBox'
import
{
PublicApi
}
from
'@/services/api'
import
{
GlobalConfig
}
from
'@/global/config'
import
styles
from
'./index.less'
...
...
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