118 lines
4.3 KiB
HTML
118 lines
4.3 KiB
HTML
<!doctype html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>可信供给平台</title>
|
|
<link href="assets/sdk/antd.css" rel="stylesheet"/>
|
|
<link href="assets/sdk/helper.css" rel="stylesheet"/>
|
|
<link href="assets/sdk/iconfont.css" rel="stylesheet"/>
|
|
<style>
|
|
html, body, #root {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
<script src="assets/sdk/sdk.js"></script>
|
|
<script src="assets/component/constants.js"></script>
|
|
<script src="assets/component/common.js"></script>
|
|
<script>
|
|
(function () {
|
|
let amis = amisRequire('amis/embed')
|
|
let amisJSON = {
|
|
type: 'page',
|
|
title: information.title,
|
|
subTitle: '统一登陆入口',
|
|
body: [
|
|
{
|
|
type: 'grid',
|
|
columns: [
|
|
{
|
|
xs: 0,
|
|
sm: 0,
|
|
md: 4,
|
|
body: []
|
|
},
|
|
{
|
|
xs: 12,
|
|
sm: 12,
|
|
md: 4,
|
|
body: [
|
|
{
|
|
type: 'form',
|
|
title: '用户登陆',
|
|
api: '${base}/user/login',
|
|
redirect: '/index.html?token=${token}',
|
|
mode: 'horizontal',
|
|
actions: [
|
|
{
|
|
type: 'action',
|
|
label: '注册',
|
|
...userAddDialog(),
|
|
},
|
|
{
|
|
type: 'action',
|
|
actionType: 'submit',
|
|
label: '登陆',
|
|
level: 'primary',
|
|
}
|
|
],
|
|
body: [
|
|
{
|
|
type: 'input-email',
|
|
name: 'username',
|
|
label: '邮箱',
|
|
placeholder: '请输入邮箱',
|
|
required: true,
|
|
clearable: true,
|
|
clearValueOnEmpty: true,
|
|
},
|
|
{
|
|
type: 'input-password',
|
|
name: 'password',
|
|
label: '密码',
|
|
placeholder: '请再次输入密码',
|
|
required: true,
|
|
},
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
xs: 0,
|
|
sm: 0,
|
|
md: 4,
|
|
body: []
|
|
},
|
|
]
|
|
}
|
|
]
|
|
}
|
|
amis.embed(
|
|
'#root',
|
|
amisJSON,
|
|
{
|
|
data: {
|
|
base: information.baseUrl
|
|
},
|
|
},
|
|
{
|
|
theme: 'antd',
|
|
enableAMISDebug: information.debug,
|
|
},
|
|
);
|
|
if (information.debug) {
|
|
console.log('Source', amisJSON)
|
|
}
|
|
})()
|
|
</script>
|
|
</html> |