客户列表显示时间应该是最后一次更新时间

This commit is contained in:
zhonghua.li
2026-04-15 15:15:37 +08:00
parent 56c03a2e0e
commit abe8672079
7 changed files with 97 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="subpackage-host">
<component v-if="Impl" :is="Impl" />
<component v-if="Impl" :is="Impl" :incomingTab="incomingTab" />
<view v-else class="loading">
<text v-if="error">{{ error }}</text>
<text v-else>正在加载接待模块...</text>
@@ -13,12 +13,26 @@ export default {
data() {
return {
Impl: null,
incomingTab: '',
error: ''
};
},
onLoad() {
this.loadImpl();
},
onShow() {
// tabBar 的 switchTab 不稳定携带 query因此从 storage 消费目标tab
try {
const allowed = ['status', 'reception', 'tag'];
const tab = (uni.getStorageSync('workbench-reception-tab') || '').toString();
if (allowed.includes(tab)) {
this.incomingTab = tab;
uni.removeStorageSync('workbench-reception-tab');
}
} catch (e) {
// ignore
}
},
methods: {
loadSubPackagePagesSubpackage() {
return new Promise((resolve, reject) => {

View File

@@ -7,16 +7,17 @@
<text class="category-title">接待页面标签</text>
</view>
<view class="function-grid">
<view class="function-item" @click="openReceptionTab('status')">
<view class="function-icon">📌</view>
<text class="function-name">服务状态</text>
<text class="function-desc">进入接待页并切到服务状态</text>
</view>
<view class="function-item" @click="openReceptionTab('reception')">
<view class="function-icon">🛎</view>
<text class="function-name">开始接待</text>
<text class="function-desc">进入接待页并切到开始接待</text>
</view>
<view class="function-item" @click="openReceptionTab('status')">
<view class="function-icon">📌</view>
<text class="function-name">服务中</text>
<text class="function-desc">进入接待页并切到服务中</text>
</view>
<view class="function-item" @click="openReceptionTab('tag')">
<view class="function-icon">🗂</view>
<text class="function-name">标签管理</text>

View File

@@ -93,7 +93,7 @@ page {
.redirecting-text {
padding: 40rpx 30rpx;
color: #999;
color: #666;
font-size: 28rpx;
text-align: center;
}