From 88693372feede0ba6ba2821d8ca4243c3b2fcdc1 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 11 二月 2026 16:26:45 +0800
Subject: [PATCH] APP用印管理新增后,APP页面上无记录显示
---
src/pages/message.vue | 35 +++++++++++++++++++++++------------
1 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/src/pages/message.vue b/src/pages/message.vue
index 2392c08..a4aae5e 100644
--- a/src/pages/message.vue
+++ b/src/pages/message.vue
@@ -37,10 +37,11 @@
<text class="message-time">{{ formatTime(item.createTime) }}</text>
</view>
<text class="message-desc">{{ item.noticeContent }}</text>
- <view class="message-footer">
+ <view v-if="activeTab === 0"
+ class="message-footer">
<text class="message-view"
@click="goToDetail(item)">
- 鍘绘煡鐪� >
+ 纭娑堟伅
</text>
</view>
</view>
@@ -61,7 +62,7 @@
<script setup>
import { ref, reactive, onMounted } from "vue";
- import { listNotice } from "@/api/login.js";
+ import { listNotice, confirmMessage } from "@/api/login.js";
import useUserStore from "@/store/modules/user";
// 鏍囩椤垫暟鎹�
@@ -100,15 +101,25 @@
// 璺宠浆鍒拌鎯呴〉
const goToDetail = item => {
- if (item.appJumpPath.indexOf("/") === 0) {
- uni.navigateTo({
- url: item.appJumpPath,
- });
- } else {
- uni.navigateTo({
- url: "/" + item.appJumpPath,
- });
- }
+ confirmMessage(item.noticeId, 1).then(res => {
+ if (res.code === 200) {
+ // uni.showToast({ title: "纭鎴愬姛", icon: "success" });
+ loadMessages(false);
+ if (item.appJumpPath) {
+ if (item.appJumpPath.indexOf("/") === 0) {
+ uni.navigateTo({
+ url: item.appJumpPath,
+ });
+ } else {
+ uni.navigateTo({
+ url: "/" + item.appJumpPath,
+ });
+ }
+ }
+ } else {
+ uni.showToast({ title: "纭澶辫触", icon: "none" });
+ }
+ });
};
const userStore = useUserStore();
const userId = ref("");
--
Gitblit v1.9.3