|
@@ -13,7 +13,7 @@
|
|
import { ref, computed } from 'vue'
|
|
import { ref, computed } from 'vue'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { getJobAdvertisedShareQrcode } from '@/api/user'
|
|
import { getJobAdvertisedShareQrcode } from '@/api/user'
|
|
-import { getJobFair } from '@/api/jobFair'
|
|
|
|
|
|
+import { getJobFair, saveShareQuery } from '@/api/jobFair'
|
|
|
|
|
|
const shareUrl = ref('')
|
|
const shareUrl = ref('')
|
|
const windowWidth = ref(0)
|
|
const windowWidth = ref(0)
|
|
@@ -90,13 +90,14 @@ const getToLocal = (base64data) => {
|
|
// 生成分享二维码
|
|
// 生成分享二维码
|
|
const qrCode = ref()
|
|
const qrCode = ref()
|
|
const handleShareCode = async () => {
|
|
const handleShareCode = async () => {
|
|
|
|
+ const result = await saveShareQuery({ jobFairId })
|
|
const query = {
|
|
const query = {
|
|
- scene: 'jobFairId=' + jobFairId,
|
|
|
|
|
|
+ scene: 'id=' + result.data,
|
|
path: 'pagesB/jobFair/positionClassification',
|
|
path: 'pagesB/jobFair/positionClassification',
|
|
width: 200,
|
|
width: 200,
|
|
autoColor: false,
|
|
autoColor: false,
|
|
checkPath: true,
|
|
checkPath: true,
|
|
- hyaline: true
|
|
|
|
|
|
+ hyaline: false
|
|
}
|
|
}
|
|
const res = await getJobAdvertisedShareQrcode(query)
|
|
const res = await getJobAdvertisedShareQrcode(query)
|
|
const data = res?.data ? 'data:image/png;base64,' + res.data : ''
|
|
const data = res?.data ? 'data:image/png;base64,' + res.data : ''
|