上线后修改

This commit is contained in:
caishi 2021-05-20 15:31:07 +08:00
parent 9d387511e0
commit 114cda0830
3 changed files with 14 additions and 2 deletions

View File

@ -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;

View File

@ -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>

View File

@ -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);