Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
f380693b
提交
f380693b
authored
2月 25, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【APK-书架】优惠券没有到开始使用时间显示,显示优化建议
上级
c5a7162d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
2 行删除
+8
-2
mine.dart
lib/models/mine.dart
+7
-1
item.dart
lib/pages/pay_coupon/widgets/item.dart
+1
-1
没有找到文件。
lib/models/mine.dart
浏览文件 @
f380693b
...
@@ -72,6 +72,7 @@ class CouponModel {
...
@@ -72,6 +72,7 @@ class CouponModel {
CouponModel
({
CouponModel
({
this
.
couponRecId
,
this
.
couponRecId
,
this
.
endTime
,
this
.
endTime
,
this
.
startTime
,
this
.
couponId
,
this
.
couponId
,
this
.
useStatus
,
this
.
useStatus
,
this
.
couponName
,
this
.
couponName
,
...
@@ -83,6 +84,7 @@ class CouponModel {
...
@@ -83,6 +84,7 @@ class CouponModel {
CouponModel
.
fromJson
(
dynamic
json
)
{
CouponModel
.
fromJson
(
dynamic
json
)
{
couponRecId
=
json
[
'coupon_rec_id'
];
couponRecId
=
json
[
'coupon_rec_id'
];
endTime
=
json
[
'end_time'
];
endTime
=
json
[
'end_time'
];
startTime
=
json
[
'start_time'
];
couponId
=
json
[
'coupon_id'
];
couponId
=
json
[
'coupon_id'
];
useStatus
=
json
[
'use_status'
];
useStatus
=
json
[
'use_status'
];
couponName
=
json
[
'coupon_name'
];
couponName
=
json
[
'coupon_name'
];
...
@@ -93,6 +95,7 @@ class CouponModel {
...
@@ -93,6 +95,7 @@ class CouponModel {
num
?
couponRecId
;
num
?
couponRecId
;
String
?
endTime
;
String
?
endTime
;
String
?
startTime
;
num
?
couponId
;
num
?
couponId
;
num
?
useStatus
;
num
?
useStatus
;
String
?
couponName
;
String
?
couponName
;
...
@@ -103,6 +106,7 @@ class CouponModel {
...
@@ -103,6 +106,7 @@ class CouponModel {
CouponModel
copyWith
({
CouponModel
copyWith
({
num
?
couponRecId
,
num
?
couponRecId
,
String
?
endTime
,
String
?
endTime
,
String
?
startTime
,
num
?
couponId
,
num
?
couponId
,
num
?
useStatus
,
num
?
useStatus
,
String
?
couponName
,
String
?
couponName
,
...
@@ -113,6 +117,7 @@ class CouponModel {
...
@@ -113,6 +117,7 @@ class CouponModel {
CouponModel
(
CouponModel
(
couponRecId:
couponRecId
??
this
.
couponRecId
,
couponRecId:
couponRecId
??
this
.
couponRecId
,
endTime:
endTime
??
this
.
endTime
,
endTime:
endTime
??
this
.
endTime
,
startTime:
startTime
??
this
.
startTime
,
couponId:
couponId
??
this
.
couponId
,
couponId:
couponId
??
this
.
couponId
,
useStatus:
useStatus
??
this
.
useStatus
,
useStatus:
useStatus
??
this
.
useStatus
,
couponName:
couponName
??
this
.
couponName
,
couponName:
couponName
??
this
.
couponName
,
...
@@ -124,7 +129,8 @@ class CouponModel {
...
@@ -124,7 +129,8 @@ class CouponModel {
Map
<
String
,
dynamic
>
toJson
()
{
Map
<
String
,
dynamic
>
toJson
()
{
final
map
=
<
String
,
dynamic
>{};
final
map
=
<
String
,
dynamic
>{};
map
[
'coupon_rec_id'
]
=
couponRecId
;
map
[
'coupon_rec_id'
]
=
couponRecId
;
// map['end_time'] = endTime;
map
[
'end_time'
]
=
endTime
;
map
[
'start_time'
]
=
startTime
;
map
[
'coupon_id'
]
=
couponId
;
map
[
'coupon_id'
]
=
couponId
;
map
[
'use_status'
]
=
useStatus
;
map
[
'use_status'
]
=
useStatus
;
map
[
'coupon_name'
]
=
couponName
;
map
[
'coupon_name'
]
=
couponName
;
...
...
lib/pages/pay_coupon/widgets/item.dart
浏览文件 @
f380693b
...
@@ -74,7 +74,7 @@ class BuildItem extends StatelessWidget {
...
@@ -74,7 +74,7 @@ class BuildItem extends StatelessWidget {
Gaps
.
vGaps5
,
Gaps
.
vGaps5
,
Text
(
'满
${model.normPrice}
减
${model.reducedPrice}
元'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'满
${model.normPrice}
减
${model.reducedPrice}
元'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Gaps
.
vGaps5
,
Gaps
.
vGaps5
,
Text
(
'有效至:
${model.endTime}
'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
model
.
type
==
1
?
Text
(
'有效至:
${model.endTime}
'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),):
Text
(
'有效期
${model.startTime}
至
${model.endTime}
'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
],
],
),
),
if
(
model
.
type
==
1
)
GestureDetector
(
if
(
model
.
type
==
1
)
GestureDetector
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论