You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
5 years ago
|
import { Component, OnInit } from '@angular/core';
|
||
|
import '../../../assets/js/firststep'
|
||
|
@Component({
|
||
|
selector: 'app-first-step',
|
||
|
templateUrl: './first-step.component.html',
|
||
|
styleUrls: ['./first-step.component.scss']
|
||
|
})
|
||
|
export class FirstStepComponent implements OnInit {
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
ngOnInit(){
|
||
|
window.setTimeout(()=>{
|
||
|
//zhuan.drawRouletteWheel()
|
||
|
},0)
|
||
|
|
||
|
}
|
||
|
//支队数据和是否抽奖
|
||
|
choujiang=[
|
||
|
{name:"南宁支队",idnum:1},
|
||
|
{name:"柳州支队",idnum:2},
|
||
|
{name:"桂林支队",idnum:3},
|
||
|
{name:"梧州支队",idnum:4},
|
||
|
{name:"北海支队",idnum:5},
|
||
|
{name:"防城港支队",idnum:6},
|
||
|
{name:"钦州支队",idnum:7},
|
||
|
{name:"贵港支队",idnum:8},
|
||
|
{name:"玉林支队",idnum:9},
|
||
|
{name:"百色支队",idnum:10},
|
||
|
{name:"贺州支队",idnum:11},
|
||
|
{name:"河池支队",idnum:12},
|
||
|
{name:"来宾支队",idnum:13},
|
||
|
{name:"崇左支队",idnum:14}
|
||
|
]
|
||
|
//选中支队
|
||
|
chooseid=-1
|
||
|
chosseZhidui(key){
|
||
|
this.chooseid=key
|
||
|
}
|
||
|
|
||
|
turnplate={
|
||
|
restaraunts:[], //大转盘奖品名称
|
||
|
colors:[], //大转盘奖品区块对应背景颜色
|
||
|
outsideRadius:192, //大转盘外圆的半径
|
||
|
textRadius:155, //大转盘奖品位置距离圆心的距离
|
||
|
insideRadius:68, //大转盘内圆的半径
|
||
|
startAngle:0, //开始角度
|
||
|
bRotate:false //false:停止;ture:旋转
|
||
|
};
|
||
|
|
||
|
}
|