view = ui.inflate(
<vertical>
<horizontal>
<text text="账号"/>
<input id="账号"w="*"/>
</horizontal>
<horizontal>
<text text="密码"/>
<input id="密码"w="*"/>
</horizontal>
</vertical>
);
dialogs.build({
customView: view,
title: "登录",
positive: "确定",
negative: "取消",
neutral: "注册"
}).on("positive", (dialog) => {
账号=view.账号.text();
密码=view.密码.text();
toast("账号="+账号+"\n密码="+密码)
}).on("negative", (dialog) => {
toast("取消")
dialog.dismiss();
}).on("neutral", (dialog) => {
toast("注册")
}).show();
QQ群 568523841