This commit is contained in:
朱子楚\zhuzi
2023-03-13 21:18:51 +08:00
parent 7282a6f8d1
commit 9d3de073c0
10 changed files with 113 additions and 18 deletions

View File

@ -9,6 +9,18 @@ FluScrollablePage{
title:"MultiWindow"
property string password: ""
property var loginPageRegister: registerForPageResult("/login")
Connections{
target: loginPageRegister
function onResult(data)
{
password = data.password
}
}
FluArea{
width: parent.width
height: 68
@ -33,30 +45,31 @@ FluScrollablePage{
}
}
FluArea{
width: parent.width
height: 68
height: 130
paddings: 10
Layout.topMargin: 20
Column{
spacing: 5
spacing: 15
anchors{
verticalCenter: parent.verticalCenter
left: parent.left
}
FluText{
text:"页面跳转,并携带参数"
text:"页面跳转,并携带参数用户名zhuzichu"
}
FluButton{
text:"点击跳转"
text:"点击跳转到登录"
onClicked: {
FluApp.navigate("/login",{username:"zhuzichu"})
loginPageRegister.launch({username:"zhuzichu"})
}
}
FluText{
text:"登录窗口返回过来的密码->"+password
}
}
}

View File

@ -60,6 +60,7 @@ FluWindow {
showError("请随便输入一个密码")
return
}
onResult({password:textbox_password.text})
window.close()
}
}