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
黄庭坚
jinfa-platform
Commits
9d11e379
Commit
9d11e379
authored
Dec 25, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改店铺信息显示的字段
parent
d214d2fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
index.tsx
...ages/lxMall/commodityDetail/components/ShopInfo/index.tsx
+5
-6
index.tsx
src/pages/lxMall/components/FloorSkeleton/index.tsx
+4
-4
LXShopLayout.tsx
src/pages/lxMall/layouts/LXShopLayout.tsx
+1
-1
list.tsx
src/pages/lxMall/shopList/list.tsx
+3
-3
No files found.
src/pages/lxMall/commodityDetail/components/ShopInfo/index.tsx
View file @
9d11e379
...
...
@@ -26,13 +26,12 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
const
applyFroVip
=
()
=>
{
if
(
shopInfo
)
{
le
t
param
=
{
cons
t
param
=
{
memberId
:
shopInfo
.
memberId
,
roleId
:
shopInfo
.
roleId
}
setApplyLoading
(
true
)
PublicApi
.
postMemberAbilityMallSubApply
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
}
setApplyLoading
(
false
)
}).
catch
(()
=>
{
setApplyLoading
(
false
)
...
...
@@ -41,8 +40,8 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
}
const
handleCollect
=
()
=>
{
le
t
status
=
!
collectState
le
t
param
=
{
cons
t
status
=
!
collectState
cons
t
param
=
{
shopId
:
shopInfo
.
id
,
status
}
...
...
@@ -77,13 +76,13 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
</
div
>
<
div
className=
{
styles
.
shop_about_item
}
>
<
i
className=
{
styles
.
icon
}
><
img
src=
{
credit_icon
}
/></
i
>
<
span
>
200
</
span
>
<
span
>
{
shopInfo
?.
creditPoint
}
</
span
>
</
div
>
</
div
>
<
div
className=
{
styles
.
shop_info_list
}
>
<
div
className=
{
styles
.
shop_info_list_item
}
>
<
div
className=
{
styles
.
label
}
>
满意度:
</
div
>
<
div
className=
{
styles
.
breif
}
><
Rate
className=
{
styles
.
star
}
count=
{
4
}
disabled
defaultValue=
{
4
}
/></
div
>
<
div
className=
{
styles
.
breif
}
><
Rate
className=
{
styles
.
star
}
count=
{
4
}
disabled
defaultValue=
{
shopInfo
?.
avgTradeCommentStar
||
0
}
/></
div
>
</
div
>
<
div
className=
{
styles
.
shop_info_list_item
}
>
<
div
className=
{
styles
.
label
}
>
注册资本:
</
div
>
...
...
src/pages/lxMall/components/FloorSkeleton/index.tsx
View file @
9d11e379
...
...
@@ -12,10 +12,10 @@ interface FloorSkeletonPropsType {
const
FloorSkeleton
:
React
.
FC
<
FloorSkeletonPropsType
>
=
(
props
)
=>
{
const
{
type
}
=
props
le
t
dataList
=
Array
.
apply
({},
new
Array
(
9
))
le
t
goodsList
=
Array
.
apply
({},
new
Array
(
10
))
le
t
brandList
=
Array
.
apply
({},
new
Array
(
6
))
le
t
shopList
=
Array
.
apply
({},
new
Array
(
5
))
cons
t
dataList
=
Array
.
apply
({},
new
Array
(
9
))
cons
t
goodsList
=
Array
.
apply
({},
new
Array
(
10
))
cons
t
brandList
=
Array
.
apply
({},
new
Array
(
6
))
cons
t
shopList
=
Array
.
apply
({},
new
Array
(
5
))
const
renderSkeleton
=
()
=>
{
switch
(
type
)
{
...
...
src/pages/lxMall/layouts/LXShopLayout.tsx
View file @
9d11e379
...
...
@@ -125,7 +125,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
updateShopInfo
:
()
=>
handleUpdate
()
},
);
})
:
<
SearchShopResult
search
=
{
shopInfo
.
company
}
/> : <SearchShopResult /
>
})
:
<
SearchShopResult
search
=
{
shopInfo
.
memberName
}
/> : nul
l
}
</
div
>
<
Footer
/>
...
...
src/pages/lxMall/shopList/list.tsx
View file @
9d11e379
...
...
@@ -19,7 +19,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
const
renderCommodityPrice
=
(
unitPrice
)
=>
{
let
price
=
0
if
(
unitPrice
)
{
le
t
priceArr
=
[]
cons
t
priceArr
=
[]
Object
.
keys
(
unitPrice
).
forEach
(
key
=>
{
priceArr
.
push
(
unitPrice
[
key
])
})
...
...
@@ -57,7 +57,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
<
div
className=
{
styles
.
shop_list_info_about
}
>
<
div
className=
{
styles
.
shop_list_info_about_item
}
>
<
i
className=
{
styles
.
icon
}
><
img
src=
{
credit_icon
}
/></
i
>
<
span
>
{
item
.
integral
}
</
span
>
<
span
>
{
item
.
creditPoint
||
0
}
</
span
>
</
div
>
<
div
className=
{
styles
.
shop_list_info_about_item
}
>
<
i
className=
{
styles
.
icon
}
><
img
src=
{
shop_icon
}
/></
i
>
...
...
@@ -69,7 +69,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
</
div
>
<
div
className=
{
styles
.
shop_satisfaction
}
>
<
label
>
满意度:
</
label
>
<
Rate
className=
{
styles
.
shop_satisfaction_rate
}
disabled
defaultValue=
{
item
.
satisfied
||
0
}
/>
<
Rate
className=
{
styles
.
shop_satisfaction_rate
}
disabled
defaultValue=
{
item
.
avgTradeCommentStar
||
0
}
/>
</
div
>
<
div
className=
{
styles
.
shop_list_line
}
>
<
label
>
主营
</
label
>
...
...
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