|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view :style="'padding-top:'+nvaHeight+'px;'">
|
|
|
<view class="navbox">
|
|
|
<uni-nav-bar color="#ffffff" left-icon="left" title="打卡记录" :background-color="backgroundColor"
|
|
|
:border="false" statusBar='true' fixed="true" @clickLeft='getBack'>
|
|
@@ -13,12 +13,12 @@
|
|
|
<view class="lbtab flexc">
|
|
|
<image :src="licoimg" class="limg" @click='getResetFn'></image>
|
|
|
<view class="lbtabs flexc">
|
|
|
- <!-- <picker class="pickbox" range-key='dictLabel' :range="adrlist" @change="bindTimeChangea">
|
|
|
+ <picker class="pickbox" range-key='dictLabel' :range="adrlist" @change="bindTimeChangea">
|
|
|
<view class="pickboxa">
|
|
|
- <view class="tit overtwo" >{{deptName||'全部部门'}}</view>
|
|
|
+ <view class="tit overtwo" >{{deptName||'考勤类型'}}</view>
|
|
|
<image :src="wupimg" class="hupimg"></image>
|
|
|
</view>
|
|
|
- </picker> -->
|
|
|
+ </picker>
|
|
|
<picker mode="date" class="pickbox"
|
|
|
@change="bindTimeChangea">
|
|
|
<view class="pickboxa">
|
|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
</view>
|
|
|
<image :src="navbg" class="navbg"></image>
|
|
|
- <view class="zxmain" :style="'margin-top:-'+marTop+'rpx;'">
|
|
|
+ <view class="zxmain">
|
|
|
<!-- 列表 -->
|
|
|
<y-list type='clock' :datalist="list" :wtdt="wtdt" @getDetail='getDetail' :adrlist="adrlist" @getDelFn="getDelFn" @gettypeFn="gettypeFn"></y-list>
|
|
|
</view>
|
|
@@ -84,15 +84,11 @@
|
|
|
success: (e) => {
|
|
|
this.stubarHeight = Number(e.statusBarHeight);
|
|
|
this.nvaHeight = Number(e.statusBarHeight) + 44;
|
|
|
- this.tabscheight = Number(this.nvaHeight) * 2 + 100;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
onShow() {},
|
|
|
- mounted() {
|
|
|
- this.getHeightFn()
|
|
|
- },
|
|
|
// 上拉触底加载更多触发事件
|
|
|
onReachBottom() {
|
|
|
if (this.reachflag) {
|
|
@@ -137,23 +133,6 @@
|
|
|
this.time=val
|
|
|
this.getConfirm()
|
|
|
},
|
|
|
- getHeightFn() {
|
|
|
- let query = uni.createSelectorQuery().in(this);
|
|
|
- //需要给黄色区域设置一个id标识,在这里是demo
|
|
|
- query.select('.navbox').boundingClientRect(data => {
|
|
|
- var top = data.top < 0 ? -data.top : data.top;
|
|
|
- var stubarHeight = Number(this.stubarHeight);
|
|
|
- this.marTop = stubarHeight > 0 ? 692 - Number(data.height) * 2 : 692 - Number(data.height) *
|
|
|
- 2 + 40 //赋值,待会要用
|
|
|
- if (top <= this.nvaHeight) {
|
|
|
- const opacity = top / 100 // 计算透明度值
|
|
|
- const color = `rgba(4, 145, 253, ${opacity})`
|
|
|
- this.backgroundColor = color // 更新盒子背景颜色
|
|
|
- } else {
|
|
|
- this.backgroundColor = '#00A9F0'
|
|
|
- }
|
|
|
- }).exec();
|
|
|
- },
|
|
|
init() {
|
|
|
// 门卫
|
|
|
// getDictionaryFn('is_read').then(res=>{
|
|
@@ -219,8 +198,8 @@
|
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
|
.navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4; }
|
|
|
-.navbg{width: 100%;height: 692rpx;}
|
|
|
-.zxmain{position: relative;padding: 8rpx 32rpx 40rpx;box-sizing: border-box;}
|
|
|
+.navbg{width: 100%;height: 692rpx;}
|
|
|
+.zxmain{position: relative;padding: 180rpx 32rpx 40rpx;box-sizing: border-box;}
|
|
|
.search{padding: 0 52rpx;box-sizing: border-box;
|
|
|
width: 100%;height: 76rpx;background: rgba(40, 139, 214, 0.5);border-radius: 38rpx;
|
|
|
image{width: 24rpx;height: 24rpx;margin-right: 22rpx;flex: 0 0 auto;}
|
|
@@ -229,7 +208,7 @@
|
|
|
.lbtab{padding: 0 56rpx;
|
|
|
.limg{width: 24rpx;height: 24rpx;margin-right: 16rpx;flex:0 0 auto;}
|
|
|
.lbtabs{overflow: auto;flex-wrap: nowrap;flex:1;
|
|
|
- .pickbox{text-align: right;font-weight: 500;font-size: 28rpx;color: #161616;min-height:88rpx;margin: 0 10rpx;
|
|
|
+ .pickbox{text-align: right;font-weight: 500;font-size: 28rpx;color: #161616;min-height:88rpx;margin: 0 20rpx;flex:1;
|
|
|
.pickboxa{justify-content: center;
|
|
|
min-height: 88rpx;display: flex;align-items: center;
|
|
|
}
|