Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_vip
Commits
9b5214e3
Commit
9b5214e3
authored
Jul 21, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 认证接口返回认证时的会员号。 2. 修改错误弹出框的图片。
parent
b6bc3ced
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
12 deletions
+9
-12
task/tasklogin.cpp
+2
-1
windows/fmmsgwnd.cpp
+5
-6
windows/fmviplogin.cpp
+1
-1
windows/forms/fmmsgwnd.ui
+1
-4
No files found.
task/tasklogin.cpp
View file @
9b5214e3
...
@@ -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
()
...
...
windows/fmmsgwnd.cpp
View file @
9b5214e3
...
@@ -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
);
...
...
windows/fmviplogin.cpp
View file @
9b5214e3
...
@@ -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
);
...
...
windows/forms/fmmsgwnd.ui
View file @
9b5214e3
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment