Bläddra i källkod

获取分享参数接口更换

Xiao_123 2 månader sedan
förälder
incheckning
b23407b7b1
3 ändrade filer med 17 tillägg och 4 borttagningar
  1. 13 0
      api/jobFair.js
  2. 3 3
      pagesB/positionDetail/index.vue
  3. 1 1
      utils/config.js

+ 13 - 0
api/jobFair.js

@@ -51,3 +51,16 @@ export const getJobFairEntJobPage = (params) => {
     }
     }
   })
   })
 }
 }
+
+// 根据id获取分享参数
+export const getShareQueryById = (params) => {
+  return request({
+    url: '/app-api/menduner/system/share/get',
+    method: 'GET',
+    params,
+    custom: {
+      showLoading: false,
+      auth: false
+    }
+  })
+}

+ 3 - 3
pagesB/positionDetail/index.vue

@@ -221,8 +221,7 @@ import {
   getPersonJobUnfavorite, // 取消收藏
   getPersonJobUnfavorite, // 取消收藏
   getPersonJobFavorite, // 收藏
   getPersonJobFavorite, // 收藏
   getJobFavoriteCheck,
   getJobFavoriteCheck,
-  jobCvRelHireSend,
-  getShareDetail
+  jobCvRelHireSend
 } from '@/api/position'
 } from '@/api/position'
 import { getPersonResumeCv, saveResume } from '@/api/user'
 import { getPersonResumeCv, saveResume } from '@/api/user'
 import { dealDictObjData } from '@/utils/position'
 import { dealDictObjData } from '@/utils/position'
@@ -232,6 +231,7 @@ import { prologue, defaultText } from '@/hooks/useIM'
 import { userStore } from '@/store/user'
 import { userStore } from '@/store/user'
 import { getSubscribeTemplateList } from '@/api/common'
 import { getSubscribeTemplateList } from '@/api/common'
 import { formatName } from '@/utils/getText'
 import { formatName } from '@/utils/getText'
+import { getShareQueryById } from '@/api/jobFair.js'
 
 
 const useUserStore = userStore()
 const useUserStore = userStore()
 const sharePopup = ref()
 const sharePopup = ref()
@@ -266,7 +266,7 @@ onLoad(async (options) => {
   if (options.scene) {
   if (options.scene) {
     const scene = decodeURIComponent(options.scene)
     const scene = decodeURIComponent(options.scene)
     const str = scene.split('=')
     const str = scene.split('=')
-    const res = await getShareDetail({ id: str[1] })
+    const res = await getShareQueryById({ key: str[1] })
     obj = res.data
     obj = res.data
   }
   }
 
 

+ 1 - 1
utils/config.js

@@ -13,7 +13,7 @@ const config = {
   }
   }
 }
 }
 
 
-export const envObj = config['produce']
+export const envObj = config['httpsTest']
 
 
 export const baseUrl = envObj.baseUrl
 export const baseUrl = envObj.baseUrl