messageActions.js
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'use strict';
import {Actions} from 'react-native-router-flux';
import HomeService from '../../services/HomeService';
// import timeago from 'timeago.js';
const {
GO_TO_SYS_MESSAGE,
GO_TO_LIKE_MESSAGE,
} = require('../../constants/actionTypes').default;
// export function saveRequest() {
// return {
// type: SETTING_SAVE_REQUEST,
// };
// }
//
// export function saveSuccess() {
// return {
// type: SETTING_SAVE_SUCCESS,
// };
// }
//
// export function saveFailue() {
// return {
// type: SETTING_SAVE_FAILURE,
// };
// }
// 页面跳转
export function goToStatsPage(type) {
switch (type) {
case GO_TO_SYS_MESSAGE:
{
Actions.SystemMessage();
return {
type: GO_TO_SYS_MESSAGE,
}
}
break;
case GO_TO_LIKE_MESSAGE:
{
Actions.LikeMessage();
return {
type: GO_TO_LIKE_MESSAGE,
}
}
break;
default:
}
}