去掉滚动折叠
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
// MyselfPageContent 组件使用的类名
|
||||
.myselfPageContentMain {
|
||||
min-height: calc(100vh + 5px);
|
||||
// min-height: calc(100vh + 5px);
|
||||
animation: backgroundGradient 0s ease-in-out forwards;
|
||||
z-index: 5;
|
||||
flex: 1;
|
||||
|
||||
@@ -144,13 +144,13 @@ const MyselfPageContent: React.FC = () => {
|
||||
setActiveTab(tab);
|
||||
};
|
||||
|
||||
const handleScroll = (event: any) => {
|
||||
const scrollData = event.detail;
|
||||
setCollapseProfile(scrollData.scrollTop > 1);
|
||||
};
|
||||
// const handleScroll = (event: any) => {
|
||||
// const scrollData = event.detail;
|
||||
// setCollapseProfile(scrollData.scrollTop > 1);
|
||||
// };
|
||||
|
||||
return (
|
||||
<ScrollView scrollY className={styles.myselfPage} onScroll={handleScroll}>
|
||||
<ScrollView scrollY className={styles.myselfPage}>
|
||||
<View
|
||||
className={styles.myselfPageContentMain}
|
||||
style={{ paddingTop: `${totalHeight}px` }}
|
||||
@@ -225,8 +225,8 @@ const MyselfPageContent: React.FC = () => {
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
errorImg="ICON_LIST_EMPTY"
|
||||
emptyText="暂未发布球局"
|
||||
errorImg="ICON_LIST_EMPTY_CARD"
|
||||
emptyText="还没有发布过球局"
|
||||
btnText="去发布"
|
||||
btnImg="ICON_ADD"
|
||||
reload={goPublish}
|
||||
@@ -234,7 +234,9 @@ const MyselfPageContent: React.FC = () => {
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: 0, overflow: "hidden" }}
|
||||
listLoadErrorHeight="320px"
|
||||
listLoadErrorWrapperHeight="267px"
|
||||
listLoadErrorWidth="100%"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
/>
|
||||
</ScrollView>
|
||||
@@ -248,12 +250,14 @@ const MyselfPageContent: React.FC = () => {
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
errorImg="ICON_LIST_EMPTY"
|
||||
errorImg="ICON_LIST_EMPTY_CARD"
|
||||
isShowNoData={ended_game_records.length === 0}
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
listLoadErrorHeight="320px"
|
||||
listLoadErrorWrapperHeight="220px"
|
||||
listLoadErrorWidth="100%"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
/>
|
||||
</ScrollView>
|
||||
|
||||
Reference in New Issue
Block a user