This commit is contained in:
PQZ 2025-04-18 17:53:46 +08:00
parent d10f5e9439
commit e8ea581394
2 changed files with 38 additions and 2 deletions

View File

@ -55,6 +55,14 @@ export function toApply(data) {
data: data
})
}
//消耗权益值
export function dealMemberRights(params) {
return request({
url: '/member/card/dealMemberRights',
method: 'get',
params: params
})
}
//------------------名片-----------------------

View File

@ -170,6 +170,10 @@
import {
getNoticeList
} from '@/api/business/notice.js'
import {dealMemberRights} from '@/api/business/member.js'
import {getJSONData} from '@/utils/auth.js';
import {getUserType} from '@/utils/common.js'
import constant from '@/utils/constant';
export default {
components: {
@ -440,7 +444,31 @@
* @param {Object} item
*/
goDetail(item) {
let userInfo = getJSONData(constant.userInfo)
let userType = getUserType()
let param = {
userId: userInfo.userId,
userType: userType,
noticeId: item.id,
rightsCode: 'unlock_notice',
deplete:1
}
dealMemberRights(param).then(res=>{
if (res.code == 200) {
this.$tab.navigateTo(`/pages/notice/detail?id=${item.id}`)
}
}).catch((e) => {
uni.showToast({
icon: 'error',
duration: 2000,
title: e
});
})
},
/**扣除解锁通告权益*/
dealMemberRights(){
dealMemberRights()
}
}
}