加个状态
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-wrapper" v-if="info.type == 0">
|
||||
<div class="btn" @click="clockIn" hover-class="text-hover" :class="isClock== 0? 'gray': isClock==3? 'gray': isClock== 2? 'opacity':''">
|
||||
<div class="btn" @click="clockIn" hover-class="text-hover" :class="isClock== 0? 'gray': isClock==3? 'gray': isClock== 2? 'opacity': isClock == 4? 'opacity':''">
|
||||
<div class="daka">{{ dkqd }}<span v-if="(info.intoBegintime && info.exitBegintime && info.exitIntegral) || (info.intoIntegral && info.exitIntegral)">/积分+{{ intoIntegral }}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -116,6 +116,10 @@ export default {
|
||||
if(this.distance > this.info.clockRange) {
|
||||
return 3
|
||||
}
|
||||
// 在打卡范围内,没有积分
|
||||
if (this.info.clockRange > this.distance && (this.info.intoClock && (inSTimes < times && times < inETimes) && this.info.intoIntegral) || (this.info.exitClock && outSTimes < times && times < outETimes) && !this.info.exitIntegral) {
|
||||
return 4
|
||||
}
|
||||
},
|
||||
scope() {
|
||||
const times = new Date().getTime()
|
||||
@@ -226,7 +230,8 @@ export default {
|
||||
})
|
||||
}
|
||||
|
||||
if (this.isClock == 2) {
|
||||
|
||||
if (this.isClock == 2 || this.isClock == 4) {
|
||||
return this.$u.toast(`已打卡,请勿重复打卡!`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user