Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
5c24764d
提交
5c24764d
authored
3月 04, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、加载h5数据 添加显示格式
2、筛选重置后再次筛选问题
上级
a5222045
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
14 行删除
+38
-14
view.dart
lib/pages/book_detail/view.dart
+2
-1
controller.dart
lib/pages/help_cneter_content/controller.dart
+23
-1
controller.dart
lib/pages/library/controller.dart
+12
-11
controller.dart
lib/pages/read_web/controller.dart
+1
-1
没有找到文件。
lib/pages/book_detail/view.dart
浏览文件 @
5c24764d
...
...
@@ -144,7 +144,8 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
*{ margin: 0; padding: 5px;}
html{ font-size: 10px;}
body p{ font-size: 1.5rem; line-height:2.4rem;color: #999}
img{ max-width:100%}
img,video,pre,code{ max-width:100%}
pre{white-space: pre-wrap;word-wrap: break-word;word-break: break-all}
</style>
</head>
<body>
...
...
lib/pages/help_cneter_content/controller.dart
浏览文件 @
5c24764d
...
...
@@ -17,7 +17,29 @@ class HelpCenterContentController extends GetxController {
/// 获取帮助中心内容
void
_getHelpCenterContent
(
String
id
)
async
{
helpCenterContentModel
=
await
MineAPI
.
helpCenterContent
(
id
);
webViewController
.
loadData
(
data:
helpCenterContentModel
.
helpContent
??
''
);
webViewController
.
loadData
(
data:
"""
<!DOCTYPE html>
<html lang="
zh
-
CN
">
<head>
<meta charset="
utf
-
8
" />
<meta http-equiv="
X
-
UA
-
Compatible
" content="
IE
=
edge
,
chrome
=
1
" />
<meta name="
viewport
" content="
width
=
device
-
width
,
initial
-
scale
=
1.0
,
user
-
scalable
=
no
" />
<meta http-equiv="
Cache
-
Control
" content="
no
-
transform
" />
<meta http-equiv="
Cache
-
Control
" content="
no
-
siteapp
" />
<style>
*{ margin: 0; padding: 5px;}
html{ font-size: 10px;}
body p{ font-size: 1.5rem; line-height:2.4rem;color: #999}
img,video,pre,code{ max-width:100%}
pre{white-space: pre-wrap;word-wrap: break-word;word-break: break-all}
</style>
</head>
<body>
${helpCenterContentModel.helpContent??''}
</body>
</html>
"""
,);
update
();
}
}
lib/pages/library/controller.dart
浏览文件 @
5c24764d
...
...
@@ -132,12 +132,10 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
for
(
FilterModel
model
in
filterFree
){
model
.
selected
=
false
;
}
selectedFree
.
id
=
''
;
for
(
FilterModel
model
in
filterDown
){
model
.
selected
=
false
;
}
selectedDown
.
id
=
''
;
update
();
}
...
...
@@ -309,17 +307,20 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
_getAds
();
String
sort
=
''
;
if
(
selectedDown
.
id
!=
null
){
if
(
selectedDown
.
id
!.
isNotEmpty
){
if
(
selectedDown
.
up
){
sort
=
'desc'
;
}
else
{
sort
=
'asc'
;
}
if
(
selectedDown
.
selected
==
true
){
if
(
selectedDown
.
up
){
sort
=
'desc'
;
}
else
{
sort
=
'asc'
;
}
}
String
sortField
=
''
;
if
(
selectedDown
.
selected
==
true
){
sortField
=
selectedDown
.
id
??
''
;
}
if
(
isRefresh
)
_page
=
1
;
// 网路请求
final
result
=
await
LibraryAPI
.
books
(
...
...
@@ -328,7 +329,7 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
categoryId:
selectedCategory
.
id
??
''
,
labelId:
selectedLabel
.
id
??
''
,
isFree:
selectedFree
.
id
??
''
,
sortField:
s
electedDown
.
id
??
''
,
sortField:
s
ortField
,
sort
:
sort
// sort:selectedDown.id!.isEmpty?'':selectedDown.up ==true?'desc':'asc'
);
...
...
lib/pages/read_web/controller.dart
浏览文件 @
5c24764d
...
...
@@ -102,7 +102,7 @@ class ReadController extends FullLifeCycleController with GetSingleTickerProvide
netStatus
=
await
Tools
.
checkCurrentNetStatus
();
final
exist
=
await
_isExistFile
(
bookId
);
if
(
netStatus
&&
exist
){
if
(
!
netStatus
&&
exist
){
// 1、从数据库中获取读到那个章节
chapterId
=
await
SqlManager
.
queryReadHistoryByBookId
(
int
.
parse
(
bookId
));
chapterName
=
getChapterName
(
chapterId
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论