Browse Source

修改路演申请

zs 5 months ago
parent
commit
b37fcf5635
2 changed files with 6 additions and 1 deletions
  1. 5 0
      src/store/api/user/contactApply.js
  2. 1 1
      src/views/detail/matchDetail.vue

+ 5 - 0
src/store/api/user/contactApply.js

@@ -20,9 +20,14 @@ export const ContactApplyStore = defineStore('contactApply', () => {
     const res = await axios.$post(`${url}`, payload)
     return res
   }
+  const signCreate = async (payload) => {
+    const res = await axios.$post(`${url}/sign`, payload)
+    return res
+  }
   return {
     query,
     fetch,
     create,
+    signCreate
   }
 })

+ 1 - 1
src/views/detail/matchDetail.vue

@@ -327,7 +327,7 @@ const toChat = (item) => {
         let source = 'sign'
         let apply_user = user.value.id
         const obj = { source_id, source, apply_user }
-        const res = await contactApplyStore.create(obj)
+        const res = await contactApplyStore.signCreate(obj)
         if (res.errcode == 0) {
           ElMessage({ message: '申请联系方式等待消息通知', type: 'success' })
         } else {