1
This commit is contained in:
parent
d10f5e9439
commit
e8ea581394
@ -55,6 +55,14 @@ export function toApply(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//消耗权益值
|
||||||
|
export function dealMemberRights(params) {
|
||||||
|
return request({
|
||||||
|
url: '/member/card/dealMemberRights',
|
||||||
|
method: 'get',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//------------------名片-----------------------
|
//------------------名片-----------------------
|
||||||
|
|||||||
@ -170,6 +170,10 @@
|
|||||||
import {
|
import {
|
||||||
getNoticeList
|
getNoticeList
|
||||||
} from '@/api/business/notice.js'
|
} 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 {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -440,8 +444,32 @@
|
|||||||
* @param {Object} item
|
* @param {Object} item
|
||||||
*/
|
*/
|
||||||
goDetail(item) {
|
goDetail(item) {
|
||||||
this.$tab.navigateTo(`/pages/notice/detail?id=${item.id}`)
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user