Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
cb527402
提交
cb527402
authored
2月 24, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
简介使用web显示
上级
a17607dd
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
7 行删除
+15
-7
view.dart
lib/pages/book_detail/view.dart
+12
-4
book.dart
lib/pages/book_detail/widgets/book.dart
+2
-2
view.dart
lib/pages/book_info/view.dart
+1
-1
没有找到文件。
lib/pages/book_detail/view.dart
浏览文件 @
cb527402
...
...
@@ -85,10 +85,18 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
controller:
controller
.
tabController
,
children:
[
BookCategoryPage
(
chapters:
controller
.
chapters
,
bookId:
controller
.
bookId
,
bookDetails:
controller
.
bookDetails
,),
Container
(
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
,
top:
12
.
w
),
color:
Colors
.
white
,
child:
Text
(
controller
.
bookDetails
.
content
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
// Container(
// padding: EdgeInsets.only(left: 15.w,right: 15.w,top:12.w),
// color: Colors.white,
// child: Text(controller.bookDetails.content??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c3),),
// ),
InAppWebView
(
contextMenu:
ContextMenu
(
options:
ContextMenuOptions
(
hideDefaultSystemContextMenuItems:
true
),
),
onWebViewCreated:
(
InAppWebViewController
wcontroller
){
wcontroller
.
loadData
(
data:
controller
.
bookDetails
.
content
??
''
,);
},
),
BookInfoPage
(
model:
controller
.
bookDetails
,)
],
...
...
lib/pages/book_detail/widgets/book.dart
浏览文件 @
cb527402
...
...
@@ -54,9 +54,9 @@ class BuildBook extends StatelessWidget {
),
Row
(
children:
[
Text
(
'¥
${model.vipPrice}
'
,
style:
TextStyle
(
fontSize:
15
.
w
,
fontWeight:
FontWeight
.
w500
,
color:
AppTheme
.
primary
)),
Text
(
'¥
${model.vipPrice
??''
}
'
,
style:
TextStyle
(
fontSize:
15
.
w
,
fontWeight:
FontWeight
.
w500
,
color:
AppTheme
.
primary
)),
Gaps
.
hGaps10
,
Text
(
'¥
${model.price}
'
,
style:
TextStyle
(
Text
(
'¥
${model.price
??''
}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
decoration:
TextDecoration
.
lineThrough
,
decorationColor:
Colours
.
c9
,
// 可选,指定删除线的颜色
...
...
lib/pages/book_info/view.dart
浏览文件 @
cb527402
...
...
@@ -80,7 +80,7 @@ class BookInfoPage extends StatelessWidget {
mainAxisAlignment:
MainAxisAlignment
.
center
,
crossAxisAlignment:
CrossAxisAlignment
.
end
,
children:
List
.
generate
(
model
.
ratingList
!.
length
,
(
index
){
return
_buildProgrss
(
5
-
index
.
toDouble
(),
model
.
ratingList
![
index
].
toDouble
()/
model
.
ratingCount
!);
return
_buildProgrss
(
5
-
index
.
toDouble
(),
model
.
rating
Count
==
0
?
0
:
model
.
rating
List
![
index
].
toDouble
()/
model
.
ratingCount
!);
}).
toList
()
),
Text
(
'
${model.ratingCount}
个评分'
,
style:
TextStyle
(
fontSize:
9
.
w
,
height:
1.4
,
color:
Colours
.
c9
),)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论