分享
This commit is contained in:
parent
372645da15
commit
556b6eee39
|
|
@ -15,7 +15,9 @@
|
|||
computed
|
||||
} from 'vue'
|
||||
import {
|
||||
onLoad
|
||||
onLoad,
|
||||
onShareAppMessage,
|
||||
onShareTimeline
|
||||
} from '@dcloudio/uni-app'
|
||||
import {
|
||||
useUserStore
|
||||
|
|
@ -500,6 +502,16 @@
|
|||
checkPendingRecord()
|
||||
}
|
||||
})
|
||||
|
||||
// 微信分享
|
||||
onShareAppMessage(() => ({
|
||||
title: '学业邑规划 - 多元智能测评',
|
||||
path: '/pages/assessment/info/index'
|
||||
}))
|
||||
|
||||
onShareTimeline(() => ({
|
||||
title: '学业邑规划 - 多元智能测评'
|
||||
}))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* 展示业务详情长图和参与按钮
|
||||
*/
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { useNavbar } from '@/composables/useNavbar.js'
|
||||
import { getBusinessDetail } from '@/api/business.js'
|
||||
import Loading from '@/components/Loading/index.vue'
|
||||
|
|
@ -105,6 +105,16 @@ onLoad((options) => {
|
|||
businessId.value = options.id || options.businessId
|
||||
loadBusinessDetail()
|
||||
})
|
||||
|
||||
// 微信分享
|
||||
onShareAppMessage(() => ({
|
||||
title: '学业邑规划 - 业务详情',
|
||||
path: `/pages/business/detail/index?id=${businessId.value}`
|
||||
}))
|
||||
|
||||
onShareTimeline(() => ({
|
||||
title: '学业邑规划 - 业务详情'
|
||||
}))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { useUserStore } from '@/store/user.js'
|
||||
import { useNavbar } from '@/composables/useNavbar.js'
|
||||
import { getBannerList, getNavigationList } from '@/api/home.js'
|
||||
|
|
@ -326,6 +326,16 @@ onLoad((options) => {
|
|||
onMounted(() => {
|
||||
initPageData()
|
||||
})
|
||||
|
||||
// 微信分享
|
||||
onShareAppMessage(() => ({
|
||||
title: '学业邑规划 - 智能学业规划测评',
|
||||
path: '/pages/index/index'
|
||||
}))
|
||||
|
||||
onShareTimeline(() => ({
|
||||
title: '学业邑规划 - 智能学业规划测评'
|
||||
}))
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
* 展示规划师卡片:照片、姓名、职称、标签、价格
|
||||
*/
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { onPullDownRefresh } from '@dcloudio/uni-app'
|
||||
import { onPullDownRefresh, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { getPlannerList } from '@/api/planner.js'
|
||||
import Navbar from '@/components/Navbar/index.vue'
|
||||
import Loading from '@/components/Loading/index.vue'
|
||||
|
|
@ -174,6 +174,16 @@ onPullDownRefresh(async () => {
|
|||
onMounted(() => {
|
||||
loadPlannerList()
|
||||
})
|
||||
|
||||
// 微信分享
|
||||
onShareAppMessage(() => ({
|
||||
title: '学业邑规划 - 学业规划',
|
||||
path: '/pages/planner/list/index'
|
||||
}))
|
||||
|
||||
onShareTimeline(() => ({
|
||||
title: '学业邑规划 - 学业规划'
|
||||
}))
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
* tab 超出屏幕时可横向滚动
|
||||
*/
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import { onLoad, onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { getTeamInfo } from '@/api/team.js'
|
||||
import Loading from '@/components/Loading/index.vue'
|
||||
import Navbar from '@/components/Navbar/index.vue'
|
||||
|
|
@ -148,6 +148,16 @@ async function loadTeamInfo() {
|
|||
onMounted(() => {
|
||||
loadTeamInfo()
|
||||
})
|
||||
|
||||
// 微信分享
|
||||
onShareAppMessage(() => ({
|
||||
title: '学业邑规划 - 产品介绍',
|
||||
path: '/pages/team/index'
|
||||
}))
|
||||
|
||||
onShareTimeline(() => ({
|
||||
title: '学业邑规划 - 产品介绍'
|
||||
}))
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user