Commit 049ec9d0 authored by haiyoucuv's avatar haiyoucuv

GuideLayer

parent 1bf17e53
......@@ -22,8 +22,7 @@ export default class RulePanel extends Panel {
}
async start() {
await store.updateRule();
this.setRuleTxt(store.ruleInfo);
this.setRuleTxt(store.homeInfo.activityRule);
}
clickClose = () => {
......@@ -44,14 +43,10 @@ export default class RulePanel extends Panel {
const {width: pw, height: ph} = this.spNode.getComponent(UITransform);
console.log(pw, ph);
const width = this.spNode.parent.getComponent(UITransform).width;
const height = ph * width / pw;
console.log(width, height)
this.spNode.getComponent(UITransform).setContentSize(width, height);
});
......
......@@ -33,12 +33,10 @@ class Store {
WebNetName.index,
{gameType: 2}
);
console.log(success)
if (!success) {
return;
}
console.log(data);
this.homeInfo = data;
}
......
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