From 9ac1d90f296e2515ba7691fd1482f9e8cd9c7e10 Mon Sep 17 00:00:00 2001
From: wally <18603454788@163.com>
Date: Tue, 16 May 2023 13:23:33 +0800
Subject: [PATCH] faet: ui
---
App.vue | 5 +
components/CreatePatient/CreatePatient.vue | 90 ++++++
components/DetailBase/DetailBase.vue | 9 +
components/FloatButton/FloatButton.vue | 52 +++
components/SearchList/SearchList.vue | 37 +++
config/local.ts | 3 +
index.html | 9 +-
main.js | 5 +
manifest.json | 0
package.json | 0
pages.json | 60 +++-
pages/detail1/detail1.vue | 211 +++++++++++++
pages/detail2/detail2.vue | 125 ++++++++
pages/index/index.vue | 45 ++-
pages/loading/loading.vue | 101 ++++++
pages/patient-list/patient-list.vue | 94 ++++++
pnpm-lock.yaml | 0
static/c1.png | Bin 401 -> 0 bytes
static/c2.png | Bin 470 -> 0 bytes
static/c3.png | Bin 511 -> 0 bytes
static/c4.png | Bin 476 -> 0 bytes
static/c5.png | Bin 472 -> 0 bytes
static/c6.png | Bin 545 -> 0 bytes
static/c7.png | Bin 365 -> 0 bytes
static/c8.png | Bin 587 -> 0 bytes
static/c9.png | Bin 565 -> 0 bytes
static/customicons.css | 20 --
static/customicons.ttf | Bin 2416 -> 0 bytes
static/images/bed.png | Bin 0 -> 10097 bytes
static/images/car.png | Bin 0 -> 2371 bytes
static/images/change-dark.png | Bin 0 -> 2486 bytes
static/images/change.png | Bin 0 -> 2815 bytes
static/images/create-user.png | Bin 0 -> 9555 bytes
static/images/doctor.png | Bin 0 -> 15879 bytes
static/images/heart.png | Bin 0 -> 9883 bytes
static/images/loading-img.png | Bin 0 -> 30255 bytes
static/images/menu.png | Bin 0 -> 9349 bytes
static/images/plus.png | Bin 0 -> 1768 bytes
static/images/user.png | Bin 0 -> 9555 bytes
store/modules/service.ts | 75 +----
tsconfig.json | 0
uni-webview-js.js | 207 ++++++++++++
uni.scss | 62 ++++
.../components/uni-section/uni-section.vue | 297 +++++++++---------
utils/common.ts | 14 +
45 files changed, 1254 insertions(+), 267 deletions(-)
mode change 100644 => 100755 App.vue
create mode 100644 components/CreatePatient/CreatePatient.vue
create mode 100644 components/DetailBase/DetailBase.vue
create mode 100644 components/FloatButton/FloatButton.vue
create mode 100644 components/SearchList/SearchList.vue
create mode 100644 config/local.ts
mode change 100644 => 100755 index.html
mode change 100644 => 100755 main.js
mode change 100644 => 100755 manifest.json
mode change 100644 => 100755 package.json
mode change 100644 => 100755 pages.json
create mode 100644 pages/detail1/detail1.vue
create mode 100644 pages/detail2/detail2.vue
create mode 100644 pages/loading/loading.vue
create mode 100644 pages/patient-list/patient-list.vue
mode change 100644 => 100755 pnpm-lock.yaml
delete mode 100644 static/c1.png
delete mode 100644 static/c2.png
delete mode 100644 static/c3.png
delete mode 100644 static/c4.png
delete mode 100644 static/c5.png
delete mode 100644 static/c6.png
delete mode 100644 static/c7.png
delete mode 100644 static/c8.png
delete mode 100644 static/c9.png
delete mode 100644 static/customicons.css
delete mode 100644 static/customicons.ttf
create mode 100644 static/images/bed.png
create mode 100644 static/images/car.png
create mode 100644 static/images/change-dark.png
create mode 100644 static/images/change.png
create mode 100644 static/images/create-user.png
create mode 100644 static/images/doctor.png
create mode 100644 static/images/heart.png
create mode 100644 static/images/loading-img.png
create mode 100644 static/images/menu.png
create mode 100644 static/images/plus.png
create mode 100644 static/images/user.png
mode change 100644 => 100755 tsconfig.json
create mode 100755 uni-webview-js.js
mode change 100644 => 100755 uni.scss
create mode 100644 utils/common.ts
diff --git a/App.vue b/App.vue
old mode 100644
new mode 100755
index 377a404..a4907ec
--- a/App.vue
+++ b/App.vue
@@ -23,4 +23,9 @@ export default {
page {
background-color: #f5f5f5;
}
+
+uni-page-body {
+ min-height: 100%;
+ height: 100%;
+}
diff --git a/components/CreatePatient/CreatePatient.vue b/components/CreatePatient/CreatePatient.vue
new file mode 100644
index 0000000..0668488
--- /dev/null
+++ b/components/CreatePatient/CreatePatient.vue
@@ -0,0 +1,90 @@
+
+
+
+
+ 患者信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 扫描身份证
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
diff --git a/components/DetailBase/DetailBase.vue b/components/DetailBase/DetailBase.vue
new file mode 100644
index 0000000..40b9fc4
--- /dev/null
+++ b/components/DetailBase/DetailBase.vue
@@ -0,0 +1,9 @@
+
+ DetailBase
+
+
+
+
+
\ No newline at end of file
diff --git a/components/FloatButton/FloatButton.vue b/components/FloatButton/FloatButton.vue
new file mode 100644
index 0000000..81ef116
--- /dev/null
+++ b/components/FloatButton/FloatButton.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/SearchList/SearchList.vue b/components/SearchList/SearchList.vue
new file mode 100644
index 0000000..4842833
--- /dev/null
+++ b/components/SearchList/SearchList.vue
@@ -0,0 +1,37 @@
+
+
+
+
+ {{ carNo }}
+
+
+
+
+
+
+
+
+
+
diff --git a/config/local.ts b/config/local.ts
new file mode 100644
index 0000000..9538d5c
--- /dev/null
+++ b/config/local.ts
@@ -0,0 +1,3 @@
+export const LOCAL_KEY = {
+ LOADED: 'loaded', // 用来显示启动页 有本地数据不显示启动页 没有才显示
+}
diff --git a/index.html b/index.html
old mode 100644
new mode 100755
index c3ff205..7799d46
--- a/index.html
+++ b/index.html
@@ -3,11 +3,13 @@
@@ -16,5 +18,6 @@
+
diff --git a/main.js b/main.js
old mode 100644
new mode 100755
index 39a1f9c..2b9cb3e
--- a/main.js
+++ b/main.js
@@ -1,12 +1,17 @@
import * as Pinia from 'pinia'
import App from './App.vue'
+import { LOCAL_KEY } from '@/config/local'
import { createSSRApp } from 'vue'
+import { openPage } from '@/utils/common'
import { setupApi } from '@/api'
import { setupHttp } from '@/utils/http'
import { setupStore } from '@/store'
import uView from './uni_modules/vk-uview-ui'
+uni.$u.openPage = openPage
+uni.$u.LOCAL_KEY = LOCAL_KEY
+
export function createApp() {
const app = createSSRApp(App)
setupHttp(app)
diff --git a/manifest.json b/manifest.json
old mode 100644
new mode 100755
diff --git a/package.json b/package.json
old mode 100644
new mode 100755
diff --git a/pages.json b/pages.json
old mode 100644
new mode 100755
index 27973fb..8d8516d
--- a/pages.json
+++ b/pages.json
@@ -1,17 +1,47 @@
{
- "pages": [{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "uni-app"
- }
- }],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8",
- "app-plus": {
- "background": "#efeff4"
- }
- }
+ "pages": [
+ {
+ "path": "pages/loading/loading",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "uni-app",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/patient-list/patient-list",
+ "style": {
+ "navigationBarTitleText": "患者列表"
+ }
+ },
+ {
+ "path": "pages/detail1/detail1",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "患者详情"
+ }
+ },
+ {
+ "path": "pages/detail2/detail2",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "患者详情"
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "暴风眼质控",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8",
+ "app-plus": {
+ "background": "#efeff4"
+ }
+ }
}
diff --git a/pages/detail1/detail1.vue b/pages/detail1/detail1.vue
new file mode 100644
index 0000000..65d91da
--- /dev/null
+++ b/pages/detail1/detail1.vue
@@ -0,0 +1,211 @@
+
+
+
+
+
+ 切换至详情
+
+
+
+
+
+
+ 暴风眼质控
+ 高效 便捷 精准
+
+
+
+
+ 急诊溶栓记录
+
+
+
+
+
+
+
+
+
+
+ {{ '脏兵' }}
+ {{ '男' }}
+ {{ '24 ' }}
+
+
+
+
+
+ 身份证:1222222222
+
+
+
+
+
+
+ {{ '脏兵' }}
+
+
+
+
+
+
+ 距发病时间 194′′
+
+
+
+
+ 身份证:1222222222
+
+ 距CT25′′剩余9′′
+
+
+
+
+
+
+
+ mRS评分:{{ '4' }}
+ NIHSS评分:{{ '4' }}
+
+
+
+
+
+
+ 舒张压/收缩压:{{ '4' }}
+
+
+
+
+
+
+ 身高:1222222222
+ 体重:1222222222
+ BMI:1222222222
+
+
+
+ 脉搏:1222222222
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 分诊
+ 结束
+
+ 时间
+
+
+
+
+
+
+
+
+ 分诊
+ 结束
+
+ 时间
+
+
+
+
+
+
+
+
+ 分诊
+ 结束
+
+ 时间
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/detail2/detail2.vue b/pages/detail2/detail2.vue
new file mode 100644
index 0000000..2d587db
--- /dev/null
+++ b/pages/detail2/detail2.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+ 切换至概览
+
+
+
+
+
+
+
+
+
+ {{ '藏寨' }}
+ {{ '男' }}
+ {{ '24' }}
+
+
+
+
+
+
+
+
+ 患者基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 急救信息记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7697316..b2ba275 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,29 +1,26 @@
-
-
- 本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。
- 详见:
-
-
+
+ 发消息
+
-
+onLoad(() => {
+
+ document.addEventListener('UniAppJSBridgeReady', () => {
+ console.log(uni);
+
+ }, false)
-
+})
+
+function send() {
+
+ window.postMessage('hello', '*')
+ // uni.postMessage({
+ // data: { action: "msg ok" }
+ // })
+}
+
diff --git a/pages/loading/loading.vue b/pages/loading/loading.vue
new file mode 100644
index 0000000..3c37752
--- /dev/null
+++ b/pages/loading/loading.vue
@@ -0,0 +1,101 @@
+
+
+
+ 跳过 {{ leftTime }}
+
+
+
+
+ 创建患者
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/patient-list/patient-list.vue b/pages/patient-list/patient-list.vue
new file mode 100644
index 0000000..a4d8b7c
--- /dev/null
+++ b/pages/patient-list/patient-list.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.age }}
+ {{ item.sex }}
+
+
+
+ {{ item.time }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
old mode 100644
new mode 100755
diff --git a/static/c1.png b/static/c1.png
deleted file mode 100644
index 9d38fdc45f54393919608143278902961ebfc03e..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 401
zcmeAS@N?(olHy`uVBq!ia0vp^DImv+@EMfolJl@2-tdeIgiE72V3$+1a<;nGqB*6-wd0Dfno2^$&
z7L}LYx}4kkKI1~4j2xSM#i^{e>mxFDC0DcwoaERsZFdmo&xZb=|e;
zVChPF@z}uo`_jyFigEMR=cKgdY*81V{;5gJlXF9MvNaZ^cipGtGKCwGwYFdLih#FiI|b%1`}h
zcD?9wzL;(MG`RGl!=KdO=X$Ia3G&T>{3@pZ$E>nWT~vAlEaktaqI1klarbacw7TzPB-Tm@A?1#
z=DKt1Tm@&jBni*W72Dq8$U1XQ@j1)qcYd?AM-~6vdS%zgB|W!|l9z8;VdkK15fZWZ
z0_Xa#{=&Tl?+&}Myixw!c0&2Cz{(%uYaLfyIpx20a+b;i&8Hu}PrN-Tsf8gx{xaWd
zSEda)?3G(j%z6CKKWpOGAAJoS5gg_&aw+l?Pq*dmh)8I56YfnYkc%|gRM+fjvg@w|
z$E(g+E=n8A7O8TmM)@~hDG@eQ_vn5n5wpR0%`A=`87W~$m7>*=T~gqVW%D$JmT%Wy00-NUV`g=
zPWq+lU_K79dVw=Ll(hEL%sa^y|HiF3Bqng#c7b&Xt+%gdOo&
V%D;5ZBtB5oc)I$ztaD0e0stIlwo?EA
diff --git a/static/c3.png b/static/c3.png
deleted file mode 100644
index 216202ad01c5d093a15c247cf791bf66759cf54d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 511
zcmeAS@N?(olHy`uVBq!ia0vp^DImqEwn3#C`6axcex~Gd{NX4zUH%{jrQQ%<>_`I#L<;VZ}
zZHv8>O^d80dDUJWN}qZ5sw(5+2E$_#$vr=hznV9v_(!hA^s)ehHzYuO_$GPFaj>L^Z^8*-5pGM3JjCnSB#oUXR4yIck*z;L5euG4hrQnMaF=Mr^If6ezqfPO{rmaH
zG`Recv6gZBZ^h$ro*MqgZ`L;0*JWSQ?4MdEEc#Ycl^2Ku*&||7ybYSKxgR(e
zUi8LbW#8LW_O;o`+{cdv9h)e%;+1X1dv+zh{}-wmlY4-{_IaWH_ctMZlX+XXL2>Bm
L>gTe~DWM4f<{`=m
diff --git a/static/c4.png b/static/c4.png
deleted file mode 100644
index fb8b4770c323cc87544a502c4efcd9792ec6047a..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 476
zcmeAS@N?(olHy`uVBq!ia0vp^DIm!v{Zmph6H*@EOQ`c;Jj35m?s8tsB!ig_bOsad3NWyNKsO#%u4s6f}!WF<$1wue~HTU+T}QZ;Gq4
z+^p*LR=oRR<2>VYrDayznw7JEgn9(s4mmKdKH{5e^24HIn&xXKq`oqWXf4s;nPY6>
zl5RSUO)+g!*Qq{!;a&O8LAO2%J{IadS>Y&oFLd#-`B8Zi;r0eCLdRUCfQpstnaz}|9;&C$edE%qT=zMqcbI`S>(i_Uwsp-Jh?$Zac<}T=h6;^
V(bfHGPg+0`|eiw2lA(
diff --git a/static/c5.png b/static/c5.png
deleted file mode 100644
index 310bfb123ba811240a23883c589557cced22af97..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 472
zcmeAS@N?(olHy`uVBq!ia0vp^DImMU#{OfDLKp{`iu-m;URIy-X0%w>4GPR
z_aE3Db+En7Vpp-?y{8>c_3j;K1E(wImUzhRpIo-4)yng0f9$<4bN?NcJ+$)R>Cmd5
zPnT-Q*3a3qRzbM)VHC^C!+&Q!2$x98T^XQ1{a2U4m97Z?l}kQ1avTGN#