From 12be4b4f69bb845095e444e57b91ddf8446fb3ba Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 10 Jul 2025 10:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E8=8F=9C=E5=93=81=E8=A2=AB=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E9=81=AE=E6=8C=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yshop-drink-uniapp-vue3/pages/menu/menu.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/yshop-drink-uniapp-vue3/pages/menu/menu.vue b/yshop-drink-uniapp-vue3/pages/menu/menu.vue index 47068b3..07307d5 100644 --- a/yshop-drink-uniapp-vue3/pages/menu/menu.vue +++ b/yshop-drink-uniapp-vue3/pages/menu/menu.vue @@ -8,9 +8,9 @@ /> - + @@ -107,6 +107,7 @@ + @@ -371,6 +372,7 @@ const init = async() => { //页面初始化 getShopList(result) }, fail: function (res) { + uni.showToast({ title: '获取位置失败,请检查是否开启相关权限', duration: 2000, @@ -386,7 +388,13 @@ const init = async() => { //页面初始化 complete: function (res) { } })); - + if(!result.hasOwnProperty('latitude')){ + result = { + latitude: 39.919990, + longitude: 116.456270 + }; + getShopList(result) + } return } @@ -1240,6 +1248,10 @@ const toPay = () => { .cart-box { position: fixed; bottom: 30rpx; + /* #ifdef H5 */ + bottom:var(--window-bottom); + //bottom: 100rpx; + /* #endif */ left: 30rpx; right: 30rpx; height: 96rpx;