Browse Source

对接接口

master
前端-胡立永 3 months ago
parent
commit
b8fc9bcb14
2 changed files with 21 additions and 13 deletions
  1. +11
    -10
      pages/subPack/human/human.vue
  2. +10
    -3
      pages/subPack/record/record.vue

+ 11
- 10
pages/subPack/human/human.vue View File

@ -189,11 +189,12 @@
}) })
}, },
async submit(){ async submit(){
this.form.pic = ''
if (this.$utils.verificationAll(this.form, { if (this.$utils.verificationAll(this.form, {
lat : '经纬度缺失,请打开GPS', lat : '经纬度缺失,请打开GPS',
lon : '经纬度缺失,请打开GPS', lon : '经纬度缺失,请打开GPS',
address : '获取地址失败', address : '获取地址失败',
pic : '请拍照',
// pic : '',
})) { })) {
return return
} }
@ -372,16 +373,16 @@
// icon: 'icon' // icon: 'icon'
// }) // })
this.isVerifyFace = true this.isVerifyFace = true
this.$refs.successPopup.open()
// this.$refs.successPopup.open()
// if(self.form.lat){
// self.submit()
// }else{
// uni.showLoading({
// title: '...'
// })
// self.isLocationSubmit = true
// }
if(self.form.lat){
self.submit()
}else{
uni.showLoading({
title: '定位中...'
})
self.isLocationSubmit = true
}
}else{ }else{
this.tempImg = '' this.tempImg = ''
this.form.pic = '' this.form.pic = ''


+ 10
- 3
pages/subPack/record/record.vue View File

@ -53,14 +53,17 @@
:key="item.id"> :key="item.id">
<template #title> <template #title>
<view class="today-detail-main"> <view class="today-detail-main">
<image :src="item.pic"
<!-- <image :src="item.pic"
@click="previewImage([item.pic])" @click="previewImage([item.pic])"
mode="aspectFill"></image>
mode="aspectFill"></image> -->
<view class="sign-detail"> <view class="sign-detail">
<view class="time" v-if="item.clockInTime">{{ item.clockInTime }}</view> <view class="time" v-if="item.clockInTime">{{ item.clockInTime }}</view>
<view class="time" v-else> <view class="time" v-else>
{{ selectDate.format('YYYY-MM-DD ') + item.clockStartTime }} {{ selectDate.format('YYYY-MM-DD ') + item.clockStartTime }}
<view class="tag">
<view class="tag"
v-if="item.type != 2">
缺卡 缺卡
</view> </view>
</view> </view>
@ -140,6 +143,10 @@
this.queryParams.date = this.selectDate.format('YYYY-MM-DD HH:mm:ss') this.queryParams.date = this.selectDate.format('YYYY-MM-DD HH:mm:ss')
this.getData() this.getData()
}, },
isShowTag(date){
let index = new Date(date).getDay()
return ![0, 6].includes(index)
},
} }
} }
</script> </script>


Loading…
Cancel
Save