Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
盖剑秋
2016-08-05 14:32:35 +0800
Commit
528fd55fd9d2aab35995bad88b8b5565c16a274d
1 parent
4c5fb792
优化发帖模块以及帖子详情模块。 reviewed by redding.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
js/community/components/posting/Posting.js
js/community/components/subjectPost/SubjectPost.js
js/community/reducers/subject/subjectPostActions.js
js/community/components/posting/Posting.js
View file @
528fd55
...
...
@@ -146,6 +146,7 @@ export default class Posting extends Component {
autoFocus
=
{
true
}
autoCapitalize
=
{
'none'
}
autoCorrect
=
{
false
}
selectionColor
=
{
'black'
}
onFocus
=
{()
=>
{
this
.
setState
({
showKeyboard
:
true
,
...
...
@@ -171,6 +172,7 @@ export default class Posting extends Component {
placeholder
=
'用力敲出你想说的...'
multiline
=
{
true
}
autoCorrect
=
{
false
}
selectionColor
=
{
'black'
}
onFocus
=
{()
=>
{
this
.
setState
({
showKeyboard
:
true
,
...
...
js/community/components/subjectPost/SubjectPost.js
View file @
528fd55
...
...
@@ -248,6 +248,7 @@ export default class SubjectPost extends Component {
multiline
=
{
true
}
autoCapitalize
=
{
'none'
}
autoCorrect
=
{
false
}
selectionColor
=
{
'black'
}
autoFocus
=
{
true
}
maxLength
=
{
1000
}
onChangeText
=
{
...
...
@@ -292,6 +293,7 @@ export default class SubjectPost extends Component {
placeholder
=
{
'回复'
+
this
.
someOneToReply
+
':'
}
multiline
=
{
true
}
autoCapitalize
=
{
'none'
}
selectionColor
=
{
'black'
}
autoCorrect
=
{
false
}
autoFocus
=
{
true
}
maxLength
=
{
1000
}
...
...
js/community/reducers/subject/subjectPostActions.js
View file @
528fd55
...
...
@@ -310,6 +310,8 @@ export function requestPostContent(sid,postsId) {
});
})
.
catch
(
error
=>
{
Actions
.
pop
();
Alert
.
alert
(
'提示'
,
'帖子不存在或已被删除!'
);
dispatch
(
contentRequestFailure
(
sid
,
error
));
});
}
...
...
Please
register
or
login
to post a comment