...
|
...
|
@@ -11,6 +11,11 @@ import ExpressCell from './ExpressCell' |
|
|
import ProductListCell from './ProductListCell'
|
|
|
import InvoiceCell from './InvoiceCell'
|
|
|
import OrderHistoryCell from './OrderHistoryCell'
|
|
|
import MultiPackageCell from './MultiPackageCell'
|
|
|
import YohoGiveCoinCell from './YohoGiveCoinCell'
|
|
|
import YohoReturnCoinCell from './YohoReturnCoinCell'
|
|
|
import Prompt from '../../../coupon/components/coupon/Prompt';
|
|
|
|
|
|
|
|
|
import ReactNative, {
|
|
|
View,
|
...
|
...
|
@@ -40,13 +45,24 @@ export default class Detail extends Component { |
|
|
return (<AddressCell channel={this.props.channel} data={rowData}/>);
|
|
|
break;
|
|
|
case 'orderInfo':
|
|
|
return (<OrderInfoCell data={rowData}/>);
|
|
|
return (<OrderInfoCell data={rowData} onPressCopy={this.props.onPressCopy}/>);
|
|
|
break;
|
|
|
case 'orderHistory':
|
|
|
return (<OrderHistoryCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'express':
|
|
|
return (<ExpressCell data={rowData}/>);
|
|
|
return (<ExpressCell data={rowData} onPressExpress={() => {
|
|
|
let {order_code, firstProductSKN, expressType} = this.props.resource;
|
|
|
let param = {
|
|
|
orderCode: order_code,
|
|
|
productSKN: firstProductSKN,
|
|
|
expressType: expressType,
|
|
|
}
|
|
|
this.onPressExpress&&this.onPressExpress(param);
|
|
|
}}/>);
|
|
|
break;
|
|
|
case 'multiPackage':
|
|
|
return (<MultiPackageCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'productList':
|
|
|
return (<ProductListCell data={rowData}/>);
|
...
|
...
|
@@ -54,6 +70,12 @@ export default class Detail extends Component { |
|
|
case 'paymentInfo':
|
|
|
return (<PaymentInfoCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'yoho_give_coin':
|
|
|
return (<YohoGiveCoinCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'return_yoho_coin_num':
|
|
|
return (<YohoReturnCoinCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'invoice':
|
|
|
return (<InvoiceCell data={rowData}/>);
|
|
|
break;
|
...
|
...
|
@@ -99,9 +121,18 @@ export default class Detail extends Component { |
|
|
|
|
|
let isVirtualOrder = false;
|
|
|
let isPresaleOrder = false;
|
|
|
let isMultiPackage = false;
|
|
|
let yoho_give_coin = 0;
|
|
|
let packageTitle = '';
|
|
|
let return_yoho_coin_num = 0;
|
|
|
|
|
|
if (data) {
|
|
|
isVirtualOrder = data.get('attribute') == '3';
|
|
|
isPresaleOrder = data.get('attribute') == '9';
|
|
|
isMultiPackage = data.get('is_multi_package') == 'Y';
|
|
|
packageTitle = data.get('package_title');
|
|
|
yoho_give_coin = data.get('yoho_give_coin');
|
|
|
return_yoho_coin_num = data.get('return_yoho_coin_num');
|
|
|
}
|
|
|
|
|
|
let orderHistoryBlob = null;
|
...
|
...
|
@@ -138,12 +169,21 @@ export default class Detail extends Component { |
|
|
'express': expressBlob
|
|
|
? [expressBlob]
|
|
|
: [],
|
|
|
'multiPackage': isMultiPackage && packageTitle.length
|
|
|
?[packageTitle]
|
|
|
:[],
|
|
|
'productList': data
|
|
|
? [productListBlob]
|
|
|
: [],
|
|
|
'paymentInfo': data
|
|
|
? [paymentInfoBlob]
|
|
|
: [],
|
|
|
'yoho_give_coin': yoho_give_coin
|
|
|
? [yoho_give_coin]
|
|
|
: [],
|
|
|
'return_yoho_coin_num': return_yoho_coin_num
|
|
|
?[return_yoho_coin_num]
|
|
|
:[],
|
|
|
'invoice': invoiceBlob
|
|
|
? [invoiceBlob]
|
|
|
: [],
|
...
|
...
|
|