feat:页面修改

This commit is contained in:
weiwei committed 2025-09-16 12:03:32 +08:00
1 parent 181f305f91
commit bc24d80a33
3 files changed
+37 -38

No files matched your search

+24 -24
View File
@@ -7,60 +7,60 @@
</tm-alert>
<tm-sheet :margin="[0, 20]" class="second-text-30">
<tm-text class="prefix_title" font-size="32">访客信息</tm-text>
<view class="flex justify-between mt-1">
<text>访客姓名:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">访客姓名</text>
<text>{{ detail.name }}</text>
</view>
<view class="flex justify-between mt-1">
<text>访客手机号:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">访客手机号</text>
<text>{{ detail.mobile }}</text>
</view>
<view class="flex justify-between mt-1">
<text>来访公司名称:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">来访公司名称</text>
<text>{{ detail.companyName }}</text>
</view>
<view class="flex justify-between mt-1">
<text>来访原因:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">来访原因</text>
<text>{{ visitorReasonList.find((item) => item.id == detail.reasonValue)?.title || "" }}</text>
</view>
<view class="flex justify-between mt-1">
<text>接待人:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">接待人</text>
<text>{{ detail.userName }}</text>
</view>
<view class="flex justify-between mt-1">
<text>来访人数:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">来访人数</text>
<text>{{ detail.peopleNumber }}</text>
</view>
<view class="flex justify-between mt-1">
<text>是否可随行人员:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">是否可随行人员</text>
<text>{{ detail.isOtherPeople == "1" ? "是" : "否" }}</text>
</view>
<view class="flex justify-between mt-1">
<text>是否可驾驶车辆:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">是否可驾驶车辆</text>
<text>{{ detail.isDrive == "1" ? "是" : "否" }}</text>
</view>
</tm-sheet>
<tm-sheet :margin="[0, 20]" class="second-text-30">
<tm-text class="prefix_title" font-size="32">时间</tm-text>
<view class="flex justify-between mt-1">
<text>预计来访时间:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">预计来访时间</text>
<text>{{ detail.vendDate }}</text>
</view>
<view class="flex justify-between mt-1">
<text>预计离开时间:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">预计离开时间</text>
<text>{{ detail.vstartDate }}</text>
</view>
</tm-sheet>
<tm-sheet :margin="[0, 20]" class="second-text-30">
<tm-text class="prefix_title" font-size="32">其他</tm-text>
<view class="flex justify-between mt-1">
<text>创建方式:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">创建方式</text>
<text>{{ detail.type == "1" ? "主动申请" : detail.type == "2" ? "邀约" : "后台创建" }}</text>
</view>
<view class="flex justify-between mt-1">
<text>提交时间:</text>
<view class="flex mt-1">
<text class="w-220rpx mr-6">提交时间</text>
<text>{{ detail.createTime }}</text>
</view>
</tm-sheet>
+2 -3
View File
@@ -1,8 +1,7 @@
<template>
<crud-layout mainIsScroll bg="/static/page/blue-bg.png">
<view class="h-20rpx" />
<tm-sheet margin="[0]">
<view class="mx-auto mb-1 text-center text-lg">访客邀约</view>
<tm-sheet :margin="[0]">
<tm-alert :border="['2']" :borderColor="['#89c0ff']" :darkBorderColor="['#3b5066']">访客邀约请填写以下信息</tm-alert>
<tm-form @submit="onsubmit" v-model="form" :rules="rules" direction="vertical">
<!-- <tm-form-item name="name" label="访客姓名">
@@ -70,7 +69,7 @@
<tm-form-item name="isDrive" label="是否可驾驶车辆" direction="horizontal" labelWidth="500">
<tm-switch v-model="form.isDrive" />
</tm-form-item>
<tm-button form-type="submit" block>提交</tm-button>
<tm-button class="mt-4" form-type="submit" block>提交</tm-button>
</tm-form>
</tm-sheet>
+11 -11
View File
@@ -9,7 +9,7 @@
<div v-for="item in services" :key="item.name" class="service-item" @click="goPage(item)">
<div class="service-icon-wrapper">
<image :src="item.icon" class="service-icon" />
<view v-if="item.name === 'todo' && todoCount > 0" class="badge">{{ todoCount > 99 ? '99+' : todoCount }}</view>
<view v-if="item.name === 'todo' && todoCount > 0" class="badge">{{ todoCount > 99 ? "99+" : todoCount }}</view>
</div>
<div class="service-label">{{ item.label }}</div>
</div>
@@ -80,7 +80,7 @@ async function fetchTodoCount() {
todoCount.value = responseData.data.total || 0
}
} catch (error) {
console.error('获取待办数量失败:', error)
console.error("获取待办数量失败:", error)
todoCount.value = 0
}
}
@@ -96,15 +96,15 @@ onMounted(() => {
function goPage(item) {
// 访客邀约功能正在开发中
if (item.name === 'visitor') {
uni.showToast({
title: '访客邀约功能正在开发中',
icon: 'none',
duration: 2000
})
return
}
// if (item.name === 'visitor') {
// uni.showToast({
// title: '访客邀约功能正在开发中',
// icon: 'none',
// duration: 2000
// })
// return
// }
if (item.url) {
uni.navigateTo({ url: item.url })
}