Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
249e7567
提交
249e7567
authored
2月 24, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
页面修改
上级
7c329c54
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
59 行增加
和
37 行删除
+59
-37
view.dart
lib/pages/book_detail/view.dart
+5
-1
book.dart
lib/pages/book_detail/widgets/book.dart
+1
-1
study.dart
lib/pages/book_detail/widgets/study.dart
+3
-3
view.dart
lib/pages/book_info/view.dart
+1
-1
view.dart
lib/pages/book_pay/view.dart
+3
-3
count.dart
lib/pages/book_shop/widgets/count.dart
+1
-1
view.dart
lib/pages/pay_coupon/view.dart
+24
-11
item.dart
lib/pages/pay_coupon/widgets/item.dart
+2
-1
view.dart
lib/pages/read_web/view.dart
+6
-2
book.dart
lib/pages/read_web/widgets/book.dart
+1
-1
history.dart
lib/pages/search/widgets/history.dart
+2
-2
discuss.dart
lib/pages/user_discuss_des/widgets/discuss.dart
+7
-7
view.dart
lib/pages/user_set/view.dart
+3
-3
没有找到文件。
lib/pages/book_detail/view.dart
浏览文件 @
249e7567
...
@@ -77,9 +77,13 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
...
@@ -77,9 +77,13 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
),
),
),
),
Container
(
Container
(
height:
1
,
height:
1
.
w
,
color:
const
Color
(
0xFFF9F9F9
),
color:
const
Color
(
0xFFF9F9F9
),
),
),
Container
(
height:
8
.
w
,
color:
Colors
.
transparent
,
),
Expanded
(
Expanded
(
child:
TabBarView
(
child:
TabBarView
(
controller:
controller
.
tabController
,
controller:
controller
.
tabController
,
...
...
lib/pages/book_detail/widgets/book.dart
浏览文件 @
249e7567
...
@@ -53,7 +53,7 @@ class BuildBook extends StatelessWidget {
...
@@ -53,7 +53,7 @@ class BuildBook extends StatelessWidget {
model
.
bookName
??
''
,
model
.
bookName
??
''
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
17
.
w
,
fontSize:
17
.
w
,
fontWeight:
Fonts
.
medium
,
fontWeight:
Fonts
.
boldSemi
,
color:
Colours
.
c3
),
color:
Colours
.
c3
),
maxLines:
1
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
overflow:
TextOverflow
.
ellipsis
,
...
...
lib/pages/book_detail/widgets/study.dart
浏览文件 @
249e7567
...
@@ -28,7 +28,7 @@ class _BuildStudyState extends State<BuildStudy> {
...
@@ -28,7 +28,7 @@ class _BuildStudyState extends State<BuildStudy> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
children:
[
Text
(
widget
.
model
.
rating
??
''
,
style:
TextStyle
(
fontSize:
18
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
)),
Text
(
widget
.
model
.
rating
??
''
,
style:
TextStyle
(
fontSize:
18
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
)),
Text
(
'/5.0'
,
style:
TextStyle
(
fontSize:
1
5
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c9
),)
Text
(
'/5.0'
,
style:
TextStyle
(
fontSize:
1
8
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c9
),)
],
],
),
),
AbsorbPointer
(
AbsorbPointer
(
...
@@ -55,7 +55,7 @@ class _BuildStudyState extends State<BuildStudy> {
...
@@ -55,7 +55,7 @@ class _BuildStudyState extends State<BuildStudy> {
children:
[
children:
[
TextSpan
(
TextSpan
(
text:
widget
.
model
.
readNum
.
toString
(),
text:
widget
.
model
.
readNum
.
toString
(),
style:
TextStyle
(
fontSize:
1
8
.
w
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
,
height:
1.3
)
style:
TextStyle
(
fontSize:
1
7
.
w
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
,
height:
1.3
)
),
),
// TextSpan(
// TextSpan(
// text: '万',
// text: '万',
...
@@ -63,7 +63,7 @@ class _BuildStudyState extends State<BuildStudy> {
...
@@ -63,7 +63,7 @@ class _BuildStudyState extends State<BuildStudy> {
// )
// )
]
]
)),
)),
Text
(
'学习次数'
,
style:
TextStyle
(
fontSize:
1
2
.
w
,
color:
Colours
.
c9
,
height:
1.3
)),
Text
(
'学习次数'
,
style:
TextStyle
(
fontSize:
1
5
.
w
,
color:
Colours
.
c9
,
height:
1.3
)),
],
],
),
),
)
)
...
...
lib/pages/book_info/view.dart
浏览文件 @
249e7567
...
@@ -83,7 +83,7 @@ class BookInfoPage extends StatelessWidget {
...
@@ -83,7 +83,7 @@ class BookInfoPage extends StatelessWidget {
return
_buildProgrss
(
5
-
index
.
toDouble
(),
model
.
ratingCount
==
0
?
0
:
model
.
ratingList
![
index
].
toDouble
()/
model
.
ratingCount
!);
return
_buildProgrss
(
5
-
index
.
toDouble
(),
model
.
ratingCount
==
0
?
0
:
model
.
ratingList
![
index
].
toDouble
()/
model
.
ratingCount
!);
}).
toList
()
}).
toList
()
),
),
Text
(
'
${model.ratingCount}
个评分'
,
style:
TextStyle
(
fontSize:
9
.
w
,
height:
1.4
,
color:
Colours
.
c9
),)
Text
(
'
${model.ratingCount}
个评分'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.4
,
color:
Colours
.
c9
),)
],
],
),
),
),
),
...
...
lib/pages/book_pay/view.dart
浏览文件 @
249e7567
...
@@ -128,7 +128,7 @@ class _BookPayPageState extends State<BookPayPage> {
...
@@ -128,7 +128,7 @@ class _BookPayPageState extends State<BookPayPage> {
child:
ClipRRect
(
child:
ClipRRect
(
borderRadius:
BorderRadius
.
only
(
topRight:
Radius
.
circular
(
8
.
w
),
topLeft:
Radius
.
circular
(
8
.
w
)),
borderRadius:
BorderRadius
.
only
(
topRight:
Radius
.
circular
(
8
.
w
),
topLeft:
Radius
.
circular
(
8
.
w
)),
child:
Container
(
child:
Container
(
height:
2
4
0
.
w
,
height:
2
1
0
.
w
,
color:
Colors
.
white
,
color:
Colors
.
white
,
child:
_buildPayDetail
(
controller
),
child:
_buildPayDetail
(
controller
),
),
),
...
@@ -153,7 +153,7 @@ class _BookPayPageState extends State<BookPayPage> {
...
@@ -153,7 +153,7 @@ class _BookPayPageState extends State<BookPayPage> {
child:
const
Row
(
child:
const
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
children:
[
Text
(
'应付明细'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontSize:
1
5
,
height:
1.1
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),),
Text
(
'应付明细'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontSize:
1
9
,
height:
1.1
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
boldSemi
),),
],
],
),
),
),
),
...
@@ -173,7 +173,7 @@ class _BookPayPageState extends State<BookPayPage> {
...
@@ -173,7 +173,7 @@ class _BookPayPageState extends State<BookPayPage> {
)
)
],
],
),
),
SizedBox
(
height:
5
0
.
w
,),
SizedBox
(
height:
2
0
.
w
,),
Container
(
Container
(
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
child:
Column
(
child:
Column
(
...
...
lib/pages/book_shop/widgets/count.dart
浏览文件 @
249e7567
...
@@ -43,7 +43,7 @@ class BuildCounter extends StatelessWidget {
...
@@ -43,7 +43,7 @@ class BuildCounter extends StatelessWidget {
Column
(
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
Text
(
'合计 ¥
${controller.allPrice.toStringAsFixed(2)}
'
,
style:
const
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
1
4
,
fontWeight:
Fonts
.
boldSemi
)),
Text
(
'合计 ¥
${controller.allPrice.toStringAsFixed(2)}
'
,
style:
const
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
1
6
,
fontWeight:
Fonts
.
boldSemi
)),
Text
(
'已选
${controller.num}
件'
,
style:
const
TextStyle
(
color:
Color
(
0xFF999999
),
fontSize:
12
,))
Text
(
'已选
${controller.num}
件'
,
style:
const
TextStyle
(
color:
Color
(
0xFF999999
),
fontSize:
12
,))
],
],
)
)
...
...
lib/pages/pay_coupon/view.dart
浏览文件 @
249e7567
...
@@ -37,17 +37,30 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
...
@@ -37,17 +37,30 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
),
),
body:
Column
(
body:
Column
(
children:
[
children:
[
TabBar
(
Container
(
labelColor:
Colours
.
c3
,
decoration:
BoxDecoration
(
labelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
),
boxShadow:
[
unselectedLabelColor:
Colours
.
c9
,
BoxShadow
(
unselectedLabelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
),
color:
Colours
.
cC8
.
withOpacity
(
0.1
),
// 设置阴影颜色
indicatorSize:
TabBarIndicatorSize
.
label
,
spreadRadius:
5
,
// 设置阴影扩散程度
indicatorColor:
AppTheme
.
primary
,
blurRadius:
7
,
// 设置阴影模糊程度
tabs:
tabs
,
offset:
Offset
(
0
,
5
),
// 设置阴影位置
physics:
const
NeverScrollableScrollPhysics
(),
),
controller:
tabController
,
],
),
),
child:
TabBar
(
labelColor:
Colours
.
c3
,
labelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
),
unselectedLabelColor:
Colours
.
c9
,
unselectedLabelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
),
indicatorSize:
TabBarIndicatorSize
.
label
,
indicatorColor:
AppTheme
.
primary
,
tabs:
tabs
,
physics:
const
NeverScrollableScrollPhysics
(),
controller:
tabController
,
),
),
Expanded
(
Expanded
(
child:
TabBarView
(
child:
TabBarView
(
controller:
tabController
,
controller:
tabController
,
...
...
lib/pages/pay_coupon/widgets/item.dart
浏览文件 @
249e7567
...
@@ -40,6 +40,7 @@ class BuildItem extends StatelessWidget {
...
@@ -40,6 +40,7 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
center
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
children:
[
RichText
(
RichText
(
overflow:
TextOverflow
.
ellipsis
,
//
text:
TextSpan
(
text:
TextSpan
(
children:
<
TextSpan
>[
children:
<
TextSpan
>[
TextSpan
(
TextSpan
(
...
@@ -48,7 +49,7 @@ class BuildItem extends StatelessWidget {
...
@@ -48,7 +49,7 @@ class BuildItem extends StatelessWidget {
),
),
TextSpan
(
TextSpan
(
text:
model
.
reducedPrice
??
''
,
text:
model
.
reducedPrice
??
''
,
style:
TextStyle
(
fontSize:
40
.
w
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
model
.
type
==
1
?
Colors
.
white
:
Colours
.
cC8
)
style:
TextStyle
(
fontSize:
40
.
w
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
model
.
type
==
1
?
Colors
.
white
:
Colours
.
cC8
,),
),
),
]
]
),
),
...
...
lib/pages/read_web/view.dart
浏览文件 @
249e7567
...
@@ -34,7 +34,11 @@ class _ReadPageState extends State<ReadPage> {
...
@@ -34,7 +34,11 @@ class _ReadPageState extends State<ReadPage> {
init:
ReadController
(
bookId:
widget
.
bookId
,
chapterId:
widget
.
chapterId
,
chapterName:
widget
.
chapterName
,
bookDetailModel:
widget
.
bookDetailModel
),
init:
ReadController
(
bookId:
widget
.
bookId
,
chapterId:
widget
.
chapterId
,
chapterName:
widget
.
chapterName
,
bookDetailModel:
widget
.
bookDetailModel
),
builder:
(
readController
)
=>
Scaffold
(
builder:
(
readController
)
=>
Scaffold
(
appBar:
CustomAppBar
(
appBar:
CustomAppBar
(
title:
Text
(
readController
.
chapterName
),
titleSpacing:
0
,
title:
Align
(
alignment:
Alignment
.
centerLeft
,
child:
Text
(
readController
.
chapterName
),
),
centerTitle:
false
,
centerTitle:
false
,
actions:
[
actions:
[
GestureDetector
(
GestureDetector
(
...
@@ -268,7 +272,7 @@ class _ReadPageState extends State<ReadPage> {
...
@@ -268,7 +272,7 @@ class _ReadPageState extends State<ReadPage> {
child:
Image
.
asset
(
model
.
selected
?
model
.
activeIcon
:
model
.
icon
,
fit:
BoxFit
.
cover
,)
child:
Image
.
asset
(
model
.
selected
?
model
.
activeIcon
:
model
.
icon
,
fit:
BoxFit
.
cover
,)
),
),
SizedBox
(
height:
2.5
.
w
,),
SizedBox
(
height:
2.5
.
w
,),
model
.
selected
?
Text
(
model
.
name
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),)
model
.
selected
?
Text
(
model
.
name
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
boldSemi
,
color:
AppTheme
.
primary
),)
:
Text
(
model
.
name
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c6
))
:
Text
(
model
.
name
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c6
))
],
],
),
),
...
...
lib/pages/read_web/widgets/book.dart
浏览文件 @
249e7567
...
@@ -14,7 +14,7 @@ class BuildBook extends StatelessWidget {
...
@@ -14,7 +14,7 @@ class BuildBook extends StatelessWidget {
child:
Column
(
child:
Column
(
children:
[
children:
[
Container
(
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
1
5
.
w
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
1
2
.
w
),
// color: Colors.red,
// color: Colors.red,
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
lib/pages/search/widgets/history.dart
浏览文件 @
249e7567
...
@@ -23,7 +23,7 @@ class _BuildHistoryState extends State<BuildHistory> {
...
@@ -23,7 +23,7 @@ class _BuildHistoryState extends State<BuildHistory> {
Row
(
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
children:
[
Text
(
'搜索历史'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),),
Text
(
'搜索历史'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
boldSemi
),),
GestureDetector
(
GestureDetector
(
onTap:
(){
onTap:
(){
widget
.
controller
.
clear
();
widget
.
controller
.
clear
();
...
@@ -78,7 +78,7 @@ class _BuildHistoryState extends State<BuildHistory> {
...
@@ -78,7 +78,7 @@ class _BuildHistoryState extends State<BuildHistory> {
color:
Colours
.
cF4
color:
Colours
.
cF4
),
),
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
15
,
vertical:
5
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
15
,
vertical:
3
),
child:
Text
(
e
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
Colours
.
c3
),
textAlign:
TextAlign
.
center
,),
child:
Text
(
e
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
Colours
.
c3
),
textAlign:
TextAlign
.
center
,),
),
),
),
),
...
...
lib/pages/user_discuss_des/widgets/discuss.dart
浏览文件 @
249e7567
...
@@ -19,7 +19,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
...
@@ -19,7 +19,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Container
(
return
Container
(
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
...
@@ -135,10 +135,10 @@ class _BuildDiscussState extends State<BuildDiscuss> {
...
@@ -135,10 +135,10 @@ class _BuildDiscussState extends State<BuildDiscuss> {
crossAxisAlignment:
CrossAxisAlignment
.
center
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
children:
[
SizedBox
(
SizedBox
(
height:
15
.
w
,
height:
20
.
w
,
width:
15
.
w
,
width:
20
.
w
,
// color: Colors.green,
// color: Colors.green,
child:
Image
.
asset
(
'assets/images/love.png'
),
child:
Image
.
asset
(
'assets/images/love.png'
,
fit:
BoxFit
.
cover
,
),
),
),
Text
(
model
.
goodNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
Text
(
model
.
goodNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
],
],
...
@@ -154,9 +154,9 @@ class _BuildDiscussState extends State<BuildDiscuss> {
...
@@ -154,9 +154,9 @@ class _BuildDiscussState extends State<BuildDiscuss> {
},
},
child:
Container
(
child:
Container
(
height:
25
.
w
,
height:
25
.
w
,
width:
2
5
.
w
,
width:
1
5
.
w
,
color:
Colors
.
yellow
,
//
color: Colors.yellow,
child:
Image
.
asset
(
'assets/images/reply.png'
),
child:
Image
.
asset
(
'assets/images/reply.png'
,
height:
15
.
w
,
width:
15
.
w
,
fit:
BoxFit
.
fitWidth
,
),
),
),
),
),
Text
(
model
.
replyNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
Text
(
model
.
replyNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
...
...
lib/pages/user_set/view.dart
浏览文件 @
249e7567
...
@@ -316,7 +316,7 @@ class _UserSetPageState extends State<UserSetPage> {
...
@@ -316,7 +316,7 @@ class _UserSetPageState extends State<UserSetPage> {
'稍后再说'
,
'稍后再说'
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colours
.
c6
,
color:
Colours
.
c6
,
fontSize:
1
2
,
fontSize:
1
5
,
fontWeight:
Fonts
.
medium
),
fontWeight:
Fonts
.
medium
),
),
),
),
),
...
@@ -338,8 +338,8 @@ class _UserSetPageState extends State<UserSetPage> {
...
@@ -338,8 +338,8 @@ class _UserSetPageState extends State<UserSetPage> {
'立即更新'
,
'立即更新'
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colours
.
cAB1941
,
color:
Colours
.
cAB1941
,
fontSize:
1
2
,
fontSize:
1
5
,
fontWeight:
Fonts
.
medium
),
fontWeight:
Fonts
.
boldSemi
),
),
),
),
),
onTap:
()
{
onTap:
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论