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
c42cd1a7
Commit
c42cd1a7
authored
Nov 18, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改商城首页询价商品价格显示
parent
5fed6d7c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
10 deletions
+40
-10
index.tsx
...ingsPanel/propsSettings/components/BrandSetting/index.tsx
+1
-2
GoodsItem.tsx
...Panel/propsSettings/components/GoodsSetting/GoodsItem.tsx
+21
-4
index.less
...ngsPanel/propsSettings/components/GoodsSetting/index.less
+11
-0
index.tsx
...ingsPanel/propsSettings/components/GoodsSetting/index.tsx
+1
-2
index.tsx
src/pages/lxMall/channel/index.tsx
+3
-1
index.tsx
src/pages/lxMall/shop/index.tsx
+3
-1
No files found.
src/pages/editor/settingsPanel/propsSettings/components/BrandSetting/index.tsx
View file @
c42cd1a7
...
...
@@ -42,7 +42,7 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
useEffect
(()
=>
{
fetchBrandsList
()
},
[
filterParam
])
},
[
filterParam
,
current
])
const
fetchBrandsList
=
()
=>
{
let
param
=
{
...
...
@@ -84,7 +84,6 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
const
handlePageChange
=
(
page
:
number
,
pageSize
?:
number
|
undefined
)
=>
{
setCurrent
(
page
)
setPageSize
(
pageSize
||
10
)
fetchBrandsList
()
}
const
handleSearch
=
()
=>
{
...
...
src/pages/editor/settingsPanel/propsSettings/components/GoodsSetting/GoodsItem.tsx
View file @
c42cd1a7
...
...
@@ -9,6 +9,26 @@ const GoodsItem: React.FC<GoodsItemPropsType> = (props) => {
const
{
dataInfo
=
{}
}
=
props
const
renderPriceByType
=
(
info
:
any
)
=>
{
switch
(
info
.
priceType
)
{
case
1
:
return
(
<
div
className=
{
styles
.
goods_item_info_price
}
>
<
i
>
¥
</
i
>
<
span
>
{
dataInfo
.
priceRange
||
dataInfo
.
goodsPrice
}
</
span
>
</
div
>
)
case
2
:
return
(
<
div
className=
{
styles
.
inquiry_price
}
>
<
label
>
在线询价
</
label
>
</
div
>
)
default
:
break
}
}
return
(
<
div
className=
{
styles
.
goods_item
}
>
<
div
className=
{
styles
.
goods_item_imgbox
}
>
...
...
@@ -16,10 +36,7 @@ const GoodsItem: React.FC<GoodsItemPropsType> = (props) => {
</
div
>
<
div
className=
{
styles
.
goods_item_info
}
>
<
div
className=
{
styles
.
goods_item_info_name
}
>
{
dataInfo
.
goodsName
}
</
div
>
<
div
className=
{
styles
.
goods_item_info_price
}
>
<
i
>
¥
</
i
>
<
span
>
{
dataInfo
.
priceRange
||
dataInfo
.
goodsPrice
}
</
span
>
</
div
>
{
renderPriceByType
(
dataInfo
)
}
<
div
className=
{
styles
.
goods_item_info_brief
}
>
<
span
>
品类:
</
span
>
<
span
>
{
dataInfo
.
categoryName
}
</
span
>
...
...
src/pages/editor/settingsPanel/propsSettings/components/GoodsSetting/index.less
View file @
c42cd1a7
...
...
@@ -14,6 +14,17 @@
}
}
.inquiry_price {
color: #FFF;
background-color: #D32F2F;
font-size: 12px;
height: 18px;
line-height: 14px;
padding: 2px 8px;
display: inline-block;
margin-top: 2px;
}
&_info {
flex-grow: 1;
width: 0;
...
...
src/pages/editor/settingsPanel/propsSettings/components/GoodsSetting/index.tsx
View file @
c42cd1a7
...
...
@@ -95,7 +95,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
useEffect
(()
=>
{
fetchGoodsList
()
},
[
filterParam
])
},
[
filterParam
,
current
])
const
fetchGoodsList
=
()
=>
{
let
param
=
{
...
...
@@ -150,7 +150,6 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
const
handlePageChange
=
(
page
:
number
,
pageSize
?:
number
|
undefined
)
=>
{
setCurrent
(
page
)
setPageSize
(
pageSize
||
10
)
fetchGoodsList
()
}
const
handleSearch
=
()
=>
{
...
...
src/pages/lxMall/channel/index.tsx
View file @
c42cd1a7
...
...
@@ -109,7 +109,9 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
// @ts-ignore
PublicApi
.
getTemplateChannelFindFirstCategoryDetail
(
param
).
then
(
res
=>
{
resolve
(
res
.
data
)
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
}
...
...
src/pages/lxMall/shop/index.tsx
View file @
c42cd1a7
...
...
@@ -96,7 +96,9 @@ const ShopIndex: React.FC<ChannelIndexPropsType> = (props) => {
// @ts-ignore
PublicApi
.
getTemplateShopFindFirstCategoryDetail
(
param
).
then
(
res
=>
{
resolve
(
res
.
data
)
if
(
res
.
code
===
1000
)
{
resolve
(
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