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

1、帮助中心内容bug

2、关于我们 换行
上级 47bd586f
...@@ -664,25 +664,29 @@ class HelpCenterModel { ...@@ -664,25 +664,29 @@ class HelpCenterModel {
this.id, this.id,
this.helpTitle, this.helpTitle,
this.createTime, this.createTime,
this.index,
}); });
HelpCenterModel.fromJson(dynamic json) { HelpCenterModel.fromJson(dynamic json) {
id = json['id']; id = json['id'];
helpTitle = json['help_title']; helpTitle = json['help_title'];
createTime = json['create_time']; createTime = json['create_time'];
index = json['index'];
} }
num? index;
num? id; num? id;
String? helpTitle; String? helpTitle;
String? createTime; String? createTime;
HelpCenterModel copyWith({ HelpCenterModel copyWith({
num? index,
num? id, num? id,
String? helpTitle, String? helpTitle,
String? createTime, String? createTime,
}) => }) =>
HelpCenterModel( HelpCenterModel(
id: id ?? this.id, id: id ?? this.id,
index: index ?? this.index,
helpTitle: helpTitle ?? this.helpTitle, helpTitle: helpTitle ?? this.helpTitle,
createTime: createTime ?? this.createTime, createTime: createTime ?? this.createTime,
); );
...@@ -690,6 +694,7 @@ class HelpCenterModel { ...@@ -690,6 +694,7 @@ class HelpCenterModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final map = <String, dynamic>{}; final map = <String, dynamic>{};
map['id'] = id; map['id'] = id;
map['index'] = index;
map['help_title'] = helpTitle; map['help_title'] = helpTitle;
map['create_time'] = createTime; map['create_time'] = createTime;
return map; return map;
......
...@@ -26,7 +26,7 @@ class _HelpCenterPageState extends State<HelpCenterPage> { ...@@ -26,7 +26,7 @@ class _HelpCenterPageState extends State<HelpCenterPage> {
itemCount: controller.helpCenters.length, itemCount: controller.helpCenters.length,
itemBuilder: (BuildContext context, int index){ itemBuilder: (BuildContext context, int index){
HelpCenterModel model = controller.helpCenters[index]; HelpCenterModel model = controller.helpCenters[index];
model.id = index +1; model.index = index +1;
return GestureDetector( return GestureDetector(
child: BuildItem(model: model,), child: BuildItem(model: model,),
onTap: (){ onTap: (){
......
...@@ -18,7 +18,7 @@ class BuildItem extends StatelessWidget { ...@@ -18,7 +18,7 @@ class BuildItem extends StatelessWidget {
Row( Row(
children: <Widget>[ children: <Widget>[
Text( Text(
'${model!.id}.', '${model!.index}.',
style: TextStyle( style: TextStyle(
fontSize: 14.w, height: 1.5.w, color: Colours.c3), fontSize: 14.w, height: 1.5.w, color: Colours.c3),
), ),
......
...@@ -73,7 +73,7 @@ class _AboutPageState extends State<AboutPage> { ...@@ -73,7 +73,7 @@ class _AboutPageState extends State<AboutPage> {
], ],
), ),
Gaps.hGaps10, 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, Gaps.vGaps25,
], ],
), ),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论