feat 首页适配自己手机

pull/5/head
GPU is all you need 4 years ago
parent 75d6b08f2b
commit a9f82558d1
  1. 10
      IOReportSysMP/miniprogram/pages/index/index.scss
  2. 2
      IOReportSysMP/miniprogram/pages/index/index.wxml

@ -1,3 +1,9 @@
.index-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 80vh;
.banner { .banner {
display: flex; display: flex;
@ -13,11 +19,13 @@
flex-direction: column; flex-direction: column;
$btn-item-height: 120rpx; $btn-item-height: 120rpx;
$btn-item-icon: 116rpx; $btn-item-icon: 116rpx;
.btn-item { .btn-item {
display: flex; display: flex;
// border-bottom: 1px solid gray; // border-bottom: 1px solid gray;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
image { image {
background-color: rgb(146, 206, 248); background-color: rgb(146, 206, 248);
width: $btn-item-icon; width: $btn-item-icon;
@ -38,6 +46,7 @@
font-weight: 600; font-weight: 600;
color: black; color: black;
display: block; display: block;
&::after { &::after {
content: ""; content: "";
border-bottom: rgba(128, 128, 128, 0.3) solid 1px; border-bottom: rgba(128, 128, 128, 0.3) solid 1px;
@ -45,3 +54,4 @@
} }
} }
} }
}

@ -1,6 +1,6 @@
<navigationBar onlyStations title="教师进出校管理系统"> <navigationBar onlyStations title="教师进出校管理系统">
</navigationBar> </navigationBar>
<view> <view class="index-container">
<view class="banner"> <view class="banner">
<image src="/asset/banenr.png"></image> <image src="/asset/banenr.png"></image>
</view> </view>

Loading…
Cancel
Save