+
+
+
+
+
+ 序号
+ {{item.idnum}}
+
+
请选择支队
diff --git a/src/app/ui/luck-draw/luck-draw.component.scss b/src/app/ui/luck-draw/luck-draw.component.scss
index 59fab2c..7ba9695 100644
--- a/src/app/ui/luck-draw/luck-draw.component.scss
+++ b/src/app/ui/luck-draw/luck-draw.component.scss
@@ -1,7 +1,9 @@
html, body {
+ width: 100%;
height: 100%;
background-image: url("../../../assets/images/backgroud.png");
+ background-size: 100%;
//background-size: 99% 99%;
}
.head{
@@ -13,6 +15,13 @@
width: 100%;
height: 100%;
}
+ .ziti{
+ position: relative;
+ bottom: 70%;
+ left: 40%;
+ width: 20%;
+ height: 53%;
+ }
span{
position: relative;
bottom: 70%;
@@ -36,7 +45,7 @@
}
.centerLeft{
- background-color: aliceblue;
+ background-color: #FFF;
float: left;
height: 100%;
width: 100%;
@@ -56,10 +65,47 @@ flex-direction: column;
user-select: none;
background-size:100% 100%;
span{
+ white-space: nowrap;
+ font-family: Arial;
color: #000;
z-index:99;
width: 300px;
- height: 50px;
+ height: 40px;
+ cursor:pointer;
+ border-bottom:1px solid #ECEDEE;
+ padding:8px 24px ;
+ text-align: center;
+ font-size: 24px;
+}
+}
+}
+.centerLefta{
+ background-color: #FFF;
+ float: left;
+ height: 100%;
+ width: 100%;
+ position: relative;
+ flex-direction: column;
+ flex: 2%;
+ display: flex;
+ align-items:center;
+ box-sizing: border-box;
+ margin: 0 0;
+.tanCenterbtna{
+ width: 100px;
+ height: 100%;
+border: 1px solid #ECEDEE;
+display: flex;
+flex-direction: column;
+user-select: none;
+background-size:100% 100%;
+span{
+ white-space: nowrap;
+ font-family: Arial;
+ color: #000;
+ z-index:99;
+ width: 50px;
+ height: 40px;
cursor:pointer;
border-bottom:1px solid #ECEDEE;
padding:8px 24px ;
@@ -69,7 +115,7 @@ span{
}
}
.colum{
- height: 85%;
+ height: 90%;
width: 350px;
margin-top: 72px;
display:table-cell;
@@ -95,7 +141,7 @@ span{
background-color:transparent;
border-radius: 4px;
border: 1px solid #ECEDEE;
- color: white;
+ color: #FFF;
padding: 12px 32px;
text-align: center;
text-decoration: none;
@@ -134,6 +180,6 @@ span{
}
.banner .turnplate{display:block;width:100%;position:relative;}
.banner .turnplate canvas.item{width:100%;height: 100%;}
- .banner .turnplate img.pointer{position:absolute;width:31.5%;height:42.5%;left:34.6%;top:25%;}
+ .banner .turnplate img.pointer{position:absolute;width:30.5%;height:36.5%;left:34.6%;top:28.5%;}
\ No newline at end of file
diff --git a/src/app/ui/luck-draw/luck-draw.component.ts b/src/app/ui/luck-draw/luck-draw.component.ts
index 26ac676..a2b6d94 100644
--- a/src/app/ui/luck-draw/luck-draw.component.ts
+++ b/src/app/ui/luck-draw/luck-draw.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-09-25 08:48:50
* @LastEditors: sueRimn
- * @LastEditTime: 2020-09-27 14:58:42
+ * @LastEditTime: 2020-10-13 15:49:22
*/
import { Component, OnInit } from '@angular/core';
//import * from '../../../assets/js/awardRotate'
@@ -27,20 +27,20 @@ export class LuckDrawComponent implements OnInit {
}
//支队数据和是否抽奖
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}
+ {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
diff --git a/src/app/ui/reset/reset.component.html b/src/app/ui/reset/reset.component.html
index cda68d5..91c484b 100644
--- a/src/app/ui/reset/reset.component.html
+++ b/src/app/ui/reset/reset.component.html
@@ -4,17 +4,25 @@
* @Author: sueRimn
* @Date: 2020-09-25 08:48:50
* @LastEditors: sueRimn
- * @LastEditTime: 2020-10-10 17:07:16
+ * @LastEditTime: 2020-10-14 09:10:58
-->
- 指挥员能力考评抽签
+
-
+
+
+
+
+
+ 序号
+ {{item.idnum}}
+
+
请选择支队
diff --git a/src/app/ui/reset/reset.component.scss b/src/app/ui/reset/reset.component.scss
index 51a03f5..2798bca 100644
--- a/src/app/ui/reset/reset.component.scss
+++ b/src/app/ui/reset/reset.component.scss
@@ -7,6 +7,13 @@
.head{
width: 100%;
height: 50px;
+ .ziti{
+ position: relative;
+ bottom: 70%;
+ left: 40%;
+ width: 20%;
+ height: 53%;
+ }
/* background-image: url("../../../assets/images/head.png");
width: 50%; */
img{
@@ -36,7 +43,7 @@
}
.centerLeft{
- background-color: aliceblue;
+ background-color: #FFF;
float: left;
height: 100%;
width: 100%;
@@ -56,6 +63,8 @@ flex-direction: column;
user-select: none;
background-size:100% 100%;
span{
+ white-space: nowrap;
+ font-family: Arial;
color: #000;
z-index:99;
width: 300px;
@@ -68,8 +77,43 @@ span{
}
}
}
+.centerLefta{
+ background-color: #FFF;
+ float: left;
+ height: 100%;
+ width: 100%;
+ position: relative;
+ flex-direction: column;
+ flex: 2%;
+ display: flex;
+ align-items:center;
+ box-sizing: border-box;
+ margin: 0 0;
+.tanCenterbtna{
+ width: 100px;
+ height: 100%;
+border: 1px solid #ECEDEE;
+display: flex;
+flex-direction: column;
+user-select: none;
+background-size:100% 100%;
+span{
+ white-space: nowrap;
+ font-family: Arial;
+ color: #000;
+ z-index:99;
+ width: 50px;
+ height: 40px;
+ cursor:pointer;
+ border-bottom:1px solid #ECEDEE;
+ padding:8px 24px ;
+ text-align: center;
+ font-size: 24px;
+}
+}
+}
.colum{
- height: 85%;
+ height: 90%;
width: 350px;
margin-top: 72px;
display:table-cell;
@@ -95,7 +139,7 @@ span{
background-color:transparent;
border-radius: 4px;
border: 1px solid #ECEDEE;
- color: white;
+ color: #FFF;
padding: 12px 32px;
text-align: center;
text-decoration: none;
@@ -134,6 +178,6 @@ span{
}
.banner .turnplate{display:block;width:100%;position:relative;}
.banner .turnplate canvas.item{width:100%;height: 100%;}
- .banner .turnplate img.pointer{position:absolute;width:31.5%;height:42.5%;left:34.6%;top:25%;}
+ .banner .turnplate img.pointer{position:absolute;width:30.5%;height:36.5%;left:34.6%;top:28.5%;}
\ No newline at end of file
diff --git a/src/app/ui/reset/reset.component.ts b/src/app/ui/reset/reset.component.ts
index b6013fb..2f29ed2 100644
--- a/src/app/ui/reset/reset.component.ts
+++ b/src/app/ui/reset/reset.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-10-07 15:38:37
* @LastEditors: sueRimn
- * @LastEditTime: 2020-10-07 15:39:34
+ * @LastEditTime: 2020-10-14 09:17:22
*/
import { Component, OnInit } from '@angular/core';
@@ -22,20 +22,20 @@ export class ResetComponent implements OnInit {
//支队数据和是否抽奖
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}
+ {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
diff --git a/src/assets/images/tophead.png b/src/assets/images/tophead.png
new file mode 100644
index 0000000..0da9b05
Binary files /dev/null and b/src/assets/images/tophead.png differ
diff --git a/src/assets/js/zhuanpan.js b/src/assets/js/zhuanpan.js
index b2c344e..09e717f 100644
--- a/src/assets/js/zhuanpan.js
+++ b/src/assets/js/zhuanpan.js
@@ -3,8 +3,8 @@
var turnplate={
restaraunts:[], //大转盘奖品名称
colors:[], //大转盘奖品区块对应背景颜色
- outsideRadius:178, //大转盘外圆的半径outsideRadius:192,
- textRadius:135, //大转盘奖品位置距离圆心的距离155
+ outsideRadius:176, //大转盘外圆的半径outsideRadius:192,
+ textRadius:125, //大转盘奖品位置距离圆心的距离155
insideRadius:52, //大转盘内圆的半径insideRadius:68,
startAngle:0, //开始角度
bRotate:false //false:停止;ture:旋转
@@ -18,23 +18,15 @@ function chongzhi(){
$(document).ready(function(){
$("#Reset").on("click",function(){
+ drawRouletteWheel()
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- for(var i=14;i<29;i++){
+ for(var i=0;i<29;i++){
localStorage.removeItem(i);
- $("#endjieguo span").eq(i-13).html("")
- $("#chooseZhi img").eq(i-14).hide()
+ $("#endjieguo span").eq(i+1).html("")
+ $("#chooseZhi img").eq(i).hide()
}
$('.pointer').removeClass("stop")
})
- if(url=="Reset"){
- for(var i=14;i<29;i++){
- if(window.localStorage[i]!=undefined){
- $("#endjieguo span").eq(i-13).html(window.localStorage[i])
- $("#chooseZhi img").eq(i-14).show()
- console.log(url)
- }
- }
- }else{
for(var i=0;i<14;i++){
if(window.localStorage[i]!=undefined){
$("#endjieguo span").eq(i+1).html(window.localStorage[i])
@@ -42,21 +34,21 @@ $(document).ready(function(){
//$(".check-style-unequal-width").show()
}
}
- }
+
$("span[name='aaa']").on("click",function(){
//console.log($(this).html().substring(0,3))
$(".turnplate").css("background-image","url(../../../assets/images/ceshi.png)");
- if(url=="Reset")
- {
+
if($(this).html().substring(0,4)=="钦州支队"){
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)","广西东油沥青有限公司", "钦州吾悦广场"];
+ //console.log(item)
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "钦州吾悦广场","广西东油沥青有限公司"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=14
- if(window.localStorage["14"]==undefined)
+ num=6
+ if(window.localStorage["6"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==1){
+ if(i==7){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -66,11 +58,11 @@ $(document).ready(function(){
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
turnplate.startAngle=0
- //$("#endjieguo span").eq(15).html("")
+ $("#endjieguo span").eq(7).html("")
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==1){
+ if(i==7){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -79,12 +71,12 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["14"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["14"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["14"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["14"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- //$("#endjieguo span").eq(15).html(window.localStorage["14"])
+ $("#endjieguo span").eq(7).html(window.localStorage["6"])
//$("#endjieguo").append(""+"您的抽签结果为:"+window.localStorage["0"]+"")
}
drawRouletteWheel()
@@ -92,11 +84,11 @@ $(document).ready(function(){
{
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=15
- if(window.localStorage["15"]==undefined)
+ num=0
+ if(window.localStorage["0"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==2){
+ if(i==1){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -106,11 +98,11 @@ $(document).ready(function(){
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
turnplate.startAngle=0
- $("#endjieguo span").eq(16).html("")
+ $("#endjieguo span").eq(1).html("")
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==2){
+ if(i==1){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -119,23 +111,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["15"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["15"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["15"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["15"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["0"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["0"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["0"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["0"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(16).html(window.localStorage["15"])
+ $("#endjieguo span").eq(1).html(window.localStorage["0"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="柳州支队")
{
- turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=16
- if(window.localStorage["16"]==undefined)
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=1
+ if(window.localStorage["1"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==3){
+ if(i==2){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -144,12 +136,15 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- turnplate.startAngle=0
- $("#endjieguo span").eq(17).html("")
+ if(window.localStorage["1"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["1"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["1"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["1"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(2).html("")
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==3){
+ if(i==2){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -158,23 +153,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["16"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["16"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["16"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["16"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["1"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["1"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["1"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["1"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(17).html(window.localStorage["16"])
+ $("#endjieguo span").eq(2).html(window.localStorage["1"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="河池支队")
{
turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=17
- if(window.localStorage["17"]==undefined)
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=11
+ if(window.localStorage["11"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==4){
+ if(i==12){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -183,11 +178,15 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(18).html("")
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(12).html("")
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==4){
+ if(i==12){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -196,23 +195,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["17"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["17"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["17"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["17"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(18).html(window.localStorage["17"])
+ $("#endjieguo span").eq(12).html(window.localStorage["11"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="来宾支队")
{
- turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=18
- if(window.localStorage["18"]==undefined)
+ turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场","宝晨化工"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=12
+ if(window.localStorage["12"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==5){
+ if(i==13){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -221,12 +220,15 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(19).html("")
- turnplate.startAngle=0
+ $("#endjieguo span").eq(13).html("")
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==5){
+ if(i==13){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -235,23 +237,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["18"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["18"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["18"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["18"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(19).html(window.localStorage["18"])
+ $("#endjieguo span").eq(13).html(window.localStorage["12"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="贺州支队")
{
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=19
- if(window.localStorage["19"]==undefined)
+ num=10
+ if(window.localStorage["10"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==6){
+ if(i==11){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -260,12 +262,12 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(20).html("")
+ $("#endjieguo span").eq(11).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==6){
+ if(i==11){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -276,19 +278,19 @@ $(document).ready(function(){
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
turnplate.startAngle=5.48
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(20).html(window.localStorage["19"])
+ $("#endjieguo span").eq(11).html(window.localStorage["10"])
}
drawRouletteWheel()
}
else if($(this).html().substring(0,5)=="防城港支队")
{
turnplate.restaraunts = ["港宸国际大酒店", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "广西中油能源有限公司 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=20
- if(window.localStorage["20"]==undefined)
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=5
+ if(window.localStorage["5"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==7){
+ if(i==6){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -297,12 +299,12 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(21).html("")
+ $("#endjieguo span").eq(6).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==7){
+ if(i==6){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -311,23 +313,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["20"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["20"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["20"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["5"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["5"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["5"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["5"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(21).html(window.localStorage["20"])
+ $("#endjieguo span").eq(6).html(window.localStorage["5"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="崇左支队")
{
turnplate.restaraunts = ["钦州吾悦广场(模板)","龙城地下商业街(模板)","帝王财富中心(模板)","崇左油库"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=21
- if(window.localStorage["21"]==undefined)
+ num=13
+ if(window.localStorage["13"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==8){
+ if(i==14){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -338,10 +340,10 @@ $(document).ready(function(){
turnplate.startAngle=0
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(22).html(window.localStorage["21"])
+ $("#endjieguo span").eq(14).html("")
}else{
for(var i=1;i<15;i++){
- if(i==8){
+ if(i==14){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -350,24 +352,24 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["21"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["21"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["21"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["21"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(22).html(window.localStorage["21"])
+ $("#endjieguo span").eq(14).html(window.localStorage["13"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="贵港支队")
{
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"];
+ turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=22
- if(window.localStorage["22"]==undefined)
+ num=7
+ if(window.localStorage["7"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==9){
+ if(i==8){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -376,12 +378,12 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(23).html("")
+ $("#endjieguo span").eq(8).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
}else{
for(var i=1;i<15;i++){
- if(i==9){
+ if(i==8){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -390,23 +392,23 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $("#endjieguo span").eq(23).html(window.localStorage["22"])
- if(window.localStorage["22"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["22"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["22"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["22"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(8).html(window.localStorage["7"])
+ if(window.localStorage["7"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["7"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["7"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["7"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="梧州支队")
{
turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "梧州市中石化火山油库" ];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=23
- if(window.localStorage["23"]==undefined)
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=3
+ if(window.localStorage["3"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==10){
+ if(i==4){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -417,10 +419,10 @@ $(document).ready(function(){
turnplate.startAngle=0
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(24).html("")
+ $("#endjieguo span").eq(10).html("")
}else{
for(var i=1;i<15;i++){
- if(i==10){
+ if(i==4){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -430,22 +432,22 @@ $(document).ready(function(){
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
$('.pointer').addClass("stop")
- if(window.localStorage["23"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["23"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["23"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["23"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(24).html(window.localStorage["23"])
+ if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(4).html(window.localStorage["3"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="百色支队")
{
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=24
- if(window.localStorage["24"]==undefined)
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=9
+ if(window.localStorage["9"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==11){
+ if(i==10){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -456,10 +458,10 @@ $(document).ready(function(){
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(25).html()
+ $("#endjieguo span").eq(10).html("")
}else{
for(var i=1;i<15;i++){
- if(i==11){
+ if(i==10){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -470,18 +472,18 @@ $(document).ready(function(){
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
$('.pointer').addClass("stop")
turnplate.startAngle=5.48
- $("#endjieguo span").eq(25).html(window.localStorage["24"])
+ $("#endjieguo span").eq(10).html(window.localStorage["9"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="玉林支队")
{
turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=25
- if(window.localStorage["25"]==undefined)
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=8
+ if(window.localStorage["8"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==12){
+ if(i==9){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -492,10 +494,10 @@ $(document).ready(function(){
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(26).html("")
+ $("#endjieguo span").eq(9).html("")
}else{
for(var i=1;i<15;i++){
- if(i==12){
+ if(i==9){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -504,25 +506,24 @@ $(document).ready(function(){
}
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- /* if(window.localStorage["25"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["25"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["25"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8} */
- turnplate.startAngle=5.48
+ if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(26).html(window.localStorage["25"])
+ $("#endjieguo span").eq(9).html(window.localStorage["8"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="北海支队")
{
console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "广西东油沥青有限公司(模板)","和安宁春城"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=26
- if(window.localStorage["26"]==undefined)
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "和安宁春城","广西东油沥青有限公司(模板)"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=4
+ if(window.localStorage["4"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==13){
+ if(i==5){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -533,10 +534,10 @@ $(document).ready(function(){
turnplate.startAngle=0
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(27).html("")
+ $("#endjieguo span").eq(5).html("")
}else{
for(var i=1;i<15;i++){
- if(i==13){
+ if(i==5){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -546,22 +547,22 @@ $(document).ready(function(){
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
$('.pointer').addClass("stop")
- if(window.localStorage["26"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["26"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["26"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["26"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(27).html(window.localStorage["26"])
+ if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(5).html(window.localStorage["4"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="桂林支队")
{
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)","兴安油库","宏谋酒店"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=27
- if(window.localStorage["27"]==undefined)
+ num=2
+ if(window.localStorage["2"]==undefined)
{
for(var i=1;i<15;i++){
- if(i==14){
+ if(i==3){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -572,10 +573,10 @@ $(document).ready(function(){
turnplate.startAngle=0
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(28).html("")
+ $("#endjieguo span").eq(3).html("")
}else{
for(var i=1;i<15;i++){
- if(i==14){
+ if(i==3){
$("#endjieguo span").eq(i).css("color","#ff4d29")
$("#chooseZhi span").eq(i).css("color","#FFF")
}else{
@@ -585,1130 +586,100 @@ $(document).ready(function(){
}
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
$('.pointer').addClass("stop")
- if(window.localStorage["27"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["27"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["27"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["27"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(28).html(window.localStorage["27"])
+ if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
+ if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
+ if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
+ if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
+ $("#endjieguo span").eq(3).html(window.localStorage["2"])
}
drawRouletteWheel()
}
+
+
+ });
+ //console.log(turnplate.restaraunts)
+//动态添加大转盘的奖品与奖品区域背景颜色
+/* turnplate.restaraunts = ["广西东油沥青有限公司", "钦州天亿石化有限公司", "九洲国际(超高层)", "南宁国际会展中心 ", "维景国际酒店", "荔园山庄"];
+turnplate.colors = ["#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF"]; */
+/* turnplate.restaraunts = ["白云边", "关公坊", "黄鹤楼", "国宝 ", "陈克明", "金沙河", "雪花", "康师傅", "脉动","奥星","金龙鱼","中昌"];
+turnplate.colors = ["#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF"]; */
+
+
+var rotateTimeOut = function (){
+ $('#wheelcanvas').rotate({
+ angle:0,
+ animateTo:2160,
+ duration:8000,
+ callback:function (){
+ alert('网络超时,请检查您的网络设置!');
}
- else{
- if($(this).html().substring(0,4)=="钦州支队"){
- //console.log(item)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)","广西东油沥青有限公司", "钦州吾悦广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=0
- if(window.localStorage["0"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==1){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- turnplate.startAngle=0
- $("#endjieguo span").eq(1).html("")
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==1){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["0"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["0"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["0"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["0"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(1).html(window.localStorage["0"])
- //$("#endjieguo").append(""+"您的抽签结果为:"+window.localStorage["0"]+"")
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="南宁支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=1
- if(window.localStorage["1"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==2){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- turnplate.startAngle=0
- $("#endjieguo span").eq(2).html("")
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==2){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["1"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["1"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["1"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["1"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(2).html(window.localStorage["1"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="柳州支队")
- {
- turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=2
- if(window.localStorage["2"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==3){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(3).html("")
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==3){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(3).html(window.localStorage["2"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="河池支队")
- {
- turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=3
- if(window.localStorage["3"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==4){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(4).html("")
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==4){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(4).html(window.localStorage["3"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="来宾支队")
- {
- turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场","宝晨化工"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=4
- if(window.localStorage["4"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==5){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(5).html("")
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==5){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(5).html(window.localStorage["4"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贺州支队")
- {
- turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=5
- if(window.localStorage["5"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==6){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(6).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==6){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- turnplate.startAngle=5.48
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(6).html(window.localStorage["5"])
- }
- drawRouletteWheel()
- }
- else if($(this).html().substring(0,5)=="防城港支队")
- {
- turnplate.restaraunts = ["港宸国际大酒店", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "广西中油能源有限公司 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=6
- if(window.localStorage["6"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==7){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(7).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==7){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(7).html(window.localStorage["6"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="崇左支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)","龙城地下商业街(模板)","帝王财富中心(模板)","崇左油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=7
- if(window.localStorage["7"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==8){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- turnplate.startAngle=0
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(8).html(window.localStorage["7"])
- }else{
- for(var i=1;i<15;i++){
- if(i==8){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["7"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["7"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["7"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["7"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(8).html(window.localStorage["7"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贵港支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
-
- num=8
- if(window.localStorage["8"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==9){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $("#endjieguo span").eq(9).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- for(var i=1;i<15;i++){
- if(i==9){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $("#endjieguo span").eq(9).html(window.localStorage["8"])
- if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="梧州支队")
- {
- turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "梧州市中石化火山油库" ];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=9
- if(window.localStorage["9"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==10){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- turnplate.startAngle=0
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(10).html("")
- }else{
- for(var i=1;i<15;i++){
- if(i==10){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $('.pointer').addClass("stop")
- if(window.localStorage["9"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["9"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["9"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["9"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(10).html(window.localStorage["9"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="百色支队")
- {
- turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=10
- if(window.localStorage["10"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==11){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(11).html()
- }else{
- for(var i=1;i<15;i++){
- if(i==11){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $('.pointer').addClass("stop")
- turnplate.startAngle=5.48
- $("#endjieguo span").eq(11).html(window.localStorage["10"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="玉林支队")
- {
- turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=11
- if(window.localStorage["11"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==12){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(12).html("")
- }else{
- for(var i=1;i<15;i++){
- if(i==12){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(12).html(window.localStorage["11"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="北海支队")
- {
- console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "广西东油沥青有限公司(模板)","和安宁春城"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=12
- if(window.localStorage["12"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==13){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- turnplate.startAngle=0
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(13).html("")
- }else{
- for(var i=1;i<15;i++){
- if(i==13){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $('.pointer').addClass("stop")
- if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(13).html(window.localStorage["12"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="桂林支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)","兴安油库","宏谋酒店"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=13
- if(window.localStorage["13"]==undefined)
- {
- for(var i=1;i<15;i++){
- if(i==14){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- turnplate.startAngle=0
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png")
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(14).html("")
- }else{
- for(var i=1;i<15;i++){
- if(i==14){
- $("#endjieguo span").eq(i).css("color","#ff4d29")
- $("#chooseZhi span").eq(i).css("color","#FFF")
- }else{
- $("#endjieguo span").eq(i).css("color","#000")
- $("#chooseZhi span").eq(i).css("color","#000")
- }
- }
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $('.pointer').addClass("stop")
- if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=5.48}
- if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=3.9}
- if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=2.4}
- if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8}
- $("#endjieguo span").eq(14).html(window.localStorage["13"])
- }
- drawRouletteWheel()
- }
- }
-
- });
- //console.log(turnplate.restaraunts)
-//动态添加大转盘的奖品与奖品区域背景颜色
-/* turnplate.restaraunts = ["广西东油沥青有限公司", "钦州天亿石化有限公司", "九洲国际(超高层)", "南宁国际会展中心 ", "维景国际酒店", "荔园山庄"];
-turnplate.colors = ["#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF"]; */
-/* turnplate.restaraunts = ["白云边", "关公坊", "黄鹤楼", "国宝 ", "陈克明", "金沙河", "雪花", "康师傅", "脉动","奥星","金龙鱼","中昌"];
-turnplate.colors = ["#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF","#FFF4D6", "#FFFFFF", "#FFF4D6", "#FFFFFF"]; */
-
-
-var rotateTimeOut = function (){
- $('#wheelcanvas').rotate({
- angle:0,
- animateTo:2160,
- duration:8000,
- callback:function (){
- alert('网络超时,请检查您的网络设置!');
- }
- });
-};
-
-//旋转转盘 item:奖品位置; txt:提示语;
-var rotateFn = function (item, txt){
- var angles = item * (360 / turnplate.restaraunts.length) - (360 / (turnplate.restaraunts.length*2));
- if(angles<270){
- angles = 270 - angles;
- }else{
- angles = 360 - angles + 270;
- }
- $('#wheelcanvas').stopRotate();
- $('#wheelcanvas').rotate({
- angle:0,
- animateTo:angles+1800,
- duration:8000,
- callback:function (){
- //console.log(item)
- $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
- $("span[name='aaa']").on("click",function(){
- if(url=="Reset"){
- if($(this).html().substring(0,4)=="钦州支队"){
- //console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)","广西东油沥青有限公司", "钦州吾悦广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=14
- turnplate.startAngle=3
- if(window.localStorage["14"]==undefined)
- {
- turnplate.startAngle=0
- $("#endjieguo span").eq(1).html("")
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["14"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["14"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["14"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["14"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["14"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["14"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["14"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["14"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["14"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["14"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["14"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["14"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["14"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["14"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["14"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["14"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
-
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(1).html(window.localStorage["14"])
- //$("#endjieguo").append(""+"您的抽签结果为:"+window.localStorage["0"]+"")
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="南宁支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=15
- if(window.localStorage["15"]==undefined)
- {
- turnplate.startAngle=0
- $("#endjieguo span").eq(2).html("")
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["15"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["15"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["15"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["15"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["15"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["15"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["15"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["15"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["15"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["15"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["15"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["15"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["15"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["15"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["15"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["15"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(2).html(window.localStorage["15"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="柳州支队")
- {
- turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=16
- if(window.localStorage["16"]==undefined)
- {
- turnplate.startAngle=0
- $("#endjieguo span").eq(3).html("")
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["16"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["16"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["16"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["16"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["16"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["16"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["16"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["16"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["16"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["16"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["16"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["16"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["16"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["16"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["16"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["16"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(3).html(window.localStorage["16"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="河池支队")
- {
- turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=17
- if(window.localStorage["17"]==undefined)
- {
- turnplate.startAngle=0
- $("#endjieguo span").eq(4).html("")
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["17"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["17"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["17"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["17"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["17"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["17"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["17"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["17"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["17"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["17"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["17"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["17"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["17"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["17"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["17"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["17"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(4).html(window.localStorage["17"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="来宾支队")
- {
- turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=18
- if(window.localStorage["18"]==undefined)
- {
- $("#endjieguo span").eq(5).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["18"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["18"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["18"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["18"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["18"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["18"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["18"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["18"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["18"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["18"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["18"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["18"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["18"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["18"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["18"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["18"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(5).html(window.localStorage["18"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贺州支队")
- {
- turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=19
- if(window.localStorage["19"]==undefined)
- {
- $("#endjieguo span").eq(6).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["19"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["19"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["19"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["19"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["19"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["19"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["19"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["19"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["19"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["19"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["19"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["19"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["19"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["19"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["19"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(6).html(window.localStorage["19"])
- }
- drawRouletteWheel()
- }
- else if($(this).html().substring(0,5)=="防城港支队")
- {
- turnplate.restaraunts = ["港宸国际大酒店", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "广西中油能源有限公司 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=20
- if(window.localStorage["20"]==undefined)
- {
- $("#endjieguo span").eq(7).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["20"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["20"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["20"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["20"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["20"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["20"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["20"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["20"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["20"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["20"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["20"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["20"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(7).html(window.localStorage["20"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="崇左支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)","龙城地下商业街(模板)","帝王财富中心(模板)","崇左油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=21
- if(window.localStorage["21"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(8).html(window.localStorage["21"])
- }else{
- if(item==2){
- if(window.localStorage["21"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["21"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["21"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["21"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["21"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["21"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["21"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["21"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["21"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["21"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["21"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["21"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["21"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["21"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["21"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["21"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(8).html(window.localStorage["21"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贵港支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
-
- num=22
- if(window.localStorage["22"]==undefined)
- {
- $("#endjieguo span").eq(9).html("")
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- }else{
- if(item==2){
- if(window.localStorage["22"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["22"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["22"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["22"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["22"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["22"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["22"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["22"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["22"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["22"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["22"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["22"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["22"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["22"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["22"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["22"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $("#endjieguo span").eq(9).html(window.localStorage["22"])
- $('.pointer').addClass("stop")
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="梧州支队")
- {
- turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "梧州市中石化火山油库" ];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=23
- if(window.localStorage["23"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(10).html("")
- }else{
- if(item==2){
- if(window.localStorage["23"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["23"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["23"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["23"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["23"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["23"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["23"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["23"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["23"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["23"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["23"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["23"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["23"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["23"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["23"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["23"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
-
- $("#endjieguo span").eq(10).html(window.localStorage["23"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="百色支队")
- {
- turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=24
- if(window.localStorage["24"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(11).html("")
+ });
+};
+
+//旋转转盘 item:奖品位置; txt:提示语;
+var rotateFn = function (item, txt){
+ //$("#chooseZhi").addClass("stop")
+ var angles = item * (360 / turnplate.restaraunts.length) - (360 / (turnplate.restaraunts.length*2));
+ if(angles<270){
+ angles = 270 - angles;
+ }else{
+ angles = 360 - angles + 270;
+ }
+ $('#wheelcanvas').stopRotate();
+ $('#wheelcanvas').rotate({
+ angle:0,
+ animateTo:angles+1800,
+ duration:8000,
+ callback:function (){
+ //console.log(item)
+ //$("#chooseZhi").removeClass("stop")
+ $("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png")
+ $("span[name='aaa']").on("click",function(){
+
+ if($(this).html().substring(0,4)=="钦州支队"){
+ console.log(turnplate.startAngle)
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "钦州吾悦广场","广西东油沥青有限公司"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=6
+ //turnplate.startAngle=3
+ if(window.localStorage["6"]==undefined)
+ {
+ turnplate.startAngle=0
+ $("#endjieguo span").eq(7).html("")
+ $('.pointer').removeClass("stop")
}else{
if(item==2){
- if(window.localStorage["24"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["24"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["24"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["24"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["24"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["24"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["24"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["24"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["24"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["24"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["24"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["24"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["24"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["24"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["24"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["24"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
+
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(11).html(window.localStorage["24"])
+ $("#endjieguo span").eq(7).html(window.localStorage["6"])
+ //$("#endjieguo").append(""+"您的抽签结果为:"+window.localStorage["0"]+"")
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="玉林支队")
+ }else if($(this).html().substring(0,4)=="南宁支队")
{
- turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) "];
+ turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=25
- if(window.localStorage["25"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(12).html("")
- }else{
- if(item==2){
- if(window.localStorage["25"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["25"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["25"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["25"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["25"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["25"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["25"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["25"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["25"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["25"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["25"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["25"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(12).html(window.localStorage["25"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="北海支队")
- {
- console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "广西东油沥青有限公司(模板)","和安宁春城"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=26
- if(window.localStorage["26"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(13).html("")
- }else{
- if(item==2){
- if(window.localStorage["26"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["26"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["26"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["26"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["26"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["26"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["26"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["26"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["26"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["26"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["26"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["26"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["26"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["26"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["26"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["26"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(13).html(window.localStorage["26"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="桂林支队")
- {
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)","兴安油库","宏谋酒店"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=27
- if(window.localStorage["27"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(14).html("")
- }else{
- if(item==2){
- if(window.localStorage["27"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["27"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["27"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["27"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["27"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["27"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["27"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["27"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["27"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["27"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["27"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["27"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["27"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["27"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["27"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["27"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(14).html(window.localStorage["27"])
- }
- drawRouletteWheel()
- }
- }
- else{
- if($(this).html().substring(0,4)=="钦州支队"){
- console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)","广西东油沥青有限公司", "钦州吾悦广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
num=0
- turnplate.startAngle=3
if(window.localStorage["0"]==undefined)
{
turnplate.startAngle=0
@@ -1736,15 +707,13 @@ var rotateFn = function (item, txt){
if(window.localStorage["0"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
if(window.localStorage["0"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
-
$('.pointer').addClass("stop")
$("#endjieguo span").eq(1).html(window.localStorage["0"])
- //$("#endjieguo").append(""+"您的抽签结果为:"+window.localStorage["0"]+"")
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="南宁支队")
+ }else if($(this).html().substring(0,4)=="柳州支队")
{
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"];
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
num=1
if(window.localStorage["1"]==undefined)
@@ -1778,117 +747,119 @@ var rotateFn = function (item, txt){
$("#endjieguo span").eq(2).html(window.localStorage["1"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="柳州支队")
+ }else if($(this).html().substring(0,4)=="河池支队")
{
- turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=2
- if(window.localStorage["2"]==undefined)
+ turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=11
+ if(window.localStorage["11"]==undefined)
{
turnplate.startAngle=0
- $("#endjieguo span").eq(3).html("")
+ $("#endjieguo span").eq(12).html("")
$('.pointer').removeClass("stop")
}else{
if(item==2){
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(3).html(window.localStorage["2"])
+ $("#endjieguo span").eq(12).html(window.localStorage["11"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="河池支队")
+ }else if($(this).html().substring(0,4)=="来宾支队")
{
- turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=3
- if(window.localStorage["3"]==undefined)
+ turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"];
+ turnplate.colors = ["#FFEBEA", "#FF7245","#FFEBEA", "#FF7245"];
+ num=12
+ if(window.localStorage["12"]==undefined)
{
+ $("#endjieguo span").eq(13).html("")
turnplate.startAngle=0
- $("#endjieguo span").eq(4).html("")
$('.pointer').removeClass("stop")
}else{
if(item==2){
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(4).html(window.localStorage["3"])
+ $("#endjieguo span").eq(13).html(window.localStorage["12"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="来宾支队")
+ }else if($(this).html().substring(0,4)=="贺州支队")
{
- turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"];
- turnplate.colors = ["#FFEBEA", "#FF7245","#FFEBEA", "#FF7245"];
- num=4
- if(window.localStorage["4"]==undefined)
+ turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=10
+ if(window.localStorage["10"]==undefined)
{
- $("#endjieguo span").eq(5).html("")
+ $("#endjieguo span").eq(11).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
}else{
+ //turnplate.startAngle=5.48
if(item==2){
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(5).html(window.localStorage["4"])
+ $("#endjieguo span").eq(11).html(window.localStorage["10"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贺州支队")
+ }
+ else if($(this).html().substring(0,5)=="防城港支队")
{
- turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"];
+ turnplate.restaraunts = ["港宸国际大酒店", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "广西中油能源有限公司 "];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
num=5
if(window.localStorage["5"]==undefined)
@@ -1897,7 +868,6 @@ var rotateFn = function (item, txt){
turnplate.startAngle=0
$('.pointer').removeClass("stop")
}else{
- //turnplate.startAngle=5.48
if(item==2){
if(window.localStorage["5"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
if(window.localStorage["5"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
@@ -1907,7 +877,7 @@ var rotateFn = function (item, txt){
if(window.localStorage["5"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
if(window.localStorage["5"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
if(window.localStorage["5"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["20"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["5"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
if(window.localStorage["5"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
if(window.localStorage["5"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
@@ -1923,53 +893,53 @@ var rotateFn = function (item, txt){
$("#endjieguo span").eq(6).html(window.localStorage["5"])
}
drawRouletteWheel()
- }
- else if($(this).html().substring(0,5)=="防城港支队")
+ }else if($(this).html().substring(0,4)=="崇左支队")
{
- turnplate.restaraunts = ["港宸国际大酒店", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "广西中油能源有限公司 "];
+ turnplate.restaraunts = ["钦州吾悦广场(模板)","龙城地下商业街(模板)","帝王财富中心(模板)","崇左油库"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=6
- if(window.localStorage["6"]==undefined)
+ num=13
+ if(window.localStorage["13"]==undefined)
{
- $("#endjieguo span").eq(7).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
+ $("#endjieguo span").eq(14).html("")
}else{
if(item==2){
- if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["6"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["6"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["6"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["6"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(7).html(window.localStorage["6"])
+ $("#endjieguo span").eq(14).html(window.localStorage["13"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="崇左支队")
+ }else if($(this).html().substring(0,4)=="贵港支队")
{
- turnplate.restaraunts = ["钦州吾悦广场(模板)","龙城地下商业街(模板)","帝王财富中心(模板)","崇左油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+
num=7
if(window.localStorage["7"]==undefined)
{
+ $("#endjieguo span").eq(8).html("")
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(8).html(window.localStorage["7"])
}else{
if(item==2){
if(window.localStorage["7"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
@@ -1992,56 +962,55 @@ var rotateFn = function (item, txt){
if(window.localStorage["7"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
if(window.localStorage["7"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
- $('.pointer').addClass("stop")
$("#endjieguo span").eq(8).html(window.localStorage["7"])
+ $('.pointer').addClass("stop")
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="贵港支队")
+ }else if($(this).html().substring(0,4)=="梧州支队")
{
- turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
-
- num=8
- if(window.localStorage["8"]==undefined)
+ turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "梧州市中石化火山油库" ];
+ turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
+ num=3
+ if(window.localStorage["3"]==undefined)
{
- $("#endjieguo span").eq(9).html("")
- turnplate.startAngle=0
$('.pointer').removeClass("stop")
+ $("#endjieguo span").eq(4).html("")
}else{
if(item==2){
- if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["3"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["3"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["3"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["3"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
- $("#endjieguo span").eq(9).html(window.localStorage["8"])
$('.pointer').addClass("stop")
+ $("#endjieguo span").eq(4).html(window.localStorage["3"])
}
drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="梧州支队")
+ }else if($(this).html().substring(0,4)=="百色支队")
{
- turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "梧州市中石化火山油库" ];
+ turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
num=9
if(window.localStorage["9"]==undefined)
{
+ turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(10).html("")
+ $("#endjieguo span").eq(10).html()
}else{
if(item==2){
if(window.localStorage["9"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
@@ -2063,160 +1032,124 @@ var rotateFn = function (item, txt){
if(window.localStorage["9"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
if(window.localStorage["9"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
if(window.localStorage["9"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
- }
- $('.pointer').addClass("stop")
- $("#endjieguo span").eq(10).html(window.localStorage["9"])
- }
- drawRouletteWheel()
- }else if($(this).html().substring(0,4)=="百色支队")
- {
- turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"];
- turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=10
- if(window.localStorage["10"]==undefined)
- {
- turnplate.startAngle=0
- $('.pointer').removeClass("stop")
- $("#endjieguo span").eq(11).html()
- }else{
- if(item==2){
- if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
- }else if(item==1){
- if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
- }else if(item==3){
- if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
- }else if(item==4){
- if(window.localStorage["10"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["10"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["10"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["10"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
//console.log(window.localStorage["10"]==turnplate.restaraunts[3])
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(11).html(window.localStorage["10"])
+ $("#endjieguo span").eq(10).html(window.localStorage["9"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="玉林支队")
{
turnplate.restaraunts = ["帝王财富中心(模板)", "钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) "];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=11
- if(window.localStorage["11"]==undefined)
+ num=8
+ if(window.localStorage["8"]==undefined)
{
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(12).html("")
+ $("#endjieguo span").eq(9).html("")
}else{
if(item==2){
- if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["11"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["11"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["11"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["11"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["8"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["8"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["8"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["8"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(12).html(window.localStorage["11"])
+ $("#endjieguo span").eq(9).html(window.localStorage["8"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="北海支队")
{
console.log(turnplate.startAngle)
- turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "广西东油沥青有限公司(模板)","和安宁春城"];
+ turnplate.restaraunts = ["帝王财富中心(模板)", "龙城地下商业街(模板)", "和安宁春城","广西东油沥青有限公司(模板)"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=12
- if(window.localStorage["12"]==undefined)
+ num=4
+ if(window.localStorage["4"]==undefined)
{
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(13).html("")
+ $("#endjieguo span").eq(5).html("")
}else{
$('.pointer').addClass("stop")
if(item==2){
- if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["12"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["12"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["4"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["4"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["4"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["4"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
- $("#endjieguo span").eq(13).html(window.localStorage["12"])
+ $("#endjieguo span").eq(5).html(window.localStorage["4"])
}
drawRouletteWheel()
}else if($(this).html().substring(0,4)=="桂林支队")
{
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)","兴安油库","宏谋酒店"];
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
- num=13
- if(window.localStorage["13"]==undefined)
+ num=2
+ if(window.localStorage["2"]==undefined)
{
turnplate.startAngle=0
$('.pointer').removeClass("stop")
- $("#endjieguo span").eq(14).html("")
+ $("#endjieguo span").eq(3).html("")
}else{
if(item==2){
- if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
- if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
- if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
- if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
+ if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=3.2}
+ if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=1.5}
+ if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=0}
+ if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=4.7}
}else if(item==1){
- if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
- if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
- if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
- if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
+ if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=1.5}
+ if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=0}
+ if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=4.7}
+ if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2}
}else if(item==3){
- if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
- if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
- if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
- if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
+ if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=4.7}
+ if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=3.2}
+ if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=1.5}
+ if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=0}
}else if(item==4){
- if(window.localStorage["13"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
- if(window.localStorage["13"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
- if(window.localStorage["13"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
- if(window.localStorage["13"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
+ if(window.localStorage["2"]==turnplate.restaraunts[3]){turnplate.startAngle=0}
+ if(window.localStorage["2"]==turnplate.restaraunts[0]){turnplate.startAngle=4.7}
+ if(window.localStorage["2"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2}
+ if(window.localStorage["2"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5}
}
$('.pointer').addClass("stop")
- $("#endjieguo span").eq(14).html(window.localStorage["13"])
+ $("#endjieguo span").eq(3).html(window.localStorage["2"])
}
drawRouletteWheel()
}
- }
+
});
console.log(turnplate.startAngle)
@@ -2257,7 +1190,7 @@ var rotateFn = function (item, txt){
$("#chooseZhi img").eq(4).show()
$('.pointer').addClass("stop")
}else if(num==5){
- window.localStorage.setItem( 5, "贺州市国际酒店");
+ window.localStorage.setItem( 5, "广西中油能源有限公司");
$("#endjieguo span").eq(6).html(window.localStorage["5"])
$("#chooseZhi img").eq(5).show()
$('.pointer').addClass("stop")
@@ -2282,7 +1215,7 @@ var rotateFn = function (item, txt){
$("#chooseZhi img").eq(9).show()
$('.pointer').addClass("stop")
}else if(num==10){
- window.localStorage.setItem( 10, "平果地下商业街");
+ window.localStorage.setItem( 10, "贺州市国际酒店");
$("#endjieguo span").eq(11).html(window.localStorage["10"])
$("#chooseZhi img").eq(10).show()
$('.pointer').addClass("stop")
@@ -2393,12 +1326,12 @@ $('.pointer').click(function (){
turnplate.bRotate = !turnplate.bRotate;
//获取随机数(奖品个数范围内)
var item
- if(num==0||num==1||num==6||num==7||num==9||num==11||num==12||num==13||num==14||num==15||num==20||num==21||num==23||num==25||num==26||num==27)
+ if(num==0||num==3||num==8||num==13||num==14||num==17||num==22||num==27)
{
item=Math.floor(Math.random()*(4+1-1)+1);
- }else if(num==2||num==3||num==8||num==16||num==17||num==22){
+ }else if(num==1||num==11||num==15||num==25){
item=Math.floor(Math.random()*(2+1-1)+1);
- }else if(num==4||num==18){
+ }else if(num==12){
item=Math.floor(Math.random()*(3+1-1)+1);
}
else{
@@ -2468,7 +1401,7 @@ if (canvas.getContext) {
//strokeStyle 属性设置或返回用于笔触的颜色、渐变或模式
ctx.strokeStyle = "#FFBE04";
//font 属性设置或返回画布上文本内容的当前字体属性
- ctx.font = '16px Microsoft YaHei';
+ ctx.font = '18px Microsoft YaHei';
for(var i = 0; i < turnplate.restaraunts.length; i++) {
var angle = turnplate.startAngle + i * arc;
ctx.fillStyle = turnplate.colors[i];
@@ -2483,7 +1416,7 @@ if (canvas.getContext) {
//----绘制奖品开始----
//ctx.fillStyle = "#E5302F";
- if(turnplate.colors[i]=="#FFEBEA"){ctx.fillStyle = "#E5302F"}
+ if(turnplate.colors[i]=="#FFEBEA"){ctx.fillStyle = "#ff4d29"}
else{ctx.fillStyle = "#FFF"}
/* for(var i=0;i<4;i++){
console.log()