From 1910e9f27373b8b4da75f076762025ceb3419965 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 12 六月 2025 15:40:50 +0800
Subject: [PATCH] fix: 暂时隐藏电信充值通道
---
apps/h5/src/components/NavigationBar/NavBar.vue | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 57 insertions(+), 0 deletions(-)
diff --git a/apps/h5/src/components/NavigationBar/NavBar.vue b/apps/h5/src/components/NavigationBar/NavBar.vue
new file mode 100644
index 0000000..31a4670
--- /dev/null
+++ b/apps/h5/src/components/NavigationBar/NavBar.vue
@@ -0,0 +1,57 @@
+<template>
+ <div
+ :class="[
+ 'navigation-bar-wrapper',
+ { active: props.mode === 'dark', plain: props.plain, hasBorder: props.hasBorder },
+ ]"
+ >
+ <slot></slot>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { navigationBarProps } from './navBar';
+import { CSSProperties } from 'vue';
+import { useAppStore } from '@/store/modules/app';
+
+defineOptions({
+ name: 'NavBar',
+});
+
+const props = defineProps(navigationBarProps);
+
+const appStore = useAppStore();
+
+// const barStyle = computed(
+// () =>
+// ({
+// paddingTop: appStore.statusBarHeight / 2 + 'px',
+// } as CSSProperties)
+// );
+</script>
+
+<style lang="scss" scoped>
+@use '@/style/common.scss' as *;
+
+.navigation-bar-wrapper {
+ position: relative;
+ z-index: 10;
+ display: flex;
+ padding-top: constant(safe-area-inset-top);
+ padding-top: env(safe-area-inset-top);
+ background-color: #ffffff;
+
+ &.plain {
+ border-bottom-left-radius: 10px;
+ border-bottom-right-radius: 10px;
+ }
+
+ &.active {
+ background-color: getCssVar('color', 'primary');
+ }
+
+ &.hasBorder {
+ border-bottom: 1px solid #f6f6f6;
+ }
+}
+</style>
--
Gitblit v1.9.1