feat: use wx.createUserInfoButton to get weixin's avarta

This commit is contained in:
jakciehan
2026-05-14 22:41:32 +08:00
parent c4bd390478
commit 9359139186
13 changed files with 1181 additions and 184 deletions
+11 -14
View File
@@ -21,7 +21,6 @@ module.exports = {
// Menu Scene
// ============================================================
'menu.title': 'Tank Adventure',
'profile.welcome': 'Welcome {name}!',
'menu.subtitle': 'TANK WAR',
'menu.classic': 'Classic',
'menu.endless': 'Endless',
@@ -31,8 +30,8 @@ module.exports = {
'menu.skin': 'Skins',
'menu.ranking': 'Ranking',
'menu.settings': 'Settings',
'menu.profile': 'Profile',
'menu.chat': 'Chat',
'menu.tapToAuth': 'Tap to authorize',
// ============================================================
// Room Scene (PVP)
@@ -209,7 +208,6 @@ module.exports = {
'settings.sound': 'Sound',
'settings.music': 'Music',
'settings.vibration': 'Vibration',
'settings.profile': 'Profile',
// ============================================================
// Shop Scene (Simplified)
@@ -229,17 +227,6 @@ module.exports = {
// ============================================================
// Profile Scene
// ============================================================
'profile.title': 'Profile',
'profile.nickname': 'Nickname',
'profile.signature': 'Signature',
'profile.description': 'Space Description',
'profile.changeAvatar': 'Change Avatar',
'profile.tapToEdit': 'Tap to edit',
'profile.save': 'Save',
// ============================================================
// Chat Room Scene
// ============================================================
@@ -333,4 +320,14 @@ module.exports = {
'skin.owned': 'Owned',
'skin.equipSuccess': '✓ Skin equipped!',
'skin.purchaseSuccess': '✓ Skin unlocked!',
// ============================================================
// Privacy Authorization
// ============================================================
'privacy.title': 'Privacy Notice',
'privacy.body': 'To display your nickname and avatar in the game, we need access to your WeChat basic info.\n\nYou can review the Privacy Policy to understand how your data is used.\n\nIf you decline, you will play anonymously.',
'privacy.policyLink': '👉 View Privacy Policy',
'privacy.agree': 'Agree',
'privacy.decline': 'Decline',
'privacy.footer': 'Your info is only used for in-game display and never shared with third parties',
};