From 03dd170200922d8696b75c01602af7c9c3a028e9 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Sat, 8 Oct 2022 14:25:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=AE=9A=E4=BD=8D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 16 ++-- manifest.json | 189 +++++++++++++++++++------------------ pages/tabBar/home/home.vue | 9 +- 3 files changed, 112 insertions(+), 102 deletions(-) diff --git a/App.vue b/App.vue index 910d5d8..7f21450 100644 --- a/App.vue +++ b/App.vue @@ -5,15 +5,15 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - url: 'https://hsg.dctpay.com/crest', - imgUrl: 'https://hsg.dctpay.com/filesystem/', - brestUrl: 'https://hsg.dctpay.com/brest', - imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', + // url: 'https://hsg.dctpay.com/crest', + // imgUrl: 'https://hsg.dctpay.com/filesystem/', + // brestUrl: 'https://hsg.dctpay.com/brest', + // imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', //测试 - // url: 'https://hsgcs.dctpay.com/crest', - // brestUrl: 'https://hsgcs.dctpay.com/brest', - // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', - // imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', + url: 'https://hsgcs.dctpay.com/crest', + brestUrl: 'https://hsgcs.dctpay.com/brest', + imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', userInfo: "", brestUserInfo: '', bresthighAgent: '', diff --git a/manifest.json b/manifest.json index 5c09ace..d8cb1d2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,94 +1,97 @@ -{ - "name" : "嗨森逛", - "appid" : "__UNI__E807B53", - "description" : "", - "versionName" : "1.2.1", - "versionCode" : "100", - "transformPx" : false, - "app-plus" : { - "usingComponents" : true, //是否启用`自定义组件模式`,为true表示新的`自定义组件模式` ,否则为`template模板模式` - "softinput" : { - "navBar" : "none" // 是否显示软键盘上的导航条 - }, - /* 5+App特有相关 */ - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - "modules" : { - "Share" : {}, - "OAuth" : {} - }, - /* 模块配置 */ - "distribute" : { - "orientation" : [ "portrait-primary" ], - /* 应用发布信息 */ - "android" : { - /* android打包配置 */ - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "ios" : {}, - /* ios打包配置 */ - "sdkConfigs" : {} - } - }, - /* SDK配置 */ - "quickapp" : {}, - /* 快应用特有相关 */ - "mp-weixin" : { - "appid" : "wx8d49e2f83025229d", - "setting" : { - "urlCheck" : true - }, - "permission" : { - "scope.userLocation" : { - "desc" : "你的位置信息将用于小程序定位" - } - } - }, - "h5" : { - "sdkConfigs" : { - "maps" : { - "qqmap" : { - "key" : "7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB" - } - } - }, - "title" : "嗨森逛", - "router" : { - "mode" : "hash", - "base" : "/hsgH5" - }, - "devServer" : { - "port" : "", - "https" : false - }, - "domain" : "https://hsgcs.dctpay.com", - "template" : "index.html" - } +{ + "name": "嗨森逛", + "appid": "__UNI__E807B53", + "description": "", + "versionName": "1.2.1", + "versionCode": "100", + "transformPx": false, + "app-plus": { + "usingComponents": true, //是否启用`自定义组件模式`,为true表示新的`自定义组件模式` ,否则为`template模板模式` + "softinput": { + "navBar": "none" // 是否显示软键盘上的导航条 + }, + /* 5+App特有相关 */ + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + "modules": { + "Share": {}, + "OAuth": {} + }, + /* 模块配置 */ + "distribute": { + "orientation": ["portrait-primary"], + /* 应用发布信息 */ + "android": { + /* android打包配置 */ + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "ios": {}, + /* ios打包配置 */ + "sdkConfigs": {} + } + }, + /* SDK配置 */ + "quickapp": {}, + /* 快应用特有相关 */ + "mp-weixin": { + "appid": "wx8d49e2f83025229d", + "setting": { + "urlCheck": true + }, + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于小程序定位" + } + }, + "requiredPrivateInfos": [ + "getLocation" + ] + }, + "h5": { + "sdkConfigs": { + "maps": { + "qqmap": { + "key": "7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB" + } + } + }, + "title": "嗨森逛", + "router": { + "mode": "hash", + "base": "/hsgH5" + }, + "devServer": { + "port": "", + "https": false + }, + "domain": "https://hsgcs.dctpay.com", + "template": "index.html" + } } diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 45c13c4..b263cba 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -459,13 +459,20 @@ uni.hideLoading(); that.findByLatAndLng(res.longitude, res.latitude); }, - fail: (err) => { + fail: (err) => { + uni.hideLoading(); if (err.errCode == 2) { uni.showToast({ title: '请开启系统定位', duration: 3000, icon: 'none' }) + }else{ + uni.showToast({ + title: '定位失败,请重新进入小程序', + duration: 3000, + icon: 'none' + }) } } })