From b922fa4e5434e64fb0a9539a7217988212ea1d7b Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 5 Feb 2025 11:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0appId=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E5=9D=90=E6=A0=87=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 5 ++++- project.config.json | 20 +++++++++----------- subpages/heart/pages/clockIn/clockIn.js | 11 ++++++++++- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/app.json b/app.json index 3e49e54..0b1c4db 100644 --- a/app.json +++ b/app.json @@ -107,5 +107,8 @@ "desc": "志愿者小程序将获取您的位置信息" } }, - "sitemapLocation": "sitemap.json" + "sitemapLocation": "sitemap.json", + "requiredPrivateInfos": [ + "getLocation" + ] } \ No newline at end of file diff --git a/project.config.json b/project.config.json index ce195a7..1296ed5 100644 --- a/project.config.json +++ b/project.config.json @@ -1,9 +1,5 @@ { "description": "项目配置文件", - "packOptions": { - "ignore": [], - "include": [] - }, "setting": { "urlCheck": false, "es6": true, @@ -23,8 +19,6 @@ "uploadWithSourceMap": true, "compileHotReLoad": false, "useMultiFrameRuntime": true, - "useApiHook": true, - "useApiHostProcess": true, "babelSetting": { "ignore": [], "disablePlugins": [], @@ -37,12 +31,10 @@ "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], - "minifyWXSS": true + "minifyWXSS": true, + "ignoreUploadUnusedFiles": true }, "compileType": "miniprogram", - "libVersion": "3.2.2", - "appid": "wxc4fe0ea629aaa309", - "projectname": "e锦水-志愿者端", "cloudfunctionTemplateRoot": "", "simulatorType": "wechat", "simulatorPluginLibVersion": {}, @@ -73,5 +65,11 @@ "editorSetting": { "tabIndent": "auto", "tabSize": 4 - } + }, + "libVersion": "3.7.4", + "packOptions": { + "ignore": [], + "include": [] + }, + "appid": "wxc4fe0ea629aaa309" } \ No newline at end of file diff --git a/subpages/heart/pages/clockIn/clockIn.js b/subpages/heart/pages/clockIn/clockIn.js index 530301a..ae4d4eb 100644 --- a/subpages/heart/pages/clockIn/clockIn.js +++ b/subpages/heart/pages/clockIn/clockIn.js @@ -114,6 +114,7 @@ Page({ latitude, longitude }) { + console.log(latitude,longitude,'逆地址解析经纬度'); var that = this; that.data.qqmapsdk.reverseGeocoder({ location: { @@ -122,10 +123,18 @@ Page({ }, success: (res) => { wx.hideLoading(); - if (res.message === "query ok") { + if (res.message === "Success") { that.setData({ operationAddress: res.result.address }) + }else{ + wx.showToast({ + title: '定位信息有误,请检查权限', + icon:'none' + }) + that.setData({ + ldata: true + }) } } })