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,11 +524,11 @@ Page({
},
//升温
updateRolewd(ridx, rwd) {
let mv = paples[ridx-1]
if(mv&&rwd){
let mv = paples[ridx - 1]
if (mv && rwd) {
mv.gotoAndPlay(1);
}
this.data.roomdata[ridx - 1]["wd"] = rwd;
let ndata = this.data.roomdata;
this.setData({
......@@ -593,11 +593,11 @@ 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);
}
// let addattion = [];
if (invite) {
let txt1 = this.solveAttionTxt(invite, this.data.linvite, "invite");
......@@ -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,42 +911,47 @@ Page({
console.log(err);
}
)
SvgaParser.loadSvga(
paple3,
(v) => {
console.log("svga" + v);
var mv = stage.addChild(new FYGE.MovieClip(v));
mv.x = 232;
mv.y = 510;
console.log("svgmv", mv)
paples[2] = mv;
mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{
if (step > 1) {
SvgaParser.loadSvga(
paple3,
(v) => {
console.log("svga" + v);
var mv = stage.addChild(new FYGE.MovieClip(v));
mv.x = 232;
mv.y = 510;
console.log("svgmv", mv)
paples[2] = mv;
mv.gotoAndStop(1);
})
},
(err) => {
console.log(err);
}
)
SvgaParser.loadSvga(
paple4,
(v) => {
console.log("svga" + v);
var mv = stage.addChild(new FYGE.MovieClip(v));
mv.x = 420;
mv.y = 560;
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);
})
},
(err) => {
console.log(err);
}
)
}
if (step > 2) {
SvgaParser.loadSvga(
paple4,
(v) => {
console.log("svga" + v);
var mv = stage.addChild(new FYGE.MovieClip(v));
mv.x = 420;
mv.y = 560;
console.log("svgmv", mv)
paples[3] = mv;
mv.gotoAndStop(1);
})
},
(err) => {
console.log(err);
}
)
mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1);
})
},
(err) => {
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