diff --git a/src/api/crm/activity/map.js b/src/api/crm/activity/map.js index fe0c710..22ad50c 100644 --- a/src/api/crm/activity/map.js +++ b/src/api/crm/activity/map.js @@ -10,6 +10,14 @@ export function addStartMap(data) { }); } +//出差打卡接口 +export function businessTripClockIn(data) { + return request.post({ + url: '/crm/app/appVisistMap/businessTripClockIn', + data + },{isTransformResponse:false}); +} + //新增地图开始打卡接口 export function addStartMapForClockIn(data) { return request.post({ diff --git a/src/constants/mapApiConstants.js b/src/constants/mapApiConstants.js new file mode 100644 index 0000000..8d3a254 --- /dev/null +++ b/src/constants/mapApiConstants.js @@ -0,0 +1,22 @@ +/** + * @description 定位API的配置 + * @type {{URL: string, token: string}} + */ +export const MapApiConfig = { + /** + * @description API接口地址 + */ + URL: 'https://tiles.geovisearth.com/geo/v1/geocode/regeo', + /** + * @description 接口鉴权Token + */ + token: '66c87c897f0251295afdc794e4fbf73046a070338a726fe04f06cece6cb1ffdf', + /** + * @description 打卡类型:西安办事处 + */ + XI_AN_BAN: {latitude: 34.1360, longitude: 108.9126, typeName: '西安办事处位置打卡'}, + /** + * @description 打卡类型:第三方维护 + */ + OTHER: {typeName: '第三方维护打卡'} +} \ No newline at end of file diff --git a/src/pages/business/CRM/map/vistorCheckin.vue b/src/pages/business/CRM/map/vistorCheckin.vue index f5bd470..1a4d82c 100644 --- a/src/pages/business/CRM/map/vistorCheckin.vue +++ b/src/pages/business/CRM/map/vistorCheckin.vue @@ -1,109 +1,191 @@