diff --git a/frontend-mp/src/pages.json b/frontend-mp/src/pages.json
index 36be32e..f1ee802 100644
--- a/frontend-mp/src/pages.json
+++ b/frontend-mp/src/pages.json
@@ -16,6 +16,14 @@
"navigationBarBackgroundColor": "#0052D9",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/fill/fill",
+ "style": {
+ "navigationBarTitleText": "填写材料",
+ "navigationBarBackgroundColor": "#0052D9",
+ "navigationBarTextStyle": "white"
+ }
}
],
"globalStyle": {
diff --git a/frontend-mp/src/pages/fill/fill.vue b/frontend-mp/src/pages/fill/fill.vue
new file mode 100644
index 0000000..61985c0
--- /dev/null
+++ b/frontend-mp/src/pages/fill/fill.vue
@@ -0,0 +1,385 @@
+
+
+
+
+ {{ tenant }}
+ {{ taskName }}
+ {{ deadlineTip }}
+
+
+ 正在读取…
+ {{ loadError }}
+
+
+
+ {{ sec.title }}
+
+
+
+ {{ f.label }}
+ 必填
+ 只读
+
+
+
+
+ {{ display(f) }}
+ 如有误请联系班主任
+
+
+
+
+
+ 是
+
+
+ 否
+
+
+
+
+
+
+ {{ display(f) || '请选择' }}
+
+
+
+
+ setValue(f.key, e.detail.value)">
+
+ {{ display(f) || '请选择日期' }}
+
+
+
+
+
+
+
+ {{ f.tip }}
+
+
+
+
+
+ {{ saveHint }}
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend-mp/src/pages/verify/verify.vue b/frontend-mp/src/pages/verify/verify.vue
index c9f92a2..8eec884 100644
--- a/frontend-mp/src/pages/verify/verify.vue
+++ b/frontend-mp/src/pages/verify/verify.vue
@@ -152,6 +152,17 @@ function token(): string {
}
}
+/** 当前 URL 里的 scene(在 hash 路由的 query 里;H5 跳转不保留参数)。 */
+function sceneFromUrl(): string {
+ try {
+ const hash = typeof location !== 'undefined' ? location.hash : ''
+ const q = hash.includes('?') ? hash.slice(hash.indexOf('?') + 1) : ''
+ return new URLSearchParams(q).get('scene') || ''
+ } catch {
+ return ''
+ }
+}
+
async function loadContext(scene: string) {
if (!scene) return
try {
@@ -194,7 +205,13 @@ async function submit() {
}
function next() {
- uni.showToast({ title: '填写材料功能开发中', icon: 'none' })
+ // 带着 scene 与 taskId 跳到填报页 —— H5 的页面跳转不保留 URL 参数,
+ // 所以显式拼(同 index → verify 的处理)
+ const scene = sceneFromUrl()
+ const tid = ctx.value.taskId || 0
+ uni.navigateTo({
+ url: `/pages/fill/fill?taskId=${tid}&scene=${encodeURIComponent(scene)}`
+ })
}
onLoad((options) => {