Update invite-patient.vue

This commit is contained in:
huxuejian 2026-03-03 13:50:00 +08:00
parent f33ec3920e
commit 6e8b8a7420

View File

@ -2,7 +2,8 @@
<view class="flex flex-col justify-center h-full bg-white"> <view class="flex flex-col justify-center h-full bg-white">
<view v-if="list.length === 0" class="w-full"> <view v-if="list.length === 0" class="w-full">
<empty-data text="暂无团队" /> <empty-data text="暂无团队" />
<view class="mt-10 mx-auto w-100 text-base text-primary border-auto leading-normal py-5 text-center rounded"> <view class="mt-10 mx-auto w-100 text-base text-primary border-auto leading-normal py-5 text-center rounded"
@click="toCreateTeam()">
创建团队 创建团队
</view> </view>
</view> </view>
@ -87,6 +88,10 @@ const indicator = computed(() => ({
})) }))
const team = computed(() => list.value[current.value] || null); const team = computed(() => list.value[current.value] || null);
function toCreateTeam() {
uni.navigateTo({ url: '/pages/work/team/edit/team-edit' })
}
function toggle(val) { function toggle(val) {
const num = current.value + val; const num = current.value + val;
if (num > 0) { if (num > 0) {