This commit is contained in:
Vinjor 2025-04-23 17:08:55 +08:00
commit 0d4ff8eb1f
3 changed files with 50 additions and 6 deletions

View File

@ -176,4 +176,12 @@ export function pointList(params) {
method: 'get', method: 'get',
params: params params: params
}) })
}
//新增黑名单
export function saveBlack(data) {
return request({
url: '/member/blacklist/saveBlack',
method: 'post',
data: data
})
} }

View File

@ -12,14 +12,17 @@
<view class="name-dom">{{ member.nickName }}</view> <view class="name-dom">{{ member.nickName }}</view>
<view class="fans-dom">{{ member.tfansNum }}关注</view> <view class="fans-dom">{{ member.tfansNum }}关注</view>
</view> </view>
<view class="renzheng-dom"> <view v-if="null != member.identityName" class="renzheng-dom">
<image src="@/static/mine/auth/renzhen.png" mode="aspectFit"></image> <image src="@/static/mine/auth/renzhen.png" mode="aspectFit"></image>
认证{{ member.identityName }} 认证{{ member.identityName }}
</view> </view>
<view v-else class="renzheng-dom">
未认证
</view>
</view> </view>
<view class="opt-box"> <view class="opt-box">
<view class="lahei">拉黑</view> <view class="guanzhu" v-if="!isLove" @click="forkUser('1')">关注</view>
<view class="guanzhu">关注</view> <view class="guanzhu" v-if="isLove" @click="forkUser('0')">取消关注</view>
</view> </view>
</view> </view>
<!-- <view class="bozhu-type-box">--> <!-- <view class="bozhu-type-box">-->
@ -61,6 +64,7 @@
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 {postForkUser} from '@/api/business/base.js'
export default { export default {
components: { components: {
navigationBarVue, navigationBarVue,
@ -80,19 +84,48 @@
userId:null, userId:null,
total: 0, total: 0,
// //
isTriggered: false isTriggered: false,
//
isLove: false,
} }
}, },
onLoad(option){ onLoad(option){
this.userId = option.userId this.userId = option.userId
this.queryParams.userId = option.userId this.queryParams.userId = option.userId
this.isLove = option.isLove
this.initMember() this.initMember()
this.initNotice() this.initNotice()
}, },
methods: { methods: {
/**
* 关注取消关注
* @param {Object} isLove
*/
forkUser(isLove) {
postForkUser({
userId: this.userId,
isLove: isLove
}).then(res => {
if (res.code == 200) {
uni.showToast({
icon: 'success',
duration: 2000,
title: '操作成功'
});
this.isLove = isLove == '1'
}
}).catch((e) => {
uni.showToast({
icon: 'error',
duration: 2000,
title: e
});
})
},
/**出初始化通告主详情*/ /**出初始化通告主详情*/
initMember(){ initMember(){
announcerDetail(this.userId).then(res=>{ announcerDetail(this.userId).then(res=>{

View File

@ -401,7 +401,7 @@
.noticeId) .noticeId)
}, },
goMemberIndex() { goMemberIndex() {
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId) this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '&isLove' + this.isLove)
}, },
/** /**
* 去报名列表 * 去报名列表
@ -472,12 +472,15 @@
* @param {Object} index * @param {Object} index
*/ */
selectShare(dataObj) { selectShare(dataObj) {
console.log(dataObj,'dataObje')
if ('hb' == dataObj.item.name) { if ('hb' == dataObj.item.name) {
// //
this.$refs.canvas.canvasCreate(); this.$refs.canvas.canvasCreate();
} else if ('wx' == dataObj.item.name) { } else if ('wx' == dataObj.item.name) {
this.onShareAppMessage() this.onShareAppMessage()
} } else if ('jb' == dataObj.item.name){
this.goReportForm()
}
}, },
/** /**
* 微信分享 * 微信分享