zxz 1 ano atrás
pai
commit
cfff7252ec
1 arquivos alterados com 6 adições e 3 exclusões
  1. 6 3
      pages/clock/the_clock.vue

+ 6 - 3
pages/clock/the_clock.vue

@@ -160,8 +160,8 @@
 								that.detailData.clockDistance = that.clockDistance.replace("m","")
 							}
 							console.log(that.detailData)
-							// if(that.detailData.clockDistance > 1500){
-							// 	that.$api.msg('请在目标位置1.5km范围内进行打卡')
+							// if(that.detailData.clockDistance > 2000){
+							// 	that.$api.msg('请在目标位置2km范围内进行打卡')
 							// 	return
 							// }else{
 								that.$api.doRequest('post', '/clockInfo/api/addClock', that.detailData)
@@ -169,7 +169,10 @@
 										console.log(res.data)
 										if (res.data.code == 200) {
 											that.$api.msg('提交成功')
-										} else {
+										} else if(res.data.message == '上班时间未打卡'){
+											that.$api.msg(res.data.message)
+										}
+										else{
 											that.$api.msg('提交失败')
 										}
 									})