Commit 551fc01e by 李伟康

commit 兼容pad

1 parent 06eb4aef
......@@ -12,7 +12,7 @@
box-sizing: border-box;
display: flex;
align-items: center;
padding-left: var(--fontSize90);
/* padding-left: var(--fontSize90); */
}
/* .tips text {
......
......@@ -11,7 +11,7 @@
box-sizing: border-box;
display: flex;
align-items: center;
padding-left: var(--fontSize90);
/* padding-left: var(--fontSize90); */
}
.tips text {
......
<!-- pages/sceneIndex/sceneIndex.wxml -->
<view class="layout">
<scroll-view wx:if="{{showPage}}" class="scene-box" scroll-y style="height: calc(100vh - var(--fontSize140) - {{isFullSucreen ? 34 : 0}}px - var(--fontSize60));">
<scroll-view wx:if="{{showPage}}" class="scene-box" scroll-y >
<block wx:for="{{sceneList}}" wx:key="index">
<view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectScene" data-scene="{{item.sceneType}}" data-index="{{index}}">
<view class="left">
......
......@@ -3,6 +3,9 @@ page {
background-color: #F7F8FA;
height: 100vh;
}
.layout{
padding-top: var(--fontSize32);
}
.user-box {
padding: 16px;
font-size: var(--fontSize28);
......@@ -42,9 +45,11 @@ page {
}
.scene-box{
padding: var(--fontSize32);
/* padding: var(--fontSize32); */
overflow: hidden;
box-sizing: border-box;
height: calc(100vh - var(--fontSize140) - var(--constantSafeAreaInsetBottom));
height: calc(100vh - var(--fontSize140) - var(--envSafeAreaInsetBottom));
}
.scene-box .scene-item{
......@@ -57,7 +62,7 @@ page {
/* box-shadow: 0 var(--fontSize48) var(--fontSize20) calc(-1 * var(--fontSize40)) #D8D9E6; */
border-radius: var(--fontSize24);
padding: var(--fontSize32);
margin: var(--fontSize24) 0;
margin: var(--fontSize24) var(--fontSize32);
position: relative;
}
......
......@@ -96,6 +96,7 @@ page {
color: #347BFF;
text-align: center;
line-height: var(--fontSize100);
font-size: var(--fontSize32);
}
.auth-dialog-class {
......@@ -200,9 +201,9 @@ page {
}
.auth_box{
padding-top: var(--fontSize30);
position: fixed;
padding: var(--fontSize30) 0;
/* position: fixed; */
width: 100%;
left: 50%;
transform: translateX(-50%);
/* left: 50%; */
/* transform: translateX(-50%); */
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!