43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
// 本地资格说明页 U62
|
|||
|
|
// 解释为什么需要本地资格,引导用户声明
|
||
|
|
|
||
|
|
Page({
|
||
|
|
data: {
|
||
|
|
eligibilityTypes: [
|
||
|
|
{ value: 'household_registration', label: '丹阳户籍', icon: '🏠' },
|
||
|
|
{ value: 'employment', label: '在丹阳工作', icon: '💼' },
|
||
|
|
{ value: 'residence', label: '在丹阳长期居住', icon: '🏡' },
|
||
|
|
{ value: 'other', label: '其他符合服务条件', icon: '⭐' }
|
||
|
|
]
|
||
|
|
},
|
||
|
|
|
||
|
|
onLoad() {
|
||
|
|
// 检查当前用户的本地资格状态
|
||
|
|
this.checkStatus()
|
||
|
|
},
|
||
|
|
|
||
|
|
onShow() {
|
||
|
|
this.checkStatus()
|
||
|
|
},
|
||
|
|
|
||
|
|
checkStatus() {
|
||
|
|
const app = getApp<{ getStorageSync: (key: string) => any }>()
|
||
|
|
// TODO: P04-V11 接入真实API
|
||
|
|
// 如果已声明并verified,跳转到已完成提示
|
||
|
|
},
|
||
|
|
|
||
|
|
// 选择资格类型
|
||
|
|
onTypeSelect(e: WechatMiniprogram.TouchEvent) {
|
||
|
|
const type = e.currentTarget.dataset.type as string
|
||
|
|
// 跳转到补充核验页(如果需要)或直接提交
|
||
|
|
wx.navigateTo({
|
||
|
|
url: `/pages/local-eligibility-supplement/local-eligibility-supplement?type=${type}`
|
||
|
|
})
|
||
|
|
},
|
||
|
|
|
||
|
|
// 跳转到已有资格页面
|
||
|
|
go到我的资格() {
|
||
|
|
wx.showToast({ title: '功能开发中', icon: 'none' })
|
||
|
|
}
|
||
|
|
})
|