|
|
@@ -1,106 +1,206 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<Window size="800,434" caption="0,0,0,44" roundcorner="4,4" shadowsize="3" showshadow="true">
|
|
|
- <VerticalLayout bkimage="shoukuan_bkg.png" >
|
|
|
+<Window size="860,552" caption="0,0,0,44" roundcorner="4,4" shadowsize="3" showshadow="true">
|
|
|
+ <VerticalLayout bkcolor="#FFFFFFFF">
|
|
|
+ <!-- ===================== 标题栏 44 高(全工程 30+ 弹框的统一值,会员收款 / 会员信息同族) ===================== -->
|
|
|
<HorizontalLayout name="shoukuan_title_bkg" height="44" bkcolor="0xFF60B177">
|
|
|
- <Label name="shoukuan_version" text="现金收款" height="44" align="center" valign="center" padding="0,0,0,0" textcolor="#FFFFFFFF" font="18"/>
|
|
|
- <Button name="closebtn" keyboard="false" padding="0,13,15,0" width="16" height="16" tooltip="关闭" normalimage="file='close_normal.png'" hotimage="file='close_hover.png'" pushedimage="file='close_normal.png'"/>
|
|
|
+ <Label name="shoukuan_version" text="现金收款" height="44" align="center" valign="center" textcolor="#FFFFFFFF" font="18"/>
|
|
|
+ <!-- 关闭按钮必须用 float 精确定位:横排里子项 height 不生效(只认 maxheight),
|
|
|
+ 会被拉成 44-13=31 高导致图标纵向拉伸。float 不进流、pos 相对父容器 rect → 原生 16x16。 -->
|
|
|
+ <Button name="closebtn" keyboard="false" float="true" pos="820,14,836,30" width="16" height="16" tooltip="关闭" normalimage="file='close_normal.png'" hotimage="file='close_hover.png'" pushedimage="file='close_normal.png'"/>
|
|
|
</HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout visible="true" name="shoukuan_before_pay_layout">
|
|
|
- <VerticalLayout height="520" padding="0,20,0,0">
|
|
|
- <HorizontalLayout name="shoukuan_money_show_layout" height="50" padding="0,0,0,15">
|
|
|
- <Label text="¥" font="24" textcolor="0xFF60B177" float="true" pos="170,24,245,50"/>
|
|
|
- <Label name="shoukuan_money_show_money" font="40" textcolor="0xFF60B177" float="true" pos="195,12,530,48"/>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout height="50" padding="0,0,0,0">
|
|
|
- <Label text="实收:" font="18" float="true" pos="30,12,180,40"/>
|
|
|
- <Edit name="shishou_edit" float="true" pos="98,12,355,48" normalimage="file='Chat_InputBox_BG.png' corner='4,4,4,4'" hotimage="file='Chat_InputBox_BG_Hover.png' corner='4,4,4,4'" />
|
|
|
- <Label text="元" font="18" float="true" pos="362,15,470,40"/>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout height="50" padding="0,15,0,0">
|
|
|
- <Label text="快选:" font="18" float="true" pos="30,12,180,40"/>
|
|
|
- <Button name="xianjin_kuaijie_10" font="14" text="10元" heiht="36" width="55" padding="100,10,0,0" textcolor="#FFFFFFFF" normalimage="" hotimage="" pushedimage="" bordersize="0" bordercolor="#FFC1C1C1" bkcolor="#FF60B177"></Button>
|
|
|
- <Button name="xianjin_kuaijie_20" font="14" text="20元" heiht="36" width="55" padding="14,10,0,0" textcolor="#FFFFFFFF" normalimage="" hotimage="" pushedimage="" bordersize="0" bordercolor="#FFC1C1C1" bkcolor="#FF60B177"></Button>
|
|
|
- <Button name="xianjin_kuaijie_50" font="14" text="50元" heiht="36" width="55" padding="14,10,0,0" textcolor="#FFFFFFFF" normalimage="" hotimage="" pushedimage="" bordersize="0" bordercolor="#FFC1C1C1" bkcolor="#FF60B177"></Button>
|
|
|
- <Button name="xianjin_kuaijie_100" font="14" text="100元" heiht="36" width="55" padding="14,10,0,0" textcolor="#FFFFFFFF" normalimage="" hotimage="" pushedimage="" bordersize="0" bordercolor="#FFC1C1C1" bkcolor="#FF60B177"></Button>
|
|
|
- <Button name="xianjin_kuaijie_200" font="14" text="200元" heiht="36" width="55" padding="14,10,0,0" textcolor="#FFFFFFFF" normalimage="" hotimage="" pushedimage="" bordersize="0" bordercolor="#FFC1C1C1" bkcolor="#FF60B177"></Button>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout height="50" padding="0,15,0,0">
|
|
|
- <Label text="找零:" font="18" float="true" pos="30,12,180,40"/>
|
|
|
- <Label name="xianjin_zhaoling_label" text="0元" font="18" float="true" pos="95,12,300,40"/>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout height="60" padding="0,20,0,0">
|
|
|
- <Control></Control>
|
|
|
- <Button name="shoukuanBtn" text="确认" font="18" textcolor="#FFFFFFFF" height="50" width="400" padding="0,0,0,0" tooltip="点击这里确认收款" 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>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout height="50" padding="0,10,0,0">
|
|
|
- <Control></Control>
|
|
|
- <Label name="shoukuanresult" font="18" width="400" height="50" wordbreak="true" text="" visible="false" textcolor="#FF0000" align="center" />
|
|
|
- <Control></Control>
|
|
|
- </HorizontalLayout>
|
|
|
- </VerticalLayout>
|
|
|
-
|
|
|
- <HorizontalLayout width="330" height="406" bkcolor="#FFF3F3F3">
|
|
|
- <Button name="jianpan_1" text="1" font="24" heiht="60" width="60" float="true" pos="10,0,110,90" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_2" text="2" font="24" heiht="60" width="60" float="true" pos="120,0,220,90" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_3" text="3" font="24" heiht="60" width="60" float="true" pos="230,0,330,90" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
-
|
|
|
- <Button name="jianpan_4" text="4" font="24" heiht="60" width="60" float="true" pos="10,100,110,190" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_5" text="5" font="24" heiht="60" width="60" float="true" pos="120,100,220,190" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_6" text="6" font="24" heiht="60" width="60" float="true" pos="230,100,330,190" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
-
|
|
|
- <Button name="jianpan_7" text="7" font="24" heiht="60" width="60" float="true" pos="10,200,110,290" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_8" text="8" font="24" heiht="60" width="60" float="true" pos="120,200,220,290" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_9" text="9" font="24" heiht="60" width="60" float="true" pos="230,200,330,290" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
-
|
|
|
- <Button name="jianpan_dian" text="." font="24" heiht="60" width="60" float="true" pos="10,300,110,390" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_0" text="0" font="24" heiht="60" width="60" float="true" pos="120,300,220,390" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
- <Button name="jianpan_x" text="X" font="24" heiht="60" width="60" float="true" pos="230,300,330,390" normalimage="file='shuzi_btn_normal.png' corner='5,5,5,5'" hotimage="file='shuzi_btn_hover.png' corner='5,5,5,5'" pushedimage="file='shuzi_btn_push.png' corner='5,5,5,5'"></Button>
|
|
|
+
|
|
|
+ <!-- ===================== 确认态(结构照抄会员充值,卡片底色加深) =====================
|
|
|
+ 会员充值在用的 balance_card.png / charge_card.png 底色是 #FAFBFC —— 白底上 Δ≈5/255,肉眼根本看不出,
|
|
|
+ 所以本弹框改用「取其 alpha 通道换色」生成的专属资产(圆角半径 / 抗锯齿剖面 / 尺寸与原图逐像素一致,零新增几何误差):
|
|
|
+ xj_card_money.png 472x102 ← balance_card.png 应收金额卡
|
|
|
+ xj_card_input.png 472x168 ← charge_card.png 实收 / 快选 / 找零卡
|
|
|
+ 填充色 #F2F4F7(比 #FAFBFC 深一档,又与 gd_btn_grey 的 #F0F1F3 错开,走灰度阶梯而不是撞色);
|
|
|
+ 共享的那两张 PNG 保持原样不动 —— 会员充值弹框仍在用,不能就地改。
|
|
|
+ 窗口 552 = 44(标题) + 24 + 460(内容) + 24
|
|
|
+ 左列 472 = 108(应收卡) + 15 + 170(实收卡) + 15 + 36(错误带占位) + 116(按钮区)
|
|
|
+ 横排 812 = 472 + 20(childpadding) + 320(键盘)
|
|
|
+ ============================================================================ -->
|
|
|
+ <VerticalLayout name="shoukuan_before_pay_layout" visible="true">
|
|
|
+ <!-- 上下 24 留白用首尾裸 Control 均分得到(508-460=48 → 各 24)。
|
|
|
+ inset 与裸 Control 是【二选一】:inset 已经把子项可用区收窄了 24,再放裸 Control 会叠加成双倍留白,
|
|
|
+ 内容 460+48 超出可用 460 就会被 DoPaint 的 CRenderClip 裁掉底栏(首版踩过这个坑)。
|
|
|
+ 这里只用裸 Control:内容变化时自动上下居中,不依赖窗口尺寸恰好。
|
|
|
+ 左右 24 写在 HLayout 的 inset 上。 -->
|
|
|
+ <Control/>
|
|
|
+ <HorizontalLayout height="460" childpadding="20" inset="24,0,24,0">
|
|
|
+
|
|
|
+ <!-- ========== 左列 472 ========== -->
|
|
|
+ <VerticalLayout width="472" height="460">
|
|
|
+
|
|
|
+ <!-- 应收金额卡:xj_card_money.png 472x102,这里画 108(多出 6px 交给九宫格中间带拉伸,实测中间带纯不透明安全)
|
|
|
+ inset 取会员充值的 20,20,16,16 → 卡内可用 436x72 = 20(标题) + 4 + 48(金额行) -->
|
|
|
+ <VerticalLayout width="472" height="108" bkimage="file='xj_card_money.png' corner='16,16,16,16'" inset="20,20,16,16">
|
|
|
+ <Label text="应收金额" font="13" textcolor="#FF8A9099" width="436" height="20"/>
|
|
|
+ <Control width="436" height="4"/>
|
|
|
+ <HorizontalLayout width="436" height="48">
|
|
|
+ <!-- ¥ 与数字按基线对齐:HL 里子项写 padding.top=n 会把它的框下移 n、文字中心低 n/2。
|
|
|
+ 精确解 n = 2*(A_36 - A_20) + L_20 - L_36,实测 msyh getmetrics() 得
|
|
|
+ (39-22)*2 + 28 - 49 = 13(别用 0.36*(36-20) 的粗估,那会算成 12,差 1px)。 -->
|
|
|
+ <Label text="¥" font="20" textcolor="#FF60B177" autocalcwidth="true" padding="0,13,0,0"/>
|
|
|
+ <Control width="8" height="48"/>
|
|
|
+ <!-- 金额必须定宽,不能 autocalcwidth:C++ InitMoney 只 SetText 不 SetFont,宽度缓存不会刷新 -->
|
|
|
+ <Label name="shoukuan_money_show_money" text="" font="36" textcolor="#FF60B177" width="240" height="48" maxheight="48"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ </VerticalLayout>
|
|
|
+
|
|
|
+ <Control width="472" height="15"/>
|
|
|
+
|
|
|
+ <!-- 实收 / 快选 / 找零卡:xj_card_input.png 472x168,这里画 170(中间带拉伸 2px)
|
|
|
+ inset 取会员充值的 16,16,16,16 → 卡内可用 440x138 = 46 + 16 + 34 + 2 + 40
|
|
|
+ ★ 纵向账刻意不照抄会员充值的 6/6:药丸「上下的边距要一样」,而上下两侧的锚点不是同一种东西 ——
|
|
|
+ 上侧锚点是实收输入框的【硬边】(46 行被输入框铺满,底边就是卡内 46);
|
|
|
+ 下侧锚点是找零数字的【墨迹顶】,文字在行内垂直居中,墨迹之外还要让开一段字体内部行距:
|
|
|
+ msyh 15px(粗体度量相同)ascent 16 / descent 4 → 行盒 20,数字墨迹距行盒顶 4
|
|
|
+ → 墨迹顶 = 找零行顶 + (40-20)/2 + 4 = 找零行顶 + 14
|
|
|
+ 于是:上占位 16 → 药丸 卡内 62..96;下占位 2 + 14 = 16 → 墨迹顶 卡内 112。上 16 / 下 16 严格相等。
|
|
|
+ (第一版按「行盒居中」写成 12/0,出图量墨迹仍是上 12 / 下 17 —— 因为墨迹不贴行盒顶,别按行盒算。)
|
|
|
+ 会员充值的 6/6 在这里实测是「上 5 / 下 19」,就是用户提的问题,不要照抄。
|
|
|
+ 注意:HL 里【不能】用 padding.top 微调药丸 —— vcenter 分支无视 padding.top(UIHorizontalLayout.cpp:167-174),
|
|
|
+ 只能改占位 Control 的高度。 -->
|
|
|
+ <VerticalLayout width="472" height="170" bkimage="file='xj_card_input.png' corner='16,16,16,16'" inset="16,16,16,16">
|
|
|
+
|
|
|
+ <HorizontalLayout width="440" height="46" childvalign="vcenter">
|
|
|
+ <Label text="实收" font="15" textcolor="#FF1F2329" width="56" height="46" maxheight="46" valign="center"/>
|
|
|
+ <Control width="12" height="46"/>
|
|
|
+ <Edit name="shishou_edit" width="336" height="46" maxheight="46" font="14" textcolor="#FF1F2329" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" tipvalue="请输入实收金额" tipvaluecolor="#FFA8ADB3" textpadding="12,0,12,0" normalimage="file='input_normal.png' corner='10,10,10,10'" hotimage="file='input_hover.png' corner='10,10,10,10'" focusedimage="file='input_focus.png' corner='10,10,10,10'"/>
|
|
|
+ <Control width="12" height="46"/>
|
|
|
+ <Label text="元" font="14" textcolor="#FF5F6368" width="24" height="46" maxheight="46" align="right" valign="center"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+
|
|
|
+ <Control width="440" height="16"/>
|
|
|
+
|
|
|
+ <!-- 快选金额:只保留 10 / 20 / 50 / 100(200 元档已按需求删除;对应 C++ 分支
|
|
|
+ xianjin_kuaijie_200 随之成为不可达死代码,本轮未动 C++,见交付说明)。
|
|
|
+ 首枚前放 68 宽占位(会员充值同款手法)→ 药丸左沿 = 卡内左沿 40 + 68 = 108,
|
|
|
+ 与实收编辑框左沿(56 + 12 = 68 → 108)严格对齐。
|
|
|
+ 4 x 72 + 3 x 10 = 318,加占位共 386,卡内 440 右侧留 54。
|
|
|
+ 写法与会员充值一致:tag_*_72.png 原生 72x34、不写 corner(原生尺寸不需要九宫格)。 -->
|
|
|
+ <HorizontalLayout width="440" height="34" childvalign="vcenter">
|
|
|
+ <Control width="68" height="34"/>
|
|
|
+ <Button name="xianjin_kuaijie_10" text="10元" font="13" textcolor="#FF5F6368" width="72" height="34" maxheight="34" bkcolor="#00000000" hotbkcolor="#00000000" pushedbkcolor="#00000000" normalimage="file='tag_normal_72.png'" hotimage="file='tag_hover_72.png'" pushedimage="file='tag_pushed_72.png'" hottextcolor="#FF60B177" pushedtextcolor="#FFFFFFFF"/>
|
|
|
+ <Control width="10" height="34"/>
|
|
|
+ <Button name="xianjin_kuaijie_20" text="20元" font="13" textcolor="#FF5F6368" width="72" height="34" maxheight="34" bkcolor="#00000000" hotbkcolor="#00000000" pushedbkcolor="#00000000" normalimage="file='tag_normal_72.png'" hotimage="file='tag_hover_72.png'" pushedimage="file='tag_pushed_72.png'" hottextcolor="#FF60B177" pushedtextcolor="#FFFFFFFF"/>
|
|
|
+ <Control width="10" height="34"/>
|
|
|
+ <Button name="xianjin_kuaijie_50" text="50元" font="13" textcolor="#FF5F6368" width="72" height="34" maxheight="34" bkcolor="#00000000" hotbkcolor="#00000000" pushedbkcolor="#00000000" normalimage="file='tag_normal_72.png'" hotimage="file='tag_hover_72.png'" pushedimage="file='tag_pushed_72.png'" hottextcolor="#FF60B177" pushedtextcolor="#FFFFFFFF"/>
|
|
|
+ <Control width="10" height="34"/>
|
|
|
+ <Button name="xianjin_kuaijie_100" text="100元" font="13" textcolor="#FF5F6368" width="72" height="34" maxheight="34" bkcolor="#00000000" hotbkcolor="#00000000" pushedbkcolor="#00000000" normalimage="file='tag_normal_72.png'" hotimage="file='tag_hover_72.png'" pushedimage="file='tag_pushed_72.png'" hottextcolor="#FF60B177" pushedtextcolor="#FFFFFFFF"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+
|
|
|
+ <!-- 药丸行下方留 2:找零数字的墨迹顶在找零行内还要再低 14(行盒居中 10 + 字体内部行距 4),
|
|
|
+ 2 + 14 = 16 = 上方占位,上下才是严格等距(详见卡片注释的纵向账)。 -->
|
|
|
+ <Control width="440" height="2"/>
|
|
|
+
|
|
|
+ <!-- 找零:C++ UpdateZhaoling 会把「元」随金额一起 SetText,这里不能再放一个「元」Label。
|
|
|
+ 数字左沿必须与实收编辑框左沿对齐(x=108):Label 左沿 = 卡内左沿 40 + 56 + 12 = 108 本来就对齐,
|
|
|
+ 所以【不能】再写 textpadding 的左内边距(原来写 12,把文字推到了 120)。 -->
|
|
|
+ <HorizontalLayout width="440" height="40" childvalign="vcenter">
|
|
|
+ <Label text="找零" font="15" textcolor="#FF1F2329" width="56" height="40" maxheight="40" valign="center"/>
|
|
|
+ <Control width="12" height="40"/>
|
|
|
+ <Label name="xianjin_zhaoling_label" text="0元" font="115" textcolor="#FF2E9B5C" width="372" height="40" maxheight="40" valign="center"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ </VerticalLayout>
|
|
|
+
|
|
|
+ <Control width="472" height="15"/>
|
|
|
+
|
|
|
+ <!-- 错误提示带 36 高:真正的提示条是挂在根布局上的浮层 shoukuanresult(不占流高、不顶动内容),这里只占位 -->
|
|
|
+ <Control width="472" height="36"/>
|
|
|
+
|
|
|
+ <!-- 确认按钮区 116:删掉「按 Enter 确认收款 · Esc 取消」提示行后,两枚裸 Control 均分 116-56 = 60
|
|
|
+ → 上 30 / 下 30;按钮整宽 472 与上方卡片对齐 -->
|
|
|
+ <VerticalLayout width="472" height="116">
|
|
|
+ <Control/>
|
|
|
+ <Button name="shoukuanBtn" text="确认收款" font="116" textcolor="#FFFFFFFF" width="472" height="56" tooltip="点击这里确认收款" normalimage="file='gd_btn_green_n.png' corner='8,8,8,8'" hotimage="file='gd_btn_green_h.png' corner='8,8,8,8'" pushedimage="file='gd_btn_green_p.png' corner='8,8,8,8'"/>
|
|
|
+ <Control/>
|
|
|
+ </VerticalLayout>
|
|
|
+ </VerticalLayout>
|
|
|
+
|
|
|
+ <!-- ========== 右列:数字键盘 320x460(与会员充值同尺寸、同资产) ==========
|
|
|
+ 4 行 x 110 + 3 x 6 = 458,上下各留 1px 与左列 460 顶齐 -->
|
|
|
+ <VerticalLayout width="320" height="460">
|
|
|
+ <Control width="320" height="1"/>
|
|
|
+ <VerticalLayout width="320" height="458" childpadding="6">
|
|
|
+ <HorizontalLayout width="320" height="110" childpadding="10">
|
|
|
+ <Button name="jianpan_1" text="1" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_2" text="2" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_3" text="3" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ <HorizontalLayout width="320" height="110" childpadding="10">
|
|
|
+ <Button name="jianpan_4" text="4" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_5" text="5" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_6" text="6" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ <HorizontalLayout width="320" height="110" childpadding="10">
|
|
|
+ <Button name="jianpan_7" text="7" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_8" text="8" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_9" text="9" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ <HorizontalLayout width="320" height="110" childpadding="10">
|
|
|
+ <!-- 底行:小数点 / 0 / 退格。控件名沿用 C++ 分支名 jianpan_dian / jianpan_0 / jianpan_x;
|
|
|
+ 显示文字 X 改成 × 只是视觉(C++ 按 senderName 分支,不认 text),
|
|
|
+ 本弹框 C++ 没有 jianpan_qingkong 分支,所以不能照抄会员充值的「清空」 -->
|
|
|
+ <Button name="jianpan_dian" text="." font="24" textcolor="#FF5F6368" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_0" text="0" font="24" textcolor="#FF1F2329" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ <Button name="jianpan_x" text="×" font="24" textcolor="#FF5F6368" width="100" height="110" normalimage="file='key_normal.png' corner='12,12,12,12'" hotimage="file='key_hover.png' corner='12,12,12,12'" pushedimage="file='key_pushed.png' corner='12,12,12,12'" pushedtextcolor="#FF60B177"/>
|
|
|
+ </HorizontalLayout>
|
|
|
+ </VerticalLayout>
|
|
|
+ <Control width="320" height="1"/>
|
|
|
+ </VerticalLayout>
|
|
|
</HorizontalLayout>
|
|
|
- </HorizontalLayout>
|
|
|
-
|
|
|
+ <Control/>
|
|
|
+ </VerticalLayout>
|
|
|
+
|
|
|
+ <!-- ===================== 支付中 ===================== -->
|
|
|
<VerticalLayout name="shoukuan_paying_layout" visible="false">
|
|
|
- <HorizontalLayout name="shoukuan_paying_loading" height="24" padding="0, 20, 0, 20">
|
|
|
- <Control></Control>
|
|
|
+ <Control/>
|
|
|
+ <HorizontalLayout name="shoukuan_paying_loading" height="24">
|
|
|
+ <Control/>
|
|
|
<VerticalLayout width="24">
|
|
|
- <Control></Control>
|
|
|
+ <Control/>
|
|
|
<HorizontalLayout height="24">
|
|
|
- <GifAnim bkimage="loading.gif" autosize="true"></GifAnim>
|
|
|
+ <GifAnim bkimage="loading.gif" autosize="true"/>
|
|
|
</HorizontalLayout>
|
|
|
- <Control></Control>
|
|
|
+ <Control/>
|
|
|
</VerticalLayout>
|
|
|
- <Control></Control>
|
|
|
+ <Control/>
|
|
|
</HorizontalLayout>
|
|
|
-
|
|
|
- <Label height="40" padding="0,10,0,10" name="shoukuan_paying_money" text="收款金额:" font="32" textcolor="0xFF60B177" align="center"></Label>
|
|
|
-
|
|
|
- <Label height="32" padding="0,10,0,10" name="shoukuan_paying_status" text="请求支付中..." font="18" textcolor="0xFF60B177" align="center"></Label>
|
|
|
-
|
|
|
- <Label height="60" padding="20,30,20,0" name="shouyin_paying_attention" text="如果用户没有支付成功,则请确认客户不再进行支付时再关闭此窗口,按【Esc】取消本次支付" font="18" textcolor="0xFF808080" wordbreak="true" align="center" />
|
|
|
+ <Label height="44" padding="0,24,0,0" name="shoukuan_paying_money" text="付款金额:" font="30" textcolor="#FF60B177" align="center"/>
|
|
|
+ <Label height="22" padding="0,6,0,0" name="shoukuan_paying_status" text="请求支付中..." font="15" textcolor="#FF5F6368" align="center"/>
|
|
|
+ <Label height="24" padding="0,26,0,0" name="shouyin_paying_attention" text="如果用户没有支付成功,请确认顾客不再支付后再关闭本窗口,按【Esc】取消本次支付" font="12" textcolor="#FF8A9099" wordbreak="true" align="center"/>
|
|
|
+ <Control/>
|
|
|
</VerticalLayout>
|
|
|
-
|
|
|
- <VerticalLayout name="shoukuan_pay_success_layout" visible="false">
|
|
|
- <Label height="40" padding="0,100,0,20" name="shoukuan_pay_success_money" text="成功收款:" font="32" textcolor="0xFF60B177" align="center"></Label>
|
|
|
-
|
|
|
- <Label height="60" padding="20,30,20,0" name="shouyin_pay_success_attention" text="按任意键关闭窗口" font="18" textcolor="0xFF808080" wordbreak="true" align="center" />
|
|
|
+
|
|
|
+ <!-- ===================== 收款成功 ===================== -->
|
|
|
+ <VerticalLayout name="shoukuan_pay_success_layout" visible="false">
|
|
|
+ <Control/>
|
|
|
+ <Label height="48" name="shoukuan_pay_success_money" text="成功收款:" font="32" textcolor="#FF60B177" align="center"/>
|
|
|
+ <Label height="22" padding="0,16,0,0" name="shouyin_pay_success_attention" text="按任意键关闭窗口" font="14" textcolor="#FF8A9099" align="center"/>
|
|
|
+ <Control/>
|
|
|
</VerticalLayout>
|
|
|
-
|
|
|
+
|
|
|
+ <!-- ===================== 收款失败 ===================== -->
|
|
|
<VerticalLayout name="shoukuan_pay_fail_layout" visible="false">
|
|
|
- <HorizontalLayout height="100" padding="0,20,0,0">
|
|
|
- <Control></Control>
|
|
|
- <Control bkimage="pay_fail.png" width="100" height="100" align="center"></Control>
|
|
|
- <Control></Control>
|
|
|
+ <Control/>
|
|
|
+ <HorizontalLayout height="100">
|
|
|
+ <Control/>
|
|
|
+ <Control bkimage="pay_fail.png" width="100" height="100" maxheight="100"/>
|
|
|
+ <Control/>
|
|
|
</HorizontalLayout>
|
|
|
-
|
|
|
- <Label height="40" padding="0,20,0,20" name="shoukuan_pay_fail_money" text="订单支付失败" font="32" textcolor="0xFFD33E3A" align="center"></Label>
|
|
|
-
|
|
|
- <Label height="60" padding="20,30,20,0" name="shouyin_pay_fail_attention" text="" font="18" textcolor="0xFF808080" wordbreak="true" align="center" />
|
|
|
+ <Label height="48" padding="0,20,0,0" name="shoukuan_pay_fail_money" text="订单支付失败" font="32" textcolor="#FFD33E3A" align="center"/>
|
|
|
+ <Label height="48" padding="0,10,0,0" name="shouyin_pay_fail_attention" text="" font="14" textcolor="#FF8A9099" wordbreak="true" align="center"/>
|
|
|
+ <Control/>
|
|
|
</VerticalLayout>
|
|
|
- </VerticalLayout>
|
|
|
-</Window>
|
|
|
+
|
|
|
+ <!-- ===================== 错误提示浮层 =====================
|
|
|
+ 挂根 VerticalLayout:float 会被裁到父容器矩形,跨出内容区就只能挂根(见 skill 二·补四)。
|
|
|
+ pos 是弹框客户区绝对坐标:左列 x 24..496;落在「实收卡底 361..376 空档 + 错误带 376..412」中间 —— 376+4=380,28 高 → 380..408。
|
|
|
+ visible=false 时不参与排版、不占流高 → 报错出现 / 消失都不会顶动内容。
|
|
|
+ 控件名 shoukuanresult 必须保留:C++ 有 5 处 SetText / SetVisible 打在它身上。
|
|
|
+ -->
|
|
|
+ <Label name="shoukuanresult" float="true" pos="24,380,496,408" text="" visible="false" bkimage="file='err_bar_r6.png' corner='6,6,6,6'" textpadding="12,0,12,0" textcolor="#FFC7403F" font="13" align="center"/>
|
|
|
+ </VerticalLayout>
|
|
|
+</Window>
|