|
|
@@ -1,4 +1,4 @@
|
|
|
-#include "../pch/pch.h"
|
|
|
+#include "../pch/pch.h"
|
|
|
#include "CHuiyuanPageUI.h"
|
|
|
|
|
|
#include "../wnd/CHuiyuanChongzhiWnd.h"
|
|
|
@@ -22,14 +22,19 @@ CHuiyuanPageUI::~CHuiyuanPageUI()
|
|
|
|
|
|
}
|
|
|
|
|
|
-//初始化当前页面的展示,处理默认展示效果,在页面被加载的时候调用
|
|
|
+void CHuiyuanPageUI::InitControl()
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//初始化当前页面的展示,处理默认展示效果,在页面被加载的时候调用
|
|
|
void CHuiyuanPageUI::InitShow()
|
|
|
{
|
|
|
CEditUI* pFukuanEdit = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
pFukuanEdit->SetFocus();
|
|
|
}
|
|
|
|
|
|
-//处理按钮点击类事件
|
|
|
+//处理按钮点击类事件
|
|
|
void CHuiyuanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
CDuiString senderName = msg.pSender->GetName();
|
|
|
@@ -156,7 +161,7 @@ void CHuiyuanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
}
|
|
|
else if (senderName == _T("huiiyuan_page_sousuo_btn"))
|
|
|
{
|
|
|
- //如果是手动点击了,就重置这个搜索手机号
|
|
|
+ //如果是手动点击了,就重置这个搜索手机号
|
|
|
CEditUI* m_pEdit = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
std::wstring ws_Value = m_pEdit->GetText();
|
|
|
m_sousuo_phone = CLewaimaiString::UnicodeToUTF8(ws_Value);
|
|
|
@@ -197,26 +202,26 @@ void CHuiyuanPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//处理option切换事件
|
|
|
+//澶勭悊option鍒囨崲浜嬩欢
|
|
|
void CHuiyuanPageUI::HandleSelectChangeMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
-//处理下拉框、radio的切换事件
|
|
|
+//处理下拉框、radio的切换事件
|
|
|
void CHuiyuanPageUI::HandleItemSelectMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
-//处理编辑框输入内容改变事件
|
|
|
+//处理编辑框输入内容改变事件
|
|
|
void CHuiyuanPageUI::HandleTextChangedMsg(TNotifyUI& msg)
|
|
|
{
|
|
|
DuiLib::CDuiString senderName = msg.pSender->GetName();
|
|
|
|
|
|
if (senderName == L"huiyuan_page_shoujihao_edit")
|
|
|
{
|
|
|
- //只能输入数字,其他的全部删除
|
|
|
+ //鍙�兘杈撳叆鏁板瓧锛屽叾浠栫殑鍏ㄩ儴鍒犻櫎
|
|
|
CEditUI* m_pEdit = static_cast<CEditUI*>(this->FindSubControl(_T("huiyuan_page_shoujihao_edit")));
|
|
|
if (!m_pEdit->GetText().IsEmpty())
|
|
|
{
|
|
|
@@ -230,13 +235,13 @@ void CHuiyuanPageUI::HandleTextChangedMsg(TNotifyUI& msg)
|
|
|
unsigned char tmp = strValue.at(nIndex);
|
|
|
if (tmp > 57 || tmp < 48)
|
|
|
{
|
|
|
- //ASCII码不是数字的都过滤掉
|
|
|
+ //ASCII鐮佷笉鏄�暟瀛楃殑閮借繃婊ゆ帀
|
|
|
strValue = strValue.substr(0, nIndex);
|
|
|
|
|
|
m_sousuo_phone = strValue;
|
|
|
|
|
|
m_pEdit->SetText(CLewaimaiString::UTF8ToUnicode(strValue).c_str());
|
|
|
- m_pEdit->SetSel(strValue.length(), strValue.length());//重设给光标设置位置
|
|
|
+ m_pEdit->SetSel(strValue.length(), strValue.length());//重设给光标设置位置
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -245,7 +250,7 @@ void CHuiyuanPageUI::HandleTextChangedMsg(TNotifyUI& msg)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//处理扫码枪捕捉到的扫码信息
|
|
|
+//处理扫码枪捕捉到的扫码信息
|
|
|
void CHuiyuanPageUI::HandleTextCapture(std::string content)
|
|
|
{
|
|
|
if (m_is_show_modal_wnd == true)
|
|
|
@@ -265,11 +270,11 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
|
|
|
if (ws_phone.length() != 11)
|
|
|
{
|
|
|
- //手机号格式错误
|
|
|
- ShowError(L"手机号格式不对!");
|
|
|
+ //手机号格式错误
|
|
|
+ ShowError(L"鎵嬫満鍙锋牸寮忎笉瀵癸紒");
|
|
|
}
|
|
|
|
|
|
- //手机号格式正确,开始处理
|
|
|
+ //手机号格式正确,开始处理
|
|
|
m_is_handle = true;
|
|
|
|
|
|
m_phone = CLewaimaiString::UnicodeToUTF8(ws_phone);
|
|
|
@@ -281,7 +286,7 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
bool ret = CZhipuziHttpClient::GetInstance()->Request("/member/membercheckbyphone", params, response);
|
|
|
if (!ret)
|
|
|
{
|
|
|
- ShowError(L"网络请求出错");
|
|
|
+ ShowError(L"缃戠粶璇锋眰鍑洪敊");
|
|
|
m_is_handle = false;
|
|
|
|
|
|
return;
|
|
|
@@ -292,7 +297,7 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
|
|
|
if (document.HasParseError())
|
|
|
{
|
|
|
- ShowError(L"服务器返回数据格式错误");
|
|
|
+ ShowError(L"服务器返回数据格式错误");
|
|
|
m_is_handle = false;
|
|
|
|
|
|
return;
|
|
|
@@ -301,7 +306,7 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
{
|
|
|
if (!document.HasMember("errcode") || !document.HasMember("errmsg"))
|
|
|
{
|
|
|
- ShowError(L"服务器返回数据格式错误");
|
|
|
+ ShowError(L"服务器返回数据格式错误");
|
|
|
m_is_handle = false;
|
|
|
|
|
|
return;
|
|
|
@@ -311,7 +316,7 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
int errcode = v_errcode.GetInt();
|
|
|
if (errcode != 0)
|
|
|
{
|
|
|
- std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"搜索结果:") + std::string(document["errmsg"].GetString());
|
|
|
+ std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"搜索结果:") + std::string(document["errmsg"].GetString());
|
|
|
std::wstring m_errorInfo = CLewaimaiString::UTF8ToUnicode(errmsg);
|
|
|
ShowError(m_errorInfo);
|
|
|
m_is_handle = false;
|
|
|
@@ -324,7 +329,7 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
|
|
|
if (rows.Size() < 1)
|
|
|
{
|
|
|
- ShowError(L"会员信息为空");
|
|
|
+ ShowError(L"浼氬憳淇℃伅涓虹┖");
|
|
|
m_is_handle = false;
|
|
|
|
|
|
return;
|
|
|
@@ -359,44 +364,44 @@ void CHuiyuanPageUI::StartHuiyuanSousuo()
|
|
|
m_member_id = rowinfo["id"].GetString();
|
|
|
m_member_card_no = rowinfo["card_no"].GetString();
|
|
|
|
|
|
- this->FindSubControl(L"huiyuan_num")->SetText((L"会员卡号:" + CLewaimaiString::UTF8ToUnicode(m_member_card_no)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_phone")->SetText((L"手机号:" + CLewaimaiString::UTF8ToUnicode(m_phone)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_num")->SetText((L"会员卡号:" + CLewaimaiString::UTF8ToUnicode(m_member_card_no)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_phone")->SetText((L"鎵嬫満鍙凤細" + CLewaimaiString::UTF8ToUnicode(m_phone)).c_str());
|
|
|
|
|
|
if (m_is_open_pay_password == "1")
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_mimazhifu")->SetText(L"密码登录:已开启");
|
|
|
+ this->FindSubControl(L"huiyuan_mimazhifu")->SetText(L"密码登录:已开启");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_mimazhifu")->SetText(L"密码登录:未开启");
|
|
|
+ this->FindSubControl(L"huiyuan_mimazhifu")->SetText(L"密码登录:未开启");
|
|
|
}
|
|
|
|
|
|
- this->FindSubControl(L"huiyuan_name")->SetText((L"会员姓名:" + CLewaimaiString::UTF8ToUnicode(m_name)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_sex")->SetText((L"性别:" + CLewaimaiString::UTF8ToUnicode(m_sex)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_address")->SetText((L"地址:" + CLewaimaiString::UTF8ToUnicode(m_address)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_birthday")->SetText((L"生日:" + CLewaimaiString::UTF8ToUnicode(m_birthday)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_levelname")->SetText((L"会员级别:" + CLewaimaiString::UTF8ToUnicode(member_level_name)).c_str());
|
|
|
- this->FindSubControl(L"huiyuan_yue")->SetText((L"当前余额:" + CLewaimaiString::UTF8ToUnicode(m_balance)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_name")->SetText((L"会员姓名:" + CLewaimaiString::UTF8ToUnicode(m_name)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_sex")->SetText((L"性别:" + CLewaimaiString::UTF8ToUnicode(m_sex)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_address")->SetText((L"地址:" + CLewaimaiString::UTF8ToUnicode(m_address)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_birthday")->SetText((L"生日:" + CLewaimaiString::UTF8ToUnicode(m_birthday)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_levelname")->SetText((L"会员级别:" + CLewaimaiString::UTF8ToUnicode(member_level_name)).c_str());
|
|
|
+ this->FindSubControl(L"huiyuan_yue")->SetText((L"当前余额:" + CLewaimaiString::UTF8ToUnicode(m_balance)).c_str());
|
|
|
|
|
|
if (is_card)
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_shitika")->SetText(L"实体会员卡:已绑定");
|
|
|
+ this->FindSubControl(L"huiyuan_shitika")->SetText(L"实体会员卡:已绑定");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_shitika")->SetText(L"实体会员卡:未绑定");
|
|
|
+ this->FindSubControl(L"huiyuan_shitika")->SetText(L"实体会员卡:未绑定");
|
|
|
}
|
|
|
|
|
|
if (m_freeze == "0")
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_status")->SetText(L"会员状态:正常");
|
|
|
+ this->FindSubControl(L"huiyuan_status")->SetText(L"浼氬憳鐘舵€侊細姝e父");
|
|
|
|
|
|
this->FindSubControl(L"huiiyuan_page_dongjie_btn")->SetVisible(true);
|
|
|
this->FindSubControl(L"huiiyuan_page_jiedong_btn")->SetVisible(false);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- this->FindSubControl(L"huiyuan_status")->SetText(L"会员状态:已冻结");
|
|
|
+ this->FindSubControl(L"huiyuan_status")->SetText(L"会员状态:已冻结");
|
|
|
|
|
|
this->FindSubControl(L"huiiyuan_page_dongjie_btn")->SetVisible(false);
|
|
|
this->FindSubControl(L"huiiyuan_page_jiedong_btn")->SetVisible(true);
|
|
|
@@ -442,8 +447,8 @@ void CHuiyuanPageUI::StartAddHuiyuan()
|
|
|
UINT ret = pShoukuanWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
{
|
|
|
- //会员开通成功
|
|
|
- m_pMainWnd->ShowToast(L"会员开通成功");
|
|
|
+ //会员开通成功
|
|
|
+ m_pMainWnd->ShowToast(L"会员开通成功");
|
|
|
|
|
|
m_sousuo_phone = pShoukuanWnd->m_phone;
|
|
|
|
|
|
@@ -462,7 +467,7 @@ void CHuiyuanPageUI::StartHuiyuanChongzhi()
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- //充值之前,保存一下搜索电话,因为充值成功后要刷新的
|
|
|
+ //鍏呭€间箣鍓嶏紝淇濆瓨涓€涓嬫悳绱㈢數璇濓紝鍥犱负鍏呭€兼垚鍔熷悗瑕佸埛鏂扮殑
|
|
|
m_sousuo_phone = m_phone;
|
|
|
|
|
|
CHuiyuanChongzhiWnd* pShoukuanWnd = new CHuiyuanChongzhiWnd();
|
|
|
@@ -482,7 +487,7 @@ void CHuiyuanPageUI::StartHuiyuanChongzhi()
|
|
|
UINT ret = pShoukuanWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
{
|
|
|
- //然后处理小票打印
|
|
|
+ //鐒跺悗澶勭悊灏忕エ鎵撳嵃
|
|
|
CHuiyuanchongzhiOrder order;
|
|
|
|
|
|
order.shopname = CShopinfo::GetInstance()->m_shop_name;
|
|
|
@@ -500,20 +505,20 @@ void CHuiyuanPageUI::StartHuiyuanChongzhi()
|
|
|
{
|
|
|
if (pShoukuanWnd->m_fukuanma_type == 1)
|
|
|
{
|
|
|
- order.pay_type = "微信支付";
|
|
|
+ order.pay_type = "寰�俊鏀�粯";
|
|
|
}
|
|
|
else if (pShoukuanWnd->m_fukuanma_type == 2)
|
|
|
{
|
|
|
- order.pay_type = "支付宝";
|
|
|
+ order.pay_type = "支付宝";
|
|
|
}
|
|
|
else if (pShoukuanWnd->m_fukuanma_type == 2)
|
|
|
{
|
|
|
- order.pay_type = "云闪付";
|
|
|
+ order.pay_type = "云闪付";
|
|
|
}
|
|
|
}
|
|
|
else if (pShoukuanWnd ->m_shoukuan_type == 2)
|
|
|
{
|
|
|
- order.pay_type = "现金支付";
|
|
|
+ order.pay_type = "鐜伴噾鏀�粯";
|
|
|
}
|
|
|
else if (pShoukuanWnd->m_shoukuan_type == 3)
|
|
|
{
|
|
|
@@ -523,7 +528,7 @@ void CHuiyuanPageUI::StartHuiyuanChongzhi()
|
|
|
CPosPrinter printer;
|
|
|
printer.PrintHuiyuanchongzhiOrder(order);
|
|
|
|
|
|
- //这个表示充值成功了,这个时候刷新会员信息
|
|
|
+ //这个表示充值成功了,这个时候刷新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
|
|
|
@@ -554,7 +559,7 @@ void CHuiyuanPageUI::StartXiugaiziliao()
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
{
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
|
|
|
@@ -563,7 +568,7 @@ void CHuiyuanPageUI::StartXiugaiziliao()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//修改登录密码
|
|
|
+//淇�敼鐧诲綍瀵嗙爜
|
|
|
void CHuiyuanPageUI::StartXiugaimima()
|
|
|
{
|
|
|
if (m_is_show_modal_wnd == true)
|
|
|
@@ -586,7 +591,7 @@ void CHuiyuanPageUI::StartXiugaimima()
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
{
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
|
|
|
@@ -599,7 +604,7 @@ void CHuiyuanPageUI::StartBangka()
|
|
|
{
|
|
|
if (m_card_identify != "")
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"该会员已绑卡,无需再次绑卡");
|
|
|
+ m_pMainWnd->ShowToast(L"璇ヤ細鍛樺凡缁戝崱锛屾棤闇€鍐嶆�缁戝崱");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -623,9 +628,9 @@ void CHuiyuanPageUI::StartBangka()
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"绑定实体卡成功");
|
|
|
+ m_pMainWnd->ShowToast(L"绑定实体卡成功");
|
|
|
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
|
|
|
@@ -638,7 +643,7 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
{
|
|
|
if (m_card_identify == "")
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"该会员还未绑实体卡,无需挂失");
|
|
|
+ m_pMainWnd->ShowToast(L"璇ヤ細鍛樿繕鏈�粦瀹炰綋鍗★紝鏃犻渶鎸傚け");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -657,8 +662,8 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
pXiugaiziliaoWnd->SetIcon(IDI_ICON_DUILIB);
|
|
|
pXiugaiziliaoWnd->CenterWindow();
|
|
|
|
|
|
- pXiugaiziliaoWnd->SetTitle(L"会员挂失确认");
|
|
|
- pXiugaiziliaoWnd->SetContent(L"确认挂失该会员卡吗,挂失后会员的实体会员卡将无法使用");
|
|
|
+ pXiugaiziliaoWnd->SetTitle(L"浼氬憳鎸傚け纭��");
|
|
|
+ pXiugaiziliaoWnd->SetContent(L"纭��鎸傚け璇ヤ細鍛樺崱鍚楋紝鎸傚け鍚庝細鍛樼殑瀹炰綋浼氬憳鍗″皢鏃犳硶浣跨敤");
|
|
|
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
@@ -680,7 +685,7 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
bool ret = CZhipuziHttpClient::GetInstance()->Request("/member/changeinfo", params, response);
|
|
|
if (!ret)
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"网络错误");
|
|
|
+ m_pMainWnd->ShowToast(L"缃戠粶閿欒�");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -690,7 +695,7 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
|
|
|
if (document.HasParseError())
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -698,7 +703,7 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
{
|
|
|
if (!document.HasMember("errcode") || !document.HasMember("errmsg"))
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -707,16 +712,16 @@ void CHuiyuanPageUI::StartGuashi()
|
|
|
int errcode = v_errcode.GetInt();
|
|
|
if (errcode != 0)
|
|
|
{
|
|
|
- std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"挂失会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
+ std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"挂失会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
std::wstring errorInfo = CLewaimaiString::UTF8ToUnicode(errmsg);
|
|
|
m_pMainWnd->ShowToast(errorInfo);
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- m_pMainWnd->ShowToast(L"实体卡挂失成功");
|
|
|
+ m_pMainWnd->ShowToast(L"实体卡挂失成功");
|
|
|
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
}
|
|
|
@@ -730,7 +735,7 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
{
|
|
|
if (m_freeze == "1")
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"该会员已冻结,无法继续冻结");
|
|
|
+ m_pMainWnd->ShowToast(L"该会员已冻结,无法继续冻结");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -749,8 +754,8 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
pXiugaiziliaoWnd->SetIcon(IDI_ICON_DUILIB);
|
|
|
pXiugaiziliaoWnd->CenterWindow();
|
|
|
|
|
|
- pXiugaiziliaoWnd->SetTitle(L"会员冻结确认");
|
|
|
- pXiugaiziliaoWnd->SetContent(L"确认冻结该会员吗,冻结后该会员的功能暂时无法使用");
|
|
|
+ pXiugaiziliaoWnd->SetTitle(L"浼氬憳鍐荤粨纭��");
|
|
|
+ pXiugaiziliaoWnd->SetContent(L"纭��鍐荤粨璇ヤ細鍛樺悧锛屽喕缁撳悗璇ヤ細鍛樼殑鍔熻兘鏆傛椂鏃犳硶浣跨敤");
|
|
|
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
@@ -762,7 +767,7 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
bool ret = CZhipuziHttpClient::GetInstance()->Request("/member/freeze", params, response);
|
|
|
if (!ret)
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"网络错误");
|
|
|
+ m_pMainWnd->ShowToast(L"缃戠粶閿欒�");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -772,7 +777,7 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
|
|
|
if (document.HasParseError())
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -780,7 +785,7 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
{
|
|
|
if (!document.HasMember("errcode") || !document.HasMember("errmsg"))
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -789,16 +794,16 @@ void CHuiyuanPageUI::StartDongjie()
|
|
|
int errcode = v_errcode.GetInt();
|
|
|
if (errcode != 0)
|
|
|
{
|
|
|
- std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"冻结会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
+ std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"冻结会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
std::wstring errorInfo = CLewaimaiString::UTF8ToUnicode(errmsg);
|
|
|
m_pMainWnd->ShowToast(errorInfo);
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- m_pMainWnd->ShowToast(L"会员冻结成功");
|
|
|
+ m_pMainWnd->ShowToast(L"浼氬憳鍐荤粨鎴愬姛");
|
|
|
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
}
|
|
|
@@ -812,7 +817,7 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
{
|
|
|
if (m_freeze == "0")
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"该会员未冻结,无法继续解冻");
|
|
|
+ m_pMainWnd->ShowToast(L"该会员未冻结,无法继续解冻");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -831,8 +836,8 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
pXiugaiziliaoWnd->SetIcon(IDI_ICON_DUILIB);
|
|
|
pXiugaiziliaoWnd->CenterWindow();
|
|
|
|
|
|
- pXiugaiziliaoWnd->SetTitle(L"会员解冻确认");
|
|
|
- pXiugaiziliaoWnd->SetContent(L"确认解冻该会员吗,解冻后该会员将恢复正常的会员功能");
|
|
|
+ pXiugaiziliaoWnd->SetTitle(L"浼氬憳瑙e喕纭��");
|
|
|
+ pXiugaiziliaoWnd->SetContent(L"确认解冻该会员吗,解冻后该会员将恢复正常的会员功能");
|
|
|
|
|
|
UINT ret = pXiugaiziliaoWnd->ShowModal();
|
|
|
if (ret == IDOK)
|
|
|
@@ -844,7 +849,7 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
bool ret = CZhipuziHttpClient::GetInstance()->Request("/member/unfreeze", params, response);
|
|
|
if (!ret)
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"网络错误");
|
|
|
+ m_pMainWnd->ShowToast(L"缃戠粶閿欒�");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -854,7 +859,7 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
|
|
|
if (document.HasParseError())
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -862,7 +867,7 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
{
|
|
|
if (!document.HasMember("errcode") || !document.HasMember("errmsg"))
|
|
|
{
|
|
|
- m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
+ m_pMainWnd->ShowToast(L"服务器返回数据格式错误");
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
@@ -871,16 +876,16 @@ void CHuiyuanPageUI::StartJiedong()
|
|
|
int errcode = v_errcode.GetInt();
|
|
|
if (errcode != 0)
|
|
|
{
|
|
|
- std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"解冻会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
+ std::string errmsg = CLewaimaiString::UnicodeToUTF8(L"解冻会员失败:") + std::string(document["errmsg"].GetString());
|
|
|
std::wstring errorInfo = CLewaimaiString::UTF8ToUnicode(errmsg);
|
|
|
m_pMainWnd->ShowToast(errorInfo);
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- m_pMainWnd->ShowToast(L"会员解冻成功");
|
|
|
+ m_pMainWnd->ShowToast(L"浼氬憳瑙e喕鎴愬姛");
|
|
|
|
|
|
- //重新搜索,更新会员信息
|
|
|
+ //重新搜索,更新会员信息
|
|
|
StartHuiyuanSousuo();
|
|
|
}
|
|
|
}
|