Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-mall
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-mall
Commits
cab3d69a
Commit
cab3d69a
authored
Mar 24, 2022
by
ganke
Committed by
许佳敏
Mar 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: srm商城等会员链接修改优化
(cherry picked from commit 344f5f66cd3b780f6fbe7d6ce85245614befa2b8)
parent
fb8fa0af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
0 deletions
+113
-0
index.less
apps/srm/web/components/ShopTop/index.less
+55
-0
index.less
apps/srm/web/components/StarRate/index.less
+31
-0
index.tsx
apps/srm/web/components/StarRate/index.tsx
+27
-0
No files found.
apps/srm/web/components/ShopTop/index.less
View file @
cab3d69a
...
...
@@ -22,6 +22,10 @@
font-size: 14px;
font-weight: bold;
margin-bottom: 8px;
cursor: pointer;
}
.company-title:hover{
color: #00a98f;
}
.company-icon{
margin-left: 4px;
...
...
@@ -42,3 +46,54 @@
z-index: -1;
}
}
.shop-card-warp{
width: 360px;
.shop-card-item{
display: flex;
justify-content: space-between;
padding: 6px 0;
}
.shop-card-item-scond{
display: flex;
padding: 10px 0;
}
.shop-card-title{
font-weight: bold;
display: inline-block;
width: 60px;
font-size: 12px;
color: #303133;
}
.shop-card-content{
font-size: 12px;
color: #909399;
display: inline-block;
width: 120px;
flex: 1;
}
.shop-card-authentication{
display: inline-block;
color: #3877FF;
}
.shop-card-title-second{
display: inline-block;
width: 100px;
font-size: 12px;
color: #303133;
}
.shop-card-btn{
width: 180px;
border: 1px solid #cccccc;
text-align: center;
color: #fff;
border-color: #00a98f;
background: #00a98f;
text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
box-shadow: 0 2px 0 rgb(0 0 0 / 5%);
margin: 0 auto;
cursor: pointer;
margin-top: 15px;
height: 32px;
line-height: 32px;
}
}
apps/srm/web/components/StarRate/index.less
0 → 100644
View file @
cab3d69a
.star_rate {
background-color: #F4F5F7;
border-radius: 8px;
height: 16px;
display: flex;
width: 89px;
line-height: 16px;
align-items: center;
justify-content: center;
.star_rate_value {
color: #303133;
font-size: 12px;
line-height: 12px;
}
.star {
font-size: 12px;
line-height: 12px;
margin-left: 4px;
color: #FCA110 !important;
:global {
.ant-rate-star {
&:not(:last-child) {
margin-right: 1px;
}
}
}
}
}
apps/srm/web/components/StarRate/index.tsx
0 → 100644
View file @
cab3d69a
import
React
from
'react'
import
{
Rate
}
from
'antd'
import
styles
from
'./index.less'
interface
StarRatePropsType
{
value
:
number
,
showValue
?:
boolean
}
const
StarRate
:
React
.
FC
<
StarRatePropsType
>
=
(
props
)
=>
{
const
{
value
,
showValue
}
=
props
return
(
<
label
className=
{
styles
.
star_rate
}
>
{
showValue
&&
<
span
className=
{
styles
.
star_rate_value
}
>
{
value
}
</
span
>
}
<
Rate
className=
{
styles
.
star
}
count=
{
5
}
disabled
defaultValue=
{
value
}
/>
</
label
>
)
}
StarRate
.
defaultProps
=
{
showValue
:
true
}
export
default
StarRate
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