Compare commits
3 Commits
3604336a0f
...
7aa94f2efd
| Author | SHA1 | Date | |
|---|---|---|---|
| 7aa94f2efd | |||
| 2c402aceb7 | |||
| 27691bd433 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
unpackage
|
unpackage
|
||||||
node_modules
|
node_modules
|
||||||
|
CLAUDE.md
|
||||||
2
App.vue
2
App.vue
@ -1,5 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onLaunch } from "@dcloudio/uni-app"
|
import { onLaunch } from "@dcloudio/uni-app"
|
||||||
|
|
||||||
onLaunch(() => {
|
onLaunch(() => {
|
||||||
const updateManager = wx.getUpdateManager()
|
const updateManager = wx.getUpdateManager()
|
||||||
updateManager.onCheckForUpdate(function (res) {
|
updateManager.onCheckForUpdate(function (res) {
|
||||||
@ -36,5 +37,6 @@ onLaunch(() => {
|
|||||||
.main {
|
.main {
|
||||||
min-height: 95vh;
|
min-height: 95vh;
|
||||||
background: linear-gradient(to top, #f2f8ff 0%, #e7f0fd 100%);
|
background: linear-gradient(to top, #f2f8ff 0%, #e7f0fd 100%);
|
||||||
|
padding-top: 20rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
26
components/Loadmore/Loadmore.vue
Normal file
26
components/Loadmore/Loadmore.vue
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<script setup>
|
||||||
|
import { ref } from "vue";
|
||||||
|
import { onReachBottom } from "@dcloudio/uni-app"
|
||||||
|
const emit = defineEmits(["reachBottom"])
|
||||||
|
// 当前数量,总数量
|
||||||
|
const props = defineProps({
|
||||||
|
number: Number,
|
||||||
|
total: Number
|
||||||
|
})
|
||||||
|
let loadState = ref("loading")
|
||||||
|
// 触底事件
|
||||||
|
onReachBottom(() => {
|
||||||
|
console.log(props);
|
||||||
|
if (props.number < props.total) {
|
||||||
|
loadState.value = "loading"
|
||||||
|
} else if (props.number == props.total) {
|
||||||
|
loadState.value = "finished"
|
||||||
|
}
|
||||||
|
emit("reachBottom")
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<slot></slot>
|
||||||
|
<wd-watermark content="wot-design-uni"></wd-watermark>
|
||||||
|
<wd-loadmore :state="loadState" loading-text="数据加载中"/>
|
||||||
|
</template>
|
||||||
3
main.js
3
main.js
@ -1,8 +1,11 @@
|
|||||||
import App from './App'
|
import App from './App'
|
||||||
import { createSSRApp } from 'vue'
|
import { createSSRApp } from 'vue'
|
||||||
import pinia from './store'
|
import pinia from './store'
|
||||||
|
import Loadmore from "@/components/Loadmore/Loadmore.vue"
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
|
app.component("Loadmore", Loadmore)
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
|
|||||||
12
pages.json
12
pages.json
@ -7,6 +7,18 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"pages": [
|
"pages": [
|
||||||
|
{
|
||||||
|
"path": "pages/brand/brandDetail/brandDetail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "品牌详情"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/brand/brandList/brandList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "品牌列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
46
pages/brand/brandDetail/brandDetail.vue
Normal file
46
pages/brand/brandDetail/brandDetail.vue
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<script setup></script>
|
||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<view class="search">
|
||||||
|
<wd-search placeholder="请输入搜索内容" cancel-txt="搜索"/>
|
||||||
|
</view>
|
||||||
|
<wd-gap height="100rpx"></wd-gap>
|
||||||
|
<wd-card v-for="item in 5" :key="item">
|
||||||
|
<template #title>
|
||||||
|
<view class="title">
|
||||||
|
<wd-img width="130rpx" height="130rpx" src="/static/logo.png"></wd-img>
|
||||||
|
<view>
|
||||||
|
<view>产品型号:</view>
|
||||||
|
<view>是否抗磁:</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<view class="content">
|
||||||
|
<view>型号描述</view>
|
||||||
|
<view class="text">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</view>
|
||||||
|
</view>
|
||||||
|
</wd-card>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.search {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20rpx;
|
||||||
|
line-height: 40rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding-bottom: 25rpx;
|
||||||
|
.text {
|
||||||
|
overflow: scroll;
|
||||||
|
height: 150rpx;
|
||||||
|
padding-top: 15rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
24
pages/brand/brandList/brandList.vue
Normal file
24
pages/brand/brandList/brandList.vue
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<script setup>
|
||||||
|
const clickDetail = () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:"/pages/brand/brandDetail/brandDetail"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<view @tap="clickDetail" v-for="item in 5" :key="item">
|
||||||
|
<wd-card title="分流厂家名称">
|
||||||
|
<view class="content">
|
||||||
|
描述
|
||||||
|
</view>
|
||||||
|
</wd-card>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<Loadmore></Loadmore>
|
||||||
|
</template>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.content {
|
||||||
|
height: 200rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -31,7 +31,16 @@ const clickMenu = (value) => {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:"/pages/patient/patientList/patientList"
|
url:"/pages/patient/patientList/patientList"
|
||||||
})
|
})
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
uni.navigateTo({
|
||||||
|
url:"/pages/patient/patientFbList/patientFbList"
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
uni.navigateTo({
|
||||||
|
url:"/pages/brand/brandList/brandList"
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -29,8 +29,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.box{
|
|
||||||
padding-top: 20rpx;
|
|
||||||
.head {
|
.head {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
@ -65,5 +63,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@ -1,48 +1,62 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
const clickDetail = () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/patient/patientFbDetail/patientFbDetail"
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<!-- 病人反馈 -->
|
<!-- 病人反馈 -->
|
||||||
<view class="fb_list main">
|
<view class="fb_list main">
|
||||||
<wd-card custom-class="item" v-for="item in 9" :key="item">
|
<wd-card custom-class="item" v-for="item in 9" :key="item">
|
||||||
|
<view class="content" @tap="clickDetail">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="left">
|
<!-- <view class="left">
|
||||||
|
</view> -->
|
||||||
<view>
|
<view>
|
||||||
姓名:xxx
|
姓名:xxx
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
ID:133456
|
ID:133456
|
||||||
</view>
|
</view>
|
||||||
|
<view>2020-10-20</view>
|
||||||
</view>
|
</view>
|
||||||
<view>日期:2020-10-20</view>
|
<view class="text">
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
|
||||||
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
|
||||||
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
|
||||||
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
|
||||||
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
|
||||||
</view>
|
</view>
|
||||||
</wd-card>
|
</wd-card>
|
||||||
</view>
|
</view>
|
||||||
|
<Loadmore></Loadmore>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.fb_list {
|
.fb_list {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
padding-top: 20rpx;
|
|
||||||
: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;
|
padding: 20rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
border-bottom: 1px solid #e7e8e8;
|
font-size: 26rpx;
|
||||||
|
align-items: flex-end;
|
||||||
|
:first-child {
|
||||||
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
.content {
|
}
|
||||||
padding: 20rpx;
|
|
||||||
|
.text {
|
||||||
|
padding: 0 20rpx;
|
||||||
height: 123rpx;
|
height: 123rpx;
|
||||||
line-height: 45rpx;
|
line-height: 40rpx;
|
||||||
letter-spacing: 3rpx;
|
letter-spacing: 3rpx;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -52,4 +66,5 @@
|
|||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -3,18 +3,22 @@ import { ref } from 'vue';
|
|||||||
import { onLoad } from "@dcloudio/uni-app"
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
import { getPatientList } from "@/services/patient"
|
import { getPatientList } from "@/services/patient"
|
||||||
let active = ref('all')
|
let active = ref('all')
|
||||||
|
let num = ref(5)
|
||||||
|
// 切换导航
|
||||||
let cutNav = (type) => {
|
let cutNav = (type) => {
|
||||||
active.value = type
|
active.value = type
|
||||||
}
|
}
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
getPatientList()
|
// getPatientList()
|
||||||
})
|
})
|
||||||
|
const reachBottom = () => {
|
||||||
|
if (num.value < 20) num.value += 5
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- 病人管理 -->
|
<!-- 病人管理 -->
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<wd-watermark content="wot-design-uni"></wd-watermark>
|
|
||||||
<wd-fab inactiveIcon="ellipsis" activeIcon="rollback">
|
<wd-fab inactiveIcon="ellipsis" activeIcon="rollback">
|
||||||
<view class="fab">
|
<view class="fab">
|
||||||
<view>调压趋势</view>
|
<view>调压趋势</view>
|
||||||
@ -31,12 +35,13 @@ onLoad(() => {
|
|||||||
</view>
|
</view>
|
||||||
<wd-search placeholder="住院号/病人名称/医生" hide-cancel />
|
<wd-search placeholder="住院号/病人名称/医生" hide-cancel />
|
||||||
</view>
|
</view>
|
||||||
|
<wd-gap height="190rpx"></wd-gap>
|
||||||
<view class="patient_list">
|
<view class="patient_list">
|
||||||
<wd-card custom-class="item" v-for="value in 10" :key="value">
|
<wd-card custom-class="item" v-for="item in num" :key="item">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<text>住院号:000000</text>
|
<text>住院号:000000</text>
|
||||||
<text>2020-12-22</text>
|
<text>2020-12-22</text>
|
||||||
<text>手术次数:1</text>
|
<text>手术次数:{{ item }}{{ num }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view>患者姓名:xxx</view>
|
<view>患者姓名:xxx</view>
|
||||||
@ -57,6 +62,7 @@ onLoad(() => {
|
|||||||
</wd-card>
|
</wd-card>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<Loadmore :number="num" :total="20" @reachBottom="reachBottom"></Loadmore>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -76,9 +82,9 @@ onLoad(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav_bar {
|
.nav_bar {
|
||||||
position: sticky;
|
position: fixed;
|
||||||
left: 0;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
box-shadow: 0px 2px 5px #c5c5c5;
|
box-shadow: 0px 2px 5px #c5c5c5;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user