fix: 修复新建计划落地页错误问题

This commit is contained in:
zhangds 2022-10-27 10:39:12 +08:00
parent 599c6e8b76
commit 38b6f766f5
2 changed files with 4 additions and 3 deletions

View File

@ -89,6 +89,7 @@ export default class add extends React.Component {
componentDidMount(e) {
sessionStorage.setItem("white", 3);
sessionStorage.setItem("plan_id", "");
sessionStorage.setItem("keyType", "1");
}
onConfirm(e) {

View File

@ -52,8 +52,8 @@ export default class acclist extends React.Component {
console.log("white =>", white);
console.log("keyType =>", keyType);
// 2 优惠券
if (keyType == 2) {
if (white == 1) {
if (keyType === "2") {
if (white === "1") {
// 并且是 白名单
params.page = 8;
} else {
@ -61,7 +61,7 @@ export default class acclist extends React.Component {
}
} else {
// 兑换码
if (white == 1) {
if (white === "1") {
// 并且是 白名单
params.page = 1;
} else {