解决问题接待中有空白区域
This commit is contained in:
@@ -29,6 +29,14 @@
|
||||
@confirm="onServiceStatusSearch"
|
||||
/>
|
||||
<view class="toolbar-actions">
|
||||
<view
|
||||
v-if="showReceptionEntryShortcut"
|
||||
class="toolbar-btn toolbar-btn--reception"
|
||||
@click="goReceptionEntry"
|
||||
>
|
||||
<uni-icons type="home" size="18" color="#2A68FF"></uni-icons>
|
||||
<text>接待</text>
|
||||
</view>
|
||||
<view class="toolbar-btn toolbar-btn--refresh" @click="onServiceStatusRefresh">
|
||||
<uni-icons type="refresh" size="18" color="#2A68FF"></uni-icons>
|
||||
<text>刷新</text>
|
||||
@@ -79,7 +87,7 @@
|
||||
<text>结束</text>
|
||||
</view>
|
||||
<uni-icons type="bars" size="16" color="#007AFF"></uni-icons>
|
||||
<text>服务中</text>
|
||||
<text>{{ recordStateLabel }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -125,7 +133,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="service-status-empty" v-if="!serviceStatusLoading && !serviceStatusList.length">
|
||||
<text>暂无服务中记录</text>
|
||||
<text>{{ emptyListHint }}</text>
|
||||
</view>
|
||||
<view class="service-status-loading-more" v-if="serviceStatusLoading && serviceStatusList.length">
|
||||
<text>正在加载更多...</text>
|
||||
@@ -208,6 +216,22 @@ function firstNonEmptyString(...parts) {
|
||||
}
|
||||
|
||||
export default {
|
||||
props: {
|
||||
/** 卡片右侧状态文案,默认与接待页「服务中」Tab 一致 */
|
||||
recordStateLabel: {
|
||||
type: String,
|
||||
default: '服务中',
|
||||
},
|
||||
emptyListHint: {
|
||||
type: String,
|
||||
default: '暂无服务中记录',
|
||||
},
|
||||
/** 是否在工具栏显示进入完整「接待」页的快捷入口 */
|
||||
showReceptionEntryShortcut: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
serviceStatusLoading: false,
|
||||
@@ -394,6 +418,15 @@ export default {
|
||||
this.serviceStatusPage.current = 1;
|
||||
this.fetchServiceStatusList({ force: true });
|
||||
},
|
||||
goReceptionEntry() {
|
||||
const url = '/pages-subpackage/furniture_reception/furniture_reception_entry?tab=reception';
|
||||
uni.navigateTo({
|
||||
url,
|
||||
fail: () => {
|
||||
uni.showToast({ title: '跳转接待失败', icon: 'none' });
|
||||
},
|
||||
});
|
||||
},
|
||||
onServiceStatusReachBottom() {
|
||||
// 已在加载中或全部加载完成则不再触发
|
||||
if (this.serviceStatusLoading) return;
|
||||
|
||||
Reference in New Issue
Block a user