Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_epay
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_epay
Commits
9426a791
Commit
9426a791
authored
Aug 14, 2017
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在支付界面上添加卡券核销功能
parent
c0c3e4f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
fmp_epayview_dialog.cpp
+23
-2
fmp_epayview_dialog.h
+2
-0
version.h
+1
-1
No files found.
fmp_epayview_dialog.cpp
View file @
9426a791
...
...
@@ -5,6 +5,7 @@
#include "fmp_epay_checkmodel.h"
#include "fmp_epay_plugin_p.h"
#include "fmp_forceclose_dialog.h"
#include "fmp_redeem_i.h"
#include <QDebug>
#include <fmp_settings_i.h>
...
...
@@ -16,7 +17,8 @@
#include <QDesktopWidget>
#include <QStandardItemModel>
#include <QPropertyAnimation>
#include <QPushButton>
#include <QVBoxLayout>
FMPPayDialog
::
FMPPayDialog
(
FMPePayPrivate
*
control
,
QVariantHash
basicinfo
,
QWidget
*
parent
)
:
_control
(
control
),
...
...
@@ -25,7 +27,6 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, QVariantHash basicinfo, QWid
{
ui
->
setupUi
(
this
);
//this->setWindowIconText(QString::fromLocal8Bit("非码支付"));
this
->
setWindowTitle
(
QString
::
fromLocal8Bit
(
"非码支付"
));
...
...
@@ -179,6 +180,11 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, QVariantHash basicinfo, QWid
// ui->btn_refund->setEnabled(false);
// ui->btn_pay->setEnabled(false);
}
QPushButton
*
redeem
=
new
QPushButton
(
QString
::
fromLocal8Bit
(
"卡券支付"
),
this
);
redeem
->
setStyleSheet
(
"width:250px"
);
connect
(
redeem
,
&
QPushButton
::
clicked
,
this
,
&
FMPPayDialog
::
redeem
);
QVBoxLayout
*
layout
=
qobject_cast
<
QVBoxLayout
*>
(
ui
->
frame
->
layout
());
layout
->
insertWidget
(
4
,
redeem
);
setShowFunc
();
}
...
...
@@ -1087,5 +1093,20 @@ void FMPPayDialog::setShowFunc()
//setWaitPayView();
ui
->
btn_waitPay
->
click
();
}
}
#ifdef Q_OS_WIN
//!命名冲突
#undef StartService
#endif
void
FMPPayDialog
::
redeem
()
{
FMPRedeemInterface
*
redeem
=
FMP
::
GetService
<
FMPRedeemInterface
>
();
redeem
->
StartService
();
QJsonObject
storeInfo
;
storeInfo
[
"store_id"
]
=
"99998"
;
storeInfo
[
"station_id"
]
=
1
;
storeInfo
[
"operator_id"
]
=
"00000002"
;
QJsonObject
result
=
redeem
->
Redeem
(
storeInfo
);
qDebug
()
<<
result
;
}
fmp_epayview_dialog.h
View file @
9426a791
...
...
@@ -100,6 +100,8 @@ private slots:
void
on_btn_waitPay_close_clicked
();
void
redeem
();
public
:
void
setPayView
();
...
...
version.h
View file @
9426a791
...
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 1
7
#define VER_BUILD 1
9
//! Convert version numbers to string
#define _STR(S) #S
...
...
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