appActions.js
1.61 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
'use strict';
import ReactNative from 'react-native';
const {
SET_PLATFORM,
SET_CHANNEL,
SET_HOST,
SET_TYPE,
SET_SHOP,
SET_BRANDID,
SET_ORIGINPARAMS,
SET_SALETYPE,
SET_SERVICE_HOST,
SET_ACTIVITY_ID,
SET_BANNER_URL,
SET_LIST_TYPE,
} = require('../../constants/actionTypes').default;
export function setPlatform(platform) {
return {
type: SET_PLATFORM,
payload: platform
};
}
export function setChannel(channel) {
return {
type: SET_CHANNEL,
payload: channel
};
}
export function setHost(host) {
return {
type: SET_HOST,
payload: host
};
}
export function setServiceHost(host) {
return {
type: SET_SERVICE_HOST,
payload: host
};
}
export function setType(type) {
return {
type: SET_TYPE,
payload: type
};
}
export function setShop(shopid) {
return {
type: SET_SHOP,
payload: shopid
};
}
export function setBrandId(brand_id) {
return {
type: SET_BRANDID,
payload: brand_id
};
}
export function setOriginParams(originParams) {
return {
type: SET_ORIGINPARAMS,
payload: originParams
};
}
export function setSaleType(saleType) {
return {
type: SET_SALETYPE,
payload: saleType
};
}
export function setActivityId(activityId) {
return {
type: SET_ACTIVITY_ID,
payload: activityId
};
}
export function setBannerUrl(bannerUrl) {
return {
type: SET_BANNER_URL,
payload: bannerUrl
};
}
export function setListType(listType) {
return {
type: SET_LIST_TYPE,
payload: listType
};
}