Skip to content

Instantly share code, notes, and snippets.

@xesrevinu
Last active July 7, 2023 06:28
Show Gist options
  • Select an option

  • Save xesrevinu/17267e2a83eb9d3cd1ff65852f1a1df9 to your computer and use it in GitHub Desktop.

Select an option

Save xesrevinu/17267e2a83eb9d3cd1ff65852f1a1df9 to your computer and use it in GitHub Desktop.
Aspiration应用逻辑
Aspiration应用逻辑
从主屏幕打开应用 -> 用户之前登录过吗
注销流程
用户之前登录过吗
是 -> 设备身份验证设置完成吗
否 -> 应用欢迎界面
应用欢迎界面
点击登录 -> 设备身份验证设置完成吗
点击注册 -> 注册流程
设备身份验证设置完成吗
是 - 触控ID -> 检查身份验证
是 - 面容ID -> 检查身份验证
否 -> 登录表单
检查身份验证
通过 -> 加载帐户信息
失败 -> 登录表单
登录表单
function render(model){
function addImage() {
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
} else {
return "No image available."
}
}
return (
<div style={{textAlign: "center"}}>
<h1>{model.active_states[0].name}</h1>
{addImage()}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment