refactor(mining-app): rename 绿积分 to 积分值 across all pages
Replace all occurrences of "绿积分" with "积分值" in: - trading_page.dart (price display, pool name, input field) - asset_page.dart (account labels) - trading_account.dart (entity comment) - price_info.dart (entity comment) - market_overview.dart (entity comment) - DEVELOPMENT_GUIDE.md (documentation) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
adeeadb495
commit
84fa3e5e19
|
|
@ -8,7 +8,7 @@ Mining App 是面向用户的挖矿移动应用,用户通过此 App 查看算
|
|||
**主要功能:**
|
||||
- 贡献值展示(个人贡献值、团队贡献值)
|
||||
- 积分股挖矿收益实时显示
|
||||
- 买卖兑换功能(积分股 ↔ 绿积分)
|
||||
- 买卖兑换功能(积分股 ↔ 积分值)
|
||||
- K线图与价格显示
|
||||
- 资产展示
|
||||
- 个人中心
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
|
|||
class MarketOverview extends Equatable {
|
||||
/// 当前价格
|
||||
final String price;
|
||||
/// 绿积分池
|
||||
/// 积分值池
|
||||
final String greenPoints;
|
||||
/// 黑洞销毁量
|
||||
final String blackHoleAmount;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
|
|||
class PriceInfo extends Equatable {
|
||||
/// 当前价格
|
||||
final String price;
|
||||
/// 绿积分池
|
||||
/// 积分值池
|
||||
final String greenPoints;
|
||||
/// 黑洞销毁量
|
||||
final String blackHoleAmount;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class TradingAccount extends Equatable {
|
|||
final String accountSequence;
|
||||
/// 积分股余额
|
||||
final String shareBalance;
|
||||
/// 现金余额(绿积分)
|
||||
/// 现金余额(积分值)
|
||||
final String cashBalance;
|
||||
/// 可用积分股
|
||||
final String availableShares;
|
||||
|
|
|
|||
|
|
@ -376,12 +376,12 @@ class AssetPage extends ConsumerWidget {
|
|||
growthText: asset != null ? '每秒 +${formatDecimal(asset.assetGrowthPerSecond, 8)}' : null,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
// 绿积分(现金余额)
|
||||
// 积分值(现金余额)
|
||||
_buildAssetItem(
|
||||
icon: Icons.eco,
|
||||
iconColor: _green,
|
||||
iconBgColor: _feta,
|
||||
title: '绿积分',
|
||||
title: '积分值',
|
||||
amount: asset?.cashBalance,
|
||||
isLoading: isLoading,
|
||||
valueInCny: asset != null ? '¥${formatAmount(asset.cashBalance)}' : null,
|
||||
|
|
@ -688,10 +688,10 @@ class AssetPage extends ConsumerWidget {
|
|||
_buildAccountItem(
|
||||
icon: Icons.account_balance_wallet,
|
||||
iconColor: _orange,
|
||||
title: '可用绿积分',
|
||||
title: '可用积分值',
|
||||
balance: asset?.availableCash,
|
||||
isLoading: isLoading,
|
||||
unit: '绿积分',
|
||||
unit: '积分值',
|
||||
status: '可交易',
|
||||
statusColor: _green,
|
||||
statusBgColor: _feta,
|
||||
|
|
@ -701,10 +701,10 @@ class AssetPage extends ConsumerWidget {
|
|||
_buildAccountItem(
|
||||
icon: Icons.lock_outline,
|
||||
iconColor: _orange,
|
||||
title: '冻结绿积分',
|
||||
title: '冻结积分值',
|
||||
balance: asset?.frozenCash,
|
||||
isLoading: isLoading,
|
||||
unit: '绿积分',
|
||||
unit: '积分值',
|
||||
status: '挂单中',
|
||||
statusColor: const Color(0xFF9CA3AF),
|
||||
statusBgColor: Colors.white,
|
||||
|
|
|
|||
|
|
@ -181,9 +181,9 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
),
|
||||
),
|
||||
DataText(
|
||||
data: priceInfo != null ? '= ${formatCompact(greenPoints)} 绿积分' : null,
|
||||
data: priceInfo != null ? '= ${formatCompact(greenPoints)} 积分值' : null,
|
||||
isLoading: isLoading,
|
||||
placeholder: '= -- 绿积分',
|
||||
placeholder: '= -- 积分值',
|
||||
style: const TextStyle(fontSize: 12, color: _grayText),
|
||||
),
|
||||
],
|
||||
|
|
@ -385,7 +385,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
Row(
|
||||
children: [
|
||||
_buildMarketDataItem(
|
||||
'绿积分池',
|
||||
'积分值池',
|
||||
market != null ? formatCompact(market.greenPoints) : null,
|
||||
_orange,
|
||||
isLoading,
|
||||
|
|
@ -506,7 +506,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
),
|
||||
const SizedBox(height: 24),
|
||||
// 价格输入
|
||||
_buildInputField('价格', _priceController, '请输入价格', '绿积分'),
|
||||
_buildInputField('价格', _priceController, '请输入价格', '积分值'),
|
||||
const SizedBox(height: 16),
|
||||
// 数量输入
|
||||
_buildInputField('数量', _quantityController, '请输入数量', '积分股'),
|
||||
|
|
@ -643,16 +643,16 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
final total = price * quantity;
|
||||
|
||||
if (total == 0) {
|
||||
return '0.00 绿积分';
|
||||
return '0.00 积分值';
|
||||
}
|
||||
|
||||
if (_selectedTab == 1) {
|
||||
// 卖出时扣除10%销毁
|
||||
final afterBurn = total * 0.9;
|
||||
return '${formatAmount(afterBurn.toString())} 绿积分';
|
||||
return '${formatAmount(afterBurn.toString())} 积分值';
|
||||
}
|
||||
|
||||
return '${formatAmount(total.toString())} 绿积分';
|
||||
return '${formatAmount(total.toString())} 积分值';
|
||||
}
|
||||
|
||||
Widget _buildMyOrdersCard(AsyncValue<OrdersPageModel?> ordersAsync) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue