Authored by 郁健超

砍价状态值传给原生 review by孙凯

... ... @@ -18,14 +18,11 @@ export default class productCell extends Component {
_topTimerView(data) {
let leftTime = data.get('cutEndTime') - data.get('currentTime');
let status = data.get('cutStatus');
let imageName = 'timeBgBig';
let des = '后结束';
if (status == 2) {
des = '已成功';
imageName = 'timeBgSmall';
}else if (status == 3){
des = '已结束';
imageName = 'timeBgSmall';
}
return (
... ...
... ... @@ -123,9 +123,11 @@ class HaggleListContainer extends Component {
}
_onPressProduct(product) {
let {categoryType} = this.props.haggle;
let that = this;
if (product.get('cutStatus')) {
this._jumpHaggleDetail(product, null);
if (categoryType == 1) {
this._jumpHaggleDetail(product, 0);
}else {
this.props.actions.getHaggleStatus(product.get('productSkn'), product.get('activityId'), function (json){
... ... @@ -133,7 +135,7 @@ class HaggleListContainer extends Component {
if (json) {
that.setState({showAlert:true, productItem:product});
}else {
that._jumpHaggleDetail(product, json);
that._jumpHaggleDetail(product, 1);
}
});
}
... ... @@ -159,7 +161,7 @@ class HaggleListContainer extends Component {
<YHAlertItem key={'minSure'} param={this.state.productItem} showStatus='redButton'
handleAction={(param) => {
{this._hiddenTipsAlertDialog()};
{this._jumpHaggleDetail(param, null)};
{this._jumpHaggleDetail(param, 0)};
}}>查看详情</YHAlertItem>
</YHAlert>
... ...