Fix:旅居分享问题

This commit is contained in:
linxi
2025-12-10 18:23:12 +08:00
parent eaa36dcf44
commit 1f4ea5c0c8
6 changed files with 67 additions and 8 deletions
+16 -3
View File
@@ -355,6 +355,7 @@ import {
getJiaLouStewardList,
getJiaLouNewsList
} from '@/api/qianxian'
import {getUrlParam} from '@/utils/common.js'
import imgBox from '@/components/imageTypeSet/imagebox.vue'
export default {
components: {
@@ -397,8 +398,20 @@ export default {
onPageScroll(e) {
this.scrollData = e
},
onLoad(opts) {
this.id = opts.id
onLoad(options) {
const id = options.id || ''
this.id = id
if (id) {
// this.partnerId = options.partnerId || null
} else {
let obj = uni.getEnterOptionsSync()
if (options.scene || obj.query.scene) {
const query = options ? decodeURIComponent(options.scene + '') : decodeURIComponent(obj.query.scene)
this.id = getUrlParam(query, 'id') || null
}
}
this.getFarmerData()
},
watch: {
@@ -432,7 +445,7 @@ export default {
// 跳转管家详情
goHousekeeperDetail(item) {
uni.navigateTo({
url: '/pkg_product/views/housekeeperDetail?obj=' +JSON.stringify(item)
url: '/pkg_product/views/housekeeperDetail?id=' + item.id
})
},
getJiaLouStewardList() {