flat:语音功能优化
This commit is contained in:
@@ -143,7 +143,6 @@ import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
|
||||
import { onLoad, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import dictLabel from '@/components/dict-Label/dict-Label.vue';
|
||||
import RadarMap from './component/radarMap.vue';
|
||||
import { updateWechatShare, generateShareLink } from '@/utils/wechatShare.js';
|
||||
const { $api, navTo, getLenPx, parseQueryParams, navBack, isEmptyObject } = inject('globalFunction');
|
||||
import config from '@/config.js';
|
||||
const matchingDegree = ref(['一般', '良好', '优秀', '极好']);
|
||||
@@ -170,31 +169,11 @@ onShow(() => {
|
||||
}
|
||||
});
|
||||
|
||||
onHide(() => {
|
||||
const link = generateShareLink();
|
||||
// console.log('首页link:', link);
|
||||
updateWechatShare({
|
||||
title: config.shareConfig.title,
|
||||
desc: config.shareConfig.desc,
|
||||
link: link,
|
||||
imgUrl: config.shareConfig.imgUrl,
|
||||
});
|
||||
});
|
||||
|
||||
function initLoad(option) {
|
||||
const jobId = atob(option.jobId);
|
||||
if (jobId !== jobIdRef.value) {
|
||||
jobIdRef.value = jobId;
|
||||
getDetail(jobId).then((data) => {
|
||||
const link = generateShareLink(btoa(data.jobId));
|
||||
// console.log('详情', link);
|
||||
updateWechatShare({
|
||||
title: '职位推荐:' + data.jobTitle,
|
||||
desc: data.description,
|
||||
link: link,
|
||||
imgUrl: 'https://qd.zhaopinzao8dian.com/file/csn/qd_shareLogo.jpg',
|
||||
});
|
||||
});
|
||||
getDetail(jobId);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user