This commit is contained in:
Vinjor 2025-05-08 17:44:12 +08:00
commit ce2138ca5b
2 changed files with 37 additions and 15 deletions

View File

@ -72,9 +72,8 @@
import noticeItem from '@/pages/components/notice-item.vue'
import navigationBarVue from '@/components/navigation/navigationBar.vue';
import config from '@/config'
import {
postForkUser
} from '@/api/business/base.js'
import {postForkUser} from '@/api/business/base.js'
import {getNoticeDetail} from '@/api/business/notice';
export default {
components: {
navigationBarVue,
@ -97,15 +96,18 @@
isTriggered: false,
//
isLove: false,
noticeId:null,
}
},
onLoad(option){
console.log(option,'option')
this.userId = option.userId
this.queryParams.userId = option.userId
this.isLove = option.isLove
this.noticeId = option.noticeId
this.initMember()
this.initNotice()
this.getDetail()
},
methods: {
@ -136,6 +138,26 @@
})
},
/**
* 查通告详情
*/
getDetail() {
getNoticeDetail({
noticeId: this.noticeId
}).then(res => {
if (res.code == 200) {
this.isLove = res.data.isLove
}
}).catch((e) => {
this.isTriggered = false
uni.showToast({
icon: 'error',
duration: 2000,
title: e
});
})
},
/**出初始化通告主详情*/
initMember() {
announcerDetail(this.userId).then(res => {

View File

@ -457,8 +457,8 @@
.noticeId)
},
goMemberIndex() {
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '&isLove' + this
.isLove)
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '&noticeId=' + this
.noticeId)
},
/**
* 去报名列表