修改签到打卡
This commit is contained in:
@@ -3,41 +3,30 @@ import request from "@/utils/request";
|
||||
//新增地图开始签到接口
|
||||
export function addStartMap(data) {
|
||||
return request.post({
|
||||
url: "/crm/app/appVisistMap/Startadd",
|
||||
url: "/crm/jys/app/appVisistMap/Startadd",
|
||||
data,
|
||||
},{
|
||||
isTransformResponse:false
|
||||
});
|
||||
}
|
||||
|
||||
// //出差打卡接口
|
||||
// export function businessTripClockIn(data) {
|
||||
// return request.post({
|
||||
// url: '/crm/app/appVisistMap/businessTripClockIn',
|
||||
// data
|
||||
// },{isTransformResponse:false});
|
||||
// }
|
||||
|
||||
// //新增地图开始打卡接口
|
||||
// export function addStartMapForClockIn(data) {
|
||||
// return request.post({
|
||||
// url: "/crm/app/appVisistMap/StartaddForClockIn",
|
||||
// data,
|
||||
// },{
|
||||
// isTransformResponse:false
|
||||
// });
|
||||
// }
|
||||
|
||||
//出差打卡接口
|
||||
export function businessTripClockIn(data) {
|
||||
return request('/app/appVisistMap/businessTripClockIn', data, 'POST', 'application/json;charset=UTF-8');
|
||||
}
|
||||
|
||||
//新增地图开始打卡接口
|
||||
export function addStartMapForClockIn(data) {
|
||||
return request('/app/appVisistMap/StartaddForClockIn', data, 'POST', 'application/json;charset=UTF-8');
|
||||
}
|
||||
//出差打卡接口
|
||||
export function businessTripClockIn(data) {
|
||||
return request.post({
|
||||
url: '/crm/jys/app/appVisistMap/businessTripClockIn',
|
||||
data
|
||||
},{isTransformResponse:false});
|
||||
}
|
||||
|
||||
//新增地图开始打卡接口
|
||||
export function addStartMapForClockIn(data) {
|
||||
return request.post({
|
||||
url: "/crm/jys/app/appVisistMap/StartaddForClockIn",
|
||||
data,
|
||||
},{
|
||||
isTransformResponse:false
|
||||
});
|
||||
}
|
||||
|
||||
//打卡信息查看
|
||||
export function CheckInInformationViewing(data) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user