补充页面内容
This commit is contained in:
@@ -1,23 +1,225 @@
|
||||
<template>
|
||||
<view class="admin-page-container">
|
||||
<view class="page-card">
|
||||
<view class="page-header">
|
||||
<text class="page-title">协议管理</text>
|
||||
</view>
|
||||
<view class="page-content">
|
||||
<text class="placeholder-text">协议管理 页面开发中...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view class="admin-page agreement-settings">
|
||||
<view class="admin-sections">
|
||||
<view class="admin-card">
|
||||
<!-- 协议类型标签页 -->
|
||||
<scroll-view class="tabs-scroll" scroll-x="true" show-scrollbar="false">
|
||||
<view class="tabs-bar">
|
||||
<view
|
||||
v-for="(tab, index) in agreementTabs"
|
||||
:key="index"
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === index }"
|
||||
@click="currentTab = index"
|
||||
>
|
||||
<text class="tab-text">{{ tab }}</text>
|
||||
<view class="tab-line" v-if="currentTab === index"></view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view class="editor-layout">
|
||||
<!-- 左侧编辑器区域 -->
|
||||
<view class="editor-main">
|
||||
<view class="editor-toolbar">
|
||||
<!-- 模拟富文本工具栏 -->
|
||||
<view class="toolbar-icon">H</view>
|
||||
<view class="toolbar-icon">B</view>
|
||||
<view class="toolbar-icon">I</view>
|
||||
<view class="toolbar-icon">U</view>
|
||||
<view class="toolbar-icon">S</view>
|
||||
<view class="toolbar-icon">🔗</view>
|
||||
<view class="toolbar-icon">🖼️</view>
|
||||
</view>
|
||||
<textarea
|
||||
class="rich-textarea"
|
||||
v-model="agreementContent"
|
||||
placeholder="请输入协议内容..."
|
||||
></textarea>
|
||||
<view class="editor-footer">
|
||||
<button class="btn btn-primary" @click="handleSave">保存</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 右侧手机预览 -->
|
||||
<view class="preview-area">
|
||||
<view class="phone-frame">
|
||||
<view class="phone-header">
|
||||
<text class="phone-title">{{ agreementTabs[currentTab] }}</text>
|
||||
</view>
|
||||
<scroll-view class="phone-content" scroll-y="true">
|
||||
<rich-text :nodes="agreementContent"></rich-text>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<text class="preview-tip">协议预览</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view></template>
|
||||
<script setup lang="uts">
|
||||
import { ref, watch } from 'vue'
|
||||
|
||||
const currentTab = ref(0)
|
||||
const agreementTabs = [
|
||||
'付费会员协议', '代理商协议', '隐私协议', '用户协议', '注销协议', '积分协议', '分销协议'
|
||||
]
|
||||
|
||||
const agreementContent = ref(`
|
||||
<h2 style="text-align: center;">第1条 相关定义</h2>
|
||||
<p>1.1 SVIP会员:SVIP会员是为商城客户打造的高级会员服务,通过提供高品质的客户服务,让网购变的更加方便,省钱和放心。</p>
|
||||
<p>1.5 实名信息:用户开通SVIP11会员需保证商城用户信息真实,同一自然人如有多个商城账号,可同时开通对应的多个会员。</p>
|
||||
<h2 style="text-align: center;">第2条 本站服务条款的确认和接纳</h2>
|
||||
<p>2.1 本站所提供的SVIP会员试用期及正式期活动的所有权和运作权归本公司所有。</p>
|
||||
<p>2.2 用户支付会员成功,即视为用户确认自己同意接受SVIP会员相关服务的条款,且同意按本协议内容履行,如产生用户相关责任的,同意承担相应法律责任。</p>
|
||||
`)
|
||||
|
||||
const handleSave = () => {
|
||||
uni.showToast({ title: '保存成功', icon: 'success' })
|
||||
}
|
||||
</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; }
|
||||
.agreement-settings {
|
||||
padding: 20px;
|
||||
background-color: #f5f7f9;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
background-color: #fff;
|
||||
padding: 24px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.tabs-scroll {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.tabs-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
padding: 12px 25px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
color: #1890ff;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.tab-line {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background-color: #1890ff;
|
||||
}
|
||||
|
||||
.editor-layout {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.editor-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #dcdfe6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.editor-toolbar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
background-color: #f8f8f9;
|
||||
border-bottom: 1px solid #dcdfe6;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.toolbar-icon {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rich-textarea {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
padding: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.editor-footer {
|
||||
padding: 20px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.preview-area {
|
||||
width: 320px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.phone-frame {
|
||||
width: 300px;
|
||||
height: 600px;
|
||||
border: 12px solid #333;
|
||||
border-radius: 36px;
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.phone-header {
|
||||
height: 44px;
|
||||
background-color: #f8f8f8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.phone-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.phone-content {
|
||||
flex: 1;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.preview-tip {
|
||||
margin-top: 15px;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #1890ff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 0 30px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,23 +1,238 @@
|
||||
<template>
|
||||
<view class="admin-page-container">
|
||||
<view class="page-card">
|
||||
<view class="page-header">
|
||||
<text class="page-title">消息管理</text>
|
||||
</view>
|
||||
<view class="page-content">
|
||||
<text class="placeholder-text">消息管理 页面开发中...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view class="admin-page message-management">
|
||||
<view class="admin-sections">
|
||||
<view class="admin-card">
|
||||
<!-- 标签页 -->
|
||||
<view class="tabs-container">
|
||||
<view class="tabs-bar">
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === 0 }"
|
||||
@click="currentTab = 0"
|
||||
>
|
||||
<text class="tab-text">会员通知</text>
|
||||
<view class="tab-line" v-if="currentTab === 0"></view>
|
||||
</view>
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === 1 }"
|
||||
@click="currentTab = 1"
|
||||
>
|
||||
<text class="tab-text">平台通知</text>
|
||||
<view class="tab-line" v-if="currentTab === 1"></view>
|
||||
</view>
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === 2 }"
|
||||
@click="currentTab = 2"
|
||||
>
|
||||
<text class="tab-text">自定义通知</text>
|
||||
<view class="tab-line" v-if="currentTab === 2"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 顶部操作 -->
|
||||
<view class="top-actions">
|
||||
<button class="btn btn-primary" @click="syncMiniProgram">同步小程序订阅消息</button>
|
||||
<button class="btn btn-primary ml-10" @click="syncWechat">同步微信模板消息</button>
|
||||
</view>
|
||||
|
||||
<!-- 提示信息 -->
|
||||
<view class="alert-info">
|
||||
<text class="alert-title">小程序订阅消息</text>
|
||||
<text class="alert-desc">登录微信小程序后台,基本设置,服务类目增加《生活服务 > 百货/超市/便利店》(否则同步小程序订阅消息会报错)</text>
|
||||
<text class="alert-desc">同步小程序订阅消息,是在小程序后台未添加订阅消息模板的前提下使用的,会新增一个模板消息并把信息同步过来,并非本项目数据库。</text>
|
||||
</view>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<view class="table-container">
|
||||
<view class="table-header">
|
||||
<view class="table-cell" style="flex: 0 0 60px;">ID</view>
|
||||
<view class="table-cell" style="flex: 2;">通知类型</view>
|
||||
<view class="table-cell" style="flex: 3;">通知场景说明</view>
|
||||
<view class="table-cell" style="flex: 1;">站内信</view>
|
||||
<view class="table-cell" style="flex: 1.5;">公众号模板</view>
|
||||
<view class="table-cell" style="flex: 1;">发送短信</view>
|
||||
<view class="table-cell" style="flex: 1.5;">小程序订阅</view>
|
||||
<view class="table-cell action-cell" style="flex: 1;">操作</view>
|
||||
</view>
|
||||
<view class="table-body">
|
||||
<view class="table-row" v-for="(item, index) in messageList" :key="index">
|
||||
<view class="table-cell" style="flex: 0 0 60px;">{{ item.id }}</view>
|
||||
<view class="table-cell" style="flex: 2;">{{ item.type }}</view>
|
||||
<view class="table-cell" style="flex: 3;">{{ item.desc }}</view>
|
||||
<view class="table-cell" style="flex: 1;">
|
||||
<switch color="#1890ff" :checked="item.is_msg" style="transform: scale(0.7);" />
|
||||
</view>
|
||||
<view class="table-cell" style="flex: 1.5;">
|
||||
<switch color="#1890ff" :checked="item.is_wechat" style="transform: scale(0.7);" />
|
||||
</view>
|
||||
<view class="table-cell" style="flex: 1;">
|
||||
<switch color="#1890ff" :checked="item.is_sms" style="transform: scale(0.7);" />
|
||||
</view>
|
||||
<view class="table-cell" style="flex: 1.5;">
|
||||
<switch color="#1890ff" :checked="item.is_mini" style="transform: scale(0.7);" />
|
||||
</view>
|
||||
<view class="table-cell action-cell" style="flex: 1;">
|
||||
<text class="action-link" @click="handleSet(item)">设置</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view></template>
|
||||
<script setup lang="uts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const currentTab = ref(0)
|
||||
const messageList = ref([
|
||||
{ id: 1, type: '短信验证码', desc: '短信验证码', is_msg: false, is_wechat: false, is_sms: true, is_mini: false },
|
||||
{ id: 2, type: '绑定推广关系消息', desc: '绑定推广关系消息', is_msg: true, is_wechat: false, is_sms: false, is_mini: false },
|
||||
{ id: 3, type: '支付成功提醒消息', desc: '支付成功提醒消息', is_msg: true, is_wechat: true, is_sms: true, is_mini: true },
|
||||
{ id: 4, type: '发货提醒消息', desc: '发货提醒消息', is_msg: true, is_wechat: true, is_sms: true, is_mini: true },
|
||||
{ id: 5, type: '送货提醒消息', desc: '送货提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true },
|
||||
{ id: 6, type: '确认收货提醒消息', desc: '确认收货提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true },
|
||||
{ id: 7, type: '退款成功提醒消息', desc: '退款成功提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true },
|
||||
{ id: 8, type: '退款失败提醒消息', desc: '退款失败提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true },
|
||||
{ id: 9, type: '改价提醒消息', desc: '改价提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true },
|
||||
{ id: 10, type: '未付款提醒消息', desc: '未付款提醒消息', is_msg: true, is_wechat: true, is_sms: false, is_mini: true }
|
||||
])
|
||||
|
||||
function syncMiniProgram() {
|
||||
uni.showToast({ title: '同步小程序订阅消息', icon: 'none' })
|
||||
}
|
||||
|
||||
function syncWechat() {
|
||||
uni.showToast({ title: '同步微信模板消息', icon: 'none' })
|
||||
}
|
||||
|
||||
function handleSet(item: any) {
|
||||
uni.showToast({ title: '设置: ' + item.type, icon: 'none' })
|
||||
}
|
||||
</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; }
|
||||
.message-management {
|
||||
padding: 20px;
|
||||
background-color: #f5f7f9;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
background-color: #fff;
|
||||
padding: 24px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.tabs-container {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.tabs-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
padding: 12px 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
color: #1890ff;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.tab-line {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background-color: #1890ff;
|
||||
}
|
||||
|
||||
.top-actions {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
font-size: 14px;
|
||||
padding: 0 15px;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #1890ff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background-color: #fff7e6;
|
||||
border: 1px solid #ffd591;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.alert-title {
|
||||
color: #fa8c16;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.alert-desc {
|
||||
color: #666;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
border: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
background-color: #f8f8f9;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.table-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 12px 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.table-cell {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.action-link {
|
||||
color: #1890ff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ml-10 {
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,23 +1,256 @@
|
||||
<template>
|
||||
<view class="admin-page-container">
|
||||
<view class="page-card">
|
||||
<view class="page-header">
|
||||
<text class="page-title">客服设置</text>
|
||||
</view>
|
||||
<view class="page-content">
|
||||
<text class="placeholder-text">客服设置 页面开发中...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view class="admin-page ticket-config">
|
||||
<view class="admin-sections">
|
||||
<view class="admin-card">
|
||||
<!-- 搜索和添加 -->
|
||||
<view class="header-tools">
|
||||
<view class="search-form">
|
||||
<view class="form-item">
|
||||
<text class="label">打印机名称:</text>
|
||||
<input class="search-input" v-model="searchQuery.name" placeholder="请输入打印机名称" />
|
||||
</view>
|
||||
<view class="form-item ml-20">
|
||||
<text class="label">平台选择:</text>
|
||||
<picker :range="platforms" @change="onPlatformChange">
|
||||
<view class="picker-view">{{ platforms[selectedPlatform] }}</view>
|
||||
</picker>
|
||||
</view>
|
||||
<button class="btn-search ml-20" @click="handleSearch">查询</button>
|
||||
</view>
|
||||
<button class="btn-primary" @click="handleAdd">添加打印机</button>
|
||||
</view>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<view class="table-container">
|
||||
<view class="table-header">
|
||||
<view class="table-cell" style="flex: 0 0 60px;">ID</view>
|
||||
<view class="table-cell" style="flex: 2;">打印机名称</view>
|
||||
<view class="table-cell" style="flex: 1.5;">平台</view>
|
||||
<view class="table-cell" style="flex: 1.5;">应用账号</view>
|
||||
<view class="table-cell" style="flex: 1;">打印联数</view>
|
||||
<view class="table-cell" style="flex: 2;">创建时间</view>
|
||||
<view class="table-cell" style="flex: 1;">打印开关</view>
|
||||
<view class="table-cell action-cell" style="flex: 2;">操作</view>
|
||||
</view>
|
||||
<view class="table-body">
|
||||
<view class="table-row" v-for="(item, index) in printerList" :key="index">
|
||||
<view class="table-cell" style="flex: 0 0 60px;">{{ item.id }}</view>
|
||||
<view class="table-cell" style="flex: 2;">{{ item.name }}</view>
|
||||
<view class="table-cell" style="flex: 1.5;">{{ item.platform }}</view>
|
||||
<view class="table-cell" style="flex: 1.5;">{{ item.account }}</view>
|
||||
<view class="table-cell" style="flex: 1;">{{ item.copies }}</view>
|
||||
<view class="table-cell" style="flex: 2;">{{ item.add_time }}</view>
|
||||
<view class="table-cell" style="flex: 1;">
|
||||
<switch color="#1890ff" :checked="item.status" style="transform: scale(0.7);" />
|
||||
</view>
|
||||
<view class="table-cell action-cell" style="flex: 2;">
|
||||
<text class="action-link" @click="handleDesign(item)">设计</text>
|
||||
<text class="action-link ml-10" @click="handleEdit(item)">编辑</text>
|
||||
<text class="action-link link-danger ml-10" @click="handleDelete(item)">删除</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分页 (模拟) -->
|
||||
<view class="pagination">
|
||||
<text class="total">共 1 条</text>
|
||||
<picker :range="['15条/页', '30条/页']">
|
||||
<view class="page-size">15条/页</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view></template>
|
||||
<script setup lang="uts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const searchQuery = ref({ name: '' })
|
||||
const platforms = ['全部', '易联云', '飞鹅打印机']
|
||||
const selectedPlatform = ref(0)
|
||||
|
||||
const printerList = ref([
|
||||
{ id: 1, name: '一号打印', platform: '易联云', account: '222', copies: 1, add_time: '2024-12-11 15:12:58', status: true }
|
||||
])
|
||||
|
||||
function onPlatformChange(e: any) {
|
||||
selectedPlatform.value = e.detail.value
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
uni.showToast({ title: '查询中...', icon: 'none' })
|
||||
}
|
||||
|
||||
function handleAdd() {
|
||||
uni.showToast({ title: '添加打印机', icon: 'none' })
|
||||
}
|
||||
|
||||
function handleDesign(item: any) {
|
||||
uni.showToast({ title: '打印设计: ' + item.name, icon: 'none' })
|
||||
}
|
||||
|
||||
function handleEdit(item: any) {
|
||||
uni.showToast({ title: '编辑打印机: ' + item.name, icon: 'none' })
|
||||
}
|
||||
|
||||
function handleDelete(item: any) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定删除该打印机吗?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.showToast({ title: '已删除', icon: 'success' })
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</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; }
|
||||
.ticket-config {
|
||||
padding: 20px;
|
||||
background-color: #f5f7f9;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
background-color: #fff;
|
||||
padding: 24px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.header-tools {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.search-form {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 180px;
|
||||
height: 32px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 4px;
|
||||
padding: 0 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.picker-view {
|
||||
width: 120px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 4px;
|
||||
padding: 0 12px;
|
||||
font-size: 14px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.btn-search {
|
||||
background-color: #1890ff;
|
||||
color: #fff;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
padding: 0 15px;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #1890ff;
|
||||
color: #fff;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
padding: 0 15px;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
background-color: #f8f8f9;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.table-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 12px 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.table-cell {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.action-link {
|
||||
color: #1890ff;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.link-danger {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.total {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.page-size {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
border: 1px solid #d9d9d9;
|
||||
padding: 2px 10px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.ml-20 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.ml-10 {
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user