Browse Source

简历:效验是否有查看简历额度

Xiao_123 8 hours ago
parent
commit
97487e833e
1 changed files with 7 additions and 1 deletions
  1. 7 1
      pagesA/resume/item.vue

+ 7 - 1
pagesA/resume/item.vue

@@ -116,6 +116,13 @@ const handleDetail = async (val) => {
 
 
 // 查看附件
 // 查看附件
 const handlePreview = async (val) => {
 const handlePreview = async (val) => {
+	// 效验企业是否有查看简历次数
+	const info = await user.getUserInfos()
+	if (info?.entitlement?.lookCvCount <= 0) {
+		uni.showToast({ title: '查看简历次数已用完,请联系门墩儿管理员', icon: 'none', duration: 2000 })
+		return
+	}
+
 	const id = props.current === 0 ? val.id : val?.cvRel?.id
 	const id = props.current === 0 ? val.id : val?.cvRel?.id
 	const url = props.current === 0 ? val.url : val?.cvRel?.url
 	const url = props.current === 0 ? val.url : val?.cvRel?.url
 	if (!val.userId || !id) {
 	if (!val.userId || !id) {
@@ -278,7 +285,6 @@ const handleSettlement = async (item) => {
 
 
 // 入职
 // 入职
 const handleEnterByEnterprise = async (item) => {
 const handleEnterByEnterprise = async (item) => {
-	console.log(item, '====入职====')
 	if (!item.id) {
 	if (!item.id) {
 		uni.showToast({ title: 'ID不存在', icon: 'none' })
 		uni.showToast({ title: 'ID不存在', icon: 'none' })
 		return
 		return