提交 0688944f authored 作者: yueweilu's avatar yueweilu

1、帮助中心内容bug

2、关于我们 换行
上级 47bd586f
......@@ -664,25 +664,29 @@ class HelpCenterModel {
this.id,
this.helpTitle,
this.createTime,
this.index,
});
HelpCenterModel.fromJson(dynamic json) {
id = json['id'];
helpTitle = json['help_title'];
createTime = json['create_time'];
index = json['index'];
}
num? index;
num? id;
String? helpTitle;
String? createTime;
HelpCenterModel copyWith({
num? index,
num? id,
String? helpTitle,
String? createTime,
}) =>
HelpCenterModel(
id: id ?? this.id,
index: index ?? this.index,
helpTitle: helpTitle ?? this.helpTitle,
createTime: createTime ?? this.createTime,
);
......@@ -690,6 +694,7 @@ class HelpCenterModel {
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['index'] = index;
map['help_title'] = helpTitle;
map['create_time'] = createTime;
return map;
......
......@@ -26,7 +26,7 @@ class _HelpCenterPageState extends State<HelpCenterPage> {
itemCount: controller.helpCenters.length,
itemBuilder: (BuildContext context, int index){
HelpCenterModel model = controller.helpCenters[index];
model.id = index +1;
model.index = index +1;
return GestureDetector(
child: BuildItem(model: model,),
onTap: (){
......
......@@ -18,7 +18,7 @@ class BuildItem extends StatelessWidget {
Row(
children: <Widget>[
Text(
'${model!.id}.',
'${model!.index}.',
style: TextStyle(
fontSize: 14.w, height: 1.5.w, color: Colours.c3),
),
......
......@@ -73,7 +73,7 @@ class _AboutPageState extends State<AboutPage> {
],
),
Gaps.hGaps10,
Text('Copyright © 2024 Zijing Education. All rights reserved.\n清控紫荆(北京)教育科技股份有限公司\nICP证150431号',style: TextStyle(color: Colours.c9,fontSize:9.w),textAlign: TextAlign.center,),
Text('Copyright © 2024 Zijing Education. All rights reserved.\n清控紫荆(北京)教育科技股份有限公司\nICP证150431号',style: TextStyle(color: Colours.c9,fontSize:9.w),textAlign: TextAlign.center,),
Gaps.vGaps25,
],
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论