3.5提交代码

This commit is contained in:
zoujiandong
2026-03-05 09:57:10 +08:00
parent ae9a961a42
commit 799471090f
50 changed files with 5901 additions and 1879 deletions
+26 -15
View File
@@ -1,13 +1,15 @@
<template>
<view class="outpatient-page">
<!-- 导航栏 -->
<uni-nav-bar
<view class="navbox">
<view class="status_bar"></view>
<uni-nav-bar
left-icon="left"
title="出/停诊公告"
@clickLeft="goBack"
fixed
color="#8B2316"
height="180rpx"
:border="false"
backgroundColor="#eee"
>
@@ -18,6 +20,7 @@
</view>
</template>
</uni-nav-bar>
</view>
<!-- 标签页 -->
<view class="tab-container">
@@ -136,10 +139,11 @@
<script setup>
import { ref, reactive } from 'vue'
import api from '@/api/api'
import {onShow,onUnload,onLoad} from '@dcloudio/uni-app'
import {onShow,onUnload,onLoad,onBackPress} from '@dcloudio/uni-app'
import navTo from '@/utils/navTo'
const page=ref(1);
// 响应式数据
const from = ref('');
const currentTab = ref('suspension')
const remarks = ref('')
@@ -147,6 +151,17 @@ const note = ref('')
const outpatientSchedules = ref([])
const outPatientList = ref([]);
onBackPress(() => {
if(!from.value){
plus.runtime.quit();
return true;
}
});
onLoad((options) => {
if(options.from){
from.value = options.from;
}
});
const getListOutPatient = async () => {
const res = await api.listOutPatient({
page:page.value,
@@ -225,14 +240,11 @@ const getTypeText = (type) => {
}
// 方法
const goBack = () => {
uni.navigateBack({
delta: 1,
fail() {
uni.redirectTo({
url: '/pages/index/index'
})
}
})
if(!from.value){
plus.runtime.quit();
}else{
uni.navigateBack();
}
}
const share = () => {
@@ -248,9 +260,7 @@ const addNew = () => {
icon: 'none'
})
}
onLoad((options) => {
})
onShow(() => {
getStopOutPatientList();
getListOutPatient();
@@ -490,6 +500,7 @@ const deleteSchedule = async (uuid) => {
/* 标签页样式 */
.tab-container {
margin-top: calc(var(--status-bar-height) + 44px);
display: flex;
align-items: center;
background-color: #fff;