上线后修改
This commit is contained in:
parent
9d387511e0
commit
114cda0830
|
|
@ -183,6 +183,7 @@
|
|||
li{
|
||||
display: flex;
|
||||
margin-top:28px ;
|
||||
cursor: pointer;
|
||||
img{
|
||||
max-width: 150px;
|
||||
height: 90px;
|
||||
|
|
@ -207,6 +208,9 @@
|
|||
font-size: 12px;
|
||||
height: 18px;
|
||||
align-items: center;
|
||||
span{
|
||||
color: #888;
|
||||
}
|
||||
i{
|
||||
margin-right: 8px;
|
||||
font-size: 14px!important;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ function List(props){
|
|||
const [ list , setList ] = useState(undefined);
|
||||
|
||||
useEffect(()=>{
|
||||
setIsSpin(true);
|
||||
getSort();
|
||||
},[])
|
||||
|
||||
|
|
@ -67,6 +66,7 @@ function List(props){
|
|||
}
|
||||
|
||||
useEffect(()=>{
|
||||
setIsSpin(true);
|
||||
getList();
|
||||
},[sort,time,city,menu])
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ function List(props){
|
|||
<div>
|
||||
<span>分类:</span>
|
||||
<ul>
|
||||
<li className={!sort ? "active":""}>全部</li>
|
||||
<li className={!sort ? "active":""} onClick={()=>setSort(undefined)}>全部</li>
|
||||
{ sortArray && renderMenu(sortArray,setSort,sort)}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,14 @@ function ReplayBox({users,submit,pareid,k,commentFunc , mainShowLogin}){
|
|||
const [ valueFlag , setValueFlag ] = useState(false);
|
||||
const [ inputFlag , setInputFlag ] = useState(false);
|
||||
|
||||
useEffect(()=>{
|
||||
if((users && !users.login) || !users){
|
||||
setValue("");
|
||||
setValueFlag(false);
|
||||
setInputFlag(false);
|
||||
}
|
||||
},[users])
|
||||
|
||||
useEffect(()=>{
|
||||
if(k!==undefined){
|
||||
setInputFlag(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue