Commit 6ae3a2c4 authored by wildfirecode's avatar wildfirecode

1

parent 6d9e2214
...@@ -42,30 +42,6 @@ export default class ShareStarterScene extends Scene { ...@@ -42,30 +42,6 @@ export default class ShareStarterScene extends Scene {
this.addAni(this['waitTips']); this.addAni(this['waitTips']);
this.addAni(this['matchingTips']); this.addAni(this['matchingTips']);
this.addAni(this['shareTips']); this.addAni(this['shareTips']);
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) { addAni(d) {
...@@ -104,7 +80,32 @@ export default class ShareStarterScene extends Scene { ...@@ -104,7 +80,32 @@ export default class ShareStarterScene extends Scene {
} }
onTap_sharebtn() { onTap_sharebtn() {
console.log('onTap_sharebtn'); this['tipsWrapper'].visible=false;
this['transbtn'].visible=false;
//这里要调用分享方法
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'])
} }
onTap_transbtn() { onTap_transbtn() {
......
{
"code":null,
"data":123456,
"message":null,
"success":true
}
\ No newline at end of file
{ {
"code":null, "code":null,
"data":3, "data":0,
"message":null, "message":null,
"success":true "success":true
} }
\ No newline at end of file
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