refactor(frontend): replace all '榴莲' references with '股行'

- Update app name and branding across all pages
- Remove references to '榴莲树' in contribution and adoption contexts
- Update user-facing text in login, register, splash pages
- Update FAQ content in help center and about pages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-19 04:33:47 -08:00
parent d9d46065e0
commit e48bf3e81f
16 changed files with 24 additions and 24 deletions

View File

@ -1,7 +1,7 @@
import '../config/environment.dart'; import '../config/environment.dart';
class AppConstants { class AppConstants {
static const String appName = '榴莲挖矿'; static const String appName = '股行';
// API - // API -
static String get baseUrl => EnvironmentConfig.baseUrl; static String get baseUrl => EnvironmentConfig.baseUrl;

View File

@ -2,7 +2,7 @@ import 'package:equatable/equatable.dart';
/// ///
enum ContributionSourceType { enum ContributionSourceType {
personal, // - personal, // -
teamLevel, // - / teamLevel, // - /
teamBonus, // - teamBonus, // -
} }
@ -45,7 +45,7 @@ class ContributionRecord extends Equatable {
String get displayTitle { String get displayTitle {
switch (sourceType) { switch (sourceType) {
case ContributionSourceType.personal: case ContributionSourceType.personal:
return '认种榴莲树'; return '认种';
case ContributionSourceType.teamLevel: case ContributionSourceType.teamLevel:
if (levelDepth == 1) { if (levelDepth == 1) {
return '直推奖励'; return '直推奖励';

View File

@ -48,7 +48,7 @@ class _MiningAppState extends ConsumerState<MiningApp> {
final router = ref.watch(appRouterProvider); final router = ref.watch(appRouterProvider);
return MaterialApp.router( return MaterialApp.router(
title: '榴莲挖矿', title: '股行',
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
theme: ThemeData( theme: ThemeData(
colorScheme: ColorScheme.fromSeed( colorScheme: ColorScheme.fromSeed(

View File

@ -18,7 +18,7 @@ class ReceiveSharesPage extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final user = ref.watch(userNotifierProvider); final user = ref.watch(userNotifierProvider);
final phone = user.phone ?? ''; final phone = user.phone ?? '';
final nickname = user.nickname ?? user.realName ?? '榴莲用户'; final nickname = user.nickname ?? user.realName ?? '股行用户';
return Scaffold( return Scaffold(
backgroundColor: _bgGray, backgroundColor: _bgGray,
@ -277,7 +277,7 @@ class ReceiveSharesPage extends ConsumerWidget {
), ),
SizedBox(height: 8), SizedBox(height: 8),
Text( Text(
'1. 让对方使用榴莲APP扫描二维码\n2. 或者将您的手机号告诉对方\n3. 对方可以通过手机号向您转账', '1. 让对方使用股行APP扫描二维码\n2. 或者将您的手机号告诉对方\n3. 对方可以通过手机号向您转账',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: _grayText, color: _grayText,

View File

@ -151,7 +151,7 @@ class _LoginPageState extends ConsumerState<LoginPage> {
const SizedBox(height: 8), const SizedBox(height: 8),
const Text( const Text(
'登录您的榴莲生态账户', '登录您的股行账户',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: _grayText, color: _grayText,

View File

@ -131,7 +131,7 @@ class _RegisterPageState extends ConsumerState<RegisterPage> {
const SizedBox(height: 8), const SizedBox(height: 8),
const Text( const Text(
'加入榴莲生态,开启绿色财富之旅', '加入股行,开启绿色财富之旅',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: _grayText, color: _grayText,

View File

@ -121,7 +121,7 @@ class ContributionPage extends ConsumerWidget {
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
const Text( const Text(
'榴莲生态', '股行',
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@ -416,7 +416,7 @@ class ContributionPage extends ConsumerWidget {
icon: Icons.eco_outlined, icon: Icons.eco_outlined,
iconColor: _orange, iconColor: _orange,
title: '本人种植', title: '本人种植',
subtitle: '个人认种榴莲树产生的贡献值', subtitle: '个人认种产生的贡献值',
amount: contribution?.personalContribution ?? '0', amount: contribution?.personalContribution ?? '0',
hideAmounts: hideAmounts, hideAmounts: hideAmounts,
), ),

View File

@ -221,7 +221,7 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'认种榴莲树后将产生贡献值', '认种后将产生贡献值',
style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)), style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)),
), ),
], ],

View File

@ -151,8 +151,8 @@ class _AboutPageState extends State<AboutPage> {
_buildSectionTitle('应用简介'), _buildSectionTitle('应用简介'),
const SizedBox(height: 12), const SizedBox(height: 12),
Text( Text(
'股行是一款创新的数字资产管理平台,致力于为用户提供便捷、安全的榴莲树认种和积分管理服务。' '股行是一款创新的数字资产管理平台,致力于为用户提供便捷、安全的认种和积分管理服务。'
'通过认种榴莲树,用户可以获得贡献值,并根据贡献值占比获得每日积分股分配。', '通过认种,用户可以获得贡献值,并根据贡献值占比获得每日积分股分配。',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
color: _grayText.withOpacity(0.9), color: _grayText.withOpacity(0.9),
@ -179,8 +179,8 @@ class _AboutPageState extends State<AboutPage> {
const SizedBox(height: 16), const SizedBox(height: 16),
_buildFeatureItem( _buildFeatureItem(
icon: Icons.eco, icon: Icons.eco,
title: '榴莲认种', title: '认种',
description: '认种真实榴莲树,获得贡献值奖励', description: '参与认种,获得贡献值奖励',
), ),
const SizedBox(height: 12), const SizedBox(height: 12),
_buildFeatureItem( _buildFeatureItem(

View File

@ -39,12 +39,12 @@ class HelpCenterPage extends StatelessWidget {
// //
_buildSection('常见问题', [ _buildSection('常见问题', [
_FAQItem( _FAQItem(
question: '如何认种榴莲树', question: '如何认种',
answer: '在首页点击"去认种"按钮,选择认种数量和支付方式,完成支付后即可认种成功。认种成功后,您将获得对应的贡献值。', answer: '在首页点击"去认种"按钮,选择认种数量和支付方式,完成支付后即可认种成功。认种成功后,您将获得对应的贡献值。',
), ),
_FAQItem( _FAQItem(
question: '贡献值是什么?', question: '贡献值是什么?',
answer: '贡献值是您在平台认种榴莲树后获得的一种权益凭证。贡献值越高您每日可获得的积分股分配越多。贡献值有效期为730天。', answer: '贡献值是您在平台认种后获得的一种权益凭证。贡献值越高您每日可获得的积分股分配越多。贡献值有效期为730天。',
), ),
_FAQItem( _FAQItem(
question: '如何获得积分股?', question: '如何获得积分股?',
@ -89,7 +89,7 @@ class HelpCenterPage extends StatelessWidget {
), ),
_FAQItem( _FAQItem(
question: '团队收益如何计算?', question: '团队收益如何计算?',
answer: '当您引荐的好友认种榴莲树后,您将获得团队下级贡献值奖励。引荐的用户越多、认种数量越多,您的团队收益越高。', answer: '当您引荐的好友认种后,您将获得团队下级贡献值奖励。引荐的用户越多、认种数量越多,您的团队收益越高。',
), ),
]), ]),
const SizedBox(height: 16), const SizedBox(height: 16),

View File

@ -179,7 +179,7 @@ class _MiningRecordsListPageState extends ConsumerState<MiningRecordsListPage> {
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'认种榴莲树后将开始产生收益', '认种后将开始产生收益',
style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)), style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)),
), ),
], ],

View File

@ -201,7 +201,7 @@ class _PlantingRecordsPageState extends ConsumerState<PlantingRecordsPage> {
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'认种榴莲树后将显示记录', '认种后将显示记录',
style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)), style: TextStyle(fontSize: 14, color: _grayText.withOpacity(0.7)),
), ),
], ],

View File

@ -156,7 +156,7 @@ class ProfilePage extends ConsumerWidget {
Text( Text(
user.nickname?.isNotEmpty == true user.nickname?.isNotEmpty == true
? user.nickname! ? user.nickname!
: (user.realName ?? '榴莲用户'), : (user.realName ?? '股行用户'),
style: const TextStyle( style: const TextStyle(
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,

View File

@ -66,7 +66,7 @@ class _SplashPageState extends ConsumerState<SplashPage> {
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
const Text( const Text(
'榴莲生态', '股行',
style: TextStyle( style: TextStyle(
color: _darkText, color: _darkText,
fontSize: 28, fontSize: 28,

View File

@ -1,5 +1,5 @@
name: mining_app name: mining_app
description: 榴莲生态挖矿用户端 App description: 股行用户端 App
version: 1.0.0+1 version: 1.0.0+1
publish_to: none publish_to: none

View File

@ -1,4 +1,4 @@
// App // App
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
void main() { void main() {