|
|
@@ -13,46 +13,64 @@
|
|
|
<Control width="1" bkcolor="#FFD1D1D1"></Control>
|
|
|
|
|
|
<VerticalLayout name="aixuexi_page_paishe_layout" width="420" padding="0,0,0,0" bordercorner="10,10" bkcolor="#FFFFFFFF" autocalcwidth="true">
|
|
|
- <Label name="aixuexi_page_xuanzhong_food_name" text="当前选中商品:无" height="26" padding="10,10,10,10" textcolor="#FFFF0000" font="22"></Label>
|
|
|
+ <!-- 选中商品结果条:浅绿底 + 绿描边(hs_amtbar_r10 九宫格),文字改品牌绿 -->
|
|
|
+ <Label name="aixuexi_page_xuanzhong_food_name" text="当前选中商品:无" height="40" padding="10,10,10,0" endellipsis="true" bkimage="file='hs_amtbar_r10.png' corner='10,10,10,10'" textcolor="#FF2E9B5C" font="15" textpadding="12,0,12,0"></Label>
|
|
|
|
|
|
- <Label name="aixuexi_page_xuanzhong_food_name" wordbreak="true" height="40" padding="10,0,10,10" font="14" text="智铺子AI识别无需学习默认就能识别几百种常见的水果蔬菜,只需要对未正常识别的冷门商品或非水果蔬菜类商品进行学习。"></Label>
|
|
|
+ <!-- 说明文字:独立命名(原来与结果条复用同一个 name,FindSubControl 只能拿到第一个)+次级灰 -->
|
|
|
+ <Label name="aixuexi_page_food_tip" wordbreak="true" height="40" padding="10,8,10,0" font="13" textcolor="#FF5F6368" text="智铺子AI识别无需学习默认就能识别几百种常见的蔬菜水果,只需要对未正常识别的冷门商品或非水果蔬菜类商品进行学习。"></Label>
|
|
|
|
|
|
- <Control name="image" width="400" height="300" padding="10,0,10,0"></Control>
|
|
|
+ <!-- 摄像头预览:直角、无圆角、无描边 —— 视频本身由 StretchBlt 直写窗口 DC、本来就是直角,
|
|
|
+ 之前为了视觉圆角加的 float 遮罩层与 bordercorner 已按需求撤掉 -->
|
|
|
+ <Container name="aixuexi_page_preview" width="400" height="300" padding="10,12,10,0" bkcolor="#FFF0F1F3">
|
|
|
+ <Control name="image" width="400" height="300" float="true" pos="0,0,400,300" mouse="false"/>
|
|
|
+ </Container>
|
|
|
|
|
|
- <HorizontalLayout height="50" padding="0,20,0,0">
|
|
|
- <Control></Control>
|
|
|
- <Button name="aixuexi_page_paishe_btn" width="120" height="50" text="拍摄并学习" textcolor="#FFFFFFFF" normalimage="file='btn_green_zhengchang.png' corner='5,5,5,5'" hotimage="file='btn_green_xuanfu.png' corner='5,5,5,5'" pushedimage="file='btn_green_dianji.png' corner='5,5,5,5'" />
|
|
|
- <Button name="aixuexi_page_test_btn" width="120" height="50" padding="15,0,0,0" text="AI识别测试" textcolor="#FFFFFFFF" normalimage="file='btn_green_zhengchang.png' corner='5,5,5,5'" hotimage="file='btn_green_xuanfu.png' corner='5,5,5,5'" pushedimage="file='btn_green_dianji.png' corner='5,5,5,5'" />
|
|
|
- <Button name="aixuexi_page_caiji_btn" width="120" height="50" padding="15,0,0,0" text="采集图片" textcolor="#FFFFFFFF" normalimage="file='btn_green_zhengchang.png' corner='5,5,5,5'" hotimage="file='btn_green_xuanfu.png' corner='5,5,5,5'" pushedimage="file='btn_green_dianji.png' corner='5,5,5,5'" />
|
|
|
- <Control></Control>
|
|
|
+ <!-- 按钮行:左右 inset 10,与上方摄像头视频(内容区 400 宽,11..411)左右边界对齐;
|
|
|
+ 三枚等宽 126 + childpadding 11 → 126*3 + 11*2 = 400 严丝合缝;
|
|
|
+ 主按钮 corner 由 5 提到 8,与次按钮 / 点单页支付按钮(pay_scan_* corner 8)统一 -->
|
|
|
+ <HorizontalLayout height="50" padding="10,20,10,0" childpadding="11">
|
|
|
+ <Button name="aixuexi_page_paishe_btn" width="126" height="50" text="拍摄并学习" font="14" textcolor="#FFFFFFFF" normalimage="file='btn_green_zhengchang.png' corner='8,8,8,8'" hotimage="file='btn_green_xuanfu.png' corner='8,8,8,8'" pushedimage="file='btn_green_dianji.png' corner='8,8,8,8'" />
|
|
|
+ <Button name="aixuexi_page_test_btn" width="126" height="50" text="AI识别测试" font="14" textcolor="#FF5F6368" normalimage="file='btn_border_gray.png' corner='8,8,8,8'" hotimage="file='btn_border_gray_Hover.png' corner='8,8,8,8'" pushedimage="file='btn_border_gray_Click.png' corner='8,8,8,8'" />
|
|
|
+ <Button name="aixuexi_page_caiji_btn" width="126" height="50" text="采集图片" font="14" textcolor="#FF5F6368" normalimage="file='btn_border_gray.png' corner='8,8,8,8'" hotimage="file='btn_border_gray_Hover.png' corner='8,8,8,8'" pushedimage="file='btn_border_gray_Click.png' corner='8,8,8,8'" />
|
|
|
</HorizontalLayout>
|
|
|
|
|
|
- <TileLayout name="aixuexi_page_food_xuexi_image_layout" padding="0,0,0,0" inset="10,10,0,10" childpadding="10" vscrollbar="true" hscrollbar="false">
|
|
|
+ <!-- 图库:分隔线 + 标题行 + 计数胶囊(计数由 CAIxuexiPageUI::UpdateXuexiCount 更新) -->
|
|
|
+ <Control height="1" padding="0,14,0,0" bkcolor="#FFF0F1F3"></Control>
|
|
|
+ <!-- 标题行:childvalign=vcenter 让 20 高的计数胶囊在 24 高行里垂直居中(HL 默认顶对齐会偏上 4px) -->
|
|
|
+ <HorizontalLayout height="24" padding="10,10,10,0" childvalign="vcenter">
|
|
|
+ <Label text="已学习图片" font="113" textcolor="#FF1F2329" width="80" height="24"></Label>
|
|
|
+ <Label name="aixuexi_page_xuexi_count" text="0" font="12" textcolor="#FF2E9B5C" height="20" maxheight="20" autocalcwidth="true" bkimage="file='hs_pill_r9.png' corner='9,9,9,9'" textpadding="9,0,9,0" mouse="false"></Label>
|
|
|
+ </HorizontalLayout>
|
|
|
+
|
|
|
+ <TileLayout name="aixuexi_page_food_xuexi_image_layout" padding="0,0,0,0" inset="10,10,0,0" childpadding="10" vscrollbar="true" hscrollbar="false">
|
|
|
|
|
|
</TileLayout>
|
|
|
</VerticalLayout>
|
|
|
|
|
|
<Control width="1" bkcolor="#FFEBE8E8"></Control>
|
|
|
|
|
|
- <VerticalLayout name="aixuexi_page_food_layout">
|
|
|
+ <VerticalLayout name="aixuexi_page_food_layout" bkcolor="#FFF5F7FA" inset="12,12,12,12" childpadding="12">
|
|
|
<VerticalLayout name="aixuexi_page_fenlei_layout_scrolllayout" vscrollbar="true">
|
|
|
- <HorizontalLayout name="aixuexi_page_fenlei_layout" padding="0,0,0,0" bkcolor="#FFFFFFFF">
|
|
|
-
|
|
|
- </HorizontalLayout>
|
|
|
+ <!-- 分类栏:与点单页 diandan_fenlei_layout 同构(Container;子项 float=true,由 C++ SetFixedXY 定位) -->
|
|
|
+ <Container name="aixuexi_page_fenlei_layout">
|
|
|
+ </Container>
|
|
|
</VerticalLayout>
|
|
|
|
|
|
- <TileLayout name="aixuexi_page_foodlist" padding="0,0,0,0" inset="10,10,0,10" childpadding="10" vscrollbar="true" hscrollbar="false">
|
|
|
+ <TileLayout name="aixuexi_page_foodlist" bkcolor="#00000000" childpadding="10" vscrollbar="true" hscrollbar="false">
|
|
|
|
|
|
</TileLayout>
|
|
|
|
|
|
- <HorizontalLayout height="70" padding="0,0,0,0" bkcolor="#FFFFFFFF">
|
|
|
- <Edit name="aixuexi_page_food_search_edit" tooltip="请输入商品名字或条码搜索" width="400" height="50" padding="30,10,0,10" textpadding="50,0,50,0" borderround="45,45" bkcolor="#FFECEFED" nativebkcolor="#FFECEFED" />
|
|
|
-
|
|
|
- <Label name="aixuexi_page_food_search_tishi" text="请输入商品名字或条码搜索" width="120" height="35" font="16" float="true" pos="90,18,425,50" mouse="false"></Label>
|
|
|
-
|
|
|
- <Control bkimage="search_icon.png" width="25" height="26" pos="45,23,70,49" float="true"></Control>
|
|
|
-
|
|
|
- <Button name="aixuexi_page_food_search_clear" visible="false" normalimage="search_clear.png" hotimage="search_clear.png" pushedimage="search_clear.png" bkimage="search_clear.png" width="23" height="23" pos="385,23,408,46" float="true"></Button>
|
|
|
+ <!-- 搜索行:对齐点单页(dc_search 九宫格 40 高满宽;inset / childvalign 照抄 diandan_page.xml) -->
|
|
|
+ <HorizontalLayout height="40" padding="0,0,0,0">
|
|
|
+ <HorizontalLayout bkimage="file='dc_search.png' corner='20,20,20,20'" inset="16,0,12,0" childpadding="8" childvalign="vcenter">
|
|
|
+ <Control bkimage="dc_ico_search16.png" width="16" height="16" maxheight="16"/>
|
|
|
+
|
|
|
+ <Edit name="aixuexi_page_food_search_edit" tooltip="请输入商品名字或条码搜索" font="12" textcolor="#FF1F2329" maxheight="24" bkcolor="#00000000" nativebkcolor="#FFEFF1F3"/>
|
|
|
+
|
|
|
+ <Label name="aixuexi_page_food_search_tishi" text="请输入商品名字或条码搜索" width="150" height="20" font="12" float="true" pos="40,10,190,30" mouse="false" valign="center" textcolor="#FFA8ADB3"/>
|
|
|
+
|
|
|
+ <Button name="aixuexi_page_food_search_clear" visible="false" width="23" height="23" maxheight="23" normalimage="search_clear.png" hotimage="search_clear.png" pushedimage="search_clear.png"/>
|
|
|
+ </HorizontalLayout>
|
|
|
</HorizontalLayout>
|
|
|
</VerticalLayout>
|
|
|
</HorizontalLayout>
|