bug修复
This commit is contained in:
parent
4f7cda122e
commit
d326e2e872
@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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)) {
|
||||||
|
|||||||
@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user