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.
74 lines
1.8 KiB
74 lines
1.8 KiB
/* |
|
* @Descripttion: |
|
* @version: |
|
* @Author: sueRimn |
|
* @Date: 2020-09-25 08:48:50 |
|
* @LastEditors: sueRimn |
|
* @LastEditTime: 2020-10-18 10:42:13 |
|
*/ |
|
import { Component, OnInit } from '@angular/core'; |
|
import { from } from 'rxjs'; |
|
//import '../../../assets/js/awardRotate' |
|
import '../../../assets/js/zhuanpan' |
|
//import * from '../../../assets/js/awardRotate' |
|
//import *as '../../../assets/js/zhuanpan'; |
|
|
|
|
|
//declare var zhuan:any |
|
//declare function zhuan():any |
|
@Component({ |
|
selector: 'app-luck-draw', |
|
templateUrl: './luck-draw.component.html', |
|
styleUrls: ['./luck-draw.component.scss'] |
|
}) |
|
export class LuckDrawComponent implements OnInit { |
|
|
|
constructor() { } |
|
|
|
ngOnInit(){ |
|
window.setTimeout(()=>{ |
|
//window.location.reload() |
|
},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:旋转 |
|
}; |
|
|
|
//跳转第三个页面 |
|
nextStep(){ |
|
window.location.href="/fourStep"; |
|
} |
|
|
|
|
|
|
|
}
|
|
|