diff --git a/pages.json b/pages.json
index 05eaff6..ae77dcb 100644
--- a/pages.json
+++ b/pages.json
@@ -249,6 +249,13 @@
"style": {
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "pages/memorial/addMemorial",
+ "style" :
+ {
+ "navigationStyle": "custom"
+ }
}
],
"subPackages": [
diff --git a/pages/memorial/addMemorial.vue b/pages/memorial/addMemorial.vue
new file mode 100644
index 0000000..adf399d
--- /dev/null
+++ b/pages/memorial/addMemorial.vue
@@ -0,0 +1,569 @@
+
+
+
+
+
+
+
+
+
+ 设备信息
+
+
+
+
+
+ 扫码获取设备信息
+
+
+
+
+
+
+ 设备名称:
+ {{ deviceInfo.name }}
+
+
+
+
+
+
+ 牌位信息
+
+
+
+ 牌位编号
+ *
+
+
+
+
+
+
+ 所属区域
+ *
+
+
+
+ {{ regionOptions[regionIndex] || "请选择区域" }}
+
+
+
+
+
+
+
+
+ 取消
+ 确认添加
+
+
+
+
+
+
+
+
+
diff --git a/pages/memorial/adminMemorial.vue b/pages/memorial/adminMemorial.vue
index 17f2398..a3df2b7 100644
--- a/pages/memorial/adminMemorial.vue
+++ b/pages/memorial/adminMemorial.vue
@@ -36,6 +36,7 @@
时长归零
增加时长
寻找牌位
+ 添加牌位
@@ -451,6 +452,24 @@ export default {
console.log("提交供奉,跳转到往生大殿页面,ID:", this.selectedUnitId);
this.navigateToMemorialHall(this.selectedUnitId);
},
+
+ // 跳转到添加牌位页面
+ handleAddMemorial() {
+ console.log("跳转到添加牌位页面");
+ uni.navigateTo({
+ url: "/pages/memorial/addMemorial",
+ success: () => {
+ console.log("跳转到添加牌位页面成功");
+ },
+ fail: (error) => {
+ console.error("跳转失败:", error);
+ uni.showToast({
+ title: "页面跳转失败",
+ icon: "none",
+ });
+ },
+ });
+ },
},
};
@@ -511,4 +530,10 @@ export default {
border-radius: 12rpx;
font-size: 28rpx;
}
+
+.add-memorial-btn {
+ background: #4a90e2 !important;
+ font-weight: bold;
+ box-shadow: 0 4rpx 8rpx rgba(74, 144, 226, 0.3);
+}