|
|
|
@ -1188,8 +1188,10 @@ class _HomePageState extends BaseStoreState<HomePage>
|
|
|
|
|
// fit: BoxFit.fill,
|
|
|
|
|
// ),
|
|
|
|
|
CachedNetworkImage(
|
|
|
|
|
imageUrl: icon, placeholder: (context,url) => Image.asset(
|
|
|
|
|
R.ASSETS_PLACEHOLDER_NEW_1X1_A_PNG,fit: BoxFit.fill,
|
|
|
|
|
imageUrl: icon,
|
|
|
|
|
placeholder: (context, url) => Image.asset(
|
|
|
|
|
R.ASSETS_PLACEHOLDER_NEW_1X1_A_PNG,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
@ -1436,12 +1438,28 @@ class _HomePageState extends BaseStoreState<HomePage>
|
|
|
|
|
array.addAll(model.data.goodsList);
|
|
|
|
|
}
|
|
|
|
|
if (model.data.activityList != null && model.data.activityList.length > 0) {
|
|
|
|
|
if (model.data.activityList.first.activitySortId != 0) {
|
|
|
|
|
if (array.length >= model.data.activityList.first.activitySortId) {
|
|
|
|
|
array.insert(model.data.activityList.first.activitySortId - 1,
|
|
|
|
|
model.data.activityList.first);
|
|
|
|
|
} else {
|
|
|
|
|
array.add(model.data.activityList.first);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (array.length > 3) {
|
|
|
|
|
array.insert(3, model.data.activityList.first);
|
|
|
|
|
} else {
|
|
|
|
|
array.add(model.data.activityList.first);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (array.length > 3) {
|
|
|
|
|
|
|
|
|
|
// array.insert(3, model.data.activityList.first);
|
|
|
|
|
// } else {
|
|
|
|
|
// array.add(model.data.activityList.first);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
// _promotionGoodsList = model.data.goodsList;
|
|
|
|
|
_promotionGoodsList = array;
|
|
|
|
|
if (mounted) {
|
|
|
|
|