feat(ui): 将全部"积分"更名为"绿积分"

更新以下页面中的"积分"显示文本为"绿积分":
- 充值页面 (deposit_usdt_page.dart)
- 提取页面 (withdraw_usdt_page.dart, withdraw_confirm_page.dart)
- 个人中心页面 (profile_page.dart)
- 认种数量页面 (planting_quantity_page.dart)
- 交易页面 (trading_page.dart)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-16 07:49:45 -08:00
parent dc42565ab8
commit 7b25ffd4dd
6 changed files with 42 additions and 42 deletions

View File

@ -238,7 +238,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
// //
const Expanded( const Expanded(
child: Text( child: Text(
'充值 积分', '充值 绿积分',
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -263,7 +263,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
width: double.infinity, width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text( child: Text(
'可用余额: $_balance 积分', '可用余额: $_balance 绿积分',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -577,7 +577,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
return Container( return Container(
padding: const EdgeInsets.fromLTRB(20, 16, 20, 48), padding: const EdgeInsets.fromLTRB(20, 16, 20, 48),
child: Text( child: Text(
'仅支持 积分,错充将无法追回', '仅支持 绿积分,错充将无法追回',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontFamily: 'Inter', fontFamily: 'Inter',

View File

@ -358,7 +358,7 @@ class _PlantingQuantityPageState extends ConsumerState<PlantingQuantityPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Text( const Text(
'可用余额 (积分)', '可用余额 (绿积分)',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -651,7 +651,7 @@ class _PlantingQuantityPageState extends ConsumerState<PlantingQuantityPage> {
children: [ children: [
// //
Text( Text(
'每棵价格:${_pricePerTree.toInt()} 积分', '每棵价格:${_pricePerTree.toInt()} 绿积分',
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',

View File

@ -877,7 +877,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
builder: (dialogContext) => AlertDialog( builder: (dialogContext) => AlertDialog(
title: const Text('确认领取'), title: const Text('确认领取'),
content: Text( content: Text(
'确定领取全部收益吗?\n积分: ${_formatNumber(_pendingUsdt)}\n算力: ${_formatNumber(_pendingPower)}', '确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n算力: ${_formatNumber(_pendingPower)}',
), ),
actions: [ actions: [
TextButton( TextButton(
@ -1595,7 +1595,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
initialTarget: _authCityCompanyInitialTarget, initialTarget: _authCityCompanyInitialTarget,
monthlyTarget: _authCityCompanyMonthlyTarget, monthlyTarget: _authCityCompanyMonthlyTarget,
monthIndex: _authCityCompanyMonthIndex, monthIndex: _authCityCompanyMonthIndex,
rewardDescription: '每新增认种 1 棵可获得 40 积分', rewardDescription: '每新增认种 1 棵可获得 40 绿积分',
), ),
], ],
// //
@ -1609,7 +1609,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
initialTarget: _authProvinceCompanyInitialTarget, initialTarget: _authProvinceCompanyInitialTarget,
monthlyTarget: _authProvinceCompanyMonthlyTarget, monthlyTarget: _authProvinceCompanyMonthlyTarget,
monthIndex: _authProvinceCompanyMonthIndex, monthIndex: _authProvinceCompanyMonthIndex,
rewardDescription: '每新增认种 1 棵可获得 20 积分', rewardDescription: '每新增认种 1 棵可获得 20 绿积分',
), ),
], ],
// //
@ -1623,7 +1623,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
initialTarget: _cityCompanyInitialTarget, initialTarget: _cityCompanyInitialTarget,
monthlyTarget: _cityCompanyMonthlyTarget, monthlyTarget: _cityCompanyMonthlyTarget,
monthIndex: _cityCompanyMonthIndex, monthIndex: _cityCompanyMonthIndex,
rewardDescription: '每新增认种 1 棵可获得 35 积分', rewardDescription: '每新增认种 1 棵可获得 35 绿积分',
), ),
], ],
// //
@ -1637,7 +1637,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
initialTarget: _provinceCompanyInitialTarget, initialTarget: _provinceCompanyInitialTarget,
monthlyTarget: _provinceCompanyMonthlyTarget, monthlyTarget: _provinceCompanyMonthlyTarget,
monthIndex: _provinceCompanyMonthIndex, monthIndex: _provinceCompanyMonthIndex,
rewardDescription: '每新增认种 1 棵可获得 15 积分', rewardDescription: '每新增认种 1 棵可获得 15 绿积分',
), ),
], ],
const SizedBox(height: 16), const SizedBox(height: 16),
@ -1761,7 +1761,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( const Text(
'待领取 (积分)', '待领取 (绿积分)',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -1847,13 +1847,13 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
// //
final List<String> amountParts = []; final List<String> amountParts = [];
if (item.usdtAmount > 0) { if (item.usdtAmount > 0) {
amountParts.add('${_formatNumber(item.usdtAmount)} 积分'); amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
} }
if (item.hashpowerAmount > 0) { if (item.hashpowerAmount > 0) {
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
} }
// 0 // 0
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分'; final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
return Container( return Container(
margin: const EdgeInsets.only(bottom: 8), margin: const EdgeInsets.only(bottom: 8),
@ -1953,7 +1953,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( const Text(
'可结算 (积分)', '可结算 (绿积分)',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -1998,7 +1998,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Text( const Text(
'已结算 (积分)', '已结算 (绿积分)',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -2054,12 +2054,12 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
// //
final List<String> amountParts = []; final List<String> amountParts = [];
if (item.usdtAmount > 0) { if (item.usdtAmount > 0) {
amountParts.add('${_formatNumber(item.usdtAmount)} 积分'); amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
} }
if (item.hashpowerAmount > 0) { if (item.hashpowerAmount > 0) {
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
} }
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分'; final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
return Container( return Container(
margin: const EdgeInsets.only(bottom: 8), margin: const EdgeInsets.only(bottom: 8),
@ -2158,7 +2158,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( const Text(
'已过期 (积分)', '已过期 (绿积分)',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -2238,12 +2238,12 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
// //
final List<String> amountParts = []; final List<String> amountParts = [];
if (item.usdtAmount > 0) { if (item.usdtAmount > 0) {
amountParts.add('${_formatNumber(item.usdtAmount)} 积分'); amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
} }
if (item.hashpowerAmount > 0) { if (item.hashpowerAmount > 0) {
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
} }
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分'; final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
return Container( return Container(
margin: const EdgeInsets.only(bottom: 8), margin: const EdgeInsets.only(bottom: 8),
@ -2325,7 +2325,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
), ),
child: const Center( child: const Center(
child: Text( child: Text(
'充值积分', '充值绿积分',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -2351,7 +2351,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
// ), // ),
// child: const Center( // child: const Center(
// child: Text( // child: Text(
// '进入交易 (卖出 DST → 积分)', // '进入交易 (卖出 DST → 绿积分)',
// style: TextStyle( // style: TextStyle(
// fontSize: 16, // fontSize: 16,
// fontFamily: 'Inter', // fontFamily: 'Inter',
@ -2888,7 +2888,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
Expanded( Expanded(
child: Text( child: Text(
_communityBenefitActive _communityBenefitActive
? '每新增认种 1 棵可获得 80 积分' ? '每新增认种 1 棵可获得 80 绿积分'
: '需团队认种达到 $_communityInitialTarget 棵激活', : '需团队认种达到 $_communityInitialTarget 棵激活',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,

View File

@ -93,7 +93,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
builder: (context) => AlertDialog( builder: (context) => AlertDialog(
title: const Text('确认结算'), title: const Text('确认结算'),
content: Text( content: Text(
'确定将 ${_formatNumber(_settleableAmount)} 积分 结算为 ${_getCurrencyName(_selectedCurrency)} 吗?', '确定将 ${_formatNumber(_settleableAmount)} 绿积分 结算为 ${_getCurrencyName(_selectedCurrency)} 吗?',
), ),
actions: [ actions: [
TextButton( TextButton(
@ -169,7 +169,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
builder: (context) => AlertDialog( builder: (context) => AlertDialog(
title: const Text('卖出 DST'), title: const Text('卖出 DST'),
content: Text( content: Text(
'确定将 ${_formatNumber(_dstBalance)} DST 转换为 积分 吗?', '确定将 ${_formatNumber(_dstBalance)} DST 转换为 绿积分 吗?',
), ),
actions: [ actions: [
TextButton( TextButton(
@ -330,7 +330,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
), ),
) )
: Text( : Text(
'${_formatNumber(_settleableAmount)} 积分', '${_formatNumber(_settleableAmount)} 绿积分',
style: const TextStyle( style: const TextStyle(
fontSize: 32, fontSize: 32,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -482,7 +482,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
), ),
child: const Center( child: const Center(
child: Text( child: Text(
'卖出 DST 转换为 积分(暂未开放)', '卖出 DST 转换为 绿积分(暂未开放)',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -592,7 +592,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
), ),
) )
: Text( : Text(
'积分 余额: ${_formatNumber(_usdtBalance)}', '绿积分 余额: ${_formatNumber(_usdtBalance)}',
style: const TextStyle( style: const TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',

View File

@ -355,13 +355,13 @@ class _WithdrawConfirmPageState extends ConsumerState<WithdrawConfirmPage> {
const SizedBox(height: 12), const SizedBox(height: 12),
_buildDetailRow('接收地址', _formatAddress(widget.params.address)), _buildDetailRow('接收地址', _formatAddress(widget.params.address)),
const SizedBox(height: 12), const SizedBox(height: 12),
_buildDetailRow('提取数量', '${widget.params.amount.toStringAsFixed(2)} 积分'), _buildDetailRow('提取数量', '${widget.params.amount.toStringAsFixed(2)} 绿积分'),
const SizedBox(height: 12), const SizedBox(height: 12),
_buildDetailRow('手续费', '${fee.toStringAsFixed(2)} 积分'), _buildDetailRow('手续费', '${fee.toStringAsFixed(2)} 绿积分'),
const Divider(color: Color(0x33D4AF37), height: 24), const Divider(color: Color(0x33D4AF37), height: 24),
_buildDetailRow( _buildDetailRow(
'实际到账', '实际到账',
'${actual.toStringAsFixed(2)} 积分', '${actual.toStringAsFixed(2)} 绿积分',
isHighlight: true, isHighlight: true,
), ),
], ],

View File

@ -143,7 +143,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
// //
if (amountText.isEmpty) { if (amountText.isEmpty) {
_showErrorSnackBar('请输入积分数量'); _showErrorSnackBar('请输入绿积分数量');
return; return;
} }
@ -154,7 +154,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
} }
if (amount < _minAmount) { if (amount < _minAmount) {
_showErrorSnackBar('最小提取数量为 $_minAmount 积分'); _showErrorSnackBar('最小提取数量为 $_minAmount 绿积分');
return; return;
} }
@ -365,7 +365,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
// //
const Expanded( const Expanded(
child: Text( child: Text(
'提取积分', '提取绿积分',
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -426,7 +426,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
const Padding( const Padding(
padding: EdgeInsets.only(bottom: 4), padding: EdgeInsets.only(bottom: 4),
child: Text( child: Text(
'积分', '绿积分',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -579,7 +579,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: const EdgeInsets.all(16), contentPadding: const EdgeInsets.all(16),
border: InputBorder.none, border: InputBorder.none,
hintText: '请输入接收积分的地址', hintText: '请输入接收绿积分的地址',
hintStyle: const TextStyle( hintStyle: const TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -610,7 +610,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Text( const Text(
'积分提取数量', '绿积分提取数量',
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -667,14 +667,14 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
decoration: const InputDecoration( decoration: const InputDecoration(
contentPadding: EdgeInsets.all(16), contentPadding: EdgeInsets.all(16),
border: InputBorder.none, border: InputBorder.none,
hintText: '请输入积分数量', hintText: '请输入绿积分数量',
hintStyle: TextStyle( hintStyle: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
height: 1.4, height: 1.4,
color: Color(0x995D4037), color: Color(0x995D4037),
), ),
suffixText: '积分', suffixText: '绿积分',
suffixStyle: TextStyle( suffixStyle: TextStyle(
fontSize: 16, fontSize: 16,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -686,7 +686,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'最小提取数量: $_minAmount 积分', '最小提取数量: $_minAmount 绿积分',
style: const TextStyle( style: const TextStyle(
fontSize: 12, fontSize: 12,
fontFamily: 'Inter', fontFamily: 'Inter',
@ -717,11 +717,11 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
children: [ children: [
_buildFeeRow('手续费率', '${(_feeRate * 100).toStringAsFixed(1)}%'), _buildFeeRow('手续费率', '${(_feeRate * 100).toStringAsFixed(1)}%'),
const SizedBox(height: 8), const SizedBox(height: 8),
_buildFeeRow('手续费', '${fee.toStringAsFixed(2)} 积分'), _buildFeeRow('手续费', '${fee.toStringAsFixed(2)} 绿积分'),
const Divider(color: Color(0x33D4AF37), height: 24), const Divider(color: Color(0x33D4AF37), height: 24),
_buildFeeRow( _buildFeeRow(
'预计到账', '预计到账',
'${actual > 0 ? actual.toStringAsFixed(2) : '0.00'} 积分', '${actual > 0 ? actual.toStringAsFixed(2) : '0.00'} 绿积分',
isHighlight: true, isHighlight: true,
), ),
], ],