调整样式

This commit is contained in:
chenhaizhao 2026-01-09 17:22:40 +08:00
parent bcbb563b55
commit 8631652d96
6 changed files with 92 additions and 79 deletions

View File

@ -12,6 +12,7 @@
</view> </view>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "/static/css/variables.scss";
.card { .card {
margin: 0 25rpx 25rpx; margin: 0 25rpx 25rpx;
font-size: 24rpx; font-size: 24rpx;
@ -21,7 +22,7 @@
color: #656565; color: #656565;
.header { .header {
padding: 20rpx; padding: 20rpx;
background-color: #4d80f0; background-color: $blue;
border-radius: 15rpx 15rpx 0 0; border-radius: 15rpx 15rpx 0 0;
color: #fff; color: #fff;
} }

View File

@ -2,7 +2,6 @@ import App from './App'
import { createSSRApp } from 'vue' import { createSSRApp } from 'vue'
import pinia from './store' import pinia from './store'
import myComponents from "@/components" import myComponents from "@/components"
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
app.use(myComponents) app.use(myComponents)

View File

@ -18,6 +18,9 @@ let handleClose = () => {
showModel.value = false; showModel.value = false;
}; };
const showLogin = () => { const showLogin = () => {
if (userStore.isLogin) {
return
}
showModel.value = true; showModel.value = true;
} }
// //
@ -44,6 +47,7 @@ const clickMenu = (value) => {
break; break;
default: default:
toast.warning('功能开发中')
break; break;
} }
} }

View File

@ -1,13 +1,13 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
const columns = ref(["患者1", "患者2", "患者3", "患者4"]) const columns = ref(["患者1", "患者2", "患者3", "患者4"])
const options = ref(["选项1", "选项2", "选项3", "选项4"])
const value = ref("患者1") const value = ref("患者1")
const date = ref(Date.now()) const date = ref(Date.now())
const formatValue = ref("") const formatValue = ref("")
const btnsValue = ref([1]) const btnsValue = ref([])
const handleDate = ({ value }) => { const handleDate = ({ value }) => {
console.log(66, value); console.log(66, value);
formatValue.value = new Date(value).toJSON().split("T")[0] formatValue.value = new Date(value).toJSON().split("T")[0]
} }
</script> </script>
@ -57,12 +57,6 @@ const handleDate = ({ value }) => {
</view> </view>
</view> </view>
</view> </view>
<view>
<view>
院内执行
<wd-checkbox :modelValue="true" shape="button">加急</wd-checkbox>
</view>
</view>
<view> <view>
<view class="title">分流调节计划</view> <view class="title">分流调节计划</view>
<view class="item"> <view class="item">
@ -79,58 +73,59 @@ const handleDate = ({ value }) => {
<wd-picker v-model="value" :columns="columns" confirm-button-text="确定" /> <wd-picker v-model="value" :columns="columns" confirm-button-text="确定" />
</view> </view>
</view> </view>
<view class="cause">
<view> <view>
<view>调压原因</view> <view>调压原因</view>
<view> <view>
<wd-drop-menu direction="up"> <wd-drop-menu direction="up">
<wd-drop-menu-item title="筛选" ref="dropMenu"> <wd-drop-menu-item title="筛选" ref="dropMenu">
<wd-checkbox-group v-model="btnsValue" cell shape="button"> <wd-checkbox-group v-model="btnsValue" cell shape="button">
<wd-checkbox v-for="value in 5" :key="value" :modelValue="value" shape="button">选项{{ value }}</wd-checkbox> <wd-checkbox v-for="item in options" :key="item" :modelValue="item" shape="button">{{ item }}</wd-checkbox>
</wd-checkbox-group> </wd-checkbox-group>
</wd-drop-menu-item> </wd-drop-menu-item>
</wd-drop-menu> </wd-drop-menu>
</view> </view>
</view> </view>
<view class="tag">
<wd-tag type="primary" round v-for="tag in btnsValue" :key="tag">{{ tag }}</wd-tag>
</view>
</view>
<view> <view>
<view>是否加急</view> <view>是否加急</view>
<view> <view>
<wd-checkbox :modelValue="true" shape="button">加急</wd-checkbox> <wd-checkbox :modelValue="true" shape="button">加急</wd-checkbox>
</view> </view>
</view> </view>
</view>
</view>
<view> <view>
<view>院内执行</view>
<view>
<wd-checkbox :modelValue="true" shape="button">执行</wd-checkbox>
</view>
</view>
</view>
</view>
<view class="file">
<view>任务文件</view> <view>任务文件</view>
<view> <view>
<wd-upload image-mode="aspectFill" :action="''"></wd-upload> <wd-upload image-mode="aspectFill" :action="''"></wd-upload>
</view> </view>
</view> </view>
<wd-button>保存</wd-button> <view class="save">
<wd-button :block="true">保存</wd-button>
</view>
</view> </view>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
// .box { @import "/static/css/variables.scss";
// min-height: 95vh;
// padding: 20rpx;
// background-color: #fff;
// }
.title { .title {
display: flex; display: flex;
font-weight: bold; font-weight: bold;
font-size: 30rpx; padding: 15rpx 20rpx;
font-size: 25rpx;
align-items: center; align-items: center;
margin: 20rpx 0; background-color: $blue;
color: #fff;
&::before {
content: "";
width: 8rpx;
height: 35rpx;
background-color: aqua;
border-radius: 5rpx;
margin: 0 15rpx;
} }
}
.item { .item {
>view { >view {
display: flex; display: flex;
@ -140,5 +135,30 @@ const handleDate = ({ value }) => {
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
font-size: 28rpx; font-size: 28rpx;
} }
.cause {
display: block;
transition: all 0.3s ease;
>view {
display: flex;
align-items: center;
justify-content: space-between;
}
.tag {
gap: 15rpx;
justify-content: flex-start;
}
}
}
.file {
padding: 25rpx 25rpx 0;
font-size: 28rpx;
>view {
margin-bottom: 15rpx;
}
}
.save {
width: 80%;
margin: 0 auto;
padding-bottom: 20rpx;
} }
</style> </style>

View File

@ -37,38 +37,42 @@ const reachBottom = () => {
</view> </view>
<wd-gap height="190rpx"></wd-gap> <wd-gap height="190rpx"></wd-gap>
<view class="patient_list"> <view class="patient_list">
<wd-card custom-class="item" v-for="item in num" :key="item"> <Card class="item" v-for="item in num" :key="item">
<template #header>
<view class="top"> <view class="top">
<text>住院号000000</text> <text>住院号000000</text>
<text>2020-12-22</text> <text>2020-12-22</text>
<text>手术次数{{ item }}{{ num }}</text> <text>手术次数{{ item }}{{ num }}</text>
</view> </view>
</template>
<view class="content"> <view class="content">
<view>患者姓名xxx</view> <view>患者姓名xxx</view>
<view>手机号码11111111111</view> <view>手机号码11111111111</view>
<view>植入物品牌索菲萨</view> <view>植入物品牌索菲萨</view>
<view>原发病小脑但脂瘤</view> <view>原发病小脑但脂瘤</view>
<view class="red">当前压力110</view> <view class="bright">当前压力110</view>
<view>初始压力110</view> <view>初始压力110</view>
<view>脑积水类型交通性高压性</view> <view>脑积水类型交通性高压性</view>
</view> </view>
<template #footer>
<view class="btns"> <view class="btns">
<button size="mini" plain="true">医生共享</button> <button size="mini" plain="true">医生共享</button>
<button size="mini" plain="true">调压趋势</button> <button size="mini" plain="true">调压趋势</button>
<button size="mini" plain="true">手术详情</button> <button size="mini" plain="true">手术详情</button>
<button size="mini" plain="true">一键调压</button> <button size="mini" plain="true">一键调压</button>
</view> </view>
</template>
</wd-card> </Card>
</view> </view>
</view> </view>
<Loadmore :number="num" :total="20" @reachBottom="reachBottom"></Loadmore> <LoadMore :number="num" :total="20" @reachBottom="reachBottom"></LoadMore>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "/static/css/variables.scss";
.fab { .fab {
view { view {
background: #4d80f0; background: $blue;
width: 112rpx; width: 112rpx;
height: 112rpx; height: 112rpx;
border-radius: 50%; border-radius: 50%;
@ -95,42 +99,32 @@ const reachBottom = () => {
font-size: 28rpx; font-size: 28rpx;
color: #6b7280; color: #6b7280;
padding: 10rpx; padding: 10rpx;
box-shadow: 0 -10px 4px #fff;
text { text {
padding: 10rpx 16rpx; padding: 10rpx 16rpx;
border-radius: 5rpx; border-radius: 10rpx;
} }
} }
.active { .active {
background: #3b82f6; background: $blue;
color: #ffffff; color: #ffffff;
border: 1rpx solid #3b82f6; border: 1rpx solid $blue;
} }
} }
.patient_list { .patient_list {
padding-top: 20rpx; padding-top: 20rpx;
:deep(.item) { .item {
padding: 0;
font-size: 24rpx;
overflow: hidden;
.top { .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #d4edda;
padding: 20rpx;
color: #155724;
} }
.content { .content {
display: flex; display: flex;
padding: 20rpx;
flex-wrap: wrap; flex-wrap: wrap;
font-size: 28rpx;
color: #333;
view { view {
width: 50%; width: 50%;
margin-bottom: 10rpx; margin-bottom: 10rpx;
@ -140,20 +134,18 @@ const reachBottom = () => {
} }
} }
.red { .bright {
font-weight: bold; font-weight: bold;
color: rgb(255, 21, 21); color: $blue;
} }
} }
.btns { .btns {
display: flex; display: flex;
// gap: 15rpx;
padding: 20rpx;
justify-content: space-between; justify-content: space-between;
button { button {
padding: 0 20rpx; padding: 0 20rpx;
margin: 0;
} }
text { text {
@ -164,10 +156,6 @@ const reachBottom = () => {
text-align: center; text-align: center;
} }
.add {
background-color: #007bff;
color: #ffffff;
}
} }
} }
} }

View File

@ -0,0 +1 @@
$blue: #4d80f0;