兑换码商品暂时隐藏

This commit is contained in:
姜棚 2022-01-10 18:20:27 +08:00
parent 9b4a227387
commit 8dd666768f
1 changed files with 10 additions and 10 deletions

View File

@ -44,6 +44,7 @@ export default class add extends React.Component{
timer:3,
theme_options:[],
isload:false,
is_Edit:false,
}
}
@ -238,13 +239,8 @@ export default class add extends React.Component{
{
temp.push(data)
console.log("key的数据")
console.log(temp)
}
else{
console.log(7777)
return;
}
@ -262,8 +258,6 @@ export default class add extends React.Component{
await addPlanStep(plan_id,obj).then((res)=>{
handelResponse(res,(req,msg)=>{
this.setState({curstep:3})
console.log("第二部")
sessionStorage.setItem("step2", JSON.stringify(temp))
this.setState({card_visible:true})
return;
@ -274,7 +268,6 @@ export default class add extends React.Component{
}
console.log("第三部")
if(this.state.curstep == 3){
let data = this.refs.step3.submit();
@ -297,7 +290,6 @@ export default class add extends React.Component{
getReseller(id).then((res)=>{
handelResponse(res,(req,msg)=>{
console.log("分销商数据",req)
this.setState({reseller:req})
this.setState({phone_list:req.contact_phone})
@ -391,12 +383,20 @@ export default class add extends React.Component{
}
async onEditInfo(){
let plan_id = sessionStorage.getItem("plan_id")
if( await this.refs.step1.submit(plan_id))
if( !this.state.is_Edit)
{
console.log("是否编辑",this.state.is_Edit)
this.setState({is_Edit:true})
if(await this.refs.step1.submit(plan_id))
{
setTimeout(()=>{
this.props.history.push('/home/plan-list/');
this.setState({is_Edit:false})
},1500)
}
}
}
onConfirm(e){