Initial commit of akmon project
This commit is contained in:
71
pages/ec/reports/quick-add.uvue
Normal file
71
pages/ec/reports/quick-add.uvue
Normal file
@@ -0,0 +1,71 @@
|
||||
<!-- 养老管理系统 - 快速记录页面 -->
|
||||
<template>
|
||||
<view class="quick-add-page">
|
||||
<view class="header">
|
||||
<text class="title">快速记录</text>
|
||||
</view>
|
||||
<form @submit="handleSubmit">
|
||||
<view class="form-group">
|
||||
<text class="label">记录内容</text>
|
||||
<textarea v-model="content" class="input" placeholder="请输入记录内容" />
|
||||
</view>
|
||||
<button class="submit-btn" form-type="submit">提交</button>
|
||||
</form>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
import { ref } from 'vue'
|
||||
const content = ref('')
|
||||
|
||||
const handleSubmit = (e: any) => {
|
||||
uni.showToast({
|
||||
title: '提交成功',
|
||||
icon: 'success'
|
||||
})
|
||||
content.value = ''
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.quick-add-page {
|
||||
min-height: 100vh;
|
||||
background: #f5f5f5;
|
||||
padding: 20px;
|
||||
}
|
||||
.header {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.title {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.label {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
margin-bottom: 8px;
|
||||
display: block;
|
||||
}
|
||||
.input {
|
||||
width: 100%;
|
||||
min-height: 80px;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 6px;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
}
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
background: #1890ff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 12px 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user