|
@@ -10,43 +10,45 @@ const orderDetail = (params) => { |
|
@@ -10,43 +10,45 @@ const orderDetail = (params) => { |
10
|
return api.get('', _.assign({
|
10
|
return api.get('', _.assign({
|
11
|
method: 'app.SpaceOrders.detail'
|
11
|
method: 'app.SpaceOrders.detail'
|
12
|
}, params), {code: 200}).then((result) => {
|
12
|
}, params), {code: 200}).then((result) => {
|
13
|
- if (result.data) {
|
|
|
14
|
- Object.assign(finalResult, {
|
|
|
15
|
- virtual_type: result.data.virtual_type,
|
|
|
16
|
- phoneNum: result.data.mobile,
|
|
|
17
|
- orderStatus: result.data.status_str,
|
|
|
18
|
- orderNum: result.data.order_code,
|
|
|
19
|
- orderTime: result.data.create_time,
|
|
|
20
|
- isPay: result.data.payment_status === 'Y',
|
|
|
21
|
- relation: result.data.relate_order_code === 'Y' ? 'true' : 'false',
|
|
|
22
|
- name: result.data.user_name,
|
|
|
23
|
-
|
|
|
24
|
- isVirtual: false,
|
|
|
25
|
- mobile: '15999999999',
|
|
|
26
|
- address: result.data.address,
|
|
|
27
|
- logisticsUrl: '#',
|
|
|
28
|
- logisticsCompany: '顺丰',
|
|
|
29
|
- logisticsNum: '111111',
|
|
|
30
|
- yohoCoin: result.data.yoho_give_coin,
|
|
|
31
|
-
|
|
|
32
|
- invoice: [{
|
|
|
33
|
- title: '有货',
|
|
|
34
|
- contentValue: '有货',
|
|
|
35
|
- pdfUrl: '#'
|
|
|
36
|
- }, {
|
|
|
37
|
- title: '有货',
|
|
|
38
|
- contentValue: '有货',
|
|
|
39
|
- pdfUrl: '#'
|
|
|
40
|
- }],
|
|
|
41
|
- orderBalance: [{
|
|
|
42
|
- promotion: '商品总金额',
|
|
|
43
|
- account: '100.00'
|
|
|
44
|
- }, {
|
|
|
45
|
- promotion: '运费',
|
|
|
46
|
- account: '10.00'
|
|
|
47
|
- }],
|
|
|
48
|
- price: result.data.amount
|
|
|
49
|
- });
|
13
|
+ if (params.order_code && params.uid && params.sessionKey) {
|
|
|
14
|
+ if (result.data) {
|
|
|
15
|
+ Object.assign(finalResult, {
|
|
|
16
|
+ virtual_type: result.data.virtual_type,
|
|
|
17
|
+ phoneNum: result.data.mobile,
|
|
|
18
|
+ orderStatus: result.data.status_str,
|
|
|
19
|
+ orderNum: result.data.order_code,
|
|
|
20
|
+ orderTime: result.data.create_time,
|
|
|
21
|
+ isPay: result.data.payment_status === 'Y',
|
|
|
22
|
+ relation: result.data.relate_order_code === 'Y' ? 'true' : 'false',
|
|
|
23
|
+ name: result.data.user_name,
|
|
|
24
|
+
|
|
|
25
|
+ isVirtual: false,
|
|
|
26
|
+ mobile: '15999999999',
|
|
|
27
|
+ address: result.data.address,
|
|
|
28
|
+ logisticsUrl: '#',
|
|
|
29
|
+ logisticsCompany: '顺丰',
|
|
|
30
|
+ logisticsNum: '111111',
|
|
|
31
|
+ yohoCoin: result.data.yoho_give_coin,
|
|
|
32
|
+
|
|
|
33
|
+ invoice: [{
|
|
|
34
|
+ title: '有货',
|
|
|
35
|
+ contentValue: '有货',
|
|
|
36
|
+ pdfUrl: '#'
|
|
|
37
|
+ }, {
|
|
|
38
|
+ title: '有货',
|
|
|
39
|
+ contentValue: '有货',
|
|
|
40
|
+ pdfUrl: '#'
|
|
|
41
|
+ }],
|
|
|
42
|
+ orderBalance: [{
|
|
|
43
|
+ promotion: '商品总金额',
|
|
|
44
|
+ account: '100.00'
|
|
|
45
|
+ }, {
|
|
|
46
|
+ promotion: '运费',
|
|
|
47
|
+ account: '10.00'
|
|
|
48
|
+ }],
|
|
|
49
|
+ price: result.data.amount
|
|
|
50
|
+ });
|
|
|
51
|
+ }
|
50
|
}
|
52
|
}
|
51
|
|
53
|
|
52
|
return finalResult;
|
54
|
return finalResult;
|