Pārlūkot izejas kodu

feat: add pages and modify function

windyeasy 2 mēneši atpakaļ
vecāks
revīzija
460c3850ff

+ 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>

+ 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>