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
xiaojing.zhang
fmp_vip
Commits
c155641f
Commit
c155641f
authored
Jul 24, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复使用积分接口字段。 2. 修复代金券抵扣金额字段。 3. 消除两个警告。
parent
b45ef97b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
global.h
+3
-1
task/taskpay.cpp
+1
-1
task/taskpay.h
+1
-1
windows/fmviporder.cpp
+6
-6
windows/fmviporder.h
+2
-2
No files found.
global.h
View file @
c155641f
...
...
@@ -87,7 +87,7 @@ struct PP{
CodeAmount
=
"codeAmount"
;
ScoreAmount
=
"scoreAmount"
;
IsUseScore
=
"is
use
score"
;
IsUseScore
=
"is
_use_
score"
;
Coupons
=
"coupons"
;
Transaction
=
"transactions"
;
OrderAmount
=
"order_amount"
;
...
...
@@ -105,6 +105,7 @@ struct PP{
CouponList
=
"couponList"
;
// 代金券列表
Coupon_code
=
"code"
;
// 优惠券 / 代金券编码
Coupon_disAmount
=
"disAmount"
;
// 代金券抵扣金额
Coupon_disPrice
=
"dis_price"
;
Coupon_desc
=
"desc"
;
// 代金券描述
CouponMap
=
"payCouponMap"
;
// 代金券map
...
...
@@ -172,6 +173,7 @@ struct PP{
QString
CouponList
;
QString
Coupon_code
;
QString
Coupon_disAmount
;
QString
Coupon_disPrice
;
QString
Coupon_desc
;
QString
CouponMap
;
// 产品
...
...
task/taskpay.cpp
View file @
c155641f
...
...
@@ -103,7 +103,7 @@ void TaskPay::packagePOSRsp()
QJsonObject
cp
=
coupon
.
toObject
();
pay_id
[
PosProps
.
Pay_id
]
=
"20003"
;
pay_id
[
PosProps
.
Pay_str
]
=
QString
::
fromLocal8Bit
(
"代金券支付"
);
int
disAmount
=
cp
[
ServerProps
(
PosProps
.
Coupon_dis
Amount
)].
toInt
();
int
disAmount
=
cp
[
ServerProps
(
PosProps
.
Coupon_dis
Price
)].
toInt
();
pay_id
[
PosProps
.
Pay_amount
]
=
disAmount
;
pay_id
[
PosProps
.
Coupon_code
]
=
cp
[
ServerProps
(
PosProps
.
Coupon_code
)];
pay_ids
.
append
(
pay_id
);
...
...
task/taskpay.h
View file @
c155641f
...
...
@@ -19,7 +19,7 @@ public:
private
slots
:
void
onPay
();
void
TaskPay
::
onGetCoupons
(
Session
*
session
);
void
onGetCoupons
(
Session
*
session
);
private
:
TaskCouponThread
*
couponThread
;
...
...
windows/fmviporder.cpp
View file @
c155641f
...
...
@@ -10,18 +10,18 @@ FMVipOrder::FMVipOrder(QDialog *parent) :
FMVipWnd
(
parent
),
ui
(
new
Ui
::
FMVipOrder
)
{
numpad
=
NULL
;
//
numpad = NULL;
ui
->
setupUi
(
this
);
}
FMVipOrder
::~
FMVipOrder
()
{
del_p
(
orderInfo
);
if
(
numpad
!=
NULL
)
{
delete
numpad
;
numpad
=
NULL
;
}
//
if(numpad != NULL)
//
{
//
delete numpad;
//
numpad = NULL;
//
}
delete
ui
;
}
...
...
windows/fmviporder.h
View file @
c155641f
...
...
@@ -6,7 +6,7 @@
#include "fmvipwnd.h"
#include "global.h"
class
FMNumPad
;
//
class FMNumPad;
class
CouponModel
;
class
QItemSelectionModel
;
...
...
@@ -162,7 +162,7 @@ private:
QString
oldPayText
;
FMNumPad
*
numpad
;
//
FMNumPad *numpad;
QItemSelectionModel
*
selectionModel
;
CouponModel
*
couponModel
;
...
...
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