feat(admin): complete integration of auth, delivery, and system infrastructure modules
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</view>
|
||||
<view class="table-body">
|
||||
<view class="table-row">
|
||||
<view class="col col-title"><text>ZC2884891</text></view>
|
||||
<view class="col col-title"><text>{{ info?.auth_id || '检测中...' }}</text></view>
|
||||
<view class="col col-action">
|
||||
<text class="action-btn" @click="gotoOfficial">进入官网</text>
|
||||
</view>
|
||||
@@ -22,29 +22,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 自定义版权信息 -->
|
||||
<view class="admin-card info-section mt-24">
|
||||
<view class="section-header">
|
||||
<text class="section-title">自定义版权信息</text>
|
||||
</view>
|
||||
<view class="table-container header-table">
|
||||
<view class="table-header">
|
||||
<view class="col col-text"><text>文字版权信息</text></view>
|
||||
<view class="col col-image"><text>底部版权图片</text></view>
|
||||
<view class="col col-action"><text>操作</text></view>
|
||||
</view>
|
||||
<view class="table-body">
|
||||
<view class="table-row">
|
||||
<view class="col col-text"><text></text></view>
|
||||
<view class="col col-image"><text></text></view>
|
||||
<view class="col col-action">
|
||||
<text class="action-btn" @click="editCopyright">编辑</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 服务器信息 -->
|
||||
<view class="admin-card info-section mt-24">
|
||||
<view class="section-header">
|
||||
@@ -60,53 +37,71 @@
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>服务器系统</text></view>
|
||||
<view class="col col-req"><text>类UNIX</text></view>
|
||||
<view class="col col-status"><text>Linux</text></view>
|
||||
<view class="col col-status"><text>{{ info?.server_os || 'Loading...' }}</text></view>
|
||||
</view>
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>WEB环境</text></view>
|
||||
<view class="col col-req"><text>Apache/Nginx/IIS</text></view>
|
||||
<view class="col col-status"><text>nginx/1.24.0</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 系统环境要求 -->
|
||||
<view class="admin-card info-section mt-24">
|
||||
<view class="section-header">
|
||||
<text class="section-title">系统环境要求</text>
|
||||
</view>
|
||||
<view class="table-container header-table">
|
||||
<view class="table-header">
|
||||
<view class="col col-env"><text>环境</text></view>
|
||||
<view class="col col-req"><text>要求</text></view>
|
||||
<view class="col col-status"><text>状态</text></view>
|
||||
</view>
|
||||
<view class="table-body">
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>PHP版本</text></view>
|
||||
<view class="col col-req"><text>7.1-7.4</text></view>
|
||||
<view class="col col-status"><text>7.4.33</text></view>
|
||||
<view class="col col-status"><text>{{ info?.web_server || 'Loading...' }}</text></view>
|
||||
</view>
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>MySQL版本</text></view>
|
||||
<view class="col col-req"><text>5.6-8.0</text></view>
|
||||
<view class="col col-status"><text>8.0.35</text></view>
|
||||
<view class="col col-env"><text>数据库引擎</text></view>
|
||||
<view class="col col-req"><text>PostgreSQL</text></view>
|
||||
<view class="col col-status"><text>{{ info?.db_engine || 'Loading...' }}</text></view>
|
||||
</view>
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>数据库版本</text></view>
|
||||
<view class="col col-req"><text>15.0+</text></view>
|
||||
<view class="col col-status"><text>{{ info?.db_version || 'Loading...' }}</text></view>
|
||||
</view>
|
||||
<view class="table-row">
|
||||
<view class="col col-env"><text>运行环境</text></view>
|
||||
<view class="col col-req"><text>UTS Runtime</text></view>
|
||||
<view class="col col-status"><text>{{ info?.uts_runtime || 'Loading...' }}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="isLoading" class="loading-overlay">
|
||||
<text>系统环境加载中...</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
function gotoOfficial() {
|
||||
uni.showToast({ title: '正在打开官网...', icon: 'none' })
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { fetchSystemInfo, SystemInfo } from '@/services/admin/maintainService.uts'
|
||||
|
||||
const info = ref<SystemInfo | null>(null)
|
||||
const isLoading = ref(false)
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
|
||||
async function loadData() {
|
||||
isLoading.value = true
|
||||
try {
|
||||
const res = await fetchSystemInfo()
|
||||
if (res != null) {
|
||||
info.value = res
|
||||
}
|
||||
} catch (e) {
|
||||
uni.showToast({ title: '获取系统信息失败', icon: 'none' })
|
||||
} finally {
|
||||
isLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function editCopyright() {
|
||||
uni.showToast({ title: '编辑版权信息', icon: 'none' })
|
||||
function gotoOfficial() {
|
||||
// #ifdef H5
|
||||
window.open('https://www.crmeb.com', '_blank')
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
uni.showToast({ title: '请在浏览器中访问官网', icon: 'none' })
|
||||
// #endif
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -158,13 +153,10 @@ function editCopyright() {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 各表格占位列宽 */
|
||||
.col-title { flex: 1; }
|
||||
.col-text { flex: 1; }
|
||||
.col-image { flex: 1; }
|
||||
.col-env { flex: 1; }
|
||||
.col-req { flex: 1; }
|
||||
.col-status { flex: 1; }
|
||||
.col-status { flex: 1; font-family: monospace; }
|
||||
.col-action { width: 150px; justify-content: flex-end; }
|
||||
|
||||
.action-btn {
|
||||
@@ -175,4 +167,14 @@ function editCopyright() {
|
||||
.mt-24 {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background-color: rgba(255,255,255,0.6);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user