...
|
...
|
@@ -15,6 +15,7 @@ import MultiPackageCell from './MultiPackageCell' |
|
|
import YohoGiveCoinCell from './YohoGiveCoinCell'
|
|
|
import YohoReturnCoinCell from './YohoReturnCoinCell'
|
|
|
import Prompt from '../../../coupon/components/coupon/Prompt';
|
|
|
import DistributionInfoCell from './DistributionInfoCell'
|
|
|
|
|
|
import ReactNative, {
|
|
|
View,
|
...
|
...
|
@@ -49,6 +50,9 @@ export default class Detail extends Component { |
|
|
case 'orderHistory':
|
|
|
return (<OrderHistoryCell data={rowData}/>);
|
|
|
break;
|
|
|
case 'deliveryOffline':
|
|
|
return (<DistributionInfoCell/>);
|
|
|
break;
|
|
|
case 'express':
|
|
|
return (<ExpressCell data={rowData} onPressExpress={() => {
|
|
|
let {order_code, firstProductSKN, expressType} = this.props.resource;
|
...
|
...
|
@@ -122,13 +126,19 @@ export default class Detail extends Component { |
|
|
} else if (expressType == 0 && data) { //OrderDetailExpressTypeOnRecive
|
|
|
expressBlob = [accept_address, acceptTime];
|
|
|
}
|
|
|
let is_delivery_offline = 'N';
|
|
|
if (data) {
|
|
|
is_delivery_offline = data.get('let is_delivery_offline');
|
|
|
}
|
|
|
let showDeliveryOffline = is_delivery_offline && is_delivery_offline == 'Y';
|
|
|
|
|
|
let orderInfoBlob = {
|
|
|
orderCode: order_code,
|
|
|
orderStatus: data && data.get('status_str'),
|
|
|
orderTime: data && data.get('create_time'),
|
|
|
payWay: data && data.get('payment_name'),
|
|
|
expressExisted: expressBlob
|
|
|
expressExisted: expressBlob,
|
|
|
showDeliveryOffline,
|
|
|
}
|
|
|
|
|
|
let paymentInfoBlob = {
|
...
|
...
|
@@ -184,6 +194,9 @@ export default class Detail extends Component { |
|
|
'orderHistory': isPresaleOrder
|
|
|
? [orderHistoryBlob]
|
|
|
: [],
|
|
|
'deliveryOffline': showDeliveryOffline
|
|
|
?[1]
|
|
|
:[],
|
|
|
'express': expressBlob
|
|
|
? [expressBlob]
|
|
|
: [],
|
...
|
...
|
|