mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-02 07:28:13 -05:00
feat: [用户前端] 修复部分BUG、增加主题色、增加注册用户协议显示等
This commit is contained in:
parent
11591b9708
commit
95675de30b
1592
public/theme/Xboard/assets/umi.js
vendored
1592
public/theme/Xboard/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -3,15 +3,31 @@
|
|||||||
"description": "Xboard",
|
"description": "Xboard",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"images": "",
|
"images": "",
|
||||||
"configs": [{
|
"configs": [
|
||||||
|
{
|
||||||
|
"label": "主题色",
|
||||||
|
"placeholder": "请选择主题颜色",
|
||||||
|
"field_name": "theme_color",
|
||||||
|
"field_type": "select",
|
||||||
|
"select_options": {
|
||||||
|
"default": "默认(绿色)",
|
||||||
|
"blue": "蓝色",
|
||||||
|
"black": "黑色",
|
||||||
|
"darkblue": "暗蓝色"
|
||||||
|
},
|
||||||
|
"default_value": "default"
|
||||||
|
},
|
||||||
|
{
|
||||||
"label": "背景",
|
"label": "背景",
|
||||||
"placeholder": "请输入背景图片URL",
|
"placeholder": "请输入背景图片URL",
|
||||||
"field_name": "background_url",
|
"field_name": "background_url",
|
||||||
"field_type": "input"
|
"field_type": "input"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"label": "自定义页脚HTML",
|
"label": "自定义页脚HTML",
|
||||||
"placeholder": "可以实现客服JS代码的加入等",
|
"placeholder": "可以实现客服JS代码的加入等",
|
||||||
"field_name": "custom_html",
|
"field_name": "custom_html",
|
||||||
"field_type": "textarea"
|
"field_type": "textarea"
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,23 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
|
||||||
<title>{{$title}}</title>
|
<title>{{$title}}</title>
|
||||||
<script type="module" crossorigin src="/theme/{{$theme}}/assets/umi.js?v={{$version}}"></script>
|
<script type="module" crossorigin src="/theme/{{$theme}}/assets/umi.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.routerBase = "/";
|
window.routerBase = "/";
|
||||||
window.settings = {
|
window.settings = {
|
||||||
title: '{{$title}}',
|
title: '{{$title}}',
|
||||||
assets_path: '/theme/{{$theme}}/assets',
|
assets_path: '/theme/{{$theme}}/assets',
|
||||||
|
theme: {
|
||||||
|
color: '{{$theme_config['theme_color']}}',
|
||||||
|
},
|
||||||
version: '{{$version}}',
|
version: '{{$version}}',
|
||||||
background_url: '{{$theme_config['background_url']}}',
|
background_url: '{{$theme_config['background_url']}}',
|
||||||
description: '{{$description}}',
|
description: '{{$description}}',
|
||||||
@ -30,4 +36,5 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
{!! $theme_config['custom_html'] !!}
|
{!! $theme_config['custom_html'] !!}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user