Commit 44498b26 by zhangxw

列表页 顶部不跟随滚动 调节输入框和tab栏高度

1 parent f2598020
/* components/TabBar/TabBar.wxss */
.tab {
background-color: #fff;
height: var(--fontSize88);
height: var(--fontSize72);
box-sizing: border-box;
display: grid;
align-items: center;
......
......@@ -28,7 +28,7 @@
bindrefresherrefresh="search"
bindscrolltolower="onBottomRefresh"
class="list"
style="height:calc(100% - var(--fontSize208));"
style="height:calc(100% - var(--fontSize152));"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
......
......@@ -87,7 +87,7 @@
}
.main {
margin-top: calc(-1 * var(--fontSize20));
/* margin-top: calc(-1 * var(--fontSize20)); */
background: #FFFFFF;
border-radius: var(--fontSize48) var(--fontSize48) 0 0;
overflow: hidden;
......@@ -104,7 +104,7 @@
.search-box {
width: 100%;
padding: var(--fontSize32) var(--fontSize32) 0;
padding: var(--fontSize16) var(--fontSize32) 0;
display: flex;
background-color: #fff;
position: sticky;
......@@ -118,7 +118,7 @@
background: #F7F8FA;
border-radius: var(--fontSize38);
width: 100%;
height: var(--fontSize72);
height: var(--fontSize64);
display: flex;
align-items: center;
}
......
......@@ -59,7 +59,7 @@
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize32) var(--fontSize32) 0 0;
height: fit-content;
padding: var(--fontSize30) var(--fontSize36);
padding: var(--fontSize30) var(--fontSize36) var(--fontSize80);
}
.tips-text{
......
......@@ -56,7 +56,7 @@
position: absolute;
top: 0;
/* transform: translateY(-50%); */
font-size: var(--fontSize24);
font-size: var(--fontSize18);
color: #4c4c4c;
width: 10%;
opacity: 0;
......
......@@ -49,7 +49,7 @@
tipsProps="{{tipsProps}}"
bind:closeTips="closeTips" />
</view>
<view wx:if="{{flag}}" class="order-box" style="height: {{tabIndex != 3 && list.length && isShowTips ? 'calc(100% - var(--fontSize104) - var(--fontSize104) - var(--fontSize58))' : 'calc(100% - var(--fontSize104) - var(--fontSize94))'}}">
<view wx:if="{{flag}}" class="order-box" style="height: {{tabIndex != 3 && list.length && isShowTips ? 'calc(100% - var(--fontSize160) - var(--fontSize68))' : 'calc(100% - var(--fontSize160))'}}">
<scroll-view
scroll-y
enable-back-to-top
......
......@@ -108,7 +108,7 @@
.search-box {
width: 100%;
padding: var(--fontSize32) var(--fontSize32) 0;
padding: var(--fontSize16) var(--fontSize32) 0;
display: flex;
background-color: #fff;
position: sticky;
......@@ -122,7 +122,7 @@
background: #F7F8FA;
border-radius: var(--fontSize38);
width: 100%;
height: var(--fontSize72);
height: var(--fontSize64);
display: flex;
align-items: center;
}
......
......@@ -127,6 +127,9 @@ Component({
// console.log(this.data.userInfo)
this.onLoad(true)
// this.getMerchant4SMode()
},
resize(res) {
}
},
......
......@@ -102,7 +102,7 @@
.search-box {
width: 100%;
padding: var(--fontSize32) var(--fontSize32) 0;
padding: var(--fontSize16) var(--fontSize32) 0;
display: flex;
background-color: #fff;
position: sticky;
......@@ -116,7 +116,7 @@
background: #F7F8FA;
border-radius: var(--fontSize38);
width: 100%;
height: var(--fontSize72);
height: var(--fontSize64);
display: flex;
align-items: center;
}
......@@ -191,7 +191,7 @@
.order-box {
background-color: #fdfdfd;
height: calc(100% - var(--fontSize104) - var(--fontSize94));
height: calc(100% - var(--fontSize160));
}
.list {
......
......@@ -13,8 +13,9 @@ page {
.search-box {
width: 100%;
height: var(--fontSize104);
// height: var(--fontSize104);
padding-left: var(--fontSize32);
padding-top: var(--fontSize16);
display: flex;
align-items: center;
background-color: #fff;
......
......@@ -43,7 +43,7 @@
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
class="list"
style="height:calc(100vh - {{navBarHeight}}px - var(--fontSize300));"
style="height:calc(100vh - {{navBarHeight}}px - var(--fontSize252));"
refresher-threshold="104"
refresher-triggered="{{triggered}}"
class="list">
......
......@@ -40,7 +40,7 @@
bindscrolltolower="scrollonReachBottom"
bindscroll="onPageScroll"
class="list"
style="height:calc(100vh - {{navBarHeight + 104}}px);"
style="height:calc(100vh - {{navBarHeight}}px - var(--fontSize160));"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}">
......
......@@ -12,8 +12,9 @@ page {
.search-box {
width: 100%;
height: var(--fontSize104);
/* height: var(--fontSize104); */
padding-left: var(--fontSize32);
padding-top: var(--fontSize16);
display: flex;
align-items: center;
background-color: #fff;
......
......@@ -30,7 +30,7 @@
bindrefresherrefresh="search"
bindscrolltolower="onBottomRefresh"
class="list"
style="height:calc(100% - var(--fontSize208));"
style="height:calc(100% - var(--fontSize152));"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
......
......@@ -87,7 +87,7 @@
}
.main {
margin-top: calc(-1 * var(--fontSize20));
/* margin-top: calc(-1 * var(--fontSize20)); */
background: #FFFFFF;
border-radius: var(--fontSize48) var(--fontSize48) 0 0;
overflow: hidden;
......@@ -104,7 +104,7 @@
.search-box {
width: 100%;
padding: var(--fontSize32) var(--fontSize32) 0;
padding: var(--fontSize16) var(--fontSize32) 0;
display: flex;
background-color: #fff;
position: sticky;
......@@ -118,7 +118,7 @@
background: #F7F8FA;
border-radius: var(--fontSize38);
width: 100%;
height: var(--fontSize72);
height: var(--fontSize64);
display: flex;
align-items: center;
}
......
......@@ -50,7 +50,7 @@
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize32) var(--fontSize32) 0 0;
height: fit-content;
padding: var(--fontSize30) var(--fontSize36);
padding: var(--fontSize30) var(--fontSize36) var(--fontSize80);
}
.production-list{
.title{
......
/* subvehicleConversion/components/supplementaryOrderDetail/supplementaryOrderDetail.wxss */
.main {
margin-top: calc(-1 * var(--fontSize20));
/* margin-top: calc(-1 * var(--fontSize20)); */
background: #FFFFFF;
border-radius: var(--fontSize48) var(--fontSize48) 0 0;
overflow: hidden;
......@@ -18,7 +18,7 @@
.search-box {
width: calc(100% - var(--fontSize64));
margin: var(--fontSize32) var(--fontSize32) 0;
margin: var(--fontSize16) var(--fontSize32) 0;
display: flex;
background-color: #fff;
position: sticky;
......@@ -90,8 +90,8 @@ transform: rotate(-90deg);
}
.search-box .select_box .option_box .option{
display: block;
height: var(--fontSize88);
line-height: var(--fontSize88);
height: var(--fontSize72);
line-height: var(--fontSize72);
text-align: center;
color: #333333;
overflow: hidden;
......@@ -112,7 +112,7 @@ transform: rotate(-90deg);
.search-box .search-input {
width: 100%;
height: var(--fontSize72);
height: var(--fontSize64);
display: flex;
align-items: center;
}
......@@ -165,7 +165,7 @@ transform: rotate(-90deg);
.total-box {
display: flex;
padding: var(--fontSize24) var(--fontSize30);
padding: var(--fontSize16) var(--fontSize30);
font-weight: 400;
font-size: var(--fontSize28);
color: #222222;
......@@ -179,14 +179,14 @@ transform: rotate(-90deg);
.order-box {
background-color: #fdfdfd;
height: calc(100% - var(--fontSize104) - var(--fontSize104) - var(--fontSize76));
height: calc(100% - var(--fontSize226));
}
.list {
box-sizing: border-box;
width: 100%;
padding: 0 var(--fontSize20);
height: calc(100% - var(--fontSize20));
height: 100%;
}
.list .empty{
......
......@@ -5,7 +5,7 @@
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
refresher-enabled="{{false}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
......
......@@ -4,7 +4,7 @@
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
refresher-enabled="{{false}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!