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线图与价格显示
|
- K线图与价格显示
|
||||||
- 资产展示
|
- 资产展示
|
||||||
- 个人中心
|
- 个人中心
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
|
||||||
class MarketOverview extends Equatable {
|
class MarketOverview extends Equatable {
|
||||||
/// 当前价格
|
/// 当前价格
|
||||||
final String price;
|
final String price;
|
||||||
/// 绿积分池
|
/// 积分值池
|
||||||
final String greenPoints;
|
final String greenPoints;
|
||||||
/// 黑洞销毁量
|
/// 黑洞销毁量
|
||||||
final String blackHoleAmount;
|
final String blackHoleAmount;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
|
||||||
class PriceInfo extends Equatable {
|
class PriceInfo extends Equatable {
|
||||||
/// 当前价格
|
/// 当前价格
|
||||||
final String price;
|
final String price;
|
||||||
/// 绿积分池
|
/// 积分值池
|
||||||
final String greenPoints;
|
final String greenPoints;
|
||||||
/// 黑洞销毁量
|
/// 黑洞销毁量
|
||||||
final String blackHoleAmount;
|
final String blackHoleAmount;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ class TradingAccount extends Equatable {
|
||||||
final String accountSequence;
|
final String accountSequence;
|
||||||
/// 积分股余额
|
/// 积分股余额
|
||||||
final String shareBalance;
|
final String shareBalance;
|
||||||
/// 现金余额(绿积分)
|
/// 现金余额(积分值)
|
||||||
final String cashBalance;
|
final String cashBalance;
|
||||||
/// 可用积分股
|
/// 可用积分股
|
||||||
final String availableShares;
|
final String availableShares;
|
||||||
|
|
|
||||||
|
|
@ -376,12 +376,12 @@ class AssetPage extends ConsumerWidget {
|
||||||
growthText: asset != null ? '每秒 +${formatDecimal(asset.assetGrowthPerSecond, 8)}' : null,
|
growthText: asset != null ? '每秒 +${formatDecimal(asset.assetGrowthPerSecond, 8)}' : null,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
// 绿积分(现金余额)
|
// 积分值(现金余额)
|
||||||
_buildAssetItem(
|
_buildAssetItem(
|
||||||
icon: Icons.eco,
|
icon: Icons.eco,
|
||||||
iconColor: _green,
|
iconColor: _green,
|
||||||
iconBgColor: _feta,
|
iconBgColor: _feta,
|
||||||
title: '绿积分',
|
title: '积分值',
|
||||||
amount: asset?.cashBalance,
|
amount: asset?.cashBalance,
|
||||||
isLoading: isLoading,
|
isLoading: isLoading,
|
||||||
valueInCny: asset != null ? '¥${formatAmount(asset.cashBalance)}' : null,
|
valueInCny: asset != null ? '¥${formatAmount(asset.cashBalance)}' : null,
|
||||||
|
|
@ -688,10 +688,10 @@ class AssetPage extends ConsumerWidget {
|
||||||
_buildAccountItem(
|
_buildAccountItem(
|
||||||
icon: Icons.account_balance_wallet,
|
icon: Icons.account_balance_wallet,
|
||||||
iconColor: _orange,
|
iconColor: _orange,
|
||||||
title: '可用绿积分',
|
title: '可用积分值',
|
||||||
balance: asset?.availableCash,
|
balance: asset?.availableCash,
|
||||||
isLoading: isLoading,
|
isLoading: isLoading,
|
||||||
unit: '绿积分',
|
unit: '积分值',
|
||||||
status: '可交易',
|
status: '可交易',
|
||||||
statusColor: _green,
|
statusColor: _green,
|
||||||
statusBgColor: _feta,
|
statusBgColor: _feta,
|
||||||
|
|
@ -701,10 +701,10 @@ class AssetPage extends ConsumerWidget {
|
||||||
_buildAccountItem(
|
_buildAccountItem(
|
||||||
icon: Icons.lock_outline,
|
icon: Icons.lock_outline,
|
||||||
iconColor: _orange,
|
iconColor: _orange,
|
||||||
title: '冻结绿积分',
|
title: '冻结积分值',
|
||||||
balance: asset?.frozenCash,
|
balance: asset?.frozenCash,
|
||||||
isLoading: isLoading,
|
isLoading: isLoading,
|
||||||
unit: '绿积分',
|
unit: '积分值',
|
||||||
status: '挂单中',
|
status: '挂单中',
|
||||||
statusColor: const Color(0xFF9CA3AF),
|
statusColor: const Color(0xFF9CA3AF),
|
||||||
statusBgColor: Colors.white,
|
statusBgColor: Colors.white,
|
||||||
|
|
|
||||||
|
|
@ -181,9 +181,9 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
DataText(
|
DataText(
|
||||||
data: priceInfo != null ? '= ${formatCompact(greenPoints)} 绿积分' : null,
|
data: priceInfo != null ? '= ${formatCompact(greenPoints)} 积分值' : null,
|
||||||
isLoading: isLoading,
|
isLoading: isLoading,
|
||||||
placeholder: '= -- 绿积分',
|
placeholder: '= -- 积分值',
|
||||||
style: const TextStyle(fontSize: 12, color: _grayText),
|
style: const TextStyle(fontSize: 12, color: _grayText),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -385,7 +385,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
_buildMarketDataItem(
|
_buildMarketDataItem(
|
||||||
'绿积分池',
|
'积分值池',
|
||||||
market != null ? formatCompact(market.greenPoints) : null,
|
market != null ? formatCompact(market.greenPoints) : null,
|
||||||
_orange,
|
_orange,
|
||||||
isLoading,
|
isLoading,
|
||||||
|
|
@ -506,7 +506,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
// 价格输入
|
// 价格输入
|
||||||
_buildInputField('价格', _priceController, '请输入价格', '绿积分'),
|
_buildInputField('价格', _priceController, '请输入价格', '积分值'),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
// 数量输入
|
// 数量输入
|
||||||
_buildInputField('数量', _quantityController, '请输入数量', '积分股'),
|
_buildInputField('数量', _quantityController, '请输入数量', '积分股'),
|
||||||
|
|
@ -643,16 +643,16 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
||||||
final total = price * quantity;
|
final total = price * quantity;
|
||||||
|
|
||||||
if (total == 0) {
|
if (total == 0) {
|
||||||
return '0.00 绿积分';
|
return '0.00 积分值';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_selectedTab == 1) {
|
if (_selectedTab == 1) {
|
||||||
// 卖出时扣除10%销毁
|
// 卖出时扣除10%销毁
|
||||||
final afterBurn = total * 0.9;
|
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) {
|
Widget _buildMyOrdersCard(AsyncValue<OrdersPageModel?> ordersAsync) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue