This commit is contained in:
PQZ 2025-05-08 17:12:40 +08:00
parent ec0c3fd511
commit cdb83fbf28
2 changed files with 29 additions and 3 deletions

View File

@ -65,6 +65,9 @@
import navigationBarVue from '@/components/navigation/navigationBar.vue';
import config from '@/config'
import {postForkUser} from '@/api/business/base.js'
import {
getNoticeDetail
} from '@/api/business/notice';
export default {
components: {
navigationBarVue,
@ -87,15 +90,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: {
@ -126,6 +132,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)
},
/**
* 去报名列表