Commit cab3d69a authored by ganke's avatar ganke Committed by 许佳敏

fix: srm商城等会员链接修改优化

(cherry picked from commit 344f5f66cd3b780f6fbe7d6ce85245614befa2b8)
parent fb8fa0af
......@@ -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;
}
}
.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;
}
}
}
}
}
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment