完善页面
This commit is contained in:
@@ -1,23 +1,194 @@
|
||||
<template>
|
||||
<view class="admin-page-container">
|
||||
<view class="page-card">
|
||||
<view class="page-header">
|
||||
<text class="page-title">电子面单配置</text>
|
||||
<view class="page-header">
|
||||
<view class="breadcrumb">
|
||||
<text class="bc-item">设置</text>
|
||||
<text class="bc-sep">/</text>
|
||||
<text class="bc-item">接口配置</text>
|
||||
<text class="bc-sep">/</text>
|
||||
<text class="bc-item active">电子面单配置</text>
|
||||
</view>
|
||||
<view class="page-content">
|
||||
<text class="placeholder-text">电子面单配置 页面开发中...</text>
|
||||
</view>
|
||||
|
||||
<view class="content-card">
|
||||
<view class="tabs-header">
|
||||
<view class="tab-item active"><text class="tab-text">基础配置</text></view>
|
||||
<view class="tab-item"><text class="tab-text">一号通配置</text></view>
|
||||
</view>
|
||||
|
||||
<view class="config-view">
|
||||
<view class="form-content">
|
||||
<view class="form-row">
|
||||
<view class="form-label">开启电子面单:</view>
|
||||
<view class="form-input-box">
|
||||
<radio-group class="form-radio-group" @change="onEnableChange">
|
||||
<label class="radio-label">
|
||||
<radio value="1" :checked="form.enable == '1'" color="#2d8cf0" />
|
||||
<text class="radio-text">开启</text>
|
||||
</label>
|
||||
<label class="radio-label">
|
||||
<radio value="0" :checked="form.enable == '0'" color="#2d8cf0" />
|
||||
<text class="radio-text">关闭</text>
|
||||
</label>
|
||||
</radio-group>
|
||||
<text class="form-tips">电子面单是否开启</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-row">
|
||||
<view class="form-label">电子面单类型:</view>
|
||||
<view class="form-input-box">
|
||||
<radio-group class="form-radio-group">
|
||||
<label class="radio-label">
|
||||
<radio value="onepass" checked color="#2d8cf0" />
|
||||
<text class="radio-text">一号通</text>
|
||||
</label>
|
||||
</radio-group>
|
||||
<text class="form-tips">电子面单类型</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-actions">
|
||||
<button class="submit-btn" type="primary" @click="handleSubmit">提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
import { ref, reactive } from 'vue'
|
||||
|
||||
const form = reactive({
|
||||
enable: '1'
|
||||
})
|
||||
|
||||
const onEnableChange = (e: any) => {
|
||||
form.enable = e.detail.value
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
uni.showToast({ title: '提交成功' })
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.admin-page-container { padding: 20px; background-color: #f5f7f9; min-height: 100vh; }
|
||||
.page-card { background-color: #fff; border-radius: 4px; padding: 20px; box-shadow: 0 1px 4px rgba(0,21,41,0.08); }
|
||||
.page-header { margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
|
||||
.page-title { font-size: 16px; font-weight: bold; color: #303133; }
|
||||
.placeholder-text { font-size: 14px; color: #909399; }
|
||||
.admin-page-container {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f7f9;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.bc-item { font-size: 14px; color: #999; }
|
||||
.bc-item.active { color: #333; }
|
||||
.bc-sep { margin: 0 8px; color: #ccc; }
|
||||
|
||||
.content-card {
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.tabs-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
padding: 15px 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
border-bottom: 2px solid #2d8cf0;
|
||||
}
|
||||
|
||||
.tab-item.active .tab-text {
|
||||
color: #2d8cf0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.config-view {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.form-content {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-bottom: 30px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
width: 100px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
text-align: right;
|
||||
margin-right: 20px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.form-input-box {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form-radio-group {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 36px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.radio-label {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
}
|
||||
|
||||
.radio-text {
|
||||
font-size: 14px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.form-tips {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #bfbfbf;
|
||||
margin-top: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
margin-top: 40px;
|
||||
padding-left: 120px;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width: 80px;
|
||||
height: 36px;
|
||||
background-color: #2d8cf0;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user