Commit 2fc8e5ec authored by 李硕's avatar 李硕

提交

parent cc53a551
......@@ -123,8 +123,8 @@ class Pageweekverb extends Component {
let { prizeObj } = this.state;
let leftStock = prizeObj[level];
console.log('当前奖品剩余', leftStock);
if (leftStock > 0) {
if (openStatus == 1) {
if (openStatus == 1) {
if (leftStock > 0) {
if (this.state.pass) {
this.submit();
getPxToken(
......@@ -152,21 +152,22 @@ class Pageweekverb extends Component {
}
)
}
} else {
modalType = MODAL_TYPE.NOT_READY;
console.log('modalType===', modalType, 'level===', level, 'openStatus===', openStatus);
let modalInfo = Modal_Lables(modalType, level, openStatus);
console.log('modalInfo-------打开弹窗', modalInfo);
this.setState({
modalStatus: 1,
modalData: modalInfo
})
}
else {
Toast('库存不足哦, 请下周再来~');
// if (leftStock != 0) {
// this.getBaseInfoData();
// }
}
} else {
Toast('库存不足哦, 请下周再来~');
// if (leftStock != 0) {
// this.getBaseInfoData();
// }
modalType = MODAL_TYPE.NOT_READY;
console.log('modalType===', modalType, 'level===', level, 'openStatus===', openStatus);
let modalInfo = Modal_Lables(modalType, level, openStatus);
console.log('modalInfo-------打开弹窗', modalInfo);
this.setState({
modalStatus: 1,
modalData: modalInfo
})
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment