This commit is contained in:
Vinjor 2025-04-25 17:25:55 +08:00
commit b04e9bce3c
3 changed files with 34 additions and 5 deletions

View File

@ -16,6 +16,13 @@ export function announcerDetail(userId) {
method: 'get'
})
}
//查询通告主详情
export function getMemberDetail() {
return request({
url: '/member/member/getMemberDetail',
method: 'get'
})
}
export function queryDetail(params) {
return request({
url: '/member/member/queryDetail',
@ -200,4 +207,4 @@ export function getMemberCoupon() {
url: '/member/coupon/getMemberCoupon',
method: 'get',
})
}
}

View File

@ -65,7 +65,7 @@
<view>每条轻松赚<text>{{point || ''}}</text>积分</view>
</view>
<view class="dl-right">
<view class="dl-opt-dom">去转发</view>
<view class="dl-opt-dom" @click="toPublish()">去转发</view>
</view>
</view>
@ -177,7 +177,8 @@
getNoticeList
} from '@/api/business/notice.js'
import {
dealMemberRights
dealMemberRights,
getMemberDetail
} from '@/api/business/member.js'
import {
getJSONData
@ -187,7 +188,9 @@
} from '@/utils/common.js'
import constant from '@/utils/constant';
import store from '@/store'
import {
changeUserType
} from '@/utils/common.js'
export default {
components: {
noticeItem
@ -247,6 +250,24 @@
},
methods: {
/**
* 去发布
*/
toPublish() {
getMemberDetail().then(res => {
if (!res.data.identityType) {
uni.showToast({
title: '暂未通告主认证,请先认证',
icon: 'none',
duration: 1000
})
} else {
changeUserType("01")
this.$tab.navigateTo(`/pages/notice/public-notice`)
}
})
},
/**
* 查询发布通告送多少积分
*/

View File

@ -1081,4 +1081,5 @@
.checklist-box {
margin-right: 0 !important;
}
</style>
</style>