123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <template>
- <view class="content">
- <view class="select-top">
- <view class="">
- 本月统计
- </view>
- <view class="top-right">
- <view class="">
- {{showdate}}月
- </view>
- <!-- <image src="../../static/img/downxia.png" mode=""></image> -->
- </view>
- </view>
- <view class="dk-info">
- <view class="dk-day big">
- <view class="dk-left">
- 20
- </view>
- <view class="dk-center">
- /
- </view>
- <view class="dk-right err">
- 20
- </view>
- </view>
- <view class="dk-tit">
- <view class="dk-left">
- 正常天数
- </view>
- <view class="dk-center">
- /
- </view>
- <view class="dk-right">
- 异常天数
- </view>
- </view>
- <view class="dk-detail">
- <view class="detail-item green">
- <view class="">
- 20
- </view>
- <view class="item-tit">
- 已打卡(次)
- </view>
- </view>
- <view class="detail-item">
- <view class="">
- 20
- </view>
- <view class="item-tit">
- 未打卡(次)
- </view>
- </view>
- <view class="detail-item">
- <view class="err">
- 20
- </view>
- <view class="item-tit">
- 迟到(次)
- </view>
- </view>
- </view>
- </view>
- <scroll-view scroll-y="true" class="yg-list" :style="{'height': height}">
- <view class="yg-wrap" v-for="item in 20">
- <view class="yg-name">
- 李丹丹
- </view>
- <view class="dk-status" @click="goDetail()">
- 正常<image src="../../static/img/downright.png" mode=""></image>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- showdate: new Date().getMonth() + 1,
- height: '',
- }
- },
- onLoad() {
- },
- onShow() {
- },
- onReachBottom() {
- },
- onReady() {
- var obj = this;
- uni.getSystemInfo({
- success: resu => {
- const query = uni.createSelectorQuery();
- query.select('.yg-list').boundingClientRect();
- query.exec(function(res) {
- obj.height = resu.windowHeight - res[0].top + 'px';
- });
- },
- fail: res => {}
- });
- },
- methods: {
- goDetail() {
- uni.navigateTo({
- url: '/pagesS/yg/dkdetail'
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .select-top {
- width: 100%;
- height: 100rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border: 1px solid #F5F5F5;
- font-size: 32rpx;
- font-weight: bold;
- color: #000000;
- padding: 0 30rpx;
- background-color: #fff;
- .top-right {
- font-size: 28rpx;
- font-weight: bold;
- color: #000000;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- image {
- width: 19rpx;
- height: 11rpx;
- }
- }
- }
- .dk-info {
- height: 326rpx;
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- background-color: #fff;
- margin-bottom: 20rpx;
- .big {
- font-size: 46rpx !important;
- font-weight: 800;
- color: #000000;
- margin-bottom: 10rpx;
- }
- .err {
- color: #E05742;
- }
- .dk-day,
- .dk-tit {
- display: flex;
- flex-direction: row;
- justify-content: center;
- width: 100%;
- font-size: 26rpx;
- .dk-left {
- width: 48%;
- text-align: right;
- }
- .dk-center {
- width: 4%;
- flex-shrink: 0;
- text-align: center;
- color: #D7D7D7;
- }
- .dk-right {
- width: 48%;
- }
- }
- .dk-detail {
- display: flex;
- justify-content: center;
- width: 100%;
- margin-top: 50rpx;
- .detail-item {
- width: 30%;
- text-align: center;
- font-size: 28rpx;
- font-weight: bold;
- color: #000000;
- .item-tit {
- margin-top: 15rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #666666;
- }
- }
- }
- }
- .yg-list {
- background-color: #fff;
- width: 100%;
- .yg-wrap {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 40rpx 0 30rpx;
- height: 100rpx;
- border-bottom: 1px solid #F2F2F2;
- font-size: 28rpx;
- font-weight: bold;
- color: #000000;
- .yg-name {
-
- }
- .dk-status {
- display: flex;
- align-items: center;
- image {
- width: 11rpx;
- height: 19rpx;
- margin-left: 10rpx;
- }
- }
- }
- }
- </style>
|