mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2025-11-28 01:00:13 +08:00
- 调整部分页面样式及布局以适配新设计 - 更新应用主题色以匹配品牌视觉规范 -优化部分组件交互逻辑提升用户体验- 调整Vant组件库相关样式变量配置- 修改全局主色调及相关按钮颜色配置- 优化商户端及代理商端页面头部样式- 统一卡片组件样式并移除固定定位按钮 - 调整页面滚动行为以改善移动端表现- 移除部分冗余样式代码并精简结构
129 lines
3.6 KiB
HTML
129 lines
3.6 KiB
HTML
<!doctype html>
|
|
<html lang="zh-cmn-Hans" id="htmlRoot">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link id="favicon" rel="icon" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<!-- 微信jssdk需要在uniapp前面 -->
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
<script type="text/javascript" src="/uni.webview.1.5.6.js"></script>
|
|
<title>加载中</title>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<script>
|
|
;(() => {
|
|
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
|
|
const darkMode = mediaQuery.matches ? 'light' : 'light'
|
|
const { appTheme = '#f8d03b' } =
|
|
JSON.parse(window.localStorage.getItem('DESIGN-SETTING')) || {}
|
|
|
|
let htmlRoot = document.getElementById('htmlRoot')
|
|
if (htmlRoot) {
|
|
htmlRoot.classList.add(darkMode)
|
|
}
|
|
// 设置主题色变量
|
|
document.documentElement.style.setProperty('--app-theme-color', appTheme)
|
|
})()
|
|
</script>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
html.dark .first-loading-wrap {
|
|
background-color: #101014;
|
|
}
|
|
.first-loading-wrap {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100vh;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
.first-loading-wrap > h1 {
|
|
font-size: 28px;
|
|
}
|
|
.first-loading-wrap .loading-wrap {
|
|
padding: 98px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.dot {
|
|
animation: antRotate 1.2s infinite linear;
|
|
transform: rotate(45deg);
|
|
position: relative;
|
|
display: inline-block;
|
|
font-size: 12px;
|
|
width: 30px;
|
|
height: 30px;
|
|
box-sizing: border-box;
|
|
}
|
|
.dot i {
|
|
width: 14px;
|
|
height: 14px;
|
|
position: absolute;
|
|
display: block;
|
|
background: var(--app-theme-color);
|
|
border-radius: 100%;
|
|
transform: scale(0.75);
|
|
transform-origin: 50% 50%;
|
|
opacity: 0.3;
|
|
animation: antSpinMove 1s infinite linear alternate;
|
|
}
|
|
.dot i:nth-child(1) {
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
.dot i:nth-child(2) {
|
|
top: 0;
|
|
right: 0;
|
|
-webkit-animation-delay: 0.4s;
|
|
animation-delay: 0.4s;
|
|
}
|
|
.dot i:nth-child(3) {
|
|
right: 0;
|
|
bottom: 0;
|
|
-webkit-animation-delay: 0.8s;
|
|
animation-delay: 0.8s;
|
|
}
|
|
.dot i:nth-child(4) {
|
|
bottom: 0;
|
|
left: 0;
|
|
-webkit-animation-delay: 1.2s;
|
|
animation-delay: 1.2s;
|
|
}
|
|
@keyframes antRotate {
|
|
to {
|
|
-webkit-transform: rotate(405deg);
|
|
transform: rotate(405deg);
|
|
}
|
|
}
|
|
@-webkit-keyframes antRotate {
|
|
to {
|
|
-webkit-transform: rotate(405deg);
|
|
transform: rotate(405deg);
|
|
}
|
|
}
|
|
@keyframes antSpinMove {
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@-webkit-keyframes antSpinMove {
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
</style>
|
|
<div class="first-loading-wrap">
|
|
<div class="loading-wrap">
|
|
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|