Commit fd5fdb23 authored by wildfirecode's avatar wildfirecode

1

parent eb2d8a6a
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png","../assets/map/mapcx.png","../assets/map/maphg.png","../assets/map/mapmg.png","../assets/map/mapxg.png","../assets/map/mapam.png","../assets/map/maprb.png","../assets/map/maptb.png"]}
\ No newline at end of file \ No newline at end of file
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"resource/skins/JoinShareSkin.exml", "resource/skins/JoinShareSkin.exml",
"resource/skins/PKScoreSkin.exml", "resource/skins/PKScoreSkin.exml",
"resource/skins/CertificateSkin.exml", "resource/skins/CertificateSkin.exml",
"resource/skins/TransSkin.exml",
"resource/skins/ShareStarterSkin.exml" "resource/skins/ShareStarterSkin.exml"
], ],
"path": "resource/default.thm.json" "path": "resource/default.thm.json"
......
...@@ -171,7 +171,7 @@ class Main extends MainBase { ...@@ -171,7 +171,7 @@ class Main extends MainBase {
// return; // return;
if (window['pageID']) { if (window['pageID']) {
if (GameConst.getQueryString("InviteSource")) { // if (GameConst.getQueryString("InviteSource")) {
yzwNet.homeBaseInfo((s) => { yzwNet.homeBaseInfo((s) => {
if (!s) { if (!s) {
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
...@@ -179,7 +179,7 @@ class Main extends MainBase { ...@@ -179,7 +179,7 @@ class Main extends MainBase {
return; return;
} }
}, window['projectId'], GameConst.getQueryString("InviteSource")) }, window['projectId'], GameConst.getQueryString("InviteSource"))
} // }
Waiting.instance.hide(); Waiting.instance.hide();
if (window['pageID'] == 'JoinShareScene') { if (window['pageID'] == 'JoinShareScene') {
......
import Scene from "../views/Scene"; import Scene from "../views/Scene";
import { getResPath } from "../utils"; import { getResPath } from "../utils";
import { loadSvgaRes, loadSvga } from "../loadSvga"; import { loadSvgaRes, loadSvga } from "../loadSvga";
import { wait } from "../GameConst"; import GameConst, { wait } from "../GameConst";
import { NetManager } from "../../libs/tw/manager/NetManager"; import { NetManager } from "../../libs/tw/manager/NetManager";
import { DataManager } from "../../libs/tw/manager/DataManager"; import { DataManager } from "../../libs/tw/manager/DataManager";
import { yzwNet } from "../NetConst"; import { yzwNet } from "../NetConst";
...@@ -66,7 +66,7 @@ export default class TransScene extends Scene { ...@@ -66,7 +66,7 @@ export default class TransScene extends Scene {
} }
} }
onshake(){ onshake() {
this['shareTips'].visible = false; this['shareTips'].visible = false;
let sharecode = DataManager.ins.getData('genInvite').data; let sharecode = DataManager.ins.getData('genInvite').data;
NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => { NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => {
...@@ -111,23 +111,17 @@ export default class TransScene extends Scene { ...@@ -111,23 +111,17 @@ export default class TransScene extends Scene {
} }
onTap_btn() { onTap_btn() {
this['btn'].visible=false; this['btn'].visible = false;
console.log('onTap_btn'); console.log('onTap_btn');
this['shareTips'].visible = true; this['shareTips'].visible = true;
//进入页面后发送确认消息 //进入页面后发送确认消息
yzwNet.genInvite(() => { yzwNet.accept(() => {
let sharecode = DataManager.ins.getData('genInvite').data;
NetManager.ins.yyh_updateAnimationState(sharecode, 1, (success) => {
if (success) {
this.addShareEvent(); this.addShareEvent();
} }, window['projectId'], GameConst.getQueryString("shareCode"));
});
}, window['projectId']);
setTimeout(() => { setTimeout(() => {
this.onshake(); this.onshake();
}, 3000); }, 10000);
} }
initEvents() { initEvents() {
......
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