|
|
|
@ -15,23 +15,7 @@ export class FirstStepComponent implements OnInit {
|
|
|
|
|
},0) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//支队数据和是否抽奖
|
|
|
|
|
choujiang=[ |
|
|
|
|
{name:"南宁支队",id:1,result :localStorage.getItem("南宁支队") || ""}, |
|
|
|
|
{name:"柳州支队",id:2,result :localStorage.getItem("柳州支队") || ""}, |
|
|
|
|
{name:"桂林支队",id:3,result :localStorage.getItem("桂林支队") || ""}, |
|
|
|
|
{name:"梧州支队",id:4,result :localStorage.getItem("梧州支队") || ""}, |
|
|
|
|
{name:"北海支队",id:5,result :localStorage.getItem("北海支队") || ""}, |
|
|
|
|
{name:"防城港支队",id:6,result :localStorage.getItem("防城港支队") || ""}, |
|
|
|
|
{name:"钦州支队",id:7,result :localStorage.getItem("钦州支队") || ""}, |
|
|
|
|
{name:"贵港支队",id:8,result :localStorage.getItem("贵港支队") || ""}, |
|
|
|
|
{name:"玉林支队",id:9,result :localStorage.getItem("玉林支队") || ""}, |
|
|
|
|
{name:"百色支队",id:10,result :localStorage.getItem("百色支队") || ""}, |
|
|
|
|
{name:"贺州支队",id:11,result :localStorage.getItem("贺州支队") || ""}, |
|
|
|
|
{name:"河池支队",id:12,result :localStorage.getItem("河池支队") || ""}, |
|
|
|
|
{name:"来宾支队",id:13,result :localStorage.getItem("来宾支队") || ""}, |
|
|
|
|
{name:"崇左支队",id:14,result :localStorage.getItem("崇左支队") || ""} |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
numList = [ |
|
|
|
|
{name:"1号",id:1}, |
|
|
|
|
{name:"2号",id:2}, |
|
|
|
@ -62,6 +46,28 @@ export class FirstStepComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//跳转第二个页面
|
|
|
|
|
nextStep(){ |
|
|
|
|
window.location.href="/twoStep"; |
|
|
|
|
if(localStorage.getItem("南宁支队") && localStorage.getItem("柳州支队") && localStorage.getItem("桂林支队") && localStorage.getItem("梧州支队") && localStorage.getItem("北海支队") && localStorage.getItem("防城港支队") && localStorage.getItem("钦州支队") && localStorage.getItem("贵港支队") && localStorage.getItem("玉林支队") && localStorage.getItem("百色支队") && localStorage.getItem("贺州支队") && localStorage.getItem("河池支队") && localStorage.getItem("来宾支队") && localStorage.getItem("崇左支队")){ |
|
|
|
|
window.location.href="/twoStep"; |
|
|
|
|
}else{ |
|
|
|
|
alert("未全部抽完!") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//支队数据和是否抽奖
|
|
|
|
|
choujiang=[ |
|
|
|
|
{name:"南宁支队",id:1,result :localStorage.getItem("南宁支队") || ""}, |
|
|
|
|
{name:"柳州支队",id:2,result :localStorage.getItem("柳州支队") || ""}, |
|
|
|
|
{name:"桂林支队",id:3,result :localStorage.getItem("桂林支队") || ""}, |
|
|
|
|
{name:"梧州支队",id:4,result :localStorage.getItem("梧州支队") || ""}, |
|
|
|
|
{name:"北海支队",id:5,result :localStorage.getItem("北海支队") || ""}, |
|
|
|
|
{name:"防城港支队",id:6,result :localStorage.getItem("防城港支队") || ""}, |
|
|
|
|
{name:"钦州支队",id:7,result :localStorage.getItem("钦州支队") || ""}, |
|
|
|
|
{name:"贵港支队",id:8,result :localStorage.getItem("贵港支队") || ""}, |
|
|
|
|
{name:"玉林支队",id:9,result :localStorage.getItem("玉林支队") || ""}, |
|
|
|
|
{name:"百色支队",id:10,result :localStorage.getItem("百色支队") || ""}, |
|
|
|
|
{name:"贺州支队",id:11,result :localStorage.getItem("贺州支队") || ""}, |
|
|
|
|
{name:"河池支队",id:12,result :localStorage.getItem("河池支队") || ""}, |
|
|
|
|
{name:"来宾支队",id:13,result :localStorage.getItem("来宾支队") || ""}, |
|
|
|
|
{name:"崇左支队",id:14,result :localStorage.getItem("崇左支队") || ""} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|