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