diff --git a/pages/common/my_attendance.vue b/pages/common/my_attendance.vue index 7e12fee..ec01753 100644 --- a/pages/common/my_attendance.vue +++ b/pages/common/my_attendance.vue @@ -527,7 +527,7 @@ export default { //打卡签到相关 //显示打卡弹窗 openSignInShow(status){ - this.signIn_show = true + this.formData.status = status switch (status){ @@ -651,6 +651,7 @@ export default { this.formData.latitude = res.latitude // 调用后端接口根据得到的经纬度获取地址 console.log(res, "根据经纬度获取地址"); + this.signIn_show = true//展示弹层 }, // 若用户点击拒绝获取位置则弹出提示 fail: (err) => { @@ -679,7 +680,7 @@ export default { // 返回上一页 setTimeout(() => { uni.showToast({ - title: "返回上一页", + title: "请开启手机定位后再试", icon: 'none' }) // uni.navigateBack({ @@ -728,13 +729,15 @@ export default { if (item.coordinate){ coordinate_arr = item.coordinate.split(',') } - item.latitude = Number(coordinate_arr[0] || 0) - item.longitude = Number(coordinate_arr[1] || 0) + item.longitude = Number(coordinate_arr[0] || 0)//经度 + item.latitude = Number(coordinate_arr[1] || 0)//纬度 + // item.latitude = 18.252865 // item.longitude = 109.511709 this.info_data = {...item}; + console.log('详情',this.info_data) // 设置 info_data 并打开弹窗 this.info_show = true