From 59999031eb441e0d9a4289a4854e06e7d4349fcb Mon Sep 17 00:00:00 2001 From: clz Date: Tue, 28 Jul 2026 12:19:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(ai-pick):=20=E4=B8=8D=E8=B6=B33=E6=9D=A1?= =?UTF-8?q?=E6=97=B6=E8=A1=A8=E6=A0=BC=E9=AB=98=E5=BA=A6=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=9B=BA=E5=AE=9Aheight?= =?UTF-8?q?=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/ai-pick/AiPickMock.ets | 19 ++++++------------- .../main/ets/ai-pick/AiPickNodeComponent.ets | 2 -- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/entry/src/main/ets/ai-pick/AiPickMock.ets b/entry/src/main/ets/ai-pick/AiPickMock.ets index a21ac5e..d3214e1 100644 --- a/entry/src/main/ets/ai-pick/AiPickMock.ets +++ b/entry/src/main/ets/ai-pick/AiPickMock.ets @@ -40,32 +40,29 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [ }, }, - // ── Tab 2:系统周期策略(type = 'system_period')────────────────── + // ── Tab 2:只有1条数据的系统策略 ────────────────── { type: 'system_period', system_strategy: { system_strategy: { id: 'strat_002', strategy_name: '黑色系超跌反弹', - content: '铁矿石、螺纹钢跌幅已达技术支撑位,RSI 超卖信号显现', + content: '铁矿石跌幅已达技术支撑位,RSI 超卖信号显现', strategy_type: 'system_period', tag_list: ['反弹', '黑色系', '超卖'], white_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828556_3492.png', black_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828547_6904.png', }, - detail_count: 3, + detail_count: 1, detail_list: [ { contract: 'RB2510', market: '70', contract_name: '螺纹钢2510', main_contract_type: '1' }, - { contract: 'I2509', market: '70', contract_name: '铁矿石2509', main_contract_type: '1' }, - { contract: 'HC2510', market: '70', contract_name: '热卷2510', main_contract_type: '0' }, ], - // 系统策略无自定义 DOUBLE 字段 field_list: [], origin_result_list: [], }, }, - // ── Tab 3:自定义策略(type = 'custom_strategy')────────────────── + // ── Tab 3:只有2条数据的自定义策略 ────────────────── { type: 'custom_strategy', custom_strategy: { @@ -76,12 +73,10 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [ strategy_type: 'custom_strategy', tag_list: ['季节性', '农产品'], }, - detail_count: 4, + detail_count: 2, detail_list: [ { contract: 'M2509', market: '70', contract_name: '豆粕2509', main_contract_type: '1' }, - { contract: 'RM2509', market: '70', contract_name: '菜粕2509', main_contract_type: '1' }, - { contract: 'Y2509', market: '70', contract_name: '豆油2509', main_contract_type: '1' }, - { contract: 'OI2509', market: '70', contract_name: '菜油2509', main_contract_type: '1' }, + { contract: 'RM2509', market: '70', contract_name: '菜粕2509', main_contract_type: '0' }, ], field_list: [ { key: '成交量', type: 'DOUBLE', unit: '手' }, @@ -90,8 +85,6 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [ origin_result_list: [ { '成交量': 986000, '持仓量': 3102000 }, { '成交量': 324000, '持仓量': 1258000 }, - { '成交量': 189000, '持仓量': 683000 }, - { '成交量': 142000, '持仓量': 521000 }, ], }, }, diff --git a/entry/src/main/ets/ai-pick/AiPickNodeComponent.ets b/entry/src/main/ets/ai-pick/AiPickNodeComponent.ets index efd2495..e50c713 100644 --- a/entry/src/main/ets/ai-pick/AiPickNodeComponent.ets +++ b/entry/src/main/ets/ai-pick/AiPickNodeComponent.ets @@ -598,7 +598,6 @@ export struct AiPickNodeComponent { ) } .width('100%') - .height(175) } // ── 一句话定制策略 ────────────────────────────────────── @@ -621,7 +620,6 @@ export struct AiPickNodeComponent { }) } .width('100%') - .height(369) } @Builder