From 8ea19a6bb34daab1410f6186992a4c1e90299c92 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 14 Sep 2022 08:54:44 +0800
Subject: [PATCH] 服务器配置
---
pages/clockSignIn/clockSignIn.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pages/clockSignIn/clockSignIn.vue b/pages/clockSignIn/clockSignIn.vue
index b6f839d..4bc0e29 100644
--- a/pages/clockSignIn/clockSignIn.vue
+++ b/pages/clockSignIn/clockSignIn.vue
@@ -82,7 +82,7 @@
this.getOneselfInFo();
//long 转换为字符串
var code = JSON.stringify(this.$store.state.puserID.toString());
- this.urls = "http://s16s652780.51mypc.cn/xcxjingqingmap_clock_sign_in/xcxmap.html?snumber="+code;
+ this.urls = "http://106.225.193.35:83/xcxjingqingmap_clock_sign_in/xcxmap.html?snumber="+code;
},
methods: {
//获取当前位置信息
@@ -93,6 +93,8 @@
geocode:'true',
success: function (res) {
console.log('当前位置:' + res);
+ console.log('当前位置longitude:' + res.longitude);
+ console.log('当前位置latitude:' + res.latitude);
//114.921652006005 25.8457176283118
// that.jd = '114.921652006005';
// that.wd = '25.8457176283118';
@@ -154,7 +156,7 @@
var that = this;
//保安信息查询
uni.request({
- url:'http://s16s652780.51mypc.cn/api/blade-user/details?id='+this.$store.state.puserID,
+ url:that.$store.state.piAPI + '/blade-user/details?id='+this.$store.state.puserID,
method:'POST',
success(resdata) {
that.name = resdata.data.data.realName;
@@ -167,7 +169,7 @@
goClock() {
var that = this;
uni.request({
- url: this.$store.state.piAPI + `/attendance/AppSave`,
+ url: this.$store.state.BaopiAPI + `/attendance/AppSave`,
method: "POST",
data:{
number: this.code,
--
Gitblit v1.9.3