From 7aaff69bb11a4d75882d25bd1bc8e9748c2bd609 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 29 五月 2025 16:57:41 +0800
Subject: [PATCH] 完成报工前端页面,除库存接收外

---
 components/modal/modal-bg.vue |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/components/modal/modal-bg.vue b/components/modal/modal-bg.vue
new file mode 100644
index 0000000..6e85584
--- /dev/null
+++ b/components/modal/modal-bg.vue
@@ -0,0 +1,49 @@
+<template>
+  <u-modal v-model="showModal" title="" :show-cancel-button="showCancelButton" @confirm="confirm" @cancel="cancel">
+    <view class="slot-content">
+      <slot></slot>
+    </view>
+  </u-modal>
+</template>
+
+<script>
+export default {
+  props: {
+    showCancelButton: {
+      type: Boolean,
+      default: true
+    },
+    confirm: {
+      type: Function,
+      default: () => { }
+    }
+  },
+  data() {
+    return {
+      showModal: false
+    }
+  },
+  methods: {
+    open() {
+      this.showModal = true;
+    },
+    cancel() {
+      this.showModal = false;
+    },
+  }
+
+}
+</script>
+
+<style lang="scss" scoped>
+::v-deep .u-model__title {
+  padding-top: 0 !important;
+}
+
+.slot-content {
+  min-height: 400rpx;
+  box-sizing: border-box;
+  padding-top: 250rpx;
+  background: url(../../static/custom/moda-lbg.png) no-repeat center / 100% 100% !important;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3