修改签到打卡

This commit is contained in:
jiangyanshan
2025-12-18 10:59:40 +08:00
parent a0f783fc5a
commit c36aa01f0a
2 changed files with 24 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="con-body">
<view class="con-body">
<view class="content">
<view class="pub-add-box1" @click="addInsertMapForSignIn">
<view style="color: aliceblue; font-size: 22px;">签到</view>
@@ -20,7 +20,7 @@
</view>
<view class="modal-footer">
<view class="btn-group">
<button class="cancel-btn" @click="businessTripClockIn">出差</button>
<button class="cancel-btn" @click="setBusinessTripClockIn">出差</button>
<button class="confirm-btn" @click="confirmClockIn">未出差</button>
</view>
</view>
@@ -32,7 +32,8 @@
</template>
<script>
import { addStartMapForClockIn, businessTripClockIn } from '@/api/crm/activity/map.js';
import {addStartMapForClockIn, businessTripClockIn} from '../../../../api/crm/activity/map';
import {MapApiConfig} from "../../../../constants/mapApiConstants";
export default {
data() {
@@ -97,11 +98,9 @@ export default {
},
//签到
addInsertMapForSignIn() {
uni.navigateTo({
url: './addRearkSignIn'
})
},
//打卡
addInsertMapClockIn() {
@@ -154,7 +153,7 @@ export default {
})
},
// 出差打卡
businessTripClockIn() {
setBusinessTripClockIn() {
const that = this;
businessTripClockIn(this.clockInData).then(res => {
if (res.code == 200) {
@@ -214,7 +213,7 @@ export default {
inverseGeocoding(latiude, longitude) {
var that = this;
let points = longitude + ',' + latiude
const apiURL = 'https://tiles.geovisearth.com/geo/v1/geocode/regeo';
const apiURL = MapApiConfig.URL;
const params = {
lat: latiude,
lng: longitude,
@@ -222,7 +221,7 @@ export default {
pageSize: 1,
currentPage: 1,
};
const token = '66c87c897f0251295afdc794e4fbf73046a070338a726fe04f06cece6cb1ffdf';
const token = MapApiConfig.token;
uni.request({
url: apiURL,
method: 'GET',