|
@@ -7,11 +7,13 @@
|
|
|
}
|
|
|
</route>
|
|
|
<script setup lang="ts">
|
|
|
+import { title } from 'process'
|
|
|
import { getPhotoList, getPhotoList2 } from '../../../../core/libs/requests'
|
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
|
const id = ref()
|
|
|
+const title = ref("")
|
|
|
const type = ref()
|
|
|
const img = ref()
|
|
|
const imgTab = ref([])
|
|
@@ -82,6 +84,7 @@ onReachBottom(async ()=>{
|
|
|
})
|
|
|
onLoad(async (query: { id: string; type: 'activity' | 'studyTour'; title: string }) => {
|
|
|
await uni.setNavigationBarTitle({ title: query.title })
|
|
|
+ title.value = query.title
|
|
|
id.value = query.id
|
|
|
type.value = query.type
|
|
|
let res = await setData();
|
|
@@ -97,12 +100,14 @@ onLoad(async (query: { id: string; type: 'activity' | 'studyTour'; title: string
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
-onShareAppMessage(()=>{
|
|
|
-
|
|
|
-})
|
|
|
-onShareTimeline(()=>{
|
|
|
-
|
|
|
-})
|
|
|
+onShareAppMessage(() => ({
|
|
|
+ title:title.value,
|
|
|
+ path:`/pages-sub/home/activity/images/index?id=${id.value}&type=${type.value}&title=${title.value}`
|
|
|
+}))
|
|
|
+onShareTimeline(() => ({
|
|
|
+ title:title.value,
|
|
|
+ path:`/pages-sub/home/activity/images/index?id=${id.value}&type=${type.value}&title=${title.value}`
|
|
|
+}))
|
|
|
</script>
|
|
|
<template>
|
|
|
<div class="bg-white gap-4 pb-4">
|