通告功能

This commit is contained in:
13405411873 2025-04-25 09:58:33 +08:00
parent 256503857b
commit 0eeae08bea
6 changed files with 59 additions and 32 deletions

View File

@ -192,7 +192,7 @@
},
data() {
return {
menus: ['全部', '最新', '高奖励', '品牌置换'],
menus: ['全部', '最新', '平台结算', '急招', '品牌置换'],
menuIndex: 0,
dataList: [],
queryParams: {
@ -343,10 +343,12 @@
* @param {Object} item
*/
async itemClick(index, item) {
this.queryParams.gift = null
this.queryParams.sortBy = null
this.queryParams.isUrgent = null
this.queryParams.isPlatformFree = null
if ('全部' == item) {
//
this.queryParams.sortBy = ""
this.queryParams.gift = ""
} else if ('最新' == item) {
//
//
@ -354,12 +356,16 @@
return
}
this.queryParams.sortBy = "new"
} else if ('高奖励' == item) {
} else if ('急招' == item) {
//
if (!await this.checkIfHasRights(rightsCode.highNewNotice)) {
return
}
this.queryParams.sortBy = "money"
this.queryParams.isUrgent = "1"
} else if ('平台结算' == item) {
//
this.queryParams.isPlatformFree = "1"
} else if ('品牌置换' == item) {
//
this.queryParams.gift = "gift"

View File

@ -26,10 +26,10 @@
<image class="dl-icon2" :src="imageUrl+item.avatar" mode="aspectFit"></image>
<view class="dl-item-right">{{item.userNickName}}</view>
</view>
<view class="item-box" style="width: 28%;">
<!-- <view class="item-box" style="width: 28%;">
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
<view class="dl-item-right dl-number">{{item.reportNum}}</view>
</view>
</view> -->
<view class="item-box" style="width: 28%;">
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
<view class="dl-item-right dl-number">{{item.viewNum}}</view>
@ -67,10 +67,10 @@
<image class="dl-icon2" :src="imageUrl+dataObj.avatar" mode="aspectFit"></image>
<view class="dl-item-right">{{dataObj.userNickName}}</view>
</view>
<view class="item-box" style="width: 25%;">
<!-- <view class="item-box" style="width: 25%;">
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
<view class="dl-item-right dl-number">{{dataObj.reportNum}}</view>
</view>
</view> -->
<view class="item-box" style="width: 25%;">
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
<view class="dl-item-right dl-number">{{dataObj.viewNum}}</view>

View File

@ -88,12 +88,7 @@
getHisList(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
this.dataList = res.data
}
}).catch((e) => {
this.isTriggered = false
@ -115,14 +110,14 @@
* 上滑加载数据
*/
onReachBottomCus() {
// *
if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total) {
toast("没有更多数据了")
return
}
//+1,
this.queryParams.pageNum++
this.selectDataList()
// // *
// if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total) {
// toast("")
// return
// }
// //+1,
// this.queryParams.pageNum++
// this.selectDataList()
},
/**
* 下拉刷新数据

View File

@ -66,7 +66,7 @@
</view>
<view class="dl-value">{{noticeDetail.needNum||'0'}} </view>
</view>
<view class="dl-item">
<view class="dl-item" v-if="noticeDetail.isShowBrand&&noticeDetail.isShowBrand==1">
<view class="dl-label">
产品品牌
</view>
@ -93,6 +93,22 @@
</view>
<view class="dl-value">{{noticeDetail.bloggerTypes||''}}</view>
</view>
<view class="dl-item">
<view class="dl-label">
是否平台结算
</view>
<view class="dl-value">
{{!noticeDetail.isPlatformFree?'否':noticeDetail.isPlatformFree==1?'是':'否'}}
</view>
</view>
<view class="dl-item">
<view class="dl-label">
是否急招
</view>
<view class="dl-value">
{{!noticeDetail.isUrgent?'否':noticeDetail.isUrgent==1?'是':'否'}}
</view>
</view>
</view>
<view class="bottom-box">
<text class="update-text">{{calculateTimeDifference(noticeDetail.updateTime)||''}}更新</text>
@ -401,7 +417,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 + '&isLove' + this
.isLove)
},
/**
* 去报名列表
@ -472,15 +489,15 @@
* @param {Object} index
*/
selectShare(dataObj) {
console.log(dataObj,'dataObje')
console.log(dataObj, 'dataObje')
if ('hb' == dataObj.item.name) {
//
this.$refs.canvas.canvasCreate();
} else if ('wx' == dataObj.item.name) {
this.onShareAppMessage()
} else if ('jb' == dataObj.item.name){
this.goReportForm()
}
} else if ('jb' == dataObj.item.name) {
this.goReportForm()
}
},
/**
* 微信分享

View File

@ -95,6 +95,15 @@
@change="change($event,'isPlatformFree')" :clear="false"></uni-data-select>
</view>
</view>
<view class="item-field">
<view class="item-lable ">
是否急招
</view>
<view class="item-value">
<uni-data-select v-model="dataObj.isUrgent" :localdata="ifHasRange"
@change="change($event,'isUrgent')" :clear="false"></uni-data-select>
</view>
</view>
<view class="item-field">
<view class="item-lable is-required">
是否有赠品
@ -1065,4 +1074,4 @@
.checklist-box {
margin-right: 0 !important;
}
</style>
</style>

View File

@ -287,7 +287,7 @@
success: function() {
uni.showToast({
title: '名单复制成功,请到浏览器下载',
icon: 'icon',
icon: 'none',
duration: 2000
});
},