add call method

This commit is contained in:
王劲鹏 2021-05-20 10:41:35 +08:00 committed by osborn
parent 172082298d
commit 21489ca4f8

View File

@ -19,7 +19,10 @@ class SimpleDemo extends Panel {
layoutConfig: layoutConfig().fit().configMargin({ layoutConfig: layoutConfig().fit().configMargin({
top: 23, top: 23,
right: 23 right: 23
}).configAlignment(gravity().right()) }).configAlignment(gravity().right()),
onClick: () => {
context.callNative('cp_introduce_view', 'showRule')
}
}), }),
text({ text({
text: " 购买并开启1个誓言礼盒\r\n即可获得1个邀请组CP的道具", text: " 购买并开启1个誓言礼盒\r\n即可获得1个邀请组CP的道具",
@ -73,7 +76,6 @@ class SimpleDemo extends Panel {
width: 400, width: 400,
height: 759, height: 759,
layoutConfig: layoutConfig().just(), layoutConfig: layoutConfig().just(),
backgroundColor: Color.RED
}), { }), {
layoutConfig: layoutConfig().most(), layoutConfig: layoutConfig().most(),
}) })