feat: [用户前端] 修复部分BUG、增加主题色、增加注册用户协议显示等

This commit is contained in:
xboard 2024-01-10 18:59:59 +08:00
parent 11591b9708
commit 95675de30b
5 changed files with 796 additions and 843 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -3,15 +3,31 @@
"description": "Xboard",
"version": "1.0.0",
"images": "",
"configs": [{
"label": "背景",
"placeholder": "请输入背景图片URL",
"field_name": "background_url",
"field_type": "input"
}, {
"label": "自定义页脚HTML",
"placeholder": "可以实现客服JS代码的加入等",
"field_name": "custom_html",
"field_type": "textarea"
}]
"configs": [
{
"label": "主题色",
"placeholder": "请选择主题颜色",
"field_name": "theme_color",
"field_type": "select",
"select_options": {
"default": "默认(绿色)",
"blue": "蓝色",
"black": "黑色",
"darkblue": "暗蓝色"
},
"default_value": "default"
},
{
"label": "背景",
"placeholder": "请输入背景图片URL",
"field_name": "background_url",
"field_type": "input"
},
{
"label": "自定义页脚HTML",
"placeholder": "可以实现客服JS代码的加入等",
"field_name": "custom_html",
"field_type": "textarea"
}
]
}

View File

@ -1,17 +1,23 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
<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>
<body>
<script>
window.routerBase = "/";
window.settings = {
title: '{{$title}}',
assets_path: '/theme/{{$theme}}/assets',
theme: {
color: '{{$theme_config['theme_color']}}',
},
version: '{{$version}}',
background_url: '{{$theme_config['background_url']}}',
description: '{{$description}}',
@ -30,4 +36,5 @@
<div id="app"></div>
{!! $theme_config['custom_html'] !!}
</body>
</html>