Merge pull request 'dev_yly' (#5) from dev_yly into master

Reviewed-on: http://gitea.wangzhiwen.top/all_you_need/IOReportMgt/pulls/5
dev_backend_yly
all_you_need 4 years ago
commit 1fc066b64a
  1. BIN
      IOReportSysMP/miniprogram/asset/icons/audit_report.png
  2. BIN
      IOReportSysMP/miniprogram/asset/icons/door_verify.png
  3. BIN
      IOReportSysMP/miniprogram/asset/icons/enter_report.png
  4. BIN
      IOReportSysMP/miniprogram/asset/icons/my_report.png
  5. BIN
      IOReportSysMP/miniprogram/asset/icons/outer_report.png
  6. 68
      IOReportSysMP/miniprogram/pages/index/index.scss
  7. 27
      IOReportSysMP/miniprogram/pages/index/index.wxml

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -1,21 +1,57 @@
.banner { .index-container {
display: flex; display: flex;
image { flex-direction: column;
width: 200px; justify-content: center;
height: 150px; align-items: center;
margin: 30px auto; height: 80vh;
.banner {
display: flex;
image {
width: 200px;
height: 150px;
margin: 30px auto;
}
} }
}
.btn-list{ .btn-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
button{ $btn-item-height: 120rpx;
margin: 4px auto; $btn-item-icon: 116rpx;
border-radius: 25rpx;
background-color: #0078D4; .btn-item {
font-size: 40rpx; display: flex;
padding: 6px 0; // border-bottom: 1px solid gray;
color: white; justify-content: center;
align-items: center;
image {
background-color: rgb(146, 206, 248);
width: $btn-item-icon;
height: $btn-item-icon;
border-radius: 100%;
position: relative;
right: 15px;
margin: ($btn-item-height - $btn-item-icon) / 2;
box-shadow: rgba(128, 128, 128, 0.3) 1px 4px 5px 0.5px;
}
}
text {
border-radius: 25rpx;
height: $btn-item-height;
line-height: $btn-item-height;
font-size: 32px;
font-weight: 600;
color: black;
display: block;
&::after {
content: "";
border-bottom: rgba(128, 128, 128, 0.3) solid 1px;
display: block;
}
}
} }
} }

@ -1,14 +1,29 @@
<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>
<view class="btn-list"> <view class="btn-list">
<button wx:if="{{role > 4}}" bindtap="onEnterReport">进校报备</button> <view wx:if="{{role > 4}}" class="btn-item">
<button wx:if="{{role > 4}}" bindtap="onOuterReport">出校报备</button> <image src="/asset/icons/enter_report.png"/>
<button wx:if="{{role > 6}}" bindtap="onAuditReport">报备审核</button> <text bindtap="onEnterReport">进校报备</text>
<button wx:if="{{role > 4}}" bindtap="onMyReport">我的报备</button> </view>
<button wx:if="{{role == 2}}" bindtap="onScanValid">进出校核验</button> <view wx:if="{{role > 4}}" class="btn-item">
<image src="/asset/icons/outer_report.png"/>
<text bindtap="onOuterReport">出校报备</text>
</view>
<view wx:if="{{role > 6}}" class="btn-item">
<image src="/asset/icons/audit_report.png"/>
<text bindtap="onAuditReport">报备审核</text>
</view>
<view wx:if="{{role > 4}}" class="btn-item">
<image src="/asset/icons/my_report.png" style="background-color: rgb(242, 191, 112);"/>
<text bindtap="onMyReport">我的报备</text>
</view>
<view wx:if="{{role == 2}}" class="btn-item">
<image src="/asset/icons/door_verify"/>
<text bindtap="onScanValid">进出校核验</text>
</view>
</view> </view>
</view> </view>
Loading…
Cancel
Save