From 79f97bb64cac037a8cd05a2d22942a96d4b53f0a Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Jun 2022 14:15:48 +0800
Subject: [PATCH] 考试传值修改
---
pages/clockSignIn/clockSignIn.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/pages/clockSignIn/clockSignIn.vue b/pages/clockSignIn/clockSignIn.vue
index 758ff7d..9f5f1ac 100644
--- a/pages/clockSignIn/clockSignIn.vue
+++ b/pages/clockSignIn/clockSignIn.vue
@@ -53,7 +53,6 @@
</template>
<script>
- import genator from '../../xcxMapJQ/js/geolocation.min.js'
export default {
data() {
return {
@@ -83,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://61.131.136.25:2082/xcxjingqingmap_clock_sign_in/xcxmap.html?snumber="+code;
},
methods: {
//获取当前位置信息
@@ -94,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';
@@ -155,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;
@@ -168,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