Browse Source

距离改为50

htc 1 month ago
parent
commit
c48454aa6d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pagesClockin/index.vue

+ 2 - 1
pagesClockin/index.vue

@@ -44,6 +44,7 @@
 					<span v-else>当前定位不在考勤范围内</span>
 				</div>
 			</div>
+			<!-- <p style="text-align: center;font-size: 32rpx;padding: 20rpx 0;font-weight: bold;">当前定位直线距离:{{distance}}米</p> -->
 		</div>
 		<u-popup :show="show" @close="close" mode="center" :round="32" :customStyle="{'width':'calc(100% - 120rpx)'}">
 			<div class="up_box">
@@ -169,7 +170,7 @@
 				  target[1],
 				  target[0]
 				);
-				this.canClock = this.distance<=30;
+				this.canClock = this.distance<=50;
 			  } catch (err) {
 				uni.showToast({
 				  title: '获取位置失败,请检查权限设置',