Commit 14a498b5 authored by zhangjinzhou's avatar zhangjinzhou

暂存

parent b1a2be60
...@@ -132,7 +132,7 @@ Page({ ...@@ -132,7 +132,7 @@ Page({
console.log("新手", isnew, query); console.log("新手", isnew, query);
let { end, gl, start, step, toolcd } = query; let { end, gl, start, step, toolcd } = query;
step = Number(step); step = Number(step);
step = 3; // step = 3;
gameatime = Math.floor((Number(end) - Number(start)) / 1000); gameatime = Math.floor((Number(end) - Number(start)) / 1000);
gtoolcd = Number(toolcd); gtoolcd = Number(toolcd);
let sucgl = Number(gl); let sucgl = Number(gl);
...@@ -524,11 +524,11 @@ Page({ ...@@ -524,11 +524,11 @@ Page({
}, },
//升温 //升温
updateRolewd(ridx, rwd) { updateRolewd(ridx, rwd) {
let mv = paples[ridx-1] let mv = paples[ridx - 1]
if(mv&&rwd){ if (mv && rwd) {
mv.gotoAndPlay(1); mv.gotoAndPlay(1);
} }
this.data.roomdata[ridx - 1]["wd"] = rwd; this.data.roomdata[ridx - 1]["wd"] = rwd;
let ndata = this.data.roomdata; let ndata = this.data.roomdata;
this.setData({ this.setData({
...@@ -593,11 +593,11 @@ Page({ ...@@ -593,11 +593,11 @@ Page({
if (success) { if (success) {
const { total, invite, tool, follow, sign, collect, browseGoods } = data; const { total, invite, tool, follow, sign, collect, browseGoods } = data;
let ridx = this.data.myidx; let ridx = this.data.myidx;
let nwd = this.data.roomdata[ridx - 1]["wd"]||0; let nwd = this.data.roomdata[ridx - 1]["wd"] || 0;
if(total>nwd){ if (total > nwd) {
this.updateRolewd(ridx, total); this.updateRolewd(ridx, total);
} }
// let addattion = []; // let addattion = [];
if (invite) { if (invite) {
let txt1 = this.solveAttionTxt(invite, this.data.linvite, "invite"); let txt1 = this.solveAttionTxt(invite, this.data.linvite, "invite");
...@@ -741,7 +741,7 @@ Page({ ...@@ -741,7 +741,7 @@ Page({
my.redirectTo({ url: '/pages/pagepageindex/pagepageindex' }) my.redirectTo({ url: '/pages/pagepageindex/pagepageindex' })
}, },
//关闭一般弹窗 //关闭一般弹窗
closenordia(){ closenordia() {
this.closetool(); this.closetool();
this.closeTask(); this.closeTask();
this.closeInvite(); this.closeInvite();
...@@ -873,6 +873,7 @@ Page({ ...@@ -873,6 +873,7 @@ Page({
); );
//stage初始化 //stage初始化
let addy = 50; let addy = 50;
let step = this.data.step;
stage.addEventListener(FYGE.Event.INIT_STAGE, () => { stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
SvgaParser.loadSvga( SvgaParser.loadSvga(
paple1, paple1,
...@@ -884,12 +885,12 @@ Page({ ...@@ -884,12 +885,12 @@ Page({
console.log("svgmv", mv) console.log("svgmv", mv)
paples[0] = mv; paples[0] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{ mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1); mv.gotoAndStop(1);
}) })
}, },
(err) => { (err) => {
console.log("aa",err); console.log("aa", err);
} }
) )
SvgaParser.loadSvga( SvgaParser.loadSvga(
...@@ -902,7 +903,7 @@ Page({ ...@@ -902,7 +903,7 @@ Page({
console.log("svgmv", mv); console.log("svgmv", mv);
paples[1] = mv; paples[1] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME,()=>{ mv.addEventListener(FYGE.Event.END_FRAME, () => {
mv.gotoAndStop(1); mv.gotoAndStop(1);
}) })
}, },
...@@ -910,42 +911,47 @@ Page({ ...@@ -910,42 +911,47 @@ Page({
console.log(err); console.log(err);
} }
) )
SvgaParser.loadSvga(
paple3, if (step > 1) {
(v) => { SvgaParser.loadSvga(
console.log("svga" + v); paple3,
var mv = stage.addChild(new FYGE.MovieClip(v)); (v) => {
mv.x = 232; console.log("svga" + v);
mv.y = 510; var mv = stage.addChild(new FYGE.MovieClip(v));
console.log("svgmv", mv) mv.x = 232;
paples[2] = mv; mv.y = 510;
mv.gotoAndStop(1); console.log("svgmv", mv)
mv.addEventListener(FYGE.Event.END_FRAME,()=>{ paples[2] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
}) mv.addEventListener(FYGE.Event.END_FRAME, () => {
}, mv.gotoAndStop(1);
(err) => { })
console.log(err); },
} (err) => {
) console.log(err);
SvgaParser.loadSvga( }
paple4, )
(v) => { }
console.log("svga" + v); if (step > 2) {
var mv = stage.addChild(new FYGE.MovieClip(v)); SvgaParser.loadSvga(
mv.x = 420; paple4,
mv.y = 560; (v) => {
console.log("svgmv", mv) console.log("svga" + v);
paples[3] = mv; var mv = stage.addChild(new FYGE.MovieClip(v));
mv.gotoAndStop(1); mv.x = 420;
mv.addEventListener(FYGE.Event.END_FRAME,()=>{ mv.y = 560;
console.log("svgmv", mv)
paples[3] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
}) mv.addEventListener(FYGE.Event.END_FRAME, () => {
}, mv.gotoAndStop(1);
(err) => { })
console.log(err); },
} (err) => {
) console.log(err);
}
)
}
}, this); }, 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