|
@@ -18,7 +18,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -18,7 +18,6 @@ module.exports = class extends global.yoho.BaseModel { |
18
|
closeReasons() {
|
18
|
closeReasons() {
|
19
|
return this.get({
|
19
|
return this.get({
|
20
|
data: {method: 'app.SpaceOrders.closeReasons'},
|
20
|
data: {method: 'app.SpaceOrders.closeReasons'},
|
21
|
- api: global.yoho.API,
|
|
|
22
|
param: {cache: true}
|
21
|
param: {cache: true}
|
23
|
}).then((result) => {
|
22
|
}).then((result) => {
|
24
|
if (result && result.code === 200) {
|
23
|
if (result && result.code === 200) {
|
|
@@ -158,8 +157,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -158,8 +157,7 @@ module.exports = class extends global.yoho.BaseModel { |
158
|
method: 'app.SpaceOrders.detail',
|
157
|
method: 'app.SpaceOrders.detail',
|
159
|
uid: uid,
|
158
|
uid: uid,
|
160
|
order_code: orderCode
|
159
|
order_code: orderCode
|
161
|
- },
|
|
|
162
|
- api: global.yoho.API
|
160
|
+ }
|
163
|
}).then(result => {
|
161
|
}).then(result => {
|
164
|
if (result && result.code === 200) {
|
162
|
if (result && result.code === 200) {
|
165
|
let orderDetail = camelCase(result.data);
|
163
|
let orderDetail = camelCase(result.data);
|
|
@@ -301,8 +299,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -301,8 +299,7 @@ module.exports = class extends global.yoho.BaseModel { |
301
|
method: 'app.SpaceOrders.delOrderByCode',
|
299
|
method: 'app.SpaceOrders.delOrderByCode',
|
302
|
uid: uid,
|
300
|
uid: uid,
|
303
|
order_code: orderCode
|
301
|
order_code: orderCode
|
304
|
- },
|
|
|
305
|
- api: global.yoho.API
|
302
|
+ }
|
306
|
});
|
303
|
});
|
307
|
}
|
304
|
}
|
308
|
|
305
|
|
|
@@ -313,8 +310,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -313,8 +310,7 @@ module.exports = class extends global.yoho.BaseModel { |
313
|
method: 'app.Shopping.readd',
|
310
|
method: 'app.Shopping.readd',
|
314
|
uid: uid,
|
311
|
uid: uid,
|
315
|
order_code: orderCode
|
312
|
order_code: orderCode
|
316
|
- },
|
|
|
317
|
- api: global.yoho.API
|
313
|
+ }
|
318
|
}).then((result) => {
|
314
|
}).then((result) => {
|
319
|
if (result && result.code === 200) {
|
315
|
if (result && result.code === 200) {
|
320
|
result.message = '商品已重新加入购物车';
|
316
|
result.message = '商品已重新加入购物车';
|
|
@@ -341,8 +337,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -341,8 +337,7 @@ module.exports = class extends global.yoho.BaseModel { |
341
|
reasons: reason,
|
337
|
reasons: reason,
|
342
|
gender: gender,
|
338
|
gender: gender,
|
343
|
yh_channel: channel
|
339
|
yh_channel: channel
|
344
|
- },
|
|
|
345
|
- api: global.yoho.API
|
340
|
+ }
|
346
|
});
|
341
|
});
|
347
|
}
|
342
|
}
|
348
|
|
343
|
|
|
@@ -357,8 +352,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -357,8 +352,7 @@ module.exports = class extends global.yoho.BaseModel { |
357
|
order_code: params.orderCode,
|
352
|
order_code: params.orderCode,
|
358
|
reason_id: params.reasonId,
|
353
|
reason_id: params.reasonId,
|
359
|
reason: params.reason
|
354
|
reason: params.reason
|
360
|
- },
|
|
|
361
|
- api: global.yoho.API
|
355
|
+ }
|
362
|
});
|
356
|
});
|
363
|
}
|
357
|
}
|
364
|
|
358
|
|
|
@@ -390,8 +384,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -390,8 +384,7 @@ module.exports = class extends global.yoho.BaseModel { |
390
|
}
|
384
|
}
|
391
|
|
385
|
|
392
|
return this.get({
|
386
|
return this.get({
|
393
|
- data: finalParams,
|
|
|
394
|
- api: global.yoho.API
|
387
|
+ data: finalParams
|
395
|
});
|
388
|
});
|
396
|
}
|
389
|
}
|
397
|
|
390
|
|
|
@@ -486,8 +479,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -486,8 +479,7 @@ module.exports = class extends global.yoho.BaseModel { |
486
|
}
|
479
|
}
|
487
|
|
480
|
|
488
|
return this.post({
|
481
|
return this.post({
|
489
|
- data: apiParams,
|
|
|
490
|
- api: global.yoho.API
|
482
|
+ data: apiParams
|
491
|
});
|
483
|
});
|
492
|
}
|
484
|
}
|
493
|
}; |
485
|
}; |