Commit 14a498b5 authored by zhangjinzhou's avatar zhangjinzhou

暂存

parent b1a2be60
......@@ -132,7 +132,7 @@ Page({
console.log("新手", isnew, query);
let { end, gl, start, step, toolcd } = query;
step = Number(step);
step = 3;
// step = 3;
gameatime = Math.floor((Number(end) - Number(start)) / 1000);
gtoolcd = Number(toolcd);
let sucgl = Number(gl);
......@@ -524,8 +524,8 @@ Page({
},
//升温
updateRolewd(ridx, rwd) {
let mv = paples[ridx-1]
if(mv&&rwd){
let mv = paples[ridx - 1]
if (mv && rwd) {
mv.gotoAndPlay(1);
}
......@@ -593,8 +593,8 @@ Page({
if (success) {
const { total, invite, tool, follow, sign, collect, browseGoods } = data;
let ridx = this.data.myidx;
let nwd = this.data.roomdata[ridx - 1]["wd"]||0;
if(total>nwd){
let nwd = this.data.roomdata[ridx - 1]["wd"] || 0;
if (total > nwd) {
this.updateRolewd(ridx, total);
}
......@@ -741,7 +741,7 @@ Page({
my.redirectTo({ url: '/pages/pagepageindex/pagepageindex' })
},
//关闭一般弹窗
closenordia(){
closenordia() {
this.closetool();
this.closeTask();
this.closeInvite();
......@@ -873,6 +873,7 @@ Page({
);
//stage初始化
let addy = 50;
let step = this.data.step;
stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
SvgaParser.loadSvga(
paple1,
......@@ -884,12 +885,12 @@ Page({
console.log("svgmv", mv)
paples[0] = mv;
mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{
mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1);
})
},
(err) => {
console.log("aa",err);
console.log("aa", err);
}
)
SvgaParser.loadSvga(
......@@ -902,7 +903,7 @@ Page({
console.log("svgmv", mv);
paples[1] = mv;
mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{
mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1);
})
},
......@@ -910,6 +911,8 @@ Page({
console.log(err);
}
)
if (step > 1) {
SvgaParser.loadSvga(
paple3,
(v) => {
......@@ -920,7 +923,7 @@ Page({
console.log("svgmv", mv)
paples[2] = mv;
mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{
mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1);
})
},
......@@ -928,6 +931,8 @@ Page({
console.log(err);
}
)
}
if (step > 2) {
SvgaParser.loadSvga(
paple4,
(v) => {
......@@ -938,7 +943,7 @@ Page({
console.log("svgmv", mv)
paples[3] = mv;
mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{
mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1);
})
},
......@@ -946,6 +951,7 @@ Page({
console.log(err);
}
)
}
}, this);
//循环
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment