Commit 035b9d0d by NitefullWind

1. 手机号认证后弹窗显示会员信息。

parent 351d3901
......@@ -62,10 +62,17 @@ void TaskLogin::onLogin()
QString account = getServerJsonValue(PosProps.Account).toString();
QString birthday = getServerJsonValue(PosProps.Birthday).toString();
QString name = getServerJsonValue(PosProps.Name).toString();
if(name.isEmpty()) {
name = "--";
}
double amount = getServerJsonValue(PosProps.Amount).toInt()/100.0;
int score = getServerJsonValue(PosProps.Score).toInt();
// if(session()->data(PosProps.FM_Type).toInt() == FM_Login) {
if(session()->data(PosProps.FM_Type).toInt() == FM_Login) {
QString info = QString::fromLocal8Bit("姓名: %1\n余额: %2\n积分: %3").arg(name).arg(amount).arg(score);
FMMsgWnd::SuccessWnd(info, _window);
// FMMsgWnd::LoginSuccess(account,name,birthday, _window);
// } else {
} else {
session()->addData(PosProps.Name, name);
session()->addData(PosProps.Amount, getServerJsonValue(PosProps.Amount).toInt());
session()->addData(PosProps.Birthday, birthday);
......@@ -88,7 +95,7 @@ void TaskLogin::onLogin()
couponMap[code] = v;
}
session()->addData(PosProps.CouponMap, couponMap);
// }
}
_window->accept();
}
if(_window!=nullptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment