Commit 9b5214e3 by NitefullWind

1. 认证接口返回认证时的会员号。 2. 修改错误弹出框的图片。

parent b6bc3ced
......@@ -28,7 +28,7 @@ void TaskLogin::setWindow()
void TaskLogin::packageServerReq()
{
QJsonObject code;
code["code"] = session()->data("code").toString();
code[ServerProps(PosProps.Member_sign)] = session()->data(PosProps.Member_sign).toString();
serverReqJsonObj["data"] = code;
}
......@@ -49,6 +49,7 @@ void TaskLogin::packagePOSRsp()
posRspJsonObj["phone"] = getServerJsonValue("mobile").toString();
posRspJsonObj["address"] = getServerJsonValue("address").toString();
posRspJsonObj["email"] = getServerJsonValue("email").toString();
posRspJsonObj[PosProps.Member_sign] = session()->data(PosProps.Member_sign).toString();
}
void TaskLogin::onLogin()
......
......@@ -25,17 +25,17 @@ void FMMsgWnd::show(InfoType type, const QString &info)
iconUrl = "";
break;
case T_Success:
iconUrl = ":/tip_ok.png";
iconUrl = ":/img/tip_ok.png";
break;
case T_Failure:
iconUrl = ":/tip_error.png";
iconUrl = ":/img/tip_error.png";
break;
case T_Warning:
iconUrl = ":/tip_warning.png";
iconUrl = ":/img/tip_warning.png";
break;
case T_LoginSuccess:
ui->label_msg->setText(QString::fromLocal8Bit("会员认证成功"));
iconUrl = ":/tip_ok.png";
iconUrl = ":/img/tip_ok.png";
break;
default:
iconUrl = "";
......@@ -43,8 +43,7 @@ void FMMsgWnd::show(InfoType type, const QString &info)
}
if(iconUrl != ""){
QPixmap icon(iconUrl);
ui->label_logo->setPixmap(icon);
ui->label_logo->setStyleSheet(QString("border-image: url(%1);").arg(iconUrl));
}
ui->label_msg->setText(info);
......
......@@ -53,7 +53,7 @@ void FMVipLogin::on_login_btn_clicked()
{
QString id = ui->login_edit->text();
_session->addData("code", id);
_session->addData(PosProps.Member_sign, id);
this->setEnabled(false);
......
......@@ -17,10 +17,7 @@
<string>FMMsgwnd</string>
</property>
<property name="styleSheet">
<string notr="true">#label_logo
{
border-image: url(:/img/tip_ok.png);
}</string>
<string notr="true"/>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="spacing">
......
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