Commit 1a4f1d560fafd8d68daccc14067fdbe5bbe27833

Authored by vking
1 parent e33f0990

taocan

Showing 1 changed file with 2 additions and 2 deletions
@@ -28,9 +28,9 @@ Page({ @@ -28,9 +28,9 @@ Page({
28 r.sid=this.data.sid 28 r.sid=this.data.sid
29 packs[r.id]=r 29 packs[r.id]=r
30 }) 30 })
31 - do{ 31 + while(Object.keys(packs).length<3){
32 packs[Math.random()]={} 32 packs[Math.random()]={}
33 - }while(Object.keys(packs).length<3) 33 + }
34 if(!packs[this.activityId]){ 34 if(!packs[this.activityId]){
35 util.toast('套餐已下架','none') 35 util.toast('套餐已下架','none')
36 this.activityId=res.data[0].id 36 this.activityId=res.data[0].id