1
This commit is contained in:
parent
d10f5e9439
commit
e8ea581394
@ -55,6 +55,14 @@ export function toApply(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//消耗权益值
|
||||
export function dealMemberRights(params) {
|
||||
return request({
|
||||
url: '/member/card/dealMemberRights',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//------------------名片-----------------------
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user