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:
parent
dc42565ab8
commit
7b25ffd4dd
|
|
@ -238,7 +238,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
|
|||
// 标题
|
||||
const Expanded(
|
||||
child: Text(
|
||||
'充值 积分',
|
||||
'充值 绿积分',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -263,7 +263,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
|
|||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
child: Text(
|
||||
'可用余额: $_balance 积分',
|
||||
'可用余额: $_balance 绿积分',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -577,7 +577,7 @@ class _DepositUsdtPageState extends ConsumerState<DepositUsdtPage> {
|
|||
return Container(
|
||||
padding: const EdgeInsets.fromLTRB(20, 16, 20, 48),
|
||||
child: Text(
|
||||
'仅支持 积分,错充将无法追回',
|
||||
'仅支持 绿积分,错充将无法追回',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontFamily: 'Inter',
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ class _PlantingQuantityPageState extends ConsumerState<PlantingQuantityPage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'可用余额 (积分)',
|
||||
'可用余额 (绿积分)',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -651,7 +651,7 @@ class _PlantingQuantityPageState extends ConsumerState<PlantingQuantityPage> {
|
|||
children: [
|
||||
// 每棵价格
|
||||
Text(
|
||||
'每棵价格:${_pricePerTree.toInt()} 积分',
|
||||
'每棵价格:${_pricePerTree.toInt()} 绿积分',
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
|
|||
|
|
@ -877,7 +877,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
builder: (dialogContext) => AlertDialog(
|
||||
title: const Text('确认领取'),
|
||||
content: Text(
|
||||
'确定领取全部收益吗?\n积分: ${_formatNumber(_pendingUsdt)}\n算力: ${_formatNumber(_pendingPower)}',
|
||||
'确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n算力: ${_formatNumber(_pendingPower)}',
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
|
@ -1595,7 +1595,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
initialTarget: _authCityCompanyInitialTarget,
|
||||
monthlyTarget: _authCityCompanyMonthlyTarget,
|
||||
monthIndex: _authCityCompanyMonthIndex,
|
||||
rewardDescription: '每新增认种 1 棵可获得 40 积分',
|
||||
rewardDescription: '每新增认种 1 棵可获得 40 绿积分',
|
||||
),
|
||||
],
|
||||
// 省团队权益考核
|
||||
|
|
@ -1609,7 +1609,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
initialTarget: _authProvinceCompanyInitialTarget,
|
||||
monthlyTarget: _authProvinceCompanyMonthlyTarget,
|
||||
monthIndex: _authProvinceCompanyMonthIndex,
|
||||
rewardDescription: '每新增认种 1 棵可获得 20 积分',
|
||||
rewardDescription: '每新增认种 1 棵可获得 20 绿积分',
|
||||
),
|
||||
],
|
||||
// 市区域权益考核
|
||||
|
|
@ -1623,7 +1623,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
initialTarget: _cityCompanyInitialTarget,
|
||||
monthlyTarget: _cityCompanyMonthlyTarget,
|
||||
monthIndex: _cityCompanyMonthIndex,
|
||||
rewardDescription: '每新增认种 1 棵可获得 35 积分',
|
||||
rewardDescription: '每新增认种 1 棵可获得 35 绿积分',
|
||||
),
|
||||
],
|
||||
// 省区域权益考核
|
||||
|
|
@ -1637,7 +1637,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
initialTarget: _provinceCompanyInitialTarget,
|
||||
monthlyTarget: _provinceCompanyMonthlyTarget,
|
||||
monthIndex: _provinceCompanyMonthIndex,
|
||||
rewardDescription: '每新增认种 1 棵可获得 15 积分',
|
||||
rewardDescription: '每新增认种 1 棵可获得 15 绿积分',
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 16),
|
||||
|
|
@ -1761,7 +1761,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'待领取 (积分)',
|
||||
'待领取 (绿积分)',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -1847,13 +1847,13 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
// 构建金额显示文本
|
||||
final List<String> amountParts = [];
|
||||
if (item.usdtAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 积分');
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||
}
|
||||
if (item.hashpowerAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
|
||||
}
|
||||
// 如果都为0,显示默认文本
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分';
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
|
|
@ -1953,7 +1953,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'可结算 (积分)',
|
||||
'可结算 (绿积分)',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -1998,7 +1998,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'已结算 (积分)',
|
||||
'已结算 (绿积分)',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -2054,12 +2054,12 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
// 构建金额显示文本
|
||||
final List<String> amountParts = [];
|
||||
if (item.usdtAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 积分');
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||
}
|
||||
if (item.hashpowerAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
|
||||
}
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分';
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
|
|
@ -2158,7 +2158,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'已过期 (积分)',
|
||||
'已过期 (绿积分)',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -2238,12 +2238,12 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
// 构建金额显示文本
|
||||
final List<String> amountParts = [];
|
||||
if (item.usdtAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 积分');
|
||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||
}
|
||||
if (item.hashpowerAmount > 0) {
|
||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力');
|
||||
}
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 积分';
|
||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
|
|
@ -2325,7 +2325,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
),
|
||||
child: const Center(
|
||||
child: Text(
|
||||
'充值积分',
|
||||
'充值绿积分',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -2351,7 +2351,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
// ),
|
||||
// child: const Center(
|
||||
// child: Text(
|
||||
// '进入交易 (卖出 DST → 积分)',
|
||||
// '进入交易 (卖出 DST → 绿积分)',
|
||||
// style: TextStyle(
|
||||
// fontSize: 16,
|
||||
// fontFamily: 'Inter',
|
||||
|
|
@ -2888,7 +2888,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
Expanded(
|
||||
child: Text(
|
||||
_communityBenefitActive
|
||||
? '每新增认种 1 棵可获得 80 积分'
|
||||
? '每新增认种 1 棵可获得 80 绿积分'
|
||||
: '需团队认种达到 $_communityInitialTarget 棵激活',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
builder: (context) => AlertDialog(
|
||||
title: const Text('确认结算'),
|
||||
content: Text(
|
||||
'确定将 ${_formatNumber(_settleableAmount)} 积分 结算为 ${_getCurrencyName(_selectedCurrency)} 吗?',
|
||||
'确定将 ${_formatNumber(_settleableAmount)} 绿积分 结算为 ${_getCurrencyName(_selectedCurrency)} 吗?',
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
|
@ -169,7 +169,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
builder: (context) => AlertDialog(
|
||||
title: const Text('卖出 DST'),
|
||||
content: Text(
|
||||
'确定将 ${_formatNumber(_dstBalance)} DST 转换为 积分 吗?',
|
||||
'确定将 ${_formatNumber(_dstBalance)} DST 转换为 绿积分 吗?',
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
|
@ -330,7 +330,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
),
|
||||
)
|
||||
: Text(
|
||||
'${_formatNumber(_settleableAmount)} 积分',
|
||||
'${_formatNumber(_settleableAmount)} 绿积分',
|
||||
style: const TextStyle(
|
||||
fontSize: 32,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -482,7 +482,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
),
|
||||
child: const Center(
|
||||
child: Text(
|
||||
'卖出 DST 转换为 积分(暂未开放)',
|
||||
'卖出 DST 转换为 绿积分(暂未开放)',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -592,7 +592,7 @@ class _TradingPageState extends ConsumerState<TradingPage> {
|
|||
),
|
||||
)
|
||||
: Text(
|
||||
'积分 余额: ${_formatNumber(_usdtBalance)}',
|
||||
'绿积分 余额: ${_formatNumber(_usdtBalance)}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
|
|||
|
|
@ -355,13 +355,13 @@ class _WithdrawConfirmPageState extends ConsumerState<WithdrawConfirmPage> {
|
|||
const SizedBox(height: 12),
|
||||
_buildDetailRow('接收地址', _formatAddress(widget.params.address)),
|
||||
const SizedBox(height: 12),
|
||||
_buildDetailRow('提取数量', '${widget.params.amount.toStringAsFixed(2)} 积分'),
|
||||
_buildDetailRow('提取数量', '${widget.params.amount.toStringAsFixed(2)} 绿积分'),
|
||||
const SizedBox(height: 12),
|
||||
_buildDetailRow('手续费', '${fee.toStringAsFixed(2)} 积分'),
|
||||
_buildDetailRow('手续费', '${fee.toStringAsFixed(2)} 绿积分'),
|
||||
const Divider(color: Color(0x33D4AF37), height: 24),
|
||||
_buildDetailRow(
|
||||
'实际到账',
|
||||
'${actual.toStringAsFixed(2)} 积分',
|
||||
'${actual.toStringAsFixed(2)} 绿积分',
|
||||
isHighlight: true,
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
|
||||
// 验证金额
|
||||
if (amountText.isEmpty) {
|
||||
_showErrorSnackBar('请输入积分数量');
|
||||
_showErrorSnackBar('请输入绿积分数量');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
}
|
||||
|
||||
if (amount < _minAmount) {
|
||||
_showErrorSnackBar('最小提取数量为 $_minAmount 积分');
|
||||
_showErrorSnackBar('最小提取数量为 $_minAmount 绿积分');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -365,7 +365,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
// 标题
|
||||
const Expanded(
|
||||
child: Text(
|
||||
'提取积分',
|
||||
'提取绿积分',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -426,7 +426,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
const Padding(
|
||||
padding: EdgeInsets.only(bottom: 4),
|
||||
child: Text(
|
||||
'积分',
|
||||
'绿积分',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -579,7 +579,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
decoration: InputDecoration(
|
||||
contentPadding: const EdgeInsets.all(16),
|
||||
border: InputBorder.none,
|
||||
hintText: '请输入接收积分的地址',
|
||||
hintText: '请输入接收绿积分的地址',
|
||||
hintStyle: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -610,7 +610,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'积分提取数量',
|
||||
'绿积分提取数量',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -667,14 +667,14 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
decoration: const InputDecoration(
|
||||
contentPadding: EdgeInsets.all(16),
|
||||
border: InputBorder.none,
|
||||
hintText: '请输入积分数量',
|
||||
hintText: '请输入绿积分数量',
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
height: 1.4,
|
||||
color: Color(0x995D4037),
|
||||
),
|
||||
suffixText: '积分',
|
||||
suffixText: '绿积分',
|
||||
suffixStyle: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -686,7 +686,7 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'最小提取数量: $_minAmount 积分',
|
||||
'最小提取数量: $_minAmount 绿积分',
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -717,11 +717,11 @@ class _WithdrawUsdtPageState extends ConsumerState<WithdrawUsdtPage> {
|
|||
children: [
|
||||
_buildFeeRow('手续费率', '${(_feeRate * 100).toStringAsFixed(1)}%'),
|
||||
const SizedBox(height: 8),
|
||||
_buildFeeRow('手续费', '${fee.toStringAsFixed(2)} 积分'),
|
||||
_buildFeeRow('手续费', '${fee.toStringAsFixed(2)} 绿积分'),
|
||||
const Divider(color: Color(0x33D4AF37), height: 24),
|
||||
_buildFeeRow(
|
||||
'预计到账',
|
||||
'${actual > 0 ? actual.toStringAsFixed(2) : '0.00'} 积分',
|
||||
'${actual > 0 ? actual.toStringAsFixed(2) : '0.00'} 绿积分',
|
||||
isHighlight: true,
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue