Authored by 张丽霞

设置提醒,review by 孙凯

... ... @@ -103,6 +103,7 @@ export default class SeckillTimeListView extends Component {
}
componentDidMount() {
this._scrollToFocusActivity();
this.timer = setInterval(function () {
if (!this.curFocusActivity && this.curFocusActivity.size > 0 && !this.curFocusActivity.has('over')) {
return;
... ... @@ -110,7 +111,6 @@ export default class SeckillTimeListView extends Component {
this._caculateTimerState();
}.bind(this), 1000);
this._scrollToFocusActivity();
}
... ... @@ -129,8 +129,6 @@ export default class SeckillTimeListView extends Component {
// }
_renderRow(rowData, sectionID, rowID) {
console.log('rowID');
console.log(rowID);
rowData = rowData.toJS();
return (
<TouchableOpacity activeOpacity={1.0} onPress={() => {
... ... @@ -184,7 +182,6 @@ export default class SeckillTimeListView extends Component {
diffTime = diff;
this.secKillProductVoList = resource;
this.curFocusActivity = curActivity;
console.log('resource');
backgroundWidth = Math.max((rowContainerWidth + separatorWidth) * (resource.length - 1) + rowContainerFocusWidth, width);
... ...
... ... @@ -258,7 +258,7 @@ export function addCancelUserReminder(method='app.seckill.addUserReminder', acti
}
queryProductList = queryProductList.toJS();
let curActivity = {};
queryProductList[curActivity.get('activityId')].forEach((productItem, i) => {
queryProductList[activityId].forEach((productItem, i) => {
if (productItem.id === secKillId) {
productItem.remindFlag = remindFlag;
}
... ... @@ -365,9 +365,6 @@ export function clickRemindBtn(product) {
method: action,
arguments: params,
})
.then(flag => {
})
.then(flag => { //成功
dispatch(addCancelUserReminder(method, product.activityId, skn,uid, product.id, okTip, failTip));
})
... ...