|
|
@@ -91,6 +91,16 @@ void CDiandanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
this->ClickZhengdanMemo();
|
|
|
}
|
|
|
+ else if (name == L"btn_diandan_gengduozhifu_pay")
|
|
|
+ {
|
|
|
+ //点击更多支付
|
|
|
+ this->ClickGengduoPay();
|
|
|
+ }
|
|
|
+ else if (name == L"btn_diandan_jixujiacai")
|
|
|
+ {
|
|
|
+ //点击继续加菜
|
|
|
+ this->JixuJiacai();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//处理option切换事件
|
|
|
@@ -525,3 +535,41 @@ void CDiandanPageUI::ClickZhengdanMemo()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+void CDiandanPageUI::ClickGengduoPay()
|
|
|
+{
|
|
|
+ //先隐藏商品页面
|
|
|
+ CVerticalLayoutUI* pFoodLayout = static_cast<CVerticalLayoutUI*>(this->FindSubControl(_T("diandan_food_layout")));
|
|
|
+ pFoodLayout->SetVisible(false);
|
|
|
+
|
|
|
+ //隐藏结算按钮
|
|
|
+ CHorizontalLayoutUI* pPayLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("diandan_pay_layout")));
|
|
|
+ pPayLayout->SetVisible(false);
|
|
|
+
|
|
|
+ //再展示结算页面
|
|
|
+ CHorizontalLayoutUI* pJiesuanLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("diandan_jiesuan_layout")));
|
|
|
+ pJiesuanLayout->SetVisible(true);
|
|
|
+
|
|
|
+ //展示继续加菜的按钮
|
|
|
+ CButtonUI* pJiacaiBtn = static_cast<CButtonUI*>(this->FindSubControl(_T("btn_diandan_jixujiacai")));
|
|
|
+ pJiacaiBtn->SetVisible(true);
|
|
|
+}
|
|
|
+
|
|
|
+void CDiandanPageUI::JixuJiacai()
|
|
|
+{
|
|
|
+ //先显示商品页面
|
|
|
+ CVerticalLayoutUI* pFoodLayout = static_cast<CVerticalLayoutUI*>(this->FindSubControl(_T("diandan_food_layout")));
|
|
|
+ pFoodLayout->SetVisible(true);
|
|
|
+
|
|
|
+ //显示结算按钮
|
|
|
+ CHorizontalLayoutUI* pPayLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("diandan_pay_layout")));
|
|
|
+ pPayLayout->SetVisible(true);
|
|
|
+
|
|
|
+ //再隐藏结算页面
|
|
|
+ CHorizontalLayoutUI* pJiesuanLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("diandan_jiesuan_layout")));
|
|
|
+ pJiesuanLayout->SetVisible(false);
|
|
|
+
|
|
|
+ //隐藏继续加菜的按钮
|
|
|
+ CButtonUI* pJiacaiBtn = static_cast<CButtonUI*>(this->FindSubControl(_T("btn_diandan_jixujiacai")));
|
|
|
+ pJiacaiBtn->SetVisible(false);
|
|
|
+}
|