Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
e33cd36c
提交
e33cd36c
authored
2月 26, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ui修改
上级
bd686d99
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
45 行增加
和
49 行删除
+45
-49
order.dart
lib/models/order.dart
+6
-6
filter.dart
lib/pages/library/widgets/filter.dart
+3
-4
view.dart
lib/pages/pay_coupon/view.dart
+5
-4
view.dart
lib/pages/study_report/view.dart
+8
-12
controller.dart
lib/pages/user_order/controller.dart
+21
-21
view.dart
lib/pages/user_security/view.dart
+2
-2
没有找到文件。
lib/models/order.dart
浏览文件 @
e33cd36c
...
...
@@ -214,7 +214,7 @@ class CartListModel {
String
?
introduction
;
// 简介
num
?
rating
;
// 评价星级
String
?
comments
;
// 评价内容
String
?
commentId
;
// 评价id
num
?
commentId
;
// 评价id
CartListModel
copyWith
({
num
?
recordId
,
//书籍记录id
...
...
@@ -228,7 +228,7 @@ class CartListModel {
String
?
introduction
,
// 简介
num
?
rating
,
// 评价星级
String
?
comments
,
// 评价内容
String
?
commentId
,
// 评价id
num
?
commentId
,
// 评价id
})
=>
CartListModel
(
recordId:
recordId
??
this
.
recordId
,
...
...
@@ -432,8 +432,8 @@ class BookListModel {
String
?
introduction
;
String
?
price
;
num
?
rating
;
num
?
comments
;
num
?
createTime
;
String
?
comments
;
String
?
createTime
;
BookListModel
copyWith
({
num
?
bookId
,
num
?
recordId
,
String
?
name
,
...
...
@@ -441,8 +441,8 @@ class BookListModel {
String
?
introduction
,
String
?
price
,
num
?
rating
,
num
?
comments
,
num
?
createTime
,
String
?
comments
,
String
?
createTime
,
})
=>
BookListModel
(
bookId:
bookId
??
this
.
bookId
,
recordId:
recordId
??
this
.
recordId
,
name:
name
??
this
.
name
,
...
...
lib/pages/library/widgets/filter.dart
浏览文件 @
e33cd36c
...
...
@@ -126,22 +126,21 @@ class _FilterPageState extends State<FilterPage> {
},
child:
Container
(
height:
27
,
padding:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
,
top:
4
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
13.5
),
color:
model
.
selected
?
const
Color
(
0xFFC02D55
).
withOpacity
(
0.08
):
Colours
.
cF4
,
border:
model
.
selected
?
Border
.
all
(
width:
0.5
.
w
,
color:
AppTheme
.
primary
):
null
),
child:
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
child:
model
.
name
==
'读过'
||
model
.
name
==
'评分'
?
Row
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
Text
(
model
.
name
??
''
,
style:
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
model
.
selected
?
AppTheme
.
primary
:
Colours
.
c3
),
textAlign:
TextAlign
.
center
,),
Image
.
asset
(
model
.
selected
?
'assets/images/filter_select.png'
:
'assets/images/filter_unselect.png'
),
],
):
Text
(
model
.
name
??
''
,
style:
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
model
.
selected
?
AppTheme
.
primary
:
Colours
.
c3
),
textAlign:
TextAlign
.
center
,),
),
):
Text
(
model
.
name
??
''
,
style:
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
model
.
selected
?
AppTheme
.
primary
:
Colours
.
c3
),
textAlign:
TextAlign
.
end
,),
),
);
}).
toList
(),
...
...
lib/pages/pay_coupon/view.dart
浏览文件 @
e33cd36c
...
...
@@ -39,12 +39,13 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
children:
[
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC8
.
withOpacity
(
0.1
),
// 设置阴影颜色
spreadRadius:
5
,
// 设置阴影扩散程度
blurRadius:
7
,
// 设置阴影模糊程度
offset:
Offset
(
0
,
5
),
// 设置阴影位置
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.3
),
spreadRadius:
2
.
w
,
blurRadius:
5
.
w
,
offset:
Offset
(
3
.
w
,
0
),
//
),
],
),
...
...
lib/pages/study_report/view.dart
浏览文件 @
e33cd36c
...
...
@@ -130,7 +130,7 @@ class _StudyReportPageState extends State<StudyReportPage> {
children:
[
Container
(
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
top:
15
.
w
,
bottom:
15
.
w
,
right:
30
),
height:
1
65
,
height:
1
72
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
...
...
@@ -165,12 +165,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
Row
(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children:
[
SizedBox
(
width:
80
.
w
,
child:
Text
(
'总回顾'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
),
RichText
(
text:
TextSpan
(
children:
[
TextSpan
(
text:
'总回顾'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
WidgetSpan
(
child:
SizedBox
(
width:
36
.
w
),),
TextSpan
(
text:
controller
.
model
.
questionAllNums
!=
null
?
controller
.
model
.
questionAllNums
.
toString
():
''
,
style:
TextStyle
(
fontSize:
21
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
)),
TextSpan
(
text:
'/条'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
]
...
...
@@ -180,12 +178,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
Row
(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children:
[
SizedBox
(
width:
80
.
w
,
child:
Text
(
'评论正确率'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
),
RichText
(
text:
TextSpan
(
children:
[
TextSpan
(
text:
'评论正确率'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
WidgetSpan
(
child:
SizedBox
(
width:
8
.
w
),),
TextSpan
(
text:
controller
.
model
.
questionAccuracy
!=
null
?
controller
.
model
.
questionAccuracy
.
toString
():
''
,
style:
TextStyle
(
fontSize:
21
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
)),
TextSpan
(
text:
'%'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
]
...
...
@@ -213,7 +209,7 @@ class _StudyReportPageState extends State<StudyReportPage> {
),
],
),
height:
1
65
.
w
,
height:
1
72
.
w
,
child:
Column
(
children:
[
Row
(
...
...
@@ -261,10 +257,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
}){
return
Row
(
children:
[
Text
(
title
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Gaps
.
hGaps5
,
RichText
(
text:
TextSpan
(
children:
[
TextSpan
(
text:
title
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c9
)),
WidgetSpan
(
child:
SizedBox
(
width:
8
.
w
),),
TextSpan
(
text:
num
==
'null'
?
''
:
num
,
style:
TextStyle
(
fontSize:
21
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
)),
TextSpan
(
text:
'/条'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
]
...
...
lib/pages/user_order/controller.dart
浏览文件 @
e33cd36c
...
...
@@ -104,7 +104,7 @@ class UserOrderController extends GetxController
introduction:
"1一想到还有9"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -127,7 +127,7 @@ class UserOrderController extends GetxController
introduction:
"一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -139,7 +139,7 @@ class UserOrderController extends GetxController
introduction:
"一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -151,7 +151,7 @@ class UserOrderController extends GetxController
introduction:
"一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -163,7 +163,7 @@ class UserOrderController extends GetxController
introduction:
"一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -186,7 +186,7 @@ class UserOrderController extends GetxController
introduction:
"2一想到还有95%的一想到"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
22
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -209,7 +209,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -221,7 +221,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -233,7 +233,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -245,7 +245,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -268,7 +268,7 @@ class UserOrderController extends GetxController
introduction:
"3一想到还有95%的想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -291,7 +291,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -303,7 +303,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -315,7 +315,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -327,7 +327,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -350,7 +350,7 @@ class UserOrderController extends GetxController
introduction:
"4一想到还有95%的问题到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
id:
1
,
...
...
@@ -373,7 +373,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -385,7 +385,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -397,7 +397,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -409,7 +409,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
CartListModel
(
recordId:
876
,
orderId:
712
,
...
...
@@ -421,7 +421,7 @@ class UserOrderController extends GetxController
introduction:
"这是一本书"
,
rating:
4.5
,
comments:
"好好好"
,
commentId:
'2'
),
commentId:
2
),
]));
orderList
.
add
(
OrderListModel
(
ordersnum:
"aeewar34r"
,
...
...
lib/pages/user_security/view.dart
浏览文件 @
e33cd36c
...
...
@@ -130,7 +130,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
child:
const
Text
(
'取消'
,
style:
TextStyle
(
fontSize:
1
2
,
fontSize:
1
5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c6
,
),
...
...
@@ -161,7 +161,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
child:
const
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
1
2
,
fontSize:
1
5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
cAB1941
,
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论