Commit 71a8e68d authored by wildfirecode13's avatar wildfirecode13

u

parent 150c5811
...@@ -22,5 +22,6 @@ function getParams() { ...@@ -22,5 +22,6 @@ function getParams() {
} }
export const getUnionid = () => { export const getUnionid = () => {
console.log('getUnionid',getQueryParams().uid);
return getQueryParams().uid; return getQueryParams().uid;
} }
\ No newline at end of file
...@@ -7,11 +7,22 @@ import { sendLog } from "../WebNet"; ...@@ -7,11 +7,22 @@ import { sendLog } from "../WebNet";
let section; let section;
export class memberGuidePanel extends Panel { export class memberGuidePanel extends Panel {
callback;
start(data){
super.start(data);
this.callback=data;
}
click_memberGuide_btn(){ click_memberGuide_btn(){
console.log('memberGuide_btn'); console.log('memberGuide_btn');
sendLog("click",6); sendLog("click",6);
} }
hidePanel(){
super.hidePanel();
this.callback();
}
get groupNames() { return ["memberGuide"] } get groupNames() { return ["memberGuide"] }
get skinName() { return "memberGuide" } get skinName() { return "memberGuide" }
......
...@@ -18,6 +18,7 @@ import { getWebData, sendLog, sendWebNet } from "../WebNet"; ...@@ -18,6 +18,7 @@ import { getWebData, sendLog, sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName"; import { WebNetName } from "../WebNetName";
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { showShareMask } from "../common/ShareMask"; import { showShareMask } from "../common/ShareMask";
import { getUnionid } from "../getUnionid";
let boxGroup: BoxGroup; let boxGroup: BoxGroup;
...@@ -78,7 +79,11 @@ export class IndexScene extends Scene { ...@@ -78,7 +79,11 @@ export class IndexScene extends Scene {
shareButton.addEventListener(FYGE.MouseEvent.CLICK, () => { shareButton.addEventListener(FYGE.MouseEvent.CLICK, () => {
sendLog("click",9); sendLog("click",9);
this.handleShare(); this.handleShare();
},this) },this);
if( !getUnionid()){
this.initNonmemberMask();
}
} }
initContainer() { initContainer() {
...@@ -97,7 +102,10 @@ export class IndexScene extends Scene { ...@@ -97,7 +102,10 @@ export class IndexScene extends Scene {
mask.alpha = 0; mask.alpha = 0;
layers.topLayer.addChild(mask); layers.topLayer.addChild(mask);
mask.addEventListener(FYGE.MouseEvent.CLICK, () => { mask.addEventListener(FYGE.MouseEvent.CLICK, () => {
showPanel(memberGuidePanel); mask.mouseEnable=false;
showPanel(memberGuidePanel,()=>{
mask.mouseEnable=true;
});
},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