增强用户隐私保护,新增昵称授权功能。更新头像选择逻辑,用户可直接通过按钮选择微信头像或相册图片。优化个人资料页面,强化手机号必填提示,提升用户体验。调整多个页面以支持新隐私授权机制,确保符合最新隐私规范。
This commit is contained in:
@@ -28,6 +28,9 @@ Page({
|
||||
onLoad(options) {
|
||||
wx.showShareMenu({ menus: ['shareAppMessage', 'shareTimeline'] })
|
||||
this.setData({ statusBarHeight: app.globalData.statusBarHeight || 44 })
|
||||
if (options?.ref || options?.referralCode) {
|
||||
app.handleReferralCode({ query: { ref: options.ref || options.referralCode } })
|
||||
}
|
||||
const requestSn = (options.requestSn || '').trim()
|
||||
const sectionId = (options.sectionId || '').trim()
|
||||
const isSinglePage = (wx.getSystemInfoSync?.()?.mode === 'singlePage') || app.globalData.isSinglePageMode
|
||||
@@ -323,10 +326,10 @@ Page({
|
||||
const { requestSn } = this.data
|
||||
const ref = app.getMyReferralCode?.() || app.globalData.userInfo?.referralCode || ''
|
||||
let path = '/pages/gift-pay/detail'
|
||||
if (requestSn) {
|
||||
path = `/pages/gift-pay/detail?requestSn=${requestSn}`
|
||||
if (ref) path += `&ref=${encodeURIComponent(ref)}`
|
||||
}
|
||||
const params = []
|
||||
if (requestSn) params.push(`requestSn=${encodeURIComponent(requestSn)}`)
|
||||
if (ref) params.push(`ref=${encodeURIComponent(ref)}`)
|
||||
if (params.length) path += '?' + params.join('&')
|
||||
return {
|
||||
title: '好友送你一篇好文 - Soul创业派对',
|
||||
path
|
||||
@@ -336,14 +339,12 @@ Page({
|
||||
onShareTimeline() {
|
||||
const { requestSn } = this.data
|
||||
const ref = app.getMyReferralCode?.() || app.globalData.userInfo?.referralCode || ''
|
||||
let query = ''
|
||||
if (requestSn) {
|
||||
query = `requestSn=${requestSn}`
|
||||
if (ref) query += `&ref=${encodeURIComponent(ref)}`
|
||||
}
|
||||
const params = []
|
||||
if (requestSn) params.push(`requestSn=${encodeURIComponent(requestSn)}`)
|
||||
if (ref) params.push(`ref=${encodeURIComponent(ref)}`)
|
||||
return {
|
||||
title: '好友送你一篇好文 - Soul创业派对',
|
||||
query: query || ''
|
||||
query: params.length ? params.join('&') : ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -10,8 +10,11 @@ Page({
|
||||
loading: false
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
onLoad(options) {
|
||||
this.setData({ statusBarHeight: app.globalData.statusBarHeight || 44 })
|
||||
if (options && (options.ref || options.referralCode)) {
|
||||
app.handleReferralCode({ query: { ref: options.ref || options.referralCode } })
|
||||
}
|
||||
this.loadData()
|
||||
},
|
||||
|
||||
@@ -82,6 +85,8 @@ Page({
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return { title: '我的代付 - Soul创业派对', path: '/pages/gift-pay/list' }
|
||||
const ref = app.getMyReferralCode?.() || app.globalData.userInfo?.referralCode || ''
|
||||
const path = ref ? `/pages/gift-pay/list?ref=${encodeURIComponent(ref)}` : '/pages/gift-pay/list'
|
||||
return { title: '我的代付 - Soul创业派对', path }
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user