From 0cfe50c34659fc30b8e6cdc05d9e4198efa71be9 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期五, 04 七月 2025 16:26:56 +0800 Subject: [PATCH] 支付模块 --- pages/index/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index c1abbf2..6d99bd1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -51,6 +51,7 @@ import { onMounted, ref } from "vue"; import { BASE_URL } from '../../config/index.js'; import { getUserInfo } from '@/api/index.js' + import { onShow } from "@dcloudio/uni-app" const topHeight = ref(0) const userInfo = ref() @@ -145,10 +146,13 @@ } onMounted(() => { getTopHeight() - getUserDatail() // 获取位置信息 getUserLocation() }) + + onShow(() => { + getUserDatail() + }) </script> <style lang="scss" scoped> -- Gitblit v1.9.3