|
|
|
/*
|
|
|
|
* @Descripttion:
|
|
|
|
* @version:
|
|
|
|
* @Author: sueRimn
|
|
|
|
* @Date: 2020-10-18 10:23:46
|
|
|
|
* @LastEditors: sueRimn
|
|
|
|
* @LastEditTime: 2020-10-18 11:22:51
|
|
|
|
*/
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import '../../../assets/js/fourstepcopy'
|
|
|
|
@Component({
|
|
|
|
selector: 'app-four-step-copy',
|
|
|
|
templateUrl: './four-step-copy.component.html',
|
|
|
|
styleUrls: ['./four-step-copy.component.scss']
|
|
|
|
})
|
|
|
|
export class FourStepCopyComponent implements OnInit {
|
|
|
|
|
|
|
|
constructor() { }
|
|
|
|
|
|
|
|
ngOnInit(){
|
|
|
|
window.setTimeout(()=>{
|
|
|
|
//zhuan.drawRouletteWheel()
|
|
|
|
},0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
choujiang = [
|
|
|
|
{name:"南宁支队",id:1,result :JSON.parse(localStorage.getItem("南宁支队seatnumbercopy")) || "",seatnum:"12"},
|
|
|
|
{name:"柳州支队",id:2,result :JSON.parse(localStorage.getItem("柳州支队seatnumbercopy")) || "",seatnum:"7"},
|
|
|
|
{name:"桂林支队",id:3,result :JSON.parse(localStorage.getItem("桂林支队seatnumbercopy")) || "",seatnum:"1"},
|
|
|
|
{name:"梧州支队",id:4,result :JSON.parse(localStorage.getItem("梧州支队seatnumbercopy")) || "",seatnum:"6"},
|
|
|
|
{name:"北海支队",id:5,result :JSON.parse(localStorage.getItem("北海支队seatnumbercopy")) || "",seatnum:"11"},
|
|
|
|
{name:"防城港支队",id:6,result :JSON.parse(localStorage.getItem("防城港支队seatnumbercopy")) || "",seatnum:"2"},
|
|
|
|
{name:"钦州支队",id:7,result :JSON.parse(localStorage.getItem("钦州支队seatnumbercopy")) || "",seatnum:"5"},
|
|
|
|
{name:"贵港支队",id:8,result :JSON.parse(localStorage.getItem("贵港支队seatnumbercopy")) || "",seatnum:"8"},
|
|
|
|
{name:"玉林支队",id:9,result :JSON.parse(localStorage.getItem("玉林支队seatnumbercopy")) || "",seatnum:"14"},
|
|
|
|
{name:"百色支队",id:10,result :JSON.parse(localStorage.getItem("百色支队seatnumbercopy")) || "",seatnum:"3"},
|
|
|
|
{name:"贺州支队",id:11,result :JSON.parse(localStorage.getItem("贺州支队seatnumbercopy")) || "",seatnum:"9"},
|
|
|
|
{name:"河池支队",id:12,result :JSON.parse(localStorage.getItem("河池支队seatnumbercopy")) || "",seatnum:"4"},
|
|
|
|
{name:"来宾支队",id:13,result :JSON.parse(localStorage.getItem("来宾支队seatnumbercopy")) || "",seatnum:"10"},
|
|
|
|
{name:"崇左支队",id:14,result :JSON.parse(localStorage.getItem("崇左支队seatnumbercopy")) || "",seatnum:"13"}
|
|
|
|
]
|
|
|
|
numList = [
|
|
|
|
{name:"1号",id:1},
|
|
|
|
{name:"2号",id:2},
|
|
|
|
{name:"3号",id:3},
|
|
|
|
{name:"4号",id:4},
|
|
|
|
{name:"5号",id:5},
|
|
|
|
{name:"6号",id:6},
|
|
|
|
{name:"7号",id:7},
|
|
|
|
{name:"8号",id:8},
|
|
|
|
{name:"9号",id:9},
|
|
|
|
{name:"10号",id:10},
|
|
|
|
{name:"11号",id:11},
|
|
|
|
{name:"12号",id:12},
|
|
|
|
{name:"13号",id:13},
|
|
|
|
{name:"14号",id:14}
|
|
|
|
]
|
|
|
|
numList2 = [
|
|
|
|
{name:"15号",id:15},
|
|
|
|
{name:"16号",id:16},
|
|
|
|
{name:"17号",id:17},
|
|
|
|
{name:"18号",id:18},
|
|
|
|
{name:"19号",id:19},
|
|
|
|
{name:"20号",id:20},
|
|
|
|
{name:"21号",id:21},
|
|
|
|
{name:"22号",id:22},
|
|
|
|
{name:"23号",id:23},
|
|
|
|
{name:"24号",id:24},
|
|
|
|
{name:"25号",id:25},
|
|
|
|
{name:"26号",id:26},
|
|
|
|
{name:"27号",id:27},
|
|
|
|
{name:"28号",id:28}
|
|
|
|
]
|
|
|
|
//选中支队
|
|
|
|
chooseid=-1
|
|
|
|
isDraw = false
|
|
|
|
clickName(item){
|
|
|
|
this.chooseid = item.id - 1
|
|
|
|
localStorage.setItem("indexNum",item.id)
|
|
|
|
if(localStorage.getItem(item.name + 'seatnumbercopy')){//如果已经抽过
|
|
|
|
this.isDraw = true
|
|
|
|
}else{
|
|
|
|
this.isDraw = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lookresult(){
|
|
|
|
if(localStorage.getItem("南宁支队seatnumbercopy") && localStorage.getItem("柳州支队seatnumbercopy") && localStorage.getItem("桂林支队seatnumbercopy") && localStorage.getItem("梧州支队seatnumbercopy") && localStorage.getItem("北海支队seatnumbercopy") && localStorage.getItem("防城港支队seatnumbercopy") && localStorage.getItem("钦州支队seatnumbercopy") && localStorage.getItem("贵港支队seatnumbercopy") && localStorage.getItem("玉林支队seatnumbercopy") && localStorage.getItem("百色支队seatnumbercopy") && localStorage.getItem("贺州支队seatnumbercopy") && localStorage.getItem("河池支队seatnumbercopy") && localStorage.getItem("来宾支队seatnumbercopy") && localStorage.getItem("崇左支队seatnumbercopy")){
|
|
|
|
window.location.href="/drawingResult";
|
|
|
|
}else{
|
|
|
|
alert("请全部抽完再查看结果!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|