feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline

This commit is contained in:
yuzhiran
2026-06-21 18:51:35 +08:00
parent 214571688c
commit d8fb8e3bba
13 changed files with 118 additions and 0 deletions
+10
View File
@@ -102,9 +102,19 @@
<script setup>
import { ref, reactive } from 'vue'
// #ifdef MP-WEIXIN
import { onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
// #endif
// #ifndef MP-WEIXIN
import { onShow } from '@dcloudio/uni-app'
// #endif
import { api } from '../../config'
// #ifdef MP-WEIXIN
onShareAppMessage(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
onShareTimeline(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐' }))
// #endif
const grades = ['大一', '大二', '大三', '大四', '研一', '研二', '研三', '已毕业']
const step = ref('input')