|
@@ -8,7 +8,10 @@ var canvas = document.getElementById("canvas");
|
|
|
var stage = new createjs.Stage(canvas);
|
|
|
|
|
|
createjs.Sound.alternateExtensions = ["mp3"];
|
|
|
-createjs.Sound.registerSound("sound/six.mp3", "six");
|
|
|
+createjs.Sound.registerSound("sound/start/hsr.mp3", "hsr");
|
|
|
+createjs.Sound.registerSound("sound/start/ymc.mp3", "ymc");
|
|
|
+createjs.Sound.registerSound("sound/start/swy.mp3", "swy");
|
|
|
+createjs.Sound.registerSound("sound/start/qcdf.mp3", "qcdf");
|
|
|
|
|
|
window.user_info = {
|
|
|
uid: 0,
|
|
@@ -176,7 +179,16 @@ function handleComplete(evt, comp) {
|
|
|
}
|
|
|
function oilIconAnim() {
|
|
|
oilAnim();
|
|
|
- createjs.Sound.play("six");//播放
|
|
|
+
|
|
|
+ if(dishIndex == 0){
|
|
|
+ createjs.Sound.play("hsr");//播放
|
|
|
+ }else if(dishIndex == 1){
|
|
|
+ createjs.Sound.play("qcdf");//播放
|
|
|
+ }else if(dishIndex == 2){
|
|
|
+ createjs.Sound.play("swy");//播放
|
|
|
+ }else{
|
|
|
+ createjs.Sound.play("ymc");//播放
|
|
|
+ }
|
|
|
var anim = new TimelineMax({ repeat:10,delay:1});
|
|
|
anim.to(exportRoot.pro.oil_icon2, 0.3, {y:"+=100",alpha:0})
|
|
|
return anim;
|
|
@@ -480,7 +492,6 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
exportRoot.ball1.alpha = 1;
|
|
|
-
|
|
|
ballAnim(exportRoot.ball1);
|
|
|
chooseType = 3;
|
|
|
$(".poster-mode").addClass("poster-bg3");
|
|
@@ -495,6 +506,8 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material1.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
+ exportRoot.ball2.alpha = 1;
|
|
|
+ ballAnim(exportRoot.ball2);
|
|
|
chooseType = 2;
|
|
|
$(".poster-mode").addClass("poster-bg2");
|
|
|
materialAnim(exportRoot.blackboard.material2, 120, 180, function() {
|
|
@@ -508,6 +521,9 @@ function handleComplete(evt, comp) {
|
|
|
exportRoot.blackboard.material1.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material2.removeAllEventListeners();
|
|
|
exportRoot.blackboard.material3.removeAllEventListeners();
|
|
|
+ console.log(exportRoot.ball3)
|
|
|
+ exportRoot.ball3.alpha = 1;
|
|
|
+ ballAnim(exportRoot.ball3);
|
|
|
chooseType = 1;
|
|
|
$(".poster-mode").addClass("poster-bg1");
|
|
|
materialAnim(exportRoot.blackboard.material3, -30, 180, function() {
|
|
@@ -704,7 +720,6 @@ function getInfo() {
|
|
|
// 获取登陆信息
|
|
|
function getMsg(){
|
|
|
if(URLParams['uid'] || localStorage.userId){
|
|
|
-
|
|
|
if(localStorage.userId) {
|
|
|
window.user_info.uid = localStorage.userId;
|
|
|
window.user_info.logo = localStorage.userPic;
|
|
@@ -813,7 +828,12 @@ function saveText() {
|
|
|
$('.user-info p').html(msg.data.nickName);
|
|
|
$('#nameInput').val(msg.data.receiver);
|
|
|
$('#textInput').val(msg.data.message);
|
|
|
- href = document.location.href + "&uid=" + msg.data.id;
|
|
|
+ if(document.location.href.indexOf('?') > -1){
|
|
|
+ href = document.location.href + "&uid=" + msg.data.id;
|
|
|
+ } else {
|
|
|
+ href = document.location.href + "?uid=" + msg.data.id;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if(href != document.location.href){
|