fix(mobile-app): 修复待签署合同页和持仓页硬编码"5份"的问题
预种方案已从5份/棵调整为10份/棵,但以下两处文案仍硬编码为5:
1. 待签署合同页 (pending_contracts_page.dart)
- 原: "5 份预种份额已合并,请签署合同以开启挖矿"
- 改: "{订单数} 笔预种订单已合并为 {树数} 棵树,请签署合同以开启挖矿"
- 使用 merge.sourceOrderNos.length 和 merge.treeCount 动态显示
2. 持仓页空状态 (pre_planting_position_page.dart)
- 原: "累计 5 份后将自动合成 1 棵树"
- 改: "累计 $_portionsPerTree 份后将自动合成 1 棵树"
- 使用已有常量 _portionsPerTree=10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
55f81ff329
commit
2f78899ceb
|
|
@ -417,7 +417,7 @@ class _PendingContractsPageState extends ConsumerState<PendingContractsPage> {
|
||||||
color: const Color(0xFFE8F5E9),
|
color: const Color(0xFFE8F5E9),
|
||||||
icon: Icons.park_outlined,
|
icon: Icons.park_outlined,
|
||||||
iconColor: const Color(0xFF4CAF50),
|
iconColor: const Color(0xFF4CAF50),
|
||||||
text: '5 份预种份额已合并,请签署合同以开启挖矿',
|
text: '${merge.sourceOrderNos.length} 笔预种订单已合并为 ${merge.treeCount} 棵树,请签署合同以开启挖矿',
|
||||||
textColor: const Color(0xFF2E7D32),
|
textColor: const Color(0xFF2E7D32),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
|
||||||
|
|
@ -501,7 +501,7 @@ class _PrePlantingPositionPageState
|
||||||
/// 合并记录列表
|
/// 合并记录列表
|
||||||
Widget _buildMergesList() {
|
Widget _buildMergesList() {
|
||||||
if (_merges.isEmpty) {
|
if (_merges.isEmpty) {
|
||||||
return _buildEmptyState('暂无合并记录', '累计 5 份后将自动合成 1 棵树');
|
return _buildEmptyState('暂无合并记录', '累计 $_portionsPerTree 份后将自动合成 1 棵树');
|
||||||
}
|
}
|
||||||
|
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue