微信通知功能

This commit is contained in:
13405411873 2025-04-28 15:02:08 +08:00
parent c76258b433
commit 2286d6b3ad
4 changed files with 41 additions and 26 deletions

View File

@ -77,6 +77,13 @@
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
<view class="dl-item-right dl-number">{{dataObj.viewNum}}</view>
</view>
<view class="item-box" style="width: 25%;">
<view>
{{dataObj.isPlatformFree==1?'平台结算':''}}
</view>
</view>
</view>
</view>
<image class="right-image" :src="imageUrl+dataObj.mainImage" mode="aspectFit"></image>

View File

@ -260,6 +260,7 @@
userId: this.userInfo.userId,
userType: this.localUserType
}).then(res => {
this.userInfo.nickName = res.data.nickName.toString()
this.userInfo.tfansNum = res.data.tfansNum.toString()
this.userInfo.pointsBalance = res.data.pointsBalance.toString()
this.userInfo.report = res.data.report.toString()

View File

@ -154,8 +154,8 @@
</view>
</view>
</view>
<!-- 报名列表 -->
<view class="info-box notice-detail" v-if="!viewMy">
<!-- 报名列表 暂时注释-->
<!-- <view class="info-box notice-detail" v-if="!viewMy">
<view class="detail-title">已报名{{allImgNum}}</view>
<view class="image-box" v-if="imageArray.length>0"
:style="{height:(imageArray.length*(imageWidth+10)+20)+'rpx'}">
@ -171,7 +171,7 @@
</view>
</view>
</view>
</view> -->
<!-- 去报名始终浮动下方 -->
<view class="dl-bottom-box" v-show="showBottom&&type=='common'">
<!-- 报名 -->
@ -228,7 +228,8 @@
calculateTimeDifference
} from '@/utils/common.js'
import {
getJSONData
getJSONData,
getToken
} from '@/utils/auth.js'
import {
getNoticeDetail,
@ -458,22 +459,25 @@
* 浏览通告
*/
viewNotice() {
let userId = null
if (null != this.userInfo) {
userId = this.userInfo.userId
}
addView({
noticeId: this.noticeId,
userId: userId
}).then(res => {
if (getToken()) {
let userId = null
if (null != this.userInfo) {
userId = this.userInfo.userId
}
addView({
noticeId: this.noticeId,
userId: userId
}).then(res => {
}).catch((e) => {
uni.showToast({
icon: 'error',
duration: 2000,
title: e
});
})
}
}).catch((e) => {
uni.showToast({
icon: 'error',
duration: 2000,
title: e
});
})
},
//
shareSuccess(e) {
@ -591,11 +595,14 @@
* 判断用户类型
*/
checkUserType() {
let userType = getUserType()
if (constant.bz != userType) {
//
this.ifBz = false
if (getToken()) {
let userType = getUserType()
if (constant.bz != userType) {
//
this.ifBz = false
}
}
},
/**
* 切换当前用户类型为博主
@ -915,7 +922,7 @@
width: 100%;
.report-box {
width: calc(100% - 60rpx);
width: calc(100% - 60rpx);
display: flex;
justify-content: center;
align-items: center;

View File

@ -112,7 +112,7 @@
<switch v-else style="float: right;display: flex;" color="#FC1F3E"
@change="switchChange($event,'newNotice')" />
</view>
<view class="seting-view"><text>订阅通告主新通告</text>
<view class="seting-view"><text>关注的通告主新通告</text>
<switch v-if="dataObj.forkNotice" style="float: right;display: flex;" checked
color="#FC1F3E" @change="switchChange($event,'forkNotice')" />
<switch v-else style="float: right;display: flex;" color="#FC1F3E"
@ -495,4 +495,4 @@
}
}
}
</style>
</style>