解决登录显示、首页显示bug

This commit is contained in:
2026-05-19 11:06:46 +08:00
parent 2f7e097e6c
commit 00a859c551
181 changed files with 55329 additions and 998 deletions

View File

@@ -1,11 +1,6 @@
<!-- 机构端 - 消息中心(客服工作台) -->
<template>
<view class="messages-page">
<!-- #ifdef MP-WEIXIN -->
<view class="mp-tab-navbar">
<view class="wb-navbar-content">
<text class="mp-tab-title">客服工作台</text>
<view class="wb-header-right">
<view class="wb-status-wrap">
<view class="wb-status-dot"></view>
@@ -15,9 +10,6 @@
<text class="wb-pending-text">{{ pendingCount }}条待处理</text>
</view>
</view>
</view>
</view>
<!-- #endif -->
<!-- ===== 三模块 Tab 切换栏 ===== -->
<view class="wb-tabs">
@@ -347,6 +339,7 @@ class="msg-row"
<script lang="uts">
import MerchantTabBar from '@/components/merchant-tabbar/MerchantTabBar.uvue'
import { requireMerchantAuth } from '@/utils/merchantAuth.uts'
type ProductCardData = {
emoji: string
@@ -556,10 +549,21 @@ return total
},
onShow() {
this.scrollToBottom()
this.handlePageShow()
},
methods: {
async ensureMerchantAuth(): Promise<boolean> {
const result = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
return result.ok
},
async handlePageShow() {
const passed = await this.ensureMerchantAuth()
if (!passed) return
this.scrollToBottom()
},
selectSession(id: string) {
this.currentSessionId = id
this.showQuickReplies = false
@@ -680,7 +684,10 @@ this.activeTab = 0
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
gap: 16rpx;
padding: calc(16rpx + var(--status-bar-height)) 24rpx 16rpx;
background-color: #09C39D;
}
.wb-status-wrap {
display: flex;