const { BRAND_CONFIG } = require('../../utils/config') Page({ data: { appName: BRAND_CONFIG.appName }, goLegal(event) { const type = event.currentTarget.dataset.type if (!type) return wx.navigateTo({ url: `/pages/legal/index?type=${type}` }) } })