Browse Source

更改

master
w-R 3 years ago
parent
commit
2a2b1ff269
  1. 21
      lib/home/home_view/featured_acticvity.dart
  2. 2
      lib/web/web_page.dart

21
lib/home/home_view/featured_acticvity.dart

@ -39,8 +39,7 @@ class _FeaturedActivity extends State<FeaturedActivity> {
"searchKey": "",
"type": 1,
"state": 1
}).catchError((error) {
});
}).catchError((error) {});
if (baseData != null && baseData.isSuccess) {
activityList = baseData.data.list;
if (activityList != null && activityList.length == 1)
@ -101,13 +100,15 @@ class _FeaturedActivity extends State<FeaturedActivity> {
color: Colors.green,
image: DecorationImage(
image: NetworkImage(
activityList[1].coverImg,
activityList[2].coverImg,
),
fit: BoxFit.cover,
),
),
),
SizedBox(height: 5,),
SizedBox(
height: 5,
),
Container(
child: stackItem(12.sp, activityList[2]),
margin: EdgeInsets.symmetric(horizontal: 5.w),
@ -123,7 +124,7 @@ class _FeaturedActivity extends State<FeaturedActivity> {
fit: BoxFit.cover,
),
),
),
)
],
),
),
@ -149,6 +150,8 @@ class _FeaturedActivity extends State<FeaturedActivity> {
children: [
Text(
activity.mainTitle,
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
fontWeight: MyFontWeight.semi_bold,
fontSize: textSize,
@ -181,6 +184,12 @@ class _FeaturedActivity extends State<FeaturedActivity> {
borderRadius: BorderRadius.circular(20),
),
alignment: Alignment.center,
child:
GestureDetector(
onTap: (){
Navigator.of(context).pushNamed('/router/web_page',
arguments: {"activityId": activity.id});
},
child:Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
@ -199,7 +208,7 @@ class _FeaturedActivity extends State<FeaturedActivity> {
size: 12,
),
],
),
)),
),
],
);

2
lib/web/web_page.dart

@ -271,7 +271,7 @@ class _WebPage extends State<WebPage> with WidgetsBindingObserver {
///
CommentList(
commentKey,
article?.likes ?? activity?.likes ?? "0",
article?.likes ?? activity?.likes.toString() ?? "0",
article?.id ?? activity?.id,
isKeyBoardShow,
_reply,

Loading…
Cancel
Save