Merge branch 'master' of http://192.168.1.26:3000/dianliang/dl_uniapp
This commit is contained in:
commit
ce2138ca5b
@ -71,10 +71,9 @@
|
|||||||
} from '@/api/business/member.js'
|
} from '@/api/business/member.js'
|
||||||
import noticeItem from '@/pages/components/notice-item.vue'
|
import noticeItem from '@/pages/components/notice-item.vue'
|
||||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import {
|
import {postForkUser} from '@/api/business/base.js'
|
||||||
postForkUser
|
import {getNoticeDetail} from '@/api/business/notice';
|
||||||
} from '@/api/business/base.js'
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navigationBarVue,
|
navigationBarVue,
|
||||||
@ -95,18 +94,21 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
//下来刷新状态
|
//下来刷新状态
|
||||||
isTriggered: false,
|
isTriggered: false,
|
||||||
//当前用户是否关注该博主
|
//当前用户是否关注该博主
|
||||||
isLove: false,
|
isLove: false,
|
||||||
|
noticeId:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(option) {
|
onLoad(option){
|
||||||
this.userId = option.userId
|
console.log(option,'option')
|
||||||
this.queryParams.userId = option.userId
|
this.userId = option.userId
|
||||||
this.isLove = option.isLove
|
this.queryParams.userId = option.userId
|
||||||
this.initMember()
|
this.noticeId = option.noticeId
|
||||||
this.initNotice()
|
this.initMember()
|
||||||
},
|
this.initNotice()
|
||||||
|
this.getDetail()
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
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() {
|
initMember() {
|
||||||
announcerDetail(this.userId).then(res => {
|
announcerDetail(this.userId).then(res => {
|
||||||
|
@ -457,8 +457,8 @@
|
|||||||
.noticeId)
|
.noticeId)
|
||||||
},
|
},
|
||||||
goMemberIndex() {
|
goMemberIndex() {
|
||||||
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '&isLove' + this
|
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '¬iceId=' + this
|
||||||
.isLove)
|
.noticeId)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 去报名列表
|
* 去报名列表
|
||||||
|
Loading…
Reference in New Issue
Block a user