1
This commit is contained in:
parent
078509a382
commit
852454daae
@ -9,6 +9,13 @@ export function bloggerDetail(userId) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//查询通告主详情
|
||||||
|
export function announcerDetail(userId) {
|
||||||
|
return request({
|
||||||
|
url: '/member/member/announcerDetail/' + userId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
export function queryDetail(params) {
|
export function queryDetail(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/member/member/queryDetail',
|
url: '/member/member/queryDetail',
|
||||||
|
@ -115,3 +115,12 @@ export function feedbackList(params) {
|
|||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询当前登录用户通告
|
||||||
|
export function queryListByUserId(params) {
|
||||||
|
return request({
|
||||||
|
url: '/busi/notice/myPublishNoticeList',
|
||||||
|
method: 'get',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
} else {
|
} else {
|
||||||
this.byList = this.byList.concat(res.data.records)
|
this.byList = this.byList.concat(res.data.records)
|
||||||
}
|
}
|
||||||
this.total = res.data.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
<view class="choose-detail">
|
<view class="choose-detail">
|
||||||
<view class="people-info-box">
|
<view class="people-info-box">
|
||||||
<view class="image-box">
|
<view class="image-box">
|
||||||
<image src="@/static/images/profile.jpg" mode="aspectFit"></image>
|
<image :src="imageUrl+member.avatar" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="people-name-box">
|
<view class="people-name-box">
|
||||||
<view class="name-box">
|
<view class="name-box">
|
||||||
<view class="name-dom">资深PR</view>
|
<view class="name-dom">{{ member.nickName }}</view>
|
||||||
<view class="fans-dom">61关注</view>
|
<view class="fans-dom">{{ member.tfansNum }}关注</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="renzheng-dom">
|
<view 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 }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="opt-box">
|
<view class="opt-box">
|
||||||
@ -22,10 +22,10 @@
|
|||||||
<view class="guanzhu">关注</view>
|
<view class="guanzhu">关注</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bozhu-type-box">
|
<!-- <view class="bozhu-type-box">-->
|
||||||
<view class="item-dom">好物</view>
|
<!-- <view class="item-dom">好物</view>-->
|
||||||
<view class="item-dom">颜值</view>
|
<!-- <view class="item-dom">颜值</view>-->
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<view class="pingjia-box">
|
<view class="pingjia-box">
|
||||||
<view class="pingjia-content">
|
<view class="pingjia-content">
|
||||||
<view class="top-title">
|
<view class="top-title">
|
||||||
@ -33,22 +33,18 @@
|
|||||||
合作博主评价:
|
合作博主评价:
|
||||||
</view>
|
</view>
|
||||||
<view class="item-box">
|
<view class="item-box">
|
||||||
<view class="item-dom">定人快(<text>1</text>)</view>
|
<view v-for="item in member.evaluates" class="item-dom">{{item.evaluate}}(<text>{{ item.num }}</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="dl-title">
|
<view class="dl-title">
|
||||||
<image src="@/static/mine/auth/dian.png" mode="aspectFit"></image>
|
<image src="@/static/mine/auth/dian.png" mode="aspectFit"></image>
|
||||||
<text>进行中的通告(<text>14</text>)</text>
|
<text>进行中的通告(<text>{{total}}</text>)</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="data-list-box">
|
<view class="data-list-box">
|
||||||
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus" refresher-enabled
|
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus" refresher-enabled
|
||||||
@refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
|
@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">
|
<view style="text-align: center" v-if="dataList.length==0">
|
||||||
<image class="" src="@/static/images/nothing.png"></image>
|
<image class="" src="@/static/images/nothing.png"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -59,11 +55,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {toast} from '@/utils/common.js'
|
||||||
toast
|
import {queryListByUserId} from '@/api/business/notice.js'
|
||||||
} from '@/utils/common.js'
|
import {announcerDetail} 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'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navigationBarVue,
|
navigationBarVue,
|
||||||
@ -71,17 +68,55 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
imageUrl: config.baseUrl,
|
||||||
|
member:{},
|
||||||
dataList: ['', ''],
|
dataList: ['', ''],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
|
userId:null,
|
||||||
|
status:'进行中',
|
||||||
},
|
},
|
||||||
|
userId:null,
|
||||||
total: 0,
|
total: 0,
|
||||||
//下来刷新状态
|
//下来刷新状态
|
||||||
isTriggered: false
|
isTriggered: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onLoad(option){
|
||||||
|
this.userId = option.userId
|
||||||
|
this.queryParams.userId = option.userId
|
||||||
|
this.initMember()
|
||||||
|
this.initNotice()
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
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,调用获取数据的方法获取第二页数据
|
//页码+1,调用获取数据的方法获取第二页数据
|
||||||
this.queryParams.pageNum++
|
this.queryParams.pageNum++
|
||||||
|
this.initNotice()
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 下拉刷新数据
|
* 下拉刷新数据
|
||||||
@ -101,6 +137,7 @@
|
|||||||
this.isTriggered = true
|
this.isTriggered = true
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.total = 0
|
this.total = 0
|
||||||
|
this.initNotice()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
} else {
|
} else {
|
||||||
this.dataList = this.dataList.concat(res.data.records)
|
this.dataList = this.dataList.concat(res.data.records)
|
||||||
}
|
}
|
||||||
this.total = res.data.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.total = res.data.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -395,7 +395,7 @@
|
|||||||
this.$tab.navigateTo('/pages/mine/set/report-form?userId='+this.userDetail.userId+'¬iceId='+this.noticeId)
|
this.$tab.navigateTo('/pages/mine/set/report-form?userId='+this.userDetail.userId+'¬iceId='+this.noticeId)
|
||||||
},
|
},
|
||||||
goMemberIndex() {
|
goMemberIndex() {
|
||||||
this.$tab.navigateTo('/pages/mine/member/member-index')
|
this.$tab.navigateTo('/pages/mine/member/member-index?userId='+this.userDetail.userId)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 去报名列表
|
* 去报名列表
|
||||||
|
Loading…
Reference in New Issue
Block a user