Commit 6d9e2214 authored by wildfirecode's avatar wildfirecode

1

parent d4859f52
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="CertificateSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group verticalCenter="0">
<e:Group id="group" verticalCenter="0">
<e:Image source="sharestarter_bg_jpg"/>
<e:Image id="waitTips" source="transfer _toast1_png" horizontalCenter="0" x="129" scaleX="1" scaleY="1" verticalCenter="0" visible="false"/>
<e:Image id="matchingTips" source="transfer _toast2_png" horizontalCenter="0" x="139" scaleX="1" scaleY="1" verticalCenter="0" y="10" visible="false"/>
......
......@@ -43,34 +43,29 @@ export default class ShareStarterScene extends Scene {
this.addAni(this['matchingTips']);
this.addAni(this['shareTips']);
const sharecode = 0;
// if (this._isInviterSide) {//邀请者
this['matchingTips'].visible = true;
NetManager.ins.yyh_pollingAnimationState((success) => {
const data = DataManager.ins.getData('yyh_pollingAnimationState').data;
if (data == 3) {//摇一摇
this.changeToTrans();
this['waitTips'].visible = false;
this['matchingTips'].visible = false;
this['shareTips'].visible = false;
}
}, sharecode, () => {
const data = DataManager.ins.getData('yyh_pollingAnimationState').data;
if (data == 1) {//被邀请者确认邀请
this['waitTips'].visible = true;
this['matchingTips'].visible = false;
}
if (data == 2) {//用户取消
//暂时无法取消
}
return data === null || data === 0 || data == 1 || data == 2;
})
// }
// yzwNet.genInvite(() => {
// let data = DataManager.ins.getData('genInvite').data;
// NetManager.ins.yyh_pollingAnimationState();
// }, window['projectId'])
yzwNet.genInvite(() => {
let sharecode = DataManager.ins.getData('genInvite').data;
this['matchingTips'].visible = true;
NetManager.ins.yyh_pollingAnimationState((success) => {
const data = DataManager.ins.getData('yyh_pollingAnimationState').data;
if (data == 3) {//摇一摇
this.changeToTrans();
this['waitTips'].visible = false;
this['matchingTips'].visible = false;
this['shareTips'].visible = false;
}
}, sharecode, () => {
const data = DataManager.ins.getData('yyh_pollingAnimationState').data;
if (data == 1) {//被邀请者确认邀请
this['waitTips'].visible = true;
this['matchingTips'].visible = false;
}
if (data == 2) {//用户取消
//暂时无法取消
}
return data === null || data === 0 || data == 1 || data == 2;
})
}, window['projectId'])
}
addAni(d) {
......
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