Commit 9b5214e3 by NitefullWind

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

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