forked from mfay/IOReportMgt
Merge pull request 'dev_yly' (#5) from dev_yly into master
Reviewed-on: http://gitea.wangzhiwen.top/all_you_need/IOReportMgt/pulls/5dev_backend_yly
commit
1fc066b64a
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
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…
Reference in new issue