|
@@ -87,9 +87,11 @@
|
|
|
<script setup>
|
|
|
import { get } from 'lodash-es'
|
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
|
+import { ContactApplyStore } from '@/store/api/user/contactApply'
|
|
|
import { DemandStore } from '@/store/api/platform/demand'
|
|
|
const store = DemandStore()
|
|
|
const dictDataStore = DictDataStore()
|
|
|
+const contactApplyStore = ContactApplyStore()
|
|
|
// 收藏
|
|
|
import moment from 'moment'
|
|
|
import { CollectionStore } from '@/store/api/platform/collection'
|
|
@@ -221,6 +223,11 @@ const toChat = () => {
|
|
|
if (user.value.id) {
|
|
|
ElMessageBox.confirm(`您确认要获取联系方式?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
|
|
|
.then(async () => {
|
|
|
+ let source_id = route.query.id
|
|
|
+ let source = 'demand'
|
|
|
+ let apply_user = user.value.id
|
|
|
+ const obj = { source_id, source, apply_user }
|
|
|
+ await contactApplyStore.create(obj)
|
|
|
ElMessage({ message: `获取联系方式成功等待消息通知`, type: 'success' })
|
|
|
})
|
|
|
.catch(() => {})
|