1
This commit is contained in:
parent
ec0c3fd511
commit
cdb83fbf28
@ -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=>{
|
||||
|
@ -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 + '¬iceId=' + this
|
||||
.noticeId)
|
||||
},
|
||||
/**
|
||||
* 去报名列表
|
||||
|
Loading…
Reference in New Issue
Block a user