|
|
|
@ -18,6 +18,7 @@ function chongzhi(){
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){ |
|
|
|
|
$("#Reset").on("click",function(){ |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png") |
|
|
|
|
for(var i=14;i<29;i++){ |
|
|
|
|
localStorage.removeItem(i); |
|
|
|
|
$("#endjieguo span").eq(i-13).html("") |
|
|
|
@ -89,7 +90,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="南宁支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "崇左油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=15 |
|
|
|
|
if(window.localStorage["15"]==undefined) |
|
|
|
@ -128,7 +129,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="柳州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["柳州万达广场", "龙城地下商业街(模板)", "板栗园加气站 ","地王财富中心(模板)"]; |
|
|
|
|
turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=16 |
|
|
|
|
if(window.localStorage["16"]==undefined) |
|
|
|
@ -157,14 +158,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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} |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
$("#endjieguo span").eq(17).html(window.localStorage["16"]) |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="河池支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)", "河池市宜州区地下商业街", "河池市中石化金城江油库 ","广西河池市大洋购物中心"]; |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=17 |
|
|
|
|
if(window.localStorage["17"]==undefined) |
|
|
|
@ -192,14 +196,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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} |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
$("#endjieguo span").eq(18).html(window.localStorage["17"]) |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="来宾支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "宝晨化工", "天成百货","来宾市方盛广场"]; |
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=18 |
|
|
|
|
if(window.localStorage["18"]==undefined) |
|
|
|
@ -228,14 +235,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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} |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
$("#endjieguo span").eq(19).html(window.localStorage["18"]) |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贺州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店 "]; |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=19 |
|
|
|
|
if(window.localStorage["19"]==undefined) |
|
|
|
@ -350,7 +360,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贵港支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
|
|
|
|
|
num=22 |
|
|
|
@ -381,7 +391,10 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
$("#endjieguo span").eq(23).html(window.localStorage["22"]) |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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} |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
@ -426,7 +439,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="百色支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街 "]; |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=24 |
|
|
|
|
if(window.localStorage["24"]==undefined) |
|
|
|
@ -491,10 +504,11 @@ $(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[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} |
|
|
|
|
if(window.localStorage["25"]==turnplate.restaraunts[2]){turnplate.startAngle=0.8} */ |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
$("#endjieguo span").eq(26).html(window.localStorage["25"]) |
|
|
|
|
} |
|
|
|
@ -623,7 +637,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="南宁支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "崇左油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=1 |
|
|
|
|
if(window.localStorage["1"]==undefined) |
|
|
|
@ -662,7 +676,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="柳州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["柳州万达广场", "龙城地下商业街(模板)", "板栗园加气站 ","地王财富中心(模板)"]; |
|
|
|
|
turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=2 |
|
|
|
|
if(window.localStorage["2"]==undefined) |
|
|
|
@ -677,7 +691,10 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png") |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
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{ |
|
|
|
@ -691,14 +708,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=3 |
|
|
|
|
if(window.localStorage["3"]==undefined) |
|
|
|
@ -713,7 +733,10 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png") |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
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{ |
|
|
|
@ -727,14 +750,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场","宝晨化工"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=4 |
|
|
|
|
if(window.localStorage["4"]==undefined) |
|
|
|
@ -750,7 +776,10 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer.png") |
|
|
|
|
$("#endjieguo span").eq(5).html("") |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
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++){ |
|
|
|
@ -763,14 +792,17 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
turnplate.startAngle=5.48 |
|
|
|
|
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.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=5 |
|
|
|
|
if(window.localStorage["5"]==undefined) |
|
|
|
@ -885,7 +917,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贵港支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
|
|
|
|
|
num=8 |
|
|
|
@ -916,7 +948,10 @@ $(document).ready(function(){
|
|
|
|
|
} |
|
|
|
|
$("#clickButton").attr("src", "../../../assets/images/turnplate-pointer-hui.png") |
|
|
|
|
$("#endjieguo span").eq(9).html(window.localStorage["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") |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
@ -961,7 +996,7 @@ $(document).ready(function(){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="百色支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街 "]; |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=10 |
|
|
|
|
if(window.localStorage["10"]==undefined) |
|
|
|
@ -1195,7 +1230,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="南宁支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "崇左油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=15 |
|
|
|
|
if(window.localStorage["15"]==undefined) |
|
|
|
@ -1231,7 +1266,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="柳州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["柳州万达广场", "龙城地下商业街(模板)", "板栗园加气站 ","地王财富中心(模板)"]; |
|
|
|
|
turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=16 |
|
|
|
|
if(window.localStorage["16"]==undefined) |
|
|
|
@ -1267,7 +1302,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="河池支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)", "河池市宜州区地下商业街", "河池市中石化金城江油库 ","广西河池市大洋购物中心"]; |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=17 |
|
|
|
|
if(window.localStorage["17"]==undefined) |
|
|
|
@ -1303,7 +1338,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="来宾支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "宝晨化工", "天成百货","来宾市方盛广场"]; |
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=18 |
|
|
|
|
if(window.localStorage["18"]==undefined) |
|
|
|
@ -1339,7 +1374,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贺州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店 "]; |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=19 |
|
|
|
|
if(window.localStorage["19"]==undefined) |
|
|
|
@ -1348,8 +1383,27 @@ var rotateFn = function (item, txt){
|
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
$('.pointer').removeClass("stop") |
|
|
|
|
}else{ |
|
|
|
|
console.log(0) |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
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"]) |
|
|
|
|
} |
|
|
|
@ -1429,7 +1483,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贵港支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
|
|
|
|
|
num=22 |
|
|
|
@ -1503,7 +1557,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="百色支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街 "]; |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=24 |
|
|
|
|
if(window.localStorage["24"]==undefined) |
|
|
|
@ -1690,7 +1744,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="南宁支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "崇左油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "龙城地下商业街(模板)", "兴安油库(模板) ","九洲国际"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=1 |
|
|
|
|
if(window.localStorage["1"]==undefined) |
|
|
|
@ -1726,7 +1780,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="柳州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["柳州万达广场", "龙城地下商业街(模板)", "板栗园加气站 ","地王财富中心(模板)"]; |
|
|
|
|
turnplate.restaraunts = ["地王财富中心(模板)", "龙城地下商业街(模板)", "板栗园加气站 ","柳州万达广场"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=2 |
|
|
|
|
if(window.localStorage["2"]==undefined) |
|
|
|
@ -1762,7 +1816,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="河池支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)", "河池市宜州区地下商业街", "河池市中石化金城江油库 ","广西河池市大洋购物中心"]; |
|
|
|
|
turnplate.restaraunts = ["帝王财富中心(模板)","广西河池市大洋购物中心", "河池市宜州区地下商业街", "河池市中石化金城江油库 "]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
num=3 |
|
|
|
|
if(window.localStorage["3"]==undefined) |
|
|
|
@ -1798,8 +1852,8 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="来宾支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "宝晨化工", "天成百货","来宾市方盛广场"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
turnplate.restaraunts = ["来宾饭店", "天成百货","来宾市方盛广场", "宝晨化工"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245","#FFEBEA", "#FF7245"];
|
|
|
|
|
num=4 |
|
|
|
|
if(window.localStorage["4"]==undefined) |
|
|
|
|
{ |
|
|
|
@ -1834,7 +1888,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贺州支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店 "]; |
|
|
|
|
turnplate.restaraunts = ["远东国贸地下停车场", "宝晨化工有限公司", "贺州市南宁百货大楼", "贺州市国际酒店"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=5 |
|
|
|
|
if(window.localStorage["5"]==undefined) |
|
|
|
@ -1843,6 +1897,7 @@ 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} |
|
|
|
@ -1852,7 +1907,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["5"]==turnplate.restaraunts[2]){turnplate.startAngle=3.2} |
|
|
|
|
if(window.localStorage["20"]==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} |
|
|
|
@ -1943,7 +1998,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="贵港支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "平南中心购物广场", "贵港市中国石油分公司油库", "维多利亚酒店"]; |
|
|
|
|
turnplate.restaraunts = ["钦州吾悦广场(模板)", "维多利亚酒店", "平南中心购物广场", "贵港市中国石油分公司油库"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"]; |
|
|
|
|
|
|
|
|
|
num=8 |
|
|
|
@ -2015,7 +2070,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
drawRouletteWheel() |
|
|
|
|
}else if($(this).html().substring(0,4)=="百色支队") |
|
|
|
|
{ |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街 "]; |
|
|
|
|
turnplate.restaraunts = ["安达曼国际酒店", "恒宁城市广场", "三雷油库", "平果地下商业街"]; |
|
|
|
|
turnplate.colors = ["#FFEBEA", "#FF7245", "#FFEBEA", "#FF7245"];
|
|
|
|
|
num=10 |
|
|
|
|
if(window.localStorage["10"]==undefined) |
|
|
|
@ -2044,7 +2099,8 @@ var rotateFn = function (item, txt){
|
|
|
|
|
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"]) |
|
|
|
|
} |
|
|
|
@ -2093,6 +2149,11 @@ var rotateFn = function (item, txt){
|
|
|
|
|
num=12 |
|
|
|
|
if(window.localStorage["12"]==undefined) |
|
|
|
|
{ |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
$('.pointer').removeClass("stop") |
|
|
|
|
$("#endjieguo span").eq(13).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} |
|
|
|
@ -2114,11 +2175,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
if(window.localStorage["12"]==turnplate.restaraunts[1]){turnplate.startAngle=3.2} |
|
|
|
|
if(window.localStorage["12"]==turnplate.restaraunts[2]){turnplate.startAngle=1.5} |
|
|
|
|
} |
|
|
|
|
$('.pointer').removeClass("stop") |
|
|
|
|
$("#endjieguo span").eq(13).html("") |
|
|
|
|
}else{ |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
turnplate.startAngle=0 |
|
|
|
|
|
|
|
|
|
$("#endjieguo span").eq(13).html(window.localStorage["12"]) |
|
|
|
|
} |
|
|
|
|
drawRouletteWheel() |
|
|
|
@ -2184,18 +2241,18 @@ var rotateFn = function (item, txt){
|
|
|
|
|
$("#chooseZhi img").eq(1).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==2){ |
|
|
|
|
window.localStorage.setItem( 2, "地王财富中心(模板)"); |
|
|
|
|
window.localStorage.setItem( 2, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(3).html(window.localStorage["2"]) |
|
|
|
|
$("#chooseZhi img").eq(2).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==3){ |
|
|
|
|
window.localStorage.setItem( 3, "广西河池市大洋购物中心"); |
|
|
|
|
window.localStorage.setItem( 3, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(4).html(window.localStorage["3"]) |
|
|
|
|
$("#chooseZhi img").eq(3).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
} |
|
|
|
|
else if(num==4){ |
|
|
|
|
window.localStorage.setItem( 4, "来宾市方盛广场"); |
|
|
|
|
window.localStorage.setItem( 4, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(5).html(window.localStorage["4"]) |
|
|
|
|
$("#chooseZhi img").eq(4).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
@ -2215,7 +2272,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
$("#chooseZhi img").eq(7).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==8){ |
|
|
|
|
window.localStorage.setItem( 8, "维多利亚酒店"); |
|
|
|
|
window.localStorage.setItem( 8, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(9).html(window.localStorage["8"]) |
|
|
|
|
$("#chooseZhi img").eq(8).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
@ -2255,18 +2312,18 @@ var rotateFn = function (item, txt){
|
|
|
|
|
$("#chooseZhi img").eq(1).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==16){ |
|
|
|
|
window.localStorage.setItem( 16, "地王财富中心(模板)"); |
|
|
|
|
window.localStorage.setItem( 16, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(3).html(window.localStorage["16"]) |
|
|
|
|
$("#chooseZhi img").eq(2).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==17){ |
|
|
|
|
window.localStorage.setItem( 17, "广西河池市大洋购物中心"); |
|
|
|
|
window.localStorage.setItem( 17, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(4).html(window.localStorage["17"]) |
|
|
|
|
$("#chooseZhi img").eq(3).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
} |
|
|
|
|
else if(num==18){ |
|
|
|
|
window.localStorage.setItem( 18, "来宾市方盛广场"); |
|
|
|
|
window.localStorage.setItem( 18, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(5).html(window.localStorage["18"]) |
|
|
|
|
$("#chooseZhi img").eq(4).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
@ -2286,7 +2343,7 @@ var rotateFn = function (item, txt){
|
|
|
|
|
$("#chooseZhi img").eq(7).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
|
}else if(num==22){ |
|
|
|
|
window.localStorage.setItem( 22, "维多利亚酒店"); |
|
|
|
|
window.localStorage.setItem( 22, turnplate.restaraunts[item-1]); |
|
|
|
|
$("#endjieguo span").eq(9).html(window.localStorage["22"]) |
|
|
|
|
$("#chooseZhi img").eq(8).show() |
|
|
|
|
$('.pointer').addClass("stop") |
|
|
|
@ -2339,7 +2396,12 @@ $('.pointer').click(function (){
|
|
|
|
|
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) |
|
|
|
|
{ |
|
|
|
|
item=Math.floor(Math.random()*(4+1-1)+1); |
|
|
|
|
}else{ |
|
|
|
|
}else if(num==2||num==3||num==8||num==16||num==17||num==22){ |
|
|
|
|
item=Math.floor(Math.random()*(2+1-1)+1); |
|
|
|
|
}else if(num==4||num==18){ |
|
|
|
|
item=Math.floor(Math.random()*(3+1-1)+1); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
item=rnd(1,turnplate.restaraunts.length); |
|
|
|
|
} |
|
|
|
|
console.log(item) |
|
|
|
@ -2420,7 +2482,15 @@ if (canvas.getContext) {
|
|
|
|
|
ctx.save();
|
|
|
|
|
|
|
|
|
|
//----绘制奖品开始----
|
|
|
|
|
ctx.fillStyle = "#E5302F"; |
|
|
|
|
//ctx.fillStyle = "#E5302F";
|
|
|
|
|
if(turnplate.colors[i]=="#FFEBEA"){ctx.fillStyle = "#E5302F"} |
|
|
|
|
else{ctx.fillStyle = "#FFF"} |
|
|
|
|
/* for(var i=0;i<4;i++){ |
|
|
|
|
console.log() |
|
|
|
|
if(turnplate.colors[i]=="#FFEBEA"){ctx.fillStyle = "#FFF"} |
|
|
|
|
else{ctx.fillStyle = "#E5302F"} |
|
|
|
|
} */ |
|
|
|
|
//ctx.fillStyle = "#FFF";
|
|
|
|
|
var text = turnplate.restaraunts[i]; |
|
|
|
|
var line_height = 17; |
|
|
|
|
//translate方法重新映射画布上的 (0,0) 位置
|
|
|
|
|