bug修复

This commit is contained in:
13405411873 2025-05-06 14:41:27 +08:00
parent 4f7cda122e
commit d326e2e872
3 changed files with 13 additions and 4 deletions

View File

@ -31,6 +31,10 @@
type: String, type: String,
default: '#fff' default: '#fff'
}, },
navigatePath: {
type: String,
default: '000'
},
}, },
data() { data() {
return { return {
@ -40,8 +44,8 @@
methods: { methods: {
back() { back() {
console.log('返回'); console.log('返回');
if (this.title == '通告详情') { if (this.navigatePath != '000') {
this.$emit('goIndex') this.$tab.navigateTo(this.navigatePath)
} else { } else {
uni.navigateBack() uni.navigateBack()
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="dl-detail-box"> <view class="dl-detail-box">
<navigation-bar-vue title="通告详情" @goIndex="goIndex" style="width: 100%;" background-color="#ffffff" <navigation-bar-vue title="通告详情" :navigatePath="navigatePath" style="width: 100%;" background-color="#ffffff"
title-color="#000000"></navigation-bar-vue> title-color="#000000"></navigation-bar-vue>
<view class="notice-detail-last-box"> <view class="notice-detail-last-box">
<!-- 报名列表 --> <!-- 报名列表 -->
@ -254,6 +254,7 @@
}, },
data() { data() {
return { return {
navigatePath: '000',
//- //-
viewMy: false, viewMy: false,
//ID //ID
@ -339,6 +340,10 @@
this.noticeId = params.noticeId this.noticeId = params.noticeId
} }
if (params.navigatePath && params.navigatePath == "index") {
this.navigatePath = "/pages/index"
}
}, },
onShow() { onShow() {
if (null != getJSONData(constant.userInfo)) { if (null != getJSONData(constant.userInfo)) {

View File

@ -581,7 +581,7 @@
saveNotice(this.dataObj).then(res => { saveNotice(this.dataObj).then(res => {
this.dataObj.id = res.data.noticeId this.dataObj.id = res.data.noticeId
uni.showToast({ uni.showToast({
title: '发布成功等待审核', title: res.data.msg,
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })