This commit is contained in:
PQZ 2025-04-15 15:44:20 +08:00
parent 078509a382
commit 852454daae
7 changed files with 76 additions and 23 deletions

View File

@ -9,6 +9,13 @@ export function bloggerDetail(userId) {
method: 'get'
})
}
//查询通告主详情
export function announcerDetail(userId) {
return request({
url: '/member/member/announcerDetail/' + userId,
method: 'get'
})
}
export function queryDetail(params) {
return request({
url: '/member/member/queryDetail',

View File

@ -115,3 +115,12 @@ export function feedbackList(params) {
params: params
})
}
// 查询当前登录用户通告
export function queryListByUserId(params) {
return request({
url: '/busi/notice/myPublishNoticeList',
method: 'get',
params: params
})
}

View File

@ -133,7 +133,7 @@
} else {
this.byList = this.byList.concat(res.data.records)
}
this.total = res.data.data.total
this.total = res.data.total
}
})
},

View File

@ -5,16 +5,16 @@
<view class="choose-detail">
<view class="people-info-box">
<view class="image-box">
<image src="@/static/images/profile.jpg" mode="aspectFit"></image>
<image :src="imageUrl+member.avatar" mode="aspectFit"></image>
</view>
<view class="people-name-box">
<view class="name-box">
<view class="name-dom">资深PR</view>
<view class="fans-dom">61关注</view>
<view class="name-dom">{{ member.nickName }}</view>
<view class="fans-dom">{{ member.tfansNum }}关注</view>
</view>
<view class="renzheng-dom">
<image src="@/static/mine/auth/renzhen.png" mode="aspectFit"></image>
认证代运营公司
认证{{ member.identityName }}
</view>
</view>
<view class="opt-box">
@ -22,10 +22,10 @@
<view class="guanzhu">关注</view>
</view>
</view>
<view class="bozhu-type-box">
<view class="item-dom">好物</view>
<view class="item-dom">颜值</view>
</view>
<!-- <view class="bozhu-type-box">-->
<!-- <view class="item-dom">好物</view>-->
<!-- <view class="item-dom">颜值</view>-->
<!-- </view>-->
<view class="pingjia-box">
<view class="pingjia-content">
<view class="top-title">
@ -33,22 +33,18 @@
合作博主评价
</view>
<view class="item-box">
<view class="item-dom">定人快(<text>1</text>)</view>
<view class="item-dom">审稿快(<text>2</text>)</view>
<view class="item-dom">审稿快(<text>2</text>)</view>
<view class="item-dom">审稿快(<text>2</text>)</view>
<view class="item-dom">审稿快(<text>2</text>)</view>
<view v-for="item in member.evaluates" class="item-dom">{{item.evaluate}}(<text>{{ item.num }}</text>)</view>
</view>
</view>
</view>
<view class="dl-title">
<image src="@/static/mine/auth/dian.png" mode="aspectFit"></image>
<text>进行中的通告(<text>14</text>)</text>
<text>进行中的通告(<text>{{total}}</text>)</text>
</view>
<view class="data-list-box">
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus" refresher-enabled
@refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
<notice-item v-if="dataList.length>0" :dataList="dataList" @goDetail="goDetail()"></notice-item>
<notice-item v-if="dataList.length>0" :dataList="dataList" ></notice-item>
<view style="text-align: center" v-if="dataList.length==0">
<image class="" src="@/static/images/nothing.png"></image>
</view>
@ -59,11 +55,12 @@
</template>
<script>
import {
toast
} from '@/utils/common.js'
import {toast} from '@/utils/common.js'
import {queryListByUserId} from '@/api/business/notice.js'
import {announcerDetail} from '@/api/business/member.js'
import noticeItem from '@/pages/components/notice-item.vue'
import navigationBarVue from '@/components/navigation/navigationBar.vue';
import config from '@/config'
export default {
components: {
navigationBarVue,
@ -71,17 +68,55 @@
},
data() {
return {
imageUrl: config.baseUrl,
member:{},
dataList: ['', ''],
queryParams: {
pageNum: 1,
pageSize: 10
pageSize: 10,
userId:null,
status:'进行中',
},
userId:null,
total: 0,
//
isTriggered: false
}
},
onLoad(option){
this.userId = option.userId
this.queryParams.userId = option.userId
this.initMember()
this.initNotice()
},
methods: {
/**出初始化通告主详情*/
initMember(){
announcerDetail(this.userId).then(res=>{
if (res.code ==200){
this.member = res.data
}
})
},
/**初始化通告列表*/
initNotice(){
queryListByUserId(this.queryParams).then(res=>{
this.isTriggered = false
if (res.code == 200){
if (this.queryParams.pageNum == 1) {
this.dataList = res.data.records
} else {
this.dataList = this.dataList.concat(res.data.records)
}
this.total = res.data.total
}
})
},
/**
* 上滑加载数据
*/
@ -93,6 +128,7 @@
}
//+1,
this.queryParams.pageNum++
this.initNotice()
},
/**
* 下拉刷新数据
@ -101,6 +137,7 @@
this.isTriggered = true
this.queryParams.pageNum = 1
this.total = 0
this.initNotice()
},
}
}

View File

@ -80,7 +80,7 @@
} else {
this.dataList = this.dataList.concat(res.data.records)
}
this.total = res.data.data.total
this.total = res.data.total
}
})
},

View File

@ -85,7 +85,7 @@
return item;
});
}
this.total = res.data.data.total
this.total = res.data.total
}
})
},

View File

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