调整ui样式

This commit is contained in:
chenhaizhao 2026-01-09 14:53:42 +08:00
parent 650c883073
commit bcbb563b55
9 changed files with 223 additions and 83 deletions

View File

@ -1,19 +1,19 @@
<template> <template>
<view class="card"> <view class="card">
<view class="header"> <view v-if="$slots.header" class="header">
<slot name="header"></slot> <slot name="header"></slot>
</view> </view>
<view class="default"> <view class="default">
<slot></slot> <slot></slot>
</view> </view>
<view class="footer"> <view v-if="$slots.footer" class="footer">
<slot name="footer"></slot> <slot name="footer"></slot>
</view> </view>
</view> </view>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.card { .card {
margin: 0 20rpx 25rpx; margin: 0 25rpx 25rpx;
font-size: 24rpx; font-size: 24rpx;
overflow: hidden; overflow: hidden;
border-radius: 15rpx; border-radius: 15rpx;

View File

@ -7,6 +7,12 @@
}, },
"pages": [ "pages": [
{
"path": "pages/patient/patientAddTask/patientAddTask",
"style": {
"navigationBarTitleText": "新增任务"
}
},
{ {
"path": "pages/brand/brandDetail/brandDetail", "path": "pages/brand/brandDetail/brandDetail",
"style": { "style": {

View File

@ -5,10 +5,10 @@
<wd-search placeholder="请输入搜索内容" cancel-txt="搜索"/> <wd-search placeholder="请输入搜索内容" cancel-txt="搜索"/>
</view> </view>
<wd-gap height="100rpx"></wd-gap> <wd-gap height="100rpx"></wd-gap>
<wd-card v-for="item in 5" :key="item"> <Card v-for="item in 5" :key="item">
<template #title> <template #header>
<view class="title"> <view class="title">
<wd-img width="130rpx" height="130rpx" src="/static/logo.png"></wd-img> <wd-avatar src="/static/logo.png" />
<view> <view>
<view>产品型号</view> <view>产品型号</view>
<view>是否抗磁</view> <view>是否抗磁</view>
@ -19,7 +19,7 @@
<view>型号描述</view> <view>型号描述</view>
<view class="text">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</view> <view class="text">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</view>
</view> </view>
</wd-card> </Card>
</view> </view>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -7,15 +7,16 @@
</script> </script>
<template> <template>
<view class="main"> <view class="main">
<view @tap="clickDetail" v-for="item in 5" :key="item"> <Card v-for="item in 5" :key="item" @tap="clickDetail">
<wd-card title="分流厂家名称"> <template #header>
<view>分流厂家名称</view>
</template>
<view class="content"> <view class="content">
描述 描述
</view> </view>
</wd-card> </Card>
</view> </view>
</view> <LoadMore></LoadMore>
<Loadmore></Loadmore>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.content { .content {

View File

@ -106,9 +106,12 @@ const logout = async() => {
<view class="bottom shadow"> <view class="bottom shadow">
<view></view> <view></view>
<view></view> <view></view>
<view>
<wd-icon name="user" size="40rpx" />
<view>我的</view> <view>我的</view>
</view> </view>
</view> </view>
</view>
<!-- 登录弹出框 --> <!-- 登录弹出框 -->
<wd-popup v-model="showModel" :close-on-click-modal="false" position="bottom" custom-style="border-radius: 20rpx 20rpx 0 0;"> <wd-popup v-model="showModel" :close-on-click-modal="false" position="bottom" custom-style="border-radius: 20rpx 20rpx 0 0;">
<view class="login_model"> <view class="login_model">
@ -128,7 +131,7 @@ const logout = async() => {
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
border: 1rpx solid #e8f2ff; border: 1rpx solid #e8f2ff;
background-color: #fff; background-color: #fff;
border-radius: 12rpx; border-radius: 14rpx;
} }
.header { .header {
display: flex; display: flex;
@ -215,16 +218,12 @@ const logout = async() => {
bottom: 2rpx; bottom: 2rpx;
left: 0; left: 0;
display: flex; display: flex;
padding: 15rpx;
width: 100%; width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center; text-align: center;
font-size: 28rpx; font-size: 23rpx;
view { >view {
width: 33%; width: 33%;
border-right: 1px solid #dddddd;
&:last-child { border: none; }
} }
} }
} }

View File

@ -0,0 +1,144 @@
<script setup>
import { ref } from 'vue';
const columns = ref(["患者1", "患者2", "患者3", "患者4"])
const value = ref("患者1")
const date = ref(Date.now())
const formatValue = ref("")
const btnsValue = ref([1])
const handleDate = ({ value }) => {
console.log(66, value);
formatValue.value = new Date(value).toJSON().split("T")[0]
}
</script>
<template>
<view class="box">
<view>
<view class="title">选择患者</view>
<view>
<wd-picker v-model="value" :columns="columns" title="选择患者" label="请选择患者" confirm-button-text="确定" />
</view>
</view>
<view>
<view class="title">患者信息</view>
<view class="item">
<view>
<view>住院号</view>
<view>00000</view>
</view>
<view>
<view>姓名</view>
<view>00000</view>
</view>
<view>
<view>手术名称</view>
<view>00000</view>
</view>
<view>
<view>手术日期</view>
<view>00000</view>
</view>
</view>
</view>
<view>
<view class="title">植入物信息</view>
<view class="item">
<view>
<view>植入物名称</view>
<view>11111</view>
</view>
<view>
<view>植入物型号</view>
<view>11111</view>
</view>
<view>
<view>植入物时间</view>
<view>11111</view>
</view>
</view>
</view>
<view>
<view>
院内执行
<wd-checkbox :modelValue="true" shape="button">加急</wd-checkbox>
</view>
</view>
<view>
<view class="title">分流调节计划</view>
<view class="item">
<view>
<view>计划调节时间</view>
<wd-calendar v-model="date" @confirm="handleDate">
<view v-if="formatValue">{{ formatValue }}</view>
<wd-button v-else size="small">选择日期</wd-button>
</wd-calendar>
</view>
<view>
<view>目标压力</view>
<view>
<wd-picker v-model="value" :columns="columns" confirm-button-text="确定" />
</view>
</view>
<view>
<view>调压原因</view>
<view>
<wd-drop-menu direction="up">
<wd-drop-menu-item title="筛选" ref="dropMenu">
<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-group>
</wd-drop-menu-item>
</wd-drop-menu>
</view>
</view>
<view>
<view>是否加急</view>
<view>
<wd-checkbox :modelValue="true" shape="button">加急</wd-checkbox>
</view>
</view>
</view>
</view>
<view>
<view>任务文件</view>
<view>
<wd-upload image-mode="aspectFill" :action="''"></wd-upload>
</view>
</view>
<wd-button>保存</wd-button>
</view>
</template>
<style lang="scss" scoped>
// .box {
// min-height: 95vh;
// padding: 20rpx;
// background-color: #fff;
// }
.title {
display: flex;
font-weight: bold;
font-size: 30rpx;
align-items: center;
margin: 20rpx 0;
&::before {
content: "";
width: 8rpx;
height: 35rpx;
background-color: aqua;
border-radius: 5rpx;
margin: 0 15rpx;
}
}
.item {
>view {
display: flex;
align-items: center;
justify-content: space-between;
padding: 25rpx;
border-bottom: 1px solid #e0e0e0;
font-size: 28rpx;
}
}
</style>

View File

@ -1,49 +1,42 @@
<script setup></script> <script setup></script>
<template> <template>
<view class="box main"> <view class="box main">
<wd-card> <Card>
<view class="head"> <view class="head">
<image src="/static//logo.png"></image> <wd-avatar src="/static/logo.png" />
<view class="info"> <view class="info">
<view> <view class="msg">
<text class="adorn">陈程城</text> <text class="adorn">陈程城</text>
<text></text> <text></text>
<text>25</text> <text>25</text>
</view> </view>
<view>住院号/ID123456</view> <view class="msg">住院号/ID123456</view>
</view> </view>
</view> </view>
</wd-card> </Card>
<wd-card> <Card>
<template #title> <template #header>
<view class="title">病情描述</view> <view>病情描述</view>
</template> </template>
<view class="content"> <view class="content">
<view>xxxxx</view> <view class="title">xxxxx</view>
<view>提示1.病人的状态描述是否出现头疼呕吐嗜睡等以上症状.2.病人行为描述是否出现走路不稳大小便失禁等方面概述</view> <view>提示1.病人的状态描述是否出现头疼呕吐嗜睡等以上症状.2.病人行为描述是否出现走路不稳大小便失禁等方面概述</view>
</view> </view>
<template #footer> <template #footer>
</template> </template>
</wd-card> </Card>
</view> </view>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.head { .head {
display: flex; display: flex;
padding: 20rpx;
gap: 20rpx; gap: 20rpx;
align-items: center; align-items: center;
color: #000; color: #000;
image {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
border: 1rpx solid #d4d4d4;
}
.info { .info {
font-size: 24rpx; font-size: 24rpx;
>view { .msg {
display: flex; display: flex;
gap: 30rpx; gap: 30rpx;
align-items: flex-end; align-items: flex-end;
@ -57,9 +50,9 @@
.content { .content {
color: #333; color: #333;
padding-bottom: 20rpx; padding-bottom: 20rpx;
:first-child { .title {
padding: 15rpx 0; font-size: 35rpx;
border-top: 1rpx solid #d4d4d4; margin-bottom: 15rpx;
} }
} }

View File

@ -8,11 +8,9 @@ const clickDetail = () => {
<template> <template>
<!-- 病人反馈 --> <!-- 病人反馈 -->
<view class="fb_list main"> <view class="fb_list main">
<wd-card custom-class="item" v-for="item in 9" :key="item"> <Card custom-class="item" v-for="item in 9" :key="item" @tap="clickDetail">
<view class="content" @tap="clickDetail"> <template #header>
<view class="title"> <view class="title">
<!-- <view class="left">
</view> -->
<view> <view>
姓名xxx 姓名xxx
</view> </view>
@ -21,16 +19,18 @@ const clickDetail = () => {
</view> </view>
<view>2020-10-20</view> <view>2020-10-20</view>
</view> </view>
</template>
<view class="text"> <view class="text">
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
</view> </view>
<view class="content">
</view> </view>
</wd-card> </Card>
</view> </view>
<Loadmore></Loadmore> <LoadMore></LoadMore>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.fb_list { .fb_list {
@ -39,23 +39,21 @@ const clickDetail = () => {
:deep(.item) { :deep(.item) {
padding: 0; padding: 0;
} }
.content {
padding-bottom: 25rpx;
.title { .title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 20rpx;
color: #333;
font-size: 26rpx;
align-items: flex-end; align-items: flex-end;
:first-child { :first-child {
font-size: 30rpx; font-size: 30rpx;
} }
} }
.content {
padding-bottom: 25rpx;
}
.text { .text {
padding: 0 20rpx; height: 115rpx;
height: 123rpx; font-size: 28rpx;
line-height: 40rpx; line-height: 40rpx;
letter-spacing: 3rpx; letter-spacing: 3rpx;
word-break: break-all; word-break: break-all;
@ -66,5 +64,4 @@ const clickDetail = () => {
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
} }
} }
}
</style> </style>