|
@@ -438,31 +438,32 @@ const handleSubmit = async (val) =>{
|
|
}, 3000)
|
|
}, 3000)
|
|
}
|
|
}
|
|
|
|
|
|
-// let toDetailsInfo = {}
|
|
|
|
|
|
+let toDetailsInfo = {}
|
|
// 沟通
|
|
// 沟通
|
|
const toDetails = async (info) => {
|
|
const toDetails = async (info) => {
|
|
- // if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
- // else info = toDetailsInfo
|
|
|
|
|
|
+ if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
+ else info = toDetailsInfo
|
|
if (!getToken()) {
|
|
if (!getToken()) {
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
//
|
|
//
|
|
nextFunc.value = null // 登录成功后要执行的操作
|
|
nextFunc.value = null // 登录成功后要执行的操作
|
|
|
|
+ // nextFunc.value = toDetails // 登录成功后要执行的操作
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
return
|
|
return
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
- const userId = info.value.contact.userId
|
|
|
|
- const enterpriseId = info.value.contact.enterpriseId
|
|
|
|
|
|
+ const userId = info.contact.userId
|
|
|
|
+ const enterpriseId = info.contact.enterpriseId
|
|
const textObj = {
|
|
const textObj = {
|
|
text: defaultText,
|
|
text: defaultText,
|
|
positionInfo: positionInfo.value
|
|
positionInfo: positionInfo.value
|
|
}
|
|
}
|
|
console.log(textObj)
|
|
console.log(textObj)
|
|
await prologue({userId, enterpriseId, text: JSON.stringify(textObj)})
|
|
await prologue({userId, enterpriseId, text: JSON.stringify(textObj)})
|
|
- let url = `/recruit/personal/message?id=${info.value.id}`
|
|
|
|
- if (info.value.contact.enterpriseId) {
|
|
|
|
- url += `&enterprise=${info.value.contact.enterpriseId}`
|
|
|
|
|
|
+ let url = `/recruit/personal/message?id=${info.id}`
|
|
|
|
+ if (info.contact.enterpriseId) {
|
|
|
|
+ url += `&enterprise=${info.contact.enterpriseId}`
|
|
}
|
|
}
|
|
|
|
|
|
router.push(url)
|
|
router.push(url)
|