|
@@ -10,7 +10,10 @@ import 'package:flutter_spinkit/flutter_spinkit.dart';
|
|
|
import 'package:flutter_swiper/flutter_swiper.dart';
|
|
|
import 'package:liftmanager/internal/bbs/bbs_router.dart';
|
|
|
import 'package:liftmanager/internal/bbs/model/banner_model.dart' as banner;
|
|
|
+import 'package:liftmanager/internal/bbs/model/mix_model.dart';
|
|
|
+import 'package:liftmanager/internal/bbs/model/search_model.dart';
|
|
|
import 'package:liftmanager/internal/means/page/means_pdf.dart';
|
|
|
+import 'package:liftmanager/internal/news/model/news_comm_entity.dart';
|
|
|
import 'package:liftmanager/internal/news/news_router.dart';
|
|
|
import 'package:liftmanager/internal/work/work_router.dart';
|
|
|
import 'package:liftmanager/res/iconfont.dart';
|
|
@@ -226,6 +229,11 @@ class QuestionCell extends StatelessWidget {
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
+ if (item is Records || item is InfoList) {
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ // data = NewsItems();
|
|
|
+ }
|
|
|
return GestureDetector(
|
|
|
child: Container(
|
|
|
padding: EdgeInsets.only(
|
|
@@ -254,7 +262,7 @@ class QuestionCell extends StatelessWidget {
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
child: Container(
|
|
|
child: LoadNetworkImage(
|
|
|
- item.avatarUrl,
|
|
|
+ item?.avatarUrl,
|
|
|
// fit: BoxFit.fitWidth,
|
|
|
width: 31,
|
|
|
height: 31,
|
|
@@ -264,7 +272,7 @@ class QuestionCell extends StatelessWidget {
|
|
|
width: 5,
|
|
|
),
|
|
|
Text(
|
|
|
- item.userName ?? null,
|
|
|
+ item.userName ?? '',
|
|
|
style: TextStyle(
|
|
|
fontSize: 14,
|
|
|
fontWeight: FontWeight.w500,
|
|
@@ -282,7 +290,7 @@ class QuestionCell extends StatelessWidget {
|
|
|
height: 10,
|
|
|
),
|
|
|
Text(
|
|
|
- item.expression,
|
|
|
+ item.expression ?? '',
|
|
|
textAlign: TextAlign.left,
|
|
|
style: TextStyle(
|
|
|
color: Color(0xff999999),
|
|
@@ -498,12 +506,17 @@ class HotClass {
|
|
|
}
|
|
|
|
|
|
class VideoCell extends StatelessWidget {
|
|
|
- final dynamic data;
|
|
|
+ dynamic data;
|
|
|
|
|
|
VideoCell(this.data);
|
|
|
|
|
|
@override
|
|
|
Widget build(Object context) {
|
|
|
+ if (data is Records || data is InfoList) {
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ // data = NewsItems();
|
|
|
+ }
|
|
|
return GestureDetector(
|
|
|
child: Container(
|
|
|
height: 116,
|
|
@@ -625,6 +638,11 @@ class ProductCell extends StatelessWidget {
|
|
|
|
|
|
@override
|
|
|
Widget build(Object context) {
|
|
|
+ if (data is Records || data is InfoList) {
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ // data = NewsItems();
|
|
|
+ }
|
|
|
return InkWell(
|
|
|
child: Container(
|
|
|
height: 110,
|
|
@@ -640,7 +658,7 @@ class ProductCell extends StatelessWidget {
|
|
|
ClipRRect(
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
child: LoadNetworkImage(
|
|
|
- data.imgs.split(",")[0],
|
|
|
+ (data?.imgs ?? '').split(",")[0],
|
|
|
width: ScreenUtil().setWidth(90),
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
isWater: true,
|
|
@@ -771,6 +789,11 @@ class NewsCell extends StatelessWidget {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
double width = MediaQuery.of(context).size.width;
|
|
|
+ if (data is NewsItems || data is InfoList) {
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ // data = NewsItems();
|
|
|
+ }
|
|
|
return InkWell(
|
|
|
onTap: () {
|
|
|
NavigatorUtils.push(context, "${NewsRouter.newsDetail}?id=${data.id}");
|
|
@@ -830,6 +853,12 @@ class PositionCell extends StatelessWidget {
|
|
|
Widget build(BuildContext context) {
|
|
|
double width = MediaQuery.of(context).size.width;
|
|
|
|
|
|
+ if (data is Records || data is InfoList) {
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ // data = NewsItems();
|
|
|
+ }
|
|
|
+
|
|
|
return InkWell(
|
|
|
child: Container(
|
|
|
child: Column(
|
|
@@ -877,7 +906,7 @@ class PositionCell extends StatelessWidget {
|
|
|
Container(
|
|
|
width: width * 0.4,
|
|
|
child: Text(
|
|
|
- '${data.lowerSalary.toInt()}-${data.upperSalary.toInt()}/月',
|
|
|
+ '${data.lowerSalary?.toInt()}-${data.upperSalary?.toInt()}/月',
|
|
|
textAlign: TextAlign.right,
|
|
|
style: TextStyle(
|
|
|
fontSize: 14,
|