Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
f197e47e
提交
f197e47e
authored
2月 24, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
各种协议
上级
d9e8fda5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
17 行增加
和
9 行删除
+17
-9
view.dart
lib/pages/login/view.dart
+2
-2
view.dart
lib/pages/user_about/view.dart
+2
-2
view.dart
lib/pages/user_coin_recharge/view.dart
+1
-1
view.dart
lib/pages/user_terms/view.dart
+6
-2
routes.dart
lib/routes/routes.dart
+3
-1
constants.dart
lib/utils/constants.dart
+3
-1
没有找到文件。
lib/pages/login/view.dart
浏览文件 @
f197e47e
...
@@ -210,13 +210,13 @@ class _LoginPageState extends State<LoginPage> {
...
@@ -210,13 +210,13 @@ class _LoginPageState extends State<LoginPage> {
GestureDetector
(
GestureDetector
(
child:
Text
(
'《用户协议》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
14
.
w
,
height:
1.4
)),
child:
Text
(
'《用户协议》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
14
.
w
,
height:
1.4
)),
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
context
.
pushNamed
(
Routes
.
terms
,
queryParameters:
{
'url'
:
'
$kServerUrl$kUserAgreement
'
}
);
},
},
),
),
GestureDetector
(
GestureDetector
(
child:
Text
(
'《隐私政策》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
14
.
w
,
height:
1.4
)),
child:
Text
(
'《隐私政策》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
14
.
w
,
height:
1.4
)),
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
context
.
pushNamed
(
Routes
.
terms
,
queryParameters:
{
'url'
:
'
$kServerUrl$kUserPriAgreement
'
}
);
},
},
),
),
],
],
...
...
lib/pages/user_about/view.dart
浏览文件 @
f197e47e
...
@@ -58,7 +58,7 @@ class _AboutPageState extends State<AboutPage> {
...
@@ -58,7 +58,7 @@ class _AboutPageState extends State<AboutPage> {
GestureDetector
(
GestureDetector
(
child:
Text
(
'《用户协议》'
,
textAlign:
TextAlign
.
right
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
)),),
child:
Text
(
'《用户协议》'
,
textAlign:
TextAlign
.
right
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
)),),
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
context
.
pushNamed
(
Routes
.
terms
,
queryParameters:
{
'url'
:
'
$kServerUrl$kUserAgreement
'
}
);
},
},
),
),
Gaps
.
vGaps15
,
Gaps
.
vGaps15
,
...
@@ -67,7 +67,7 @@ class _AboutPageState extends State<AboutPage> {
...
@@ -67,7 +67,7 @@ class _AboutPageState extends State<AboutPage> {
GestureDetector
(
GestureDetector
(
child:
Text
(
'《隐私协议》'
,
textAlign:
TextAlign
.
left
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
))),
child:
Text
(
'《隐私协议》'
,
textAlign:
TextAlign
.
left
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
))),
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
context
.
pushNamed
(
Routes
.
terms
,
queryParameters:
{
'url'
:
'
$kServerUrl$kUserPriAgreement
'
}
);
}
,
}
,
)
)
],
],
...
...
lib/pages/user_coin_recharge/view.dart
浏览文件 @
f197e47e
...
@@ -70,7 +70,7 @@ class _CoinRechargePageState extends State<CoinRechargePage> with AutomaticKeepA
...
@@ -70,7 +70,7 @@ class _CoinRechargePageState extends State<CoinRechargePage> with AutomaticKeepA
Gaps
.
vGaps15
,
Gaps
.
vGaps15
,
GestureDetector
(
GestureDetector
(
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
context
.
pushNamed
(
Routes
.
terms
,
queryParameters:
{
'url'
:
'
$kServerUrl$kUserRechargeAgreement
'
}
);
},
},
child:
RichText
(
text:
TextSpan
(
child:
RichText
(
text:
TextSpan
(
children:
[
children:
[
...
...
lib/pages/user_terms/view.dart
浏览文件 @
f197e47e
...
@@ -3,7 +3,11 @@ part of user_terms;
...
@@ -3,7 +3,11 @@ part of user_terms;
class
TermsPage
extends
StatelessWidget
{
class
TermsPage
extends
StatelessWidget
{
const
TermsPage
({
Key
?
key
})
:
super
(
key:
key
);
final
String
url
;
const
TermsPage
({
Key
?
key
,
required
this
.
url
})
:
super
(
key:
key
);
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -13,7 +17,7 @@ class TermsPage extends StatelessWidget {
...
@@ -13,7 +17,7 @@ class TermsPage extends StatelessWidget {
),
),
body:
InAppWebView
(
body:
InAppWebView
(
initialUrlRequest:
URLRequest
(
initialUrlRequest:
URLRequest
(
url:
Uri
.
parse
(
'https://www.baidu.com/'
),
url:
Uri
.
parse
(
url
),
),
),
)
)
);
);
...
...
lib/routes/routes.dart
浏览文件 @
f197e47e
...
@@ -223,7 +223,9 @@ abstract class Routes {
...
@@ -223,7 +223,9 @@ abstract class Routes {
pageBuilder:
(
context
,
state
)
=>
CupertinoPage
(
pageBuilder:
(
context
,
state
)
=>
CupertinoPage
(
name:
state
.
uri
.
toString
(),
name:
state
.
uri
.
toString
(),
key:
state
.
pageKey
,
key:
state
.
pageKey
,
child:
const
TermsPage
()
child:
TermsPage
(
url:
state
.
uri
.
queryParameters
[
'url'
].
toString
(),
)
)
)
),
),
GoRoute
(
GoRoute
(
...
...
lib/utils/constants.dart
浏览文件 @
f197e47e
...
@@ -13,7 +13,9 @@ const String kSearchHistory = 'search_history';
...
@@ -13,7 +13,9 @@ const String kSearchHistory = 'search_history';
const
String
kFailOrder
=
'failOrder'
;
const
String
kFailOrder
=
'failOrder'
;
const
String
kNoteTable
=
'members_book_notes'
;
const
String
kNoteTable
=
'members_book_notes'
;
const
String
kReadTable
=
'read_history'
;
const
String
kReadTable
=
'read_history'
;
const
String
kUserAgreement
=
'/html/agreement/ser_agreement.html'
;
const
String
kUserPriAgreement
=
'/html/agreement/pri_agreement.html'
;
const
String
kUserRechargeAgreement
=
'/html/agreement/rec_agreement.html'
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论