feat(miniprogram): redesign public experience

This commit is contained in:
2026-08-13 09:52:28 +08:00
parent 591a9d4d2f
commit 9622d249be
35 changed files with 1736 additions and 243 deletions
@@ -8,6 +8,14 @@ Page({
message: '正在安全登录,请稍候…',
title: MINI_PROGRAM_TITLE,
canCollaborate: false,
serviceCategories: [
{ code: 'OLD_AGE', label: '关爱老人', icon: '人', tone: 'orange' },
{ code: 'WOMEN_CHILDREN', label: '妇女帮扶', icon: '爱', tone: 'rose' },
{ code: 'WOMEN_CHILDREN', label: '儿童关爱', icon: '苗', tone: 'green' },
{ code: 'DISABILITY', label: '残障帮扶', icon: '助', tone: 'blue' },
{ code: 'DIFFICULT_FAMILY', label: '生活困难', icon: '家', tone: 'gold' },
{ code: 'OTHER', label: '其他服务', icon: '心', tone: 'purple' },
],
},
onLoad() {
@@ -47,6 +55,13 @@ Page({
void wx.navigateTo({ url: '/pages/application-form/application-form?mode=FAMILY' });
},
applyForCategory(event: WechatMiniprogram.BaseEvent) {
const category = event.currentTarget.dataset['code'] as string;
void wx.navigateTo({
url: `/pages/application-form/application-form?mode=SELF&category=${category}`,
});
},
viewMyApplications() {
void wx.navigateTo({ url: '/pages/my-applications/my-applications' });
},