Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
Europa-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6f30936f
authored
Jul 10, 2024
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
品牌分类修改
parent
92421120
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
50 deletions
src/App.tsx
src/components/ListOneItem/index.tsx
src/components/ListOneItem/types.tsx
src/pages/Search/index.less
src/pages/Search/index.min.css
src/pages/Search/index.tsx
src/pages/Search/reducer.tsx
src/pages/Search/types.tsx
src/App.tsx
View file @
6f30936f
...
...
@@ -101,7 +101,7 @@ const App = () => {
});
useEffect
(()
=>
{
setCommonConfigData
({
qqurl
:
'
/
'
qqurl
:
'
https://url.cn/uia2no5Z?_type=wpa&qidian=true
'
})
},
[]);
...
...
src/components/ListOneItem/index.tsx
View file @
6f30936f
...
...
@@ -35,7 +35,7 @@ const ListOneItem = (props:dataListItemType) => {
{
itemInfo
.
ladder_price
.
map
((
item
,
index
)
=>
{
return
(
<
div
key=
{
index
+
item
.
price_cn
}
className=
'jtgroup row'
><
span
>
{
item
.
purchases
}
+
</
span
><
strong
>
¥
{
item
.
price_cn
}
</
strong
><
strong
>
¥
{
item
.
price_us
}
</
strong
></
div
>
<
div
key=
{
index
+
item
.
price_cn
}
className=
'jtgroup row'
><
span
>
{
item
.
purchases
}
+
</
span
><
strong
>
¥
{
item
.
price_cn
||
'--'
}
</
strong
><
strong
>
¥
{
item
.
price_us
||
'--'
}
</
strong
></
div
>
)
})
}
...
...
src/components/ListOneItem/types.tsx
View file @
6f30936f
...
...
@@ -2,6 +2,10 @@
export
type
dataListItemType
=
{
sku_name
:
string
;
brand_name
:
string
;
brand_id
:
string
|
number
;
class_id2
?:
string
|
number
;
class_id1
?:
string
|
number
;
class_name2
?:
string
;
class_name
:
string
;
cn_delivery_time
:
string
;
hk_delivery_time
:
string
;
...
...
src/pages/Search/index.less
View file @
6f30936f
...
...
@@ -17,7 +17,7 @@
.item-box{
width:1000px;
flex-wrap: wrap;
min-height:40px;
&.overflowheight{
height:40px;
overflow: hidden;
...
...
@@ -75,6 +75,14 @@
.data-group-supplier{
border: 1px solid #EDEFEF;
margin-bottom: 30px;
.search-list-datas{
.list-group-one-item:first-child{
.cons{
border-top: 0px;
}
}
}
.data-list-title{
padding:0 33px;
height:50px;
...
...
src/pages/Search/index.min.css
View file @
6f30936f
.mv-search-page
{
margin-bottom
:
70px
}
.mv-search-page
.shift-box
{
padding
:
24px
30px
;
background
:
#fff
;
padding-bottom
:
6px
}
.mv-search-page
.shift-box
.shift-group
{
border-bottom
:
1px
solid
#E7E7E7
;
margin-bottom
:
18px
}
.mv-search-page
.shift-box
.shift-group
span
{
font-weight
:
bold
;
font-size
:
12px
;
color
:
#888888
;
padding-top
:
2px
}
.mv-search-page
.shift-box
.shift-group
:last-child
{
border-bottom
:
0px
;
margin-bottom
:
0px
}
.mv-search-page
.shift-box
.shift-group
.item-box
{
width
:
1000px
;
flex-wrap
:
wrap
}
.mv-search-page
.shift-box
.shift-group
.item-box.overflowheight
{
height
:
40px
;
overflow
:
hidden
}
.mv-search-page
.shift-box
.shift-group
.item-box
.item
{
height
:
22px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
);
line-height
:
20px
;
box-sizing
:
border-box
;
margin-left
:
45px
;
margin-bottom
:
18px
;
font-size
:
12px
;
color
:
#000
;
cursor
:
pointer
;
text-align
:
center
;
padding
:
0
15px
}
.mv-search-page
.shift-box
.shift-group
.item-box
.item.act
{
background
:
#FFFBF5
;
border
:
1px
solid
#FF9A00
}
.mv-search-page
.shift-box
.shift-group
.shitrankbox
{
width
:
130px
;
justify-content
:
flex-end
}
.mv-search-page
.shift-box
.shift-group
.shitrank
{
margin-left
:
5px
;
height
:
22px
;
width
:
58px
;
border
:
1px
solid
#B0B0B0
;
box-sizing
:
border-box
;
color
:
#919191
;
font-size
:
12px
;
cursor
:
pointer
}
.mv-search-page
.shift-box
.shift-group
.shitrank.shows
{
display
:
flex
}
.mv-search-page
.shift-box
.shift-group
.shitrank.hides
{
display
:
none
}
.mv-search-page
.shift-box
.shift-group
.shitrank
:first-child
{
margin-left
:
0px
}
.mv-search-page
.shift-box
.shift-group
.shitrank
i
{
color
:
#919191
;
font-size
:
12px
}
.mv-search-page
.databox
{
padding-top
:
24px
}
.mv-search-page
.databox
.data-group-supplier
{
border
:
1px
solid
#EDEFEF
;
margin-bottom
:
30px
}
.mv-search-page
.databox
.data-group-supplier
.data-list-title
{
padding
:
0
33px
;
height
:
50px
;
line-height
:
50px
;
font-size
:
16px
;
color
:
#000000
;
background
:
#f6f6f6
}
.mv-search-page
.databox
.data-group-supplier
.data-list-more
{
height
:
48px
;
line-height
:
48px
;
color
:
#000
;
font-size
:
12px
;
text-align
:
center
;
background
:
#fff
}
.mv-search-page
.databox
.data-group-supplier
.data-list-more
b
{
color
:
#FF9A00
;
cursor
:
pointer
}
\ No newline at end of file
.mv-search-page
{
margin-bottom
:
70px
}
.mv-search-page
.shift-box
{
padding
:
24px
30px
;
background
:
#fff
;
padding-bottom
:
6px
}
.mv-search-page
.shift-box
.shift-group
{
border-bottom
:
1px
solid
#E7E7E7
;
margin-bottom
:
18px
}
.mv-search-page
.shift-box
.shift-group
span
{
font-weight
:
bold
;
font-size
:
12px
;
color
:
#888888
;
padding-top
:
2px
}
.mv-search-page
.shift-box
.shift-group
:last-child
{
border-bottom
:
0px
;
margin-bottom
:
0px
}
.mv-search-page
.shift-box
.shift-group
.item-box
{
width
:
1000px
;
flex-wrap
:
wrap
;
min-height
:
40px
}
.mv-search-page
.shift-box
.shift-group
.item-box.overflowheight
{
height
:
40px
;
overflow
:
hidden
}
.mv-search-page
.shift-box
.shift-group
.item-box
.item
{
height
:
22px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
);
line-height
:
20px
;
box-sizing
:
border-box
;
margin-left
:
45px
;
margin-bottom
:
18px
;
font-size
:
12px
;
color
:
#000
;
cursor
:
pointer
;
text-align
:
center
;
padding
:
0
15px
}
.mv-search-page
.shift-box
.shift-group
.item-box
.item.act
{
background
:
#FFFBF5
;
border
:
1px
solid
#FF9A00
}
.mv-search-page
.shift-box
.shift-group
.shitrankbox
{
width
:
130px
;
justify-content
:
flex-end
}
.mv-search-page
.shift-box
.shift-group
.shitrank
{
margin-left
:
5px
;
height
:
22px
;
width
:
58px
;
border
:
1px
solid
#B0B0B0
;
box-sizing
:
border-box
;
color
:
#919191
;
font-size
:
12px
;
cursor
:
pointer
}
.mv-search-page
.shift-box
.shift-group
.shitrank.shows
{
display
:
flex
}
.mv-search-page
.shift-box
.shift-group
.shitrank.hides
{
display
:
none
}
.mv-search-page
.shift-box
.shift-group
.shitrank
:first-child
{
margin-left
:
0px
}
.mv-search-page
.shift-box
.shift-group
.shitrank
i
{
color
:
#919191
;
font-size
:
12px
}
.mv-search-page
.databox
{
padding-top
:
24px
}
.mv-search-page
.databox
.data-group-supplier
{
border
:
1px
solid
#EDEFEF
;
margin-bottom
:
30px
}
.mv-search-page
.databox
.data-group-supplier
.search-list-datas
.list-group-one-item
:first-child
.cons
{
border-top
:
0px
}
.mv-search-page
.databox
.data-group-supplier
.data-list-title
{
padding
:
0
33px
;
height
:
50px
;
line-height
:
50px
;
font-size
:
16px
;
color
:
#000000
;
background
:
#f6f6f6
}
.mv-search-page
.databox
.data-group-supplier
.data-list-more
{
height
:
48px
;
line-height
:
48px
;
color
:
#000
;
font-size
:
12px
;
text-align
:
center
;
background
:
#fff
}
.mv-search-page
.databox
.data-group-supplier
.data-list-more
b
{
color
:
#FF9A00
;
cursor
:
pointer
}
\ No newline at end of file
src/pages/Search/index.tsx
View file @
6f30936f
This diff is collapsed.
Click to expand it.
src/pages/Search/reducer.tsx
View file @
6f30936f
...
...
@@ -6,7 +6,7 @@ export const brandsAndClasssReducer = (state: BrandAndClassType, action: any) =>
const
datasg
=
[...
action
.
value
]
datasg
.
forEach
((
item
)
=>
{
const
id_
=
action
.
type
===
'brandsInit'
?
String
(
item
.
brand_id
)
:
String
(
item
.
class_id
)
const
id_
=
action
.
type
===
'brandsInit'
?
String
(
item
.
brand_id
)
:
String
(
item
.
class_id
2
)
const
name_
=
action
.
type
===
'brandsInit'
?
String
(
item
.
brand_name
)
:
String
(
item
.
class_name
)
newBrand
=
[...
newBrand
,
{
id
:
id_
,
value
:
name_
,
checked
:
false
}]
})
...
...
src/pages/Search/types.tsx
View file @
6f30936f
export
type
ResponseType
=
{
success
:
boolean
,
data
:
Array
<
{
shopId
:
string
,
shopName
:
string
,
cartList
:
Array
<
{
productId
:
string
,
imgUrl
:
string
,
weight
:
string
,
title
:
string
,
price
:
number
,
count
:
number
}
>
}
>
import
type
{
dataListItemType
}
from
'../../components/ListOneItem/types'
export
type
ResponseTypeSearch
=
{
code
:
number
|
string
,
data
:
Array
<
supplierDataType
>
,
msg
:
string
}
export
type
supplierDataType
=
{
supplier_name
:
string
,
supplier_id
:
string
|
number
,
data
:
Array
<
dataListItemType
>
,
msg
:
string
}
export
type
BrandAndClassType
=
Array
<
{
id
:
string
,
value
:
string
,
...
...
@@ -21,32 +21,3 @@ export type BrandAndClassType = Array<{
}
>
export
type
ResponseTypeHome
=
{
code
:
number
|
string
,
data
:
{
on_sale_list
?:
Array
<
onSaleListType
>
,
recommend_brand_list
?:
Array
<
recommendBrandListType
>
,
recommend_goods_list
?:
Array
<
recommendGoodsListType
>
}
|
null
,
msg
:
string
}
export
type
onSaleListType
=
{
goods_images
:
string
,
sku_id
:
string
|
number
,
sku_name
:
string
,
single_price
:
string
,
brand_name
:
string
}
export
type
recommendBrandListType
=
{
brand_logo
:
string
,
brand_name
:
string
,
goods_brand_id
:
string
|
number
}
export
type
recommendGoodsListType
=
{
goods_images
:
string
,
brand_name
:
string
,
sku_id
:
string
|
number
,
single_price
:
string
|
number
,
sku_name
:
string
}
\ No newline at end of file
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