客户列表显示时间应该是最后一次更新时间
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -93,7 +93,7 @@ page {
|
||||
|
||||
.redirecting-text {
|
||||
padding: 40rpx 30rpx;
|
||||
color: #999;
|
||||
color: #666;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user