|  | @@ -14,11 +14,11 @@
 | 
											
												
													
														|  |            class="signIn-button round mb30"
 |  |            class="signIn-button round mb30"
 | 
											
												
													
														|  |            :class="`bg-${themeColor.name}`"
 |  |            :class="`bg-${themeColor.name}`"
 | 
											
												
													
														|  |            :style="{
 |  |            :style="{
 | 
											
												
													
														|  | -            background: state.signInType === 0 ? themeColor.color : '#999999',
 |  | 
 | 
											
												
													
														|  | 
 |  | +            background: state.signInType === 1 ? themeColor.color : '#999999',
 | 
											
												
													
														|  |            }"
 |  |            }"
 | 
											
												
													
														|  |            @click="handleInsert()"
 |  |            @click="handleInsert()"
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  | -          <view class="pt40 font40">{{ state.signInType === 0 ? "签到" : "签退" }}</view>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <view class="pt40 font40">{{ state.signInType === 1 ? "签到" : "签退" }}</view>
 | 
											
												
													
														|  |            <view class="mt5">{{ state.operateDate.split(" ")[1] }}</view>
 |  |            <view class="mt5">{{ state.operateDate.split(" ")[1] }}</view>
 | 
											
												
													
														|  |          </view>
 |  |          </view>
 | 
											
												
													
														|  |          <view class="signIn-address" v-if="state.address">
 |  |          <view class="signIn-address" v-if="state.address">
 | 
											
										
											
												
													
														|  | @@ -46,7 +46,7 @@ const themeColor = computed(() => {
 | 
											
												
													
														|  |  const state = reactive({
 |  |  const state = reactive({
 | 
											
												
													
														|  |    address: "", //准确位置信息
 |  |    address: "", //准确位置信息
 | 
											
												
													
														|  |    deviceCode: uni.getSystemInfoSync().deviceId, //设备编号
 |  |    deviceCode: uni.getSystemInfoSync().deviceId, //设备编号
 | 
											
												
													
														|  | -  signInType: 0, //签到类型(0:已签到 1:已签退)
 |  | 
 | 
											
												
													
														|  | 
 |  | +  signInType: 1, //签到类型(0:已签到 1:已签退)
 | 
											
												
													
														|  |    operateDate: commonStore.formatterDateTime(new Date()), //操作时间
 |  |    operateDate: commonStore.formatterDateTime(new Date()), //操作时间
 | 
											
												
													
														|  |    operateCode: 0, //操作类型
 |  |    operateCode: 0, //操作类型
 | 
											
												
													
														|  |    longitude: "", //经度
 |  |    longitude: "", //经度
 | 
											
										
											
												
													
														|  | @@ -68,7 +68,7 @@ function handleInsert() {
 | 
											
												
													
														|  |      remarks: state.remarks,
 |  |      remarks: state.remarks,
 | 
											
												
													
														|  |    }).then((res) => {
 |  |    }).then((res) => {
 | 
											
												
													
														|  |      if (res.status == "SUCCESS") {
 |  |      if (res.status == "SUCCESS") {
 | 
											
												
													
														|  | -      proxy.$modal.msgSuccess(state.signInType === 0 ? "签到成功" : "签退成功");
 |  | 
 | 
											
												
													
														|  | 
 |  | +      proxy.$modal.msgSuccess(state.signInType === 1 ? "签到成功" : "签退成功");
 | 
											
												
													
														|  |        getStatusApi(); //调用人员状态查询接口
 |  |        getStatusApi(); //调用人员状态查询接口
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    });
 |  |    });
 | 
											
										
											
												
													
														|  | @@ -91,16 +91,14 @@ function getLocation() {
 | 
											
												
													
														|  |      type: "gcj02",
 |  |      type: "gcj02",
 | 
											
												
													
														|  |      geocode: true,
 |  |      geocode: true,
 | 
											
												
													
														|  |      highAccuracyExpireTime: 5000,
 |  |      highAccuracyExpireTime: 5000,
 | 
											
												
													
														|  | -    success: function (res) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    success: (res) => {
 | 
											
												
													
														|  | 
 |  | +      console.log(res);
 | 
											
												
													
														|  |        state.longitude = res.longitude;
 |  |        state.longitude = res.longitude;
 | 
											
												
													
														|  |        state.latitude = res.latitude;
 |  |        state.latitude = res.latitude;
 | 
											
												
													
														|  |        state.address = res.address.city + res.address.district + res.address.street + res.address.streetNum + res.address.poiName;
 |  |        state.address = res.address.city + res.address.district + res.address.street + res.address.streetNum + res.address.poiName;
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    fail: function (res) {
 |  | 
 | 
											
												
													
														|  | -      uni.showToast({
 |  | 
 | 
											
												
													
														|  | -        title: "请打开手机定位或相关应用权限定位!",
 |  | 
 | 
											
												
													
														|  | -        icon: "none",
 |  | 
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | 
 |  | +    fail: (res) => {
 | 
											
												
													
														|  | 
 |  | +      console.log(res);
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |    });
 |  |    });
 | 
											
												
													
														|  |  }
 |  |  }
 |