Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
ce4244dd
Commit
ce4244dd
authored
Oct 17, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submit message
parent
9067fe86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
common.dart
lib/NewMessageModel/page/common.dart
+11
-2
No files found.
lib/NewMessageModel/page/common.dart
View file @
ce4244dd
...
...
@@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:gmalpha_flutter/Annotations/RouterCenterRestore.mark.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/util/message_date.dart'
;
import
'package:gmalpha_flutter/commonModel/base/AppBase.dart'
;
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
...
...
@@ -104,7 +105,13 @@ Widget getNum([int count]) {
}
Widget
messageList
(
list
)
{
var
contentText
=
{
1
:
'评论了你'
,
2
:
'评论了你的评论'
,
3
:
'评论了你'
,
4
:
'评论了你的评论'
,
5
:
'关注了你的问题'
};
var
content
=
{
1
:
{
'showText'
:
'评论了你'
,
'opeUrl'
:
'topic_detail?call_keyboard=1&open_comment=0&topic_id=
${list.repliedContent.topicId}
&reply_id=
${list.id}
'
},
2
:
{
'showText'
:
'评论了你的评论'
,
'opeUrl'
:
'topic_detail?call_keyboard=1&open_comment=0&topic_id=
${list.repliedContent.topicId}
&reply_id=
${list.id}
'
},
3
:
{
'showText'
:
'评论了你'
,
'opeUrl'
:
'pictorial_detail?pictorial_id=
${list.repliedContent.pictorialId}
&reply_id=
${list.id}
&show_reply=
${false}
'
},
4
:
{
'showText'
:
'评论了你的评论'
,
'opeUrl'
:
'pictorial_detail?pictorial_id=
${list.repliedContent.pictorialId}
&reply_id=
${list.id}
&show_reply=
${false}
'
},
5
:
{
'showText'
:
'关注了你的问题'
,
'opeUrl'
:
'pictorial_detail?pictorial_id=
${list.repliedContent.pictorialId}
'
}
};
return
Container
(
padding:
EdgeInsets
.
only
(
left:
width
,
right:
width
),
margin:
EdgeInsets
.
only
(
bottom:
ScreenUtil
().
setHeight
(
25
)),
...
...
@@ -119,6 +126,7 @@ Widget messageList(list) {
GestureDetector
(
onTap:
(){
onClickButton
(
'head_photo'
,
{
'business_id'
:
list
.
userId
.
toString
()});
jumpToNative
(
'message_home'
,
{
"url"
:
'alpha://user_detail?user_id=
${list.userId}
'
});
},
child:
Container
(
width:
42.0
,
...
...
@@ -153,7 +161,7 @@ Widget messageList(list) {
),
SizedBox
(
width:
ScreenUtil
().
setWidth
(
10
)),
Text
(
content
Text
[
list
.
repliedContent
?.
type
],
content
[
list
.
repliedContent
?.
type
][
'showText'
],
style:
TextStyle
(
color:
ALColors
.
Color323232
,
fontSize:
ScreenUtil
().
setSp
(
13
)
...
...
@@ -189,6 +197,7 @@ Widget messageList(list) {
GestureDetector
(
onTap:
()
{
onClickButton
(
'photo'
,
{
'business_id'
:
list
.
repliedContent
.
id
.
toString
()});
jumpToNative
(
'message_home'
,
{
"url"
:
'alpha://
${content[list.repliedContent?.type]['openUrl']}
'
});
},
child:
Image
.
network
(
list
.
repliedContent
.
content
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment