From 703c46d17731d1b437509f326c050d1d36838f74 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 二月 2025 11:07:38 +0800
Subject: [PATCH] refactor: taro

---
 apps/h5/src/components/Layout/PageLayoutWithBg.vue |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/apps/h5/src/components/Layout/PageLayoutWithBg.vue b/apps/h5/src/components/Layout/PageLayoutWithBg.vue
new file mode 100644
index 0000000..2ec1fdc
--- /dev/null
+++ b/apps/h5/src/components/Layout/PageLayoutWithBg.vue
@@ -0,0 +1,40 @@
+<template>
+  <PageLayout v-bind="props">
+    <template #navigationBar>
+      <TransparentNavigationBar :title="title" :is-absolute="false"></TransparentNavigationBar>
+    </template>
+    <template #default>
+      <img :src="IconBg" class="common-page-bg" />
+      <slot />
+    </template>
+  </PageLayout>
+</template>
+
+<script setup lang="ts">
+import PageLayout from './PageLayout.vue';
+import IconBg from '@/assets/components/icon-page-bg.png';
+import TransparentNavigationBar from '../NavigationBar/TransparentNavigationBar.vue';
+
+defineOptions({
+  name: 'PageLayoutWithBg',
+});
+
+type Props = {
+  title?: string;
+};
+
+const props = withDefaults(defineProps<Props>(), {});
+</script>
+
+<style lang="scss" scoped>
+@use '@/style/common.scss' as *;
+
+.common-page-bg {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: -1;
+  width: 100%;
+  object-fit: cover;
+}
+</style>

--
Gitblit v1.9.1