|
@@ -60,6 +60,9 @@ void CSaomashouyinPageUI::InitShow()
|
|
|
|
|
|
|
|
m_is_zidingyizhifu_init = true;
|
|
m_is_zidingyizhifu_init = true;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //按「显示设置 → 会员登录」开关,刷新会员登录入口的显示/隐藏
|
|
|
|
|
+ this->UpdateHuiyuanLoginShow();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void CSaomashouyinPageUI::RefreshShow()
|
|
void CSaomashouyinPageUI::RefreshShow()
|
|
@@ -2183,13 +2186,8 @@ void CSaomashouyinPageUI::ClickMemberLogin()
|
|
|
CLabelUI* pMemberBalance = static_cast<CLabelUI*>(this->FindSubControl(_T("saomashouyin_page_member_balance")));
|
|
CLabelUI* pMemberBalance = static_cast<CLabelUI*>(this->FindSubControl(_T("saomashouyin_page_member_balance")));
|
|
|
pMemberBalance->SetText((L"¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(atof(m_balance.c_str()), 2))).c_str());
|
|
pMemberBalance->SetText((L"¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(atof(m_balance.c_str()), 2))).c_str());
|
|
|
|
|
|
|
|
- //整块隐藏登录卡(浮层说明文字随卡一起隐藏)
|
|
|
|
|
- this->FindSubControl(_T("saomashouyin_member_login_wrap"))->SetVisible(false);
|
|
|
|
|
-
|
|
|
|
|
- CButtonUI* pMemberLoginBtn = static_cast<CButtonUI*>(this->FindSubControl(_T("btn_saomashouyin_member_login")));
|
|
|
|
|
- pMemberLoginBtn->SetVisible(false);
|
|
|
|
|
-
|
|
|
|
|
- this->FindSubControl(_T("saomashouyin_page_member_info"))->SetVisible(true);
|
|
|
|
|
|
|
+ //按「显示设置 → 会员登录」开关刷新登录入口 / 会员卡的显示(浮层说明文字随卡一起隐藏)
|
|
|
|
|
+ this->UpdateHuiyuanLoginShow();
|
|
|
|
|
|
|
|
this->UpdateJiesuanInfo();
|
|
this->UpdateJiesuanInfo();
|
|
|
|
|
|
|
@@ -2214,17 +2212,41 @@ void CSaomashouyinPageUI::ClickMemberLogout()
|
|
|
{
|
|
{
|
|
|
m_is_member = false;
|
|
m_is_member = false;
|
|
|
|
|
|
|
|
- CButtonUI* pMemberLoginBtn = static_cast<CButtonUI*>(this->FindSubControl(_T("btn_saomashouyin_member_login")));
|
|
|
|
|
- pMemberLoginBtn->SetVisible(true);
|
|
|
|
|
-
|
|
|
|
|
- this->FindSubControl(_T("saomashouyin_member_login_wrap"))->SetVisible(true);
|
|
|
|
|
-
|
|
|
|
|
- this->FindSubControl(_T("saomashouyin_page_member_info"))->SetVisible(false);
|
|
|
|
|
|
|
+ //按「显示设置 → 会员登录」开关刷新登录入口 / 会员卡的显示
|
|
|
|
|
+ this->UpdateHuiyuanLoginShow();
|
|
|
|
|
|
|
|
this->UpdateJiesuanInfo();
|
|
this->UpdateJiesuanInfo();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+//按「显示设置 → 会员登录」开关,刷新会员登录入口的显示/隐藏(关闭设置时整块隐藏,已登录的会员卡一起隐藏)
|
|
|
|
|
+void CSaomashouyinPageUI::UpdateHuiyuanLoginShow()
|
|
|
|
|
+{
|
|
|
|
|
+ bool is_show = (CSetting::GetInstance()->GetParam("setting_xianshi_is_huiyuan_login") != "0");
|
|
|
|
|
+
|
|
|
|
|
+ bool is_logined = (m_is_member == true);
|
|
|
|
|
+
|
|
|
|
|
+ CControlUI* p_login_wrap = this->FindSubControl(_T("saomashouyin_member_login_wrap"));
|
|
|
|
|
+ if (p_login_wrap != NULL)
|
|
|
|
|
+ {
|
|
|
|
|
+ //未登录才显示登录入口
|
|
|
|
|
+ p_login_wrap->SetVisible(is_show && (is_logined == false));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ CControlUI* p_login_btn = this->FindSubControl(_T("btn_saomashouyin_member_login"));
|
|
|
|
|
+ if (p_login_btn != NULL)
|
|
|
|
|
+ {
|
|
|
|
|
+ p_login_btn->SetVisible(is_show && (is_logined == false));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ CControlUI* p_member_info = this->FindSubControl(_T("saomashouyin_page_member_info"));
|
|
|
|
|
+ if (p_member_info != NULL)
|
|
|
|
|
+ {
|
|
|
|
|
+ //已登录才显示会员信息卡
|
|
|
|
|
+ p_member_info->SetVisible(is_show && is_logined);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//会员充值(照搬点单页实现,充值成功后刷新本页余额)
|
|
//会员充值(照搬点单页实现,充值成功后刷新本页余额)
|
|
|
void CSaomashouyinPageUI::ClickMemberChongzhi()
|
|
void CSaomashouyinPageUI::ClickMemberChongzhi()
|
|
|
{
|
|
{
|