|
@@ -117,7 +117,9 @@ const _discount = (params) => { |
|
@@ -117,7 +117,9 @@ const _discount = (params) => { |
117
|
method: 'app.activity.get',
|
117
|
method: 'app.activity.get',
|
118
|
sort: 2,
|
118
|
sort: 2,
|
119
|
plateform: 3
|
119
|
plateform: 3
|
120
|
- }, params));
|
120
|
+ }, params), {
|
|
|
121
|
+ cache: true
|
|
|
122
|
+ });
|
121
|
};
|
123
|
};
|
122
|
|
124
|
|
123
|
/**
|
125
|
/**
|
|
@@ -188,7 +190,9 @@ const _searchSales = (params) => { |
|
@@ -188,7 +190,9 @@ const _searchSales = (params) => { |
188
|
|
190
|
|
189
|
return api.get('', Object.assign({
|
191
|
return api.get('', Object.assign({
|
190
|
method: method
|
192
|
method: method
|
191
|
- }, params), true);
|
193
|
+ }, params), {
|
|
|
194
|
+ cache: true
|
|
|
195
|
+ });
|
192
|
};
|
196
|
};
|
193
|
|
197
|
|
194
|
/**
|
198
|
/**
|
|
@@ -206,7 +210,9 @@ const _getUserProfile = (uid) => { |
|
@@ -206,7 +210,9 @@ const _getUserProfile = (uid) => { |
206
|
return api.get('', {
|
210
|
return api.get('', {
|
207
|
method: 'app.passport.profile',
|
211
|
method: 'app.passport.profile',
|
208
|
uid: uid
|
212
|
uid: uid
|
209
|
- }, true);
|
213
|
+ }, {
|
|
|
214
|
+ cache: true
|
|
|
215
|
+ });
|
210
|
};
|
216
|
};
|
211
|
|
217
|
|
212
|
/**
|
218
|
/**
|
|
@@ -217,6 +223,8 @@ const _getUserProfile = (uid) => { |
|
@@ -217,6 +223,8 @@ const _getUserProfile = (uid) => { |
217
|
const _getResources = (page, channel) => {
|
223
|
const _getResources = (page, channel) => {
|
218
|
return serviceAPI.get('operations/api/v5/resource/get', {
|
224
|
return serviceAPI.get('operations/api/v5/resource/get', {
|
219
|
content_code: contentCode[channel][page]
|
225
|
content_code: contentCode[channel][page]
|
|
|
226
|
+ }, {
|
|
|
227
|
+ cache: true
|
220
|
}).then((result) => {
|
228
|
}).then((result) => {
|
221
|
if (result && result.code === 200) {
|
229
|
if (result && result.code === 200) {
|
222
|
return resourcesProcess(result.data);
|
230
|
return resourcesProcess(result.data);
|
|
@@ -236,6 +244,8 @@ const _getBreakingSort = (yhChannel) => { |
|
@@ -236,6 +244,8 @@ const _getBreakingSort = (yhChannel) => { |
236
|
return api.get('', {
|
244
|
return api.get('', {
|
237
|
method: 'app.sale.getBreakingSort',
|
245
|
method: 'app.sale.getBreakingSort',
|
238
|
yh_channel: channelType[yhChannel] || '1'
|
246
|
yh_channel: channelType[yhChannel] || '1'
|
|
|
247
|
+ }, {
|
|
|
248
|
+ cache: true
|
239
|
}).then((result) => {
|
249
|
}).then((result) => {
|
240
|
if (result && result.code === 200) {
|
250
|
if (result && result.code === 200) {
|
241
|
return _processBreakingSort(result.data);
|
251
|
return _processBreakingSort(result.data);
|