Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
46211a76
Commit
46211a76
authored
Oct 08, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券标题展示问题
parent
0bcc5497
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
CouponService.php
application/models/Business/Coupon/CouponService.php
+10
-2
OrderService.php
application/models/Business/Order/OrderService.php
+5
-1
Coupon.php
application/models/DAO/Coupon/Coupon.php
+10
-2
No files found.
application/models/Business/Coupon/CouponService.php
View file @
46211a76
...
...
@@ -51,7 +51,11 @@ class CouponServiceModel extends \Business\AbstractModel{
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullAvailable
,
$orderAmount
);
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
discountCouponType
){
$temp
[
'title'
]
=
$coupon
[
'discount'
];
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
if
(
$orderAmount
>
0
){
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
}
else
{
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscountNoAmoutLimit
,
$coupon
[
'discount'
]);
}
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForCouponCouponType
){
$temp
[
'title'
]
=
\Our\DescribeConst
::
specialCoupon
;
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullForCoupon
,
$orderAmount
);
...
...
@@ -105,7 +109,11 @@ class CouponServiceModel extends \Business\AbstractModel{
$result
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullAvailable
,
$orderAmount
);
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
discountCouponType
){
$result
[
'title'
]
=
$coupon
[
'discount'
];
$result
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
if
(
$orderAmount
>
0
){
$result
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
}
else
{
$result
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscountNoAmoutLimit
,
$coupon
[
'discount'
]);
}
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForCouponCouponType
){
$result
[
'title'
]
=
\Our\DescribeConst
::
specialCoupon
;
$result
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullForCoupon
,
$orderAmount
);
...
...
application/models/Business/Order/OrderService.php
View file @
46211a76
...
...
@@ -1015,7 +1015,11 @@ class OrderServiceModel extends \Business\AbstractModel
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullAvailable
,
$orderAmount
);
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
discountCouponType
)
{
$temp
[
'title'
]
=
$coupon
[
'discount'
];
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
if
(
$orderAmount
>
0
){
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
}
else
{
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscountNoAmoutLimit
,
$coupon
[
'discount'
]);
}
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForCouponCouponType
)
{
$temp
[
'title'
]
=
\Our\DescribeConst
::
specialCoupon
;
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullForCoupon
,
$orderAmount
);
...
...
application/models/DAO/Coupon/Coupon.php
View file @
46211a76
...
...
@@ -262,7 +262,11 @@ class CouponModel extends \DAO\AbstractModel {
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullMinusCouponType
){
//满额减免券
$temp
[
'title'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullAvailAble
,
$orderAmount
,
intval
(
$coupon
[
'cash_money'
]));
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
discountCouponType
){
$temp
[
'title'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
if
(
$orderAmount
>
0
){
$temp
[
'title'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
}
else
{
$temp
[
'title'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscountNoAmoutLimit
,
$coupon
[
'discount'
]);
}
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForCouponCouponType
){
$temp
[
'title'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullForCoupon
,
$orderAmount
);
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForGiftCouponType
){
...
...
@@ -299,7 +303,11 @@ class CouponModel extends \DAO\AbstractModel {
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullAvailable
,
$orderAmount
);
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
discountCouponType
){
$temp
[
'title'
]
=
$coupon
[
'discount'
];
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
if
(
$orderAmount
>
0
){
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscount
,
$orderAmount
,
$coupon
[
'discount'
]);
}
else
{
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponTitleFullDiscountNoAmoutLimit
,
$coupon
[
'discount'
]);
}
}
else
if
(
$coupon
[
'coupon_type'
]
==
\Our\ApiConst
::
fullForCouponCouponType
){
$temp
[
'title'
]
=
\Our\DescribeConst
::
specialCoupon
;
$temp
[
'subTitle'
]
=
\Our\Common
::
format
(
\Our\DescribeConst
::
couponFullForCoupon
,
$orderAmount
);
...
...
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