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
shenshaokai
jinfa-platform
Commits
ea52d975
Commit
ea52d975
authored
Mar 24, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渠道和渠道自有商城参数问题
parent
e2f39a8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+13
-1
detail.tsx
src/pages/lxMall/information/detail.tsx
+5
-3
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+10
-1
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
ea52d975
...
...
@@ -438,9 +438,21 @@ const CommodityDetail = (props) => {
count
:
buyCount
}
let
postFn
let
headers
=
{}
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
headers
=
{
type
:
3
}
param
.
commodityType
=
2
param
.
channelCommodityUnitPriceId
=
selectCommodityId
param
.
commodityUnitPriceId
=
selectCommodityUnitPriceId
postFn
=
PublicApi
.
postSearchShopPurchaseChannelSaveOrUpdatePurchase
break
;
case
LAYOUT_TYPE
.
ichannel
:
headers
=
{
type
:
4
}
param
.
commodityType
=
2
param
.
channelCommodityUnitPriceId
=
selectCommodityId
param
.
commodityUnitPriceId
=
selectCommodityUnitPriceId
...
...
@@ -461,7 +473,7 @@ const CommodityDetail = (props) => {
PublicApi
.
postOrderDirectPayment
(
directParam
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
postFn
&&
postFn
(
param
).
then
(
res
=>
{
postFn
&&
postFn
(
param
,
{
headers
}
).
then
(
res
=>
{
clickFlag
=
true
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
...
...
src/pages/lxMall/information/detail.tsx
View file @
ea52d975
import
React
,
{
useEffect
,
useState
}
from
'react'
import
BreadCrumbs
from
'./components/breadCrumbs'
import
InformationRight
from
'./components/informationRight'
import
{
Helmet
}
from
'umi'
import
cx
from
'classnames'
import
{
message
}
from
'antd'
import
{
StarFilled
,
StarOutlined
}
from
'@ant-design/icons'
import
ImageBox
from
'@/components/ImageBox'
import
{
ClockCircleOutlined
,
EyeOutlined
}
from
'@ant-design/icons'
import
informationImg2
from
'@/assets/imgs/information_2.png'
import
{
PublicApi
}
from
'@/services/api'
import
{
GetManageContentInformationFindByIdResponse
}
from
'@/services/PassApi'
import
{
numFormat
}
from
'@/utils/numberFomat'
...
...
@@ -35,7 +35,7 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
},
[
props
.
location
])
const
fetchNewsDetail
=
()
=>
{
le
t
param
=
{
cons
t
param
=
{
id
}
PublicApi
.
getManageContentInformationFindById
(
param
).
then
(
res
=>
{
...
...
@@ -50,7 +50,7 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
if
(
collectFlg
)
{
collectFlg
=
false
const
status
=
newsDetail
.
collectStatus
?
false
:
true
le
t
param
=
{
cons
t
param
=
{
informationId
:
newsDetail
.
id
,
status
}
...
...
@@ -106,6 +106,7 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
}
return
(
<>
<
div
className=
{
styles
.
information_detail
}
>
<
div
className=
{
styles
.
information_detail_container
}
>
<
BreadCrumbs
{
...
props
}
pathname=
"文章详情"
/>
...
...
@@ -196,6 +197,7 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
</
div
>
</
div
>
</>
)
}
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
ea52d975
...
...
@@ -57,9 +57,18 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
*/
const
fetchPurchaseList
=
()
=>
{
let
getFn
let
headers
=
{}
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
headers
=
{
type
:
3
}
getFn
=
PublicApi
.
getSearchShopPurchaseChannelGetPurchaseList
break
;
case
LAYOUT_TYPE
.
ichannel
:
headers
=
{
type
:
4
}
getFn
=
PublicApi
.
getSearchShopPurchaseChannelGetPurchaseList
break
;
default
:
...
...
@@ -67,7 +76,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
break
;
}
getFn
&&
getFn
().
then
(
res
=>
{
getFn
&&
getFn
(
{},
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
initPurchaseList
(
res
.
data
)
getCategoryIds
(
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