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

View File

@ -1,6 +1,6 @@
<template>
<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>
<view class="notice-detail-last-box">
<!-- 报名列表 -->
@ -254,6 +254,7 @@
},
data() {
return {
navigatePath: '000',
//-
viewMy: false,
//ID
@ -339,6 +340,10 @@
this.noticeId = params.noticeId
}
if (params.navigatePath && params.navigatePath == "index") {
this.navigatePath = "/pages/index"
}
},
onShow() {
if (null != getJSONData(constant.userInfo)) {

View File

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