3 Commits 630ecbd1c8 ... 30de06e2e0

Author SHA1 Message Date
  windyeasy 30de06e2e0 chore: add gitignore files 3 months ago
  windyeasy 61a0dc7b32 chore: remove gitignore files 3 months ago
  windyeasy 460c3850ff feat: add pages and modify function 3 months ago

+ 5 - 0
.gitignore

@@ -24,7 +24,12 @@ dist
 .stylelintcache
 .eslintcache
 
+# auto generate files
+src/pages.json
+src/manifest.json
+
 # auto types
+src/types/uni-pages.d.ts
 src/types/uni-components.d.ts
 src/types/auto-import.d.ts
 

+ 1 - 0
pages.config.ts

@@ -15,6 +15,7 @@ export default defineUniPages({
       '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
         'z-paging/components/z-paging$1/z-paging$1.vue',
       '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue',
+      '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
     },
   },
   tabBar: {

+ 13 - 1
src/components/user-card.vue

@@ -3,10 +3,22 @@ interface IProps {
   statusColor?: string
 }
 defineProps<IProps>()
+
+function cardClick() {
+  uni.navigateTo({
+    url: '/pages/patient-detail/index',
+  })
+}
 </script>
 
 <template>
-  <div class="user-card flex items-center py-6" border-b-2rpx border-b-solid border-b="[#ccc]">
+  <div
+    class="user-card flex items-center py-6"
+    border-b-2rpx
+    border-b-solid
+    border-b="[#ccc]"
+    @click="cardClick"
+  >
     <view class="card-cover mr-2 w-160rpx h-160rpx flex items-center overflow-hidden">
       <image src="" class="w-full h-full" mode="widthFix" />
     </view>

+ 0 - 112
src/pages.json

@@ -1,112 +0,0 @@
-{
-  "globalStyle": {
-    "navigationStyle": "default",
-    "navigationBarTitleText": "hospital-mobile",
-    "navigationBarBackgroundColor": "#ffffff",
-    "navigationBarTextStyle": "black",
-    "backgroundColor": "#FFFFFF"
-  },
-  "easycom": {
-    "autoscan": true,
-    "custom": {
-      "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue",
-      "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue",
-      "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue"
-    }
-  },
-  "tabBar": {
-    "color": "#999999",
-    "selectedColor": "#018d71",
-    "backgroundColor": "#F8F8F8",
-    "borderStyle": "black",
-    "height": "50px",
-    "fontSize": "10px",
-    "iconWidth": "24px",
-    "spacing": "3px",
-    "list": [
-      {
-        "iconPath": "static/tabbar/home.png",
-        "selectedIconPath": "static/tabbar/homeHL.png",
-        "pagePath": "pages/index/index",
-        "text": "预诊大厅"
-      },
-      {
-        "iconPath": "static/tabbar/example.png",
-        "selectedIconPath": "static/tabbar/exampleHL.png",
-        "pagePath": "pages/profile/index",
-        "text": "我的"
-      }
-    ]
-  },
-  "pages": [
-    {
-      "path": "pages/profile/index",
-      "type": "home",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "我的"
-      }
-    },
-    {
-      "path": "pages/index/index",
-      "type": "home",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "首页"
-      }
-    },
-    {
-      "path": "pages/agreement/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationBarTitleText": "用户协议",
-        "navigationStyle": "default"
-      }
-    },
-    {
-      "path": "pages/forget-password/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationBarTitleText": "忘记密码",
-        "navigationStyle": "default"
-      }
-    },
-    {
-      "path": "pages/login/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "登录"
-      }
-    },
-    {
-      "path": "pages/patient-detail/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationBarTitleText": "患者详情"
-      }
-    },
-    {
-      "path": "pages/register/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "注册"
-      }
-    },
-    {
-      "path": "pages/team-managent/index",
-      "type": "page",
-      "layout": "default",
-      "style": {
-        "navigationBarTitleText": "医疗团队管理"
-      }
-    }
-  ],
-  "subPackages": []
-}

+ 42 - 0
src/pages/appointment/index.vue

@@ -0,0 +1,42 @@
+<route lang="json5" type="page">
+{
+  layout: 'default',
+  style: {
+    navigationBarTitleText: '就诊预约',
+  },
+}
+</route>
+
+<template>
+  <view class="appointment">
+    <view class="appointment-form">
+      <uv-form labelPosition="left" :model="formList" ref="formRef">
+        <uv-form-item label="选择医疗项目" prop="userInfo.name" borderBottom>
+          <uv-input border="none"></uv-input>
+        </uv-form-item>
+        <uv-form-item label="选择检查时间" prop="userInfo.name" borderBottom>
+          <uv-input border="none"></uv-input>
+        </uv-form-item>
+      </uv-form>
+    </view>
+    <view class="appointment-footer flex items-center justify-around mt-80rpx">
+      <uv-button type="error" text="增加一个新项目"></uv-button>
+      <uv-button type="primary" text="提交"></uv-button>
+    </view>
+  </view>
+</template>
+
+<script lang="ts" setup>
+//
+const formList = ref([
+  {
+    name: '姓名',
+    value: '张三',
+    type: 'text',
+  },
+])
+</script>
+
+<style lang="scss" scoped>
+//
+</style>

+ 20 - 0
src/pages/medical-record/index.vue

@@ -0,0 +1,20 @@
+<route lang="json5" type="page">
+{
+  layout: 'default',
+  style: {
+    navigationBarTitleText: '诊疗记录',
+  },
+}
+</route>
+
+<template>
+  <view class="medical-record">诊疗记录</view>
+</template>
+
+<script lang="ts" setup>
+//
+</script>
+
+<style lang="scss" scoped>
+//
+</style>

+ 20 - 0
src/pages/team-managent/directory/add-group.vue

@@ -0,0 +1,20 @@
+<route lang="json5" type="page">
+{
+  layout: 'default',
+  style: {
+    navigationBarTitleText: '新增分组',
+  },
+}
+</route>
+
+<template>
+  <view class="add-group">新增分组</view>
+</template>
+
+<script lang="ts" setup>
+//
+</script>
+
+<style lang="scss" scoped>
+//
+</style>

+ 20 - 0
src/pages/team-managent/directory/index.vue

@@ -0,0 +1,20 @@
+<route lang="json5" type="page">
+{
+  layout: 'default',
+  style: {
+    navigationBarTitleText: '团队通讯录',
+  },
+}
+</route>
+
+<template>
+  <view class="management-directory">团队通讯录</view>
+</template>
+
+<script lang="ts" setup>
+//
+</script>
+
+<style lang="scss" scoped>
+//
+</style>

+ 16 - 0
src/pages/team-managent/directory/people-detail.vue

@@ -0,0 +1,16 @@
+<route lang="json5" type="page">
+{
+  layout: 'default',
+  style: {
+    navigationBarTitleText: '成员详情',
+  },
+}
+</route>
+
+<template>
+  <view class="people-detail">成员详情</view>
+</template>
+
+<script lang="ts" setup>
+//
+</script>

+ 0 - 29
src/types/uni-pages.d.ts

@@ -1,29 +0,0 @@
-/* eslint-disable */
-/* prettier-ignore */
-// @ts-nocheck
-// Generated by vite-plugin-uni-pages
-
-interface NavigateToOptions {
-  url: "/pages/profile/index" |
-       "/pages/index/index" |
-       "/pages/agreement/index" |
-       "/pages/forget-password/index" |
-       "/pages/login/index" |
-       "/pages/patient-detail/index" |
-       "/pages/register/index" |
-       "/pages/team-managent/index";
-}
-interface RedirectToOptions extends NavigateToOptions {}
-
-interface SwitchTabOptions {
-  url: "/pages/index/index" | "/pages/profile/index"
-}
-
-type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
-
-declare interface Uni {
-  navigateTo(options: UniNamespace.NavigateToOptions & NavigateToOptions): void;
-  redirectTo(options: UniNamespace.RedirectToOptions & RedirectToOptions): void;
-  switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void;
-  reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void;
-}