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
035b9d0d
Commit
035b9d0d
authored
Sep 04, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 手机号认证后弹窗显示会员信息。
parent
351d3901
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
task/tasklogin.cpp
+10
-3
No files found.
task/tasklogin.cpp
View file @
035b9d0d
...
...
@@ -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
)
{
...
...
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