Commit 0d163be3 by 李静静

fixed bug

parent 65c3e7c1
......@@ -458,14 +458,18 @@ Page({
let resultData=await this.getMenusData();
if(resultData.has_buy_card){ //已购买则所有的锁都消失 并跳转到对应的卡片
if(resultData&&resultData.data&&resultData.data.data&&resultData.data.data.has_buy_card){ //已购买则所有的锁都消失 并跳转到对应的卡片
let menusArr = this.data.menusArr.map(i=>{
i.child=i.child.map(j=>{
j.disabled=false
return j
})
if(i.child){
i.child=i.child.map(j=>{
j.disabled=false
return j
})
}
return i;
})
event.currentTarget.dataset.item.disabled=false;
this.setData({
menusArr
})
......
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